Skip to content

Commit

Permalink
No longer copy certain FPD fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddubyk committed Sep 13, 2024
1 parent ffdd75f commit 8c4f33e
Show file tree
Hide file tree
Showing 14 changed files with 5 additions and 105 deletions.
18 changes: 0 additions & 18 deletions adapters/rubicon/rubicon.go
Original file line number Diff line number Diff line change
Expand Up @@ -675,21 +675,9 @@ func updateImpRpTargetWithFpdAttributes(extImp rubiconExtImpBidder, extImpRubico
if err != nil {
return nil, err
}
if len(site.SectionCat) > 0 {
addStringArrayAttribute(site.SectionCat, target, "sectioncat")
}
if len(site.PageCat) > 0 {
addStringArrayAttribute(site.PageCat, target, "pagecat")
}
if site.Page != "" {
addStringAttribute(site.Page, target, "page")
}
if site.Ref != "" {
addStringAttribute(site.Ref, target, "ref")
}
if site.Search != "" {
addStringAttribute(site.Search, target, "search")
}
} else {
appExtData, _, _, err := jsonparser.Get(app.Ext, "data")
if isNotKeyPathError(err) {
Expand All @@ -699,12 +687,6 @@ func updateImpRpTargetWithFpdAttributes(extImp rubiconExtImpBidder, extImpRubico
if err != nil {
return nil, err
}
if len(app.SectionCat) > 0 {
addStringArrayAttribute(app.SectionCat, target, "sectioncat")
}
if len(app.PageCat) > 0 {
addStringArrayAttribute(app.PageCat, target, "pagecat")
}
}

if len(extImp.Context.Data) > 0 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,11 +360,7 @@
"ext": {
"rp": {
"target": {
"pbadslot": "pbadslot",
"pagecat": [
"val1",
"val2"
]
"pbadslot": "pbadslot"
},
"track": {
"mint": "",
Expand Down
8 changes: 0 additions & 8 deletions adapters/rubicon/rubicontest/exemplary/app-imp-fpd.json
Original file line number Diff line number Diff line change
Expand Up @@ -341,14 +341,6 @@
],
"attr5": [
"3"
],
"pagecat": [
"val1",
"val2"
],
"sectioncat": [
"sectionCat1",
"sectionCat2"
]
},
"track": {
Expand Down
12 changes: 0 additions & 12 deletions adapters/rubicon/rubicontest/exemplary/bidonmultiformat.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,6 @@
"target": {
"page": [
"somePage"
],
"ref": [
"someRef"
],
"search": [
"someSearch"
]
},
"track": {
Expand Down Expand Up @@ -207,12 +201,6 @@
"target": {
"page": [
"somePage"
],
"ref": [
"someRef"
],
"search": [
"someSearch"
]
},
"track": {
Expand Down
8 changes: 0 additions & 8 deletions adapters/rubicon/rubicontest/exemplary/flexible-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -341,14 +341,6 @@
],
"attr5": [
"3"
],
"pagecat": [
"val1",
"val2"
],
"sectioncat": [
"sectionCat1",
"sectionCat2"
]
},
"track": {
Expand Down
6 changes: 1 addition & 5 deletions adapters/rubicon/rubicontest/exemplary/hardcode-secure.json
Original file line number Diff line number Diff line change
Expand Up @@ -319,11 +319,7 @@
"ext": {
"rp": {
"target": {
"pbadslot": "pbadslot",
"pagecat": [
"val1",
"val2"
]
"pbadslot": "pbadslot"
},
"track": {
"mint": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,6 @@
"target": {
"page": [
"somePage"
],
"ref": [
"someRef"
],
"search": [
"someSearch"
]
},
"track": {
Expand Down
6 changes: 1 addition & 5 deletions adapters/rubicon/rubicontest/exemplary/simple-banner.json
Original file line number Diff line number Diff line change
Expand Up @@ -319,11 +319,7 @@
"ext": {
"rp": {
"target": {
"pbadslot": "pbadslot",
"pagecat": [
"val1",
"val2"
]
"pbadslot": "pbadslot"
},
"track": {
"mint": "",
Expand Down
6 changes: 1 addition & 5 deletions adapters/rubicon/rubicontest/exemplary/simple-native.json
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,7 @@
"ext": {
"rp": {
"target": {
"pbadslot": "pbadslot",
"pagecat": [
"val1",
"val2"
]
"pbadslot": "pbadslot"
},
"track": {
"mint": "",
Expand Down
6 changes: 1 addition & 5 deletions adapters/rubicon/rubicontest/exemplary/simple-video.json
Original file line number Diff line number Diff line change
Expand Up @@ -318,11 +318,7 @@
"ext": {
"rp": {
"target": {
"pbadslot": "pbadslot",
"pagecat": [
"val1",
"val2"
]
"pbadslot": "pbadslot"
},
"track": {
"mint": "",
Expand Down
14 changes: 0 additions & 14 deletions adapters/rubicon/rubicontest/exemplary/site-imp-fpd.json
Original file line number Diff line number Diff line change
Expand Up @@ -459,20 +459,6 @@
"page": [
"somePage"
],
"ref": [
"someRef"
],
"search": [
"someSearch"
],
"pagecat": [
"val1",
"val2"
],
"sectioncat": [
"sectionCat1",
"sectionCat2"
],
"dfp_ad_unit_code": "adSlotFromData"
},
"track": {
Expand Down
6 changes: 0 additions & 6 deletions adapters/rubicon/rubicontest/exemplary/user-fpd.json
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,6 @@
"page": [
"somePage"
],
"ref": [
"someRef"
],
"search": [
"someSearch"
],
"dfp_ad_unit_code": "someAdSlot"
},
"track": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,6 @@
"ext": {
"rp": {
"target": {
"pagecat": [
"val1",
"val2"
]
},
"track": {
"mint": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,6 @@
"ext": {
"rp": {
"target": {
"pagecat": [
"val1",
"val2"
]
},
"track": {
"mint": "",
Expand Down

0 comments on commit 8c4f33e

Please sign in to comment.