Skip to content

Commit

Permalink
✨Callout vendor update: adding gdpr_consent and account to Prebid Ser…
Browse files Browse the repository at this point in the history
…ver urls (#24620)

* adding gdpr_consent to Prebid Server urls

Prebid Server now supports taking the gdpr_consent parameter on the AMP endpoint.

The assumption I'm making here is that the consent string is available to callout vendors as ATTR(consentString) - @zhouyx, can you confirm? This is based on info from https://github.com/ampproject/amphtml/blob/master/extensions/amp-consent/integrating-consent.md

* using CONSENT_STRING macro

* tweak format

* linting

* adding account parameter to prebid server string
  • Loading branch information
bretg authored and zhouyx committed Sep 25, 2019
1 parent 2e9a940 commit e84ee6c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions extensions/amp-a4a/0.1/callout-vendors.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ const RTC_VENDORS = jsonConfiguration({
},
prebidappnexus: {
url:
'https://prebid.adnxs.com/pbs/v1/openrtb2/amp?tag_id=PLACEMENT_ID&w=ATTR(width)&h=ATTR(height)&ow=ATTR(data-override-width)&oh=ATTR(data-override-height)&ms=ATTR(data-multi-size)&slot=ATTR(data-slot)&targeting=TGT&curl=CANONICAL_URL&timeout=TIMEOUT&adcid=ADCID&purl=HREF',
macros: ['PLACEMENT_ID'],
'https://prebid.adnxs.com/pbs/v1/openrtb2/amp?tag_id=PLACEMENT_ID&w=ATTR(width)&h=ATTR(height)&ow=ATTR(data-override-width)&oh=ATTR(data-override-height)&ms=ATTR(data-multi-size)&slot=ATTR(data-slot)&targeting=TGT&curl=CANONICAL_URL&timeout=TIMEOUT&adcid=ADCID&purl=HREF&gdpr_consent=CONSENT_STRING&account=ACCOUNT_ID',
macros: ['PLACEMENT_ID', 'CONSENT_STRING', 'ACCOUNT_ID'],
disableKeyAppend: true,
},
prebidrubicon: {
url:
'https://prebid-server.rubiconproject.com/openrtb2/amp?tag_id=REQUEST_ID&w=ATTR(width)&h=ATTR(height)&ow=ATTR(data-override-width)&oh=ATTR(data-override-height)&ms=ATTR(data-multi-size)&slot=ATTR(data-slot)&targeting=TGT&curl=CANONICAL_URL&timeout=TIMEOUT&adc=ADCID&purl=HREF',
macros: ['REQUEST_ID'],
'https://prebid-server.rubiconproject.com/openrtb2/amp?tag_id=REQUEST_ID&w=ATTR(width)&h=ATTR(height)&ow=ATTR(data-override-width)&oh=ATTR(data-override-height)&ms=ATTR(data-multi-size)&slot=ATTR(data-slot)&targeting=TGT&curl=CANONICAL_URL&timeout=TIMEOUT&adc=ADCID&purl=HREF&gdpr_consent=CONSENT_STRING&account=ACCOUNT_ID',
macros: ['REQUEST_ID', 'CONSENT_STRING', 'ACCOUNT_ID'],
disableKeyAppend: true,
},
indexexchange: {
Expand Down

0 comments on commit e84ee6c

Please sign in to comment.