From 66dcc78bb5414244190e84633b404fd8ee21b945 Mon Sep 17 00:00:00 2001 From: "kacper.fus" Date: Thu, 17 Jul 2025 10:14:04 +0200 Subject: [PATCH 1/3] Provide GPP params for user sync --- .../exemplary/simple-banner-with-gpp.json | 99 +++++++++++++++++++ static/bidder-info/openx.yaml | 5 +- 2 files changed, 102 insertions(+), 2 deletions(-) create mode 100644 adapters/openx/openxtest/exemplary/simple-banner-with-gpp.json diff --git a/adapters/openx/openxtest/exemplary/simple-banner-with-gpp.json b/adapters/openx/openxtest/exemplary/simple-banner-with-gpp.json new file mode 100644 index 00000000000..e3b37c626e9 --- /dev/null +++ b/adapters/openx/openxtest/exemplary/simple-banner-with-gpp.json @@ -0,0 +1,99 @@ +{ + "mockBidRequest": { + "id": "test-request-id", + "imp": [ + { + "id": "test-imp-id", + "banner": { + "format": [{"w": 728, "h": 90}] + }, + "ext": { + "bidder": { + "unit": "539439964", + "delDomain": "se-demo-d.openx.net" + } + } + } + ], + "regs": { + "gpp": "gppString", + "gpp_sid": [ + 7 + ] + } + }, + + "httpCalls": [ + { + "expectedRequest": { + "uri": "http://rtb.openx.net/prebid", + "body": { + "id": "test-request-id", + "imp": [ + { + "id": "test-imp-id", + "banner": { + "format": [{"w": 728, "h": 90}] + }, + "tagid": "539439964" + } + ], + "ext": { + "bc": "hb_pbs_1.0.0", + "delDomain": "se-demo-d.openx.net" + }, + "regs": { + "gpp": "gppString", + "gpp_sid": [ + 7 + ] + } + }, + "impIDs":["test-imp-id"] + }, + "mockResponse": { + "status": 200, + "body": { + "id": "test-request-id", + "seatbid": [ + { + "seat": "openx", + "bid": [{ + "id": "8ee514f1-b2b8-4abb-89fd-084437d1e800", + "impid": "test-imp-id", + "price": 0.500000, + "adm": "{\"ver\": \"1.2\", \"assets\": [{\"id\": 1, \"required\": 1,\"title\": {\"text\": \"OpenX (Title)\"}}], \"link\": {\"url\": \"https://www.openx.com/\"}, \"eventtrackers\":[{\"event\":1,\"method\":1,\"url\":\"http://example.com/impression\"}]}", + "crid": "crid_10", + "h": 90, + "w": 728, + "mtype": 1 + }] + } + ], + "cur": "USD" + } + } + } + ], + + "expectedBidResponses": [ + { + "currency": "USD", + "bids": [ + { + "bid": { + "id": "8ee514f1-b2b8-4abb-89fd-084437d1e800", + "impid": "test-imp-id", + "price": 0.5, + "adm": "{\"ver\": \"1.2\", \"assets\": [{\"id\": 1, \"required\": 1,\"title\": {\"text\": \"OpenX (Title)\"}}], \"link\": {\"url\": \"https://www.openx.com/\"}, \"eventtrackers\":[{\"event\":1,\"method\":1,\"url\":\"http://example.com/impression\"}]}", + "crid": "crid_10", + "w": 728, + "h": 90, + "mtype": 1 + }, + "type": "banner" + } + ] + } + ] +} diff --git a/static/bidder-info/openx.yaml b/static/bidder-info/openx.yaml index 8678a654926..56c24c9abec 100644 --- a/static/bidder-info/openx.yaml +++ b/static/bidder-info/openx.yaml @@ -17,11 +17,12 @@ capabilities: modifyingVastXmlAllowed: true userSync: iframe: - url: "https://u.openx.net/w/1.0/cm?id=891039ac-a916-42bb-a651-4be9e3b201da&ph=a3aece0c-9e80-4316-8deb-faf804779bd1&gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&r={{.RedirectURL}}" + url: "https://u.openx.net/w/1.0/cm?id=891039ac-a916-42bb-a651-4be9e3b201da&ph=a3aece0c-9e80-4316-8deb-faf804779bd1&gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&r={{.RedirectURL}}&gpp={{.GPP}}&gpp_sid={{.GPPSID}}" userMacro: "{OPENX_ID}" redirect: - url: "https://rtb.openx.net/sync/prebid?gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&r={{.RedirectURL}}" + url: "https://rtb.openx.net/sync/prebid?gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&r={{.RedirectURL}}&gpp={{.GPP}}&gpp_sid={{.GPPSID}}" userMacro: "${UID}" openrtb: version: 2.6 + gpp-supported: true From e1b4e19aea96c82034db7d4fd535d508af2cb05a Mon Sep 17 00:00:00 2001 From: "kacper.fus" Date: Thu, 17 Jul 2025 11:28:32 +0200 Subject: [PATCH 2/3] suggestions --- .../openx/openxtest/exemplary/simple-banner-with-gpp.json | 4 ++-- static/bidder-info/openx.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/adapters/openx/openxtest/exemplary/simple-banner-with-gpp.json b/adapters/openx/openxtest/exemplary/simple-banner-with-gpp.json index e3b37c626e9..f69a3478325 100644 --- a/adapters/openx/openxtest/exemplary/simple-banner-with-gpp.json +++ b/adapters/openx/openxtest/exemplary/simple-banner-with-gpp.json @@ -62,7 +62,7 @@ "id": "8ee514f1-b2b8-4abb-89fd-084437d1e800", "impid": "test-imp-id", "price": 0.500000, - "adm": "{\"ver\": \"1.2\", \"assets\": [{\"id\": 1, \"required\": 1,\"title\": {\"text\": \"OpenX (Title)\"}}], \"link\": {\"url\": \"https://www.openx.com/\"}, \"eventtrackers\":[{\"event\":1,\"method\":1,\"url\":\"http://example.com/impression\"}]}", + "adm": "OpenX Banner Ad", "crid": "crid_10", "h": 90, "w": 728, @@ -85,7 +85,7 @@ "id": "8ee514f1-b2b8-4abb-89fd-084437d1e800", "impid": "test-imp-id", "price": 0.5, - "adm": "{\"ver\": \"1.2\", \"assets\": [{\"id\": 1, \"required\": 1,\"title\": {\"text\": \"OpenX (Title)\"}}], \"link\": {\"url\": \"https://www.openx.com/\"}, \"eventtrackers\":[{\"event\":1,\"method\":1,\"url\":\"http://example.com/impression\"}]}", + "adm": "OpenX Banner Ad", "crid": "crid_10", "w": 728, "h": 90, diff --git a/static/bidder-info/openx.yaml b/static/bidder-info/openx.yaml index 56c24c9abec..12612046b0c 100644 --- a/static/bidder-info/openx.yaml +++ b/static/bidder-info/openx.yaml @@ -17,10 +17,10 @@ capabilities: modifyingVastXmlAllowed: true userSync: iframe: - url: "https://u.openx.net/w/1.0/cm?id=891039ac-a916-42bb-a651-4be9e3b201da&ph=a3aece0c-9e80-4316-8deb-faf804779bd1&gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&r={{.RedirectURL}}&gpp={{.GPP}}&gpp_sid={{.GPPSID}}" + url: "https://u.openx.net/w/1.0/cm?id=891039ac-a916-42bb-a651-4be9e3b201da&ph=a3aece0c-9e80-4316-8deb-faf804779bd1&gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&gpp={{.GPP}}&gpp_sid={{.GPPSID}}&r={{.RedirectURL}}" userMacro: "{OPENX_ID}" redirect: - url: "https://rtb.openx.net/sync/prebid?gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&r={{.RedirectURL}}&gpp={{.GPP}}&gpp_sid={{.GPPSID}}" + url: "https://rtb.openx.net/sync/prebid?gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&gpp={{.GPP}}&gpp_sid={{.GPPSID}}&r={{.RedirectURL}}" userMacro: "${UID}" openrtb: version: 2.6 From 796a38f20c7f1b3f47f1554f5412bb0aa155f3c3 Mon Sep 17 00:00:00 2001 From: "kacper.fus" Date: Thu, 17 Jul 2025 15:05:08 +0200 Subject: [PATCH 3/3] delete test --- .../exemplary/simple-banner-with-gpp.json | 99 ------------------- 1 file changed, 99 deletions(-) delete mode 100644 adapters/openx/openxtest/exemplary/simple-banner-with-gpp.json diff --git a/adapters/openx/openxtest/exemplary/simple-banner-with-gpp.json b/adapters/openx/openxtest/exemplary/simple-banner-with-gpp.json deleted file mode 100644 index f69a3478325..00000000000 --- a/adapters/openx/openxtest/exemplary/simple-banner-with-gpp.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "mockBidRequest": { - "id": "test-request-id", - "imp": [ - { - "id": "test-imp-id", - "banner": { - "format": [{"w": 728, "h": 90}] - }, - "ext": { - "bidder": { - "unit": "539439964", - "delDomain": "se-demo-d.openx.net" - } - } - } - ], - "regs": { - "gpp": "gppString", - "gpp_sid": [ - 7 - ] - } - }, - - "httpCalls": [ - { - "expectedRequest": { - "uri": "http://rtb.openx.net/prebid", - "body": { - "id": "test-request-id", - "imp": [ - { - "id": "test-imp-id", - "banner": { - "format": [{"w": 728, "h": 90}] - }, - "tagid": "539439964" - } - ], - "ext": { - "bc": "hb_pbs_1.0.0", - "delDomain": "se-demo-d.openx.net" - }, - "regs": { - "gpp": "gppString", - "gpp_sid": [ - 7 - ] - } - }, - "impIDs":["test-imp-id"] - }, - "mockResponse": { - "status": 200, - "body": { - "id": "test-request-id", - "seatbid": [ - { - "seat": "openx", - "bid": [{ - "id": "8ee514f1-b2b8-4abb-89fd-084437d1e800", - "impid": "test-imp-id", - "price": 0.500000, - "adm": "OpenX Banner Ad", - "crid": "crid_10", - "h": 90, - "w": 728, - "mtype": 1 - }] - } - ], - "cur": "USD" - } - } - } - ], - - "expectedBidResponses": [ - { - "currency": "USD", - "bids": [ - { - "bid": { - "id": "8ee514f1-b2b8-4abb-89fd-084437d1e800", - "impid": "test-imp-id", - "price": 0.5, - "adm": "OpenX Banner Ad", - "crid": "crid_10", - "w": 728, - "h": 90, - "mtype": 1 - }, - "type": "banner" - } - ] - } - ] -}