Prebid.js icon indicating copy to clipboard operation
Prebid.js copied to clipboard

gamAdServerVideo: Add GPP consent information to the DFP video url

Open robin-crazygames opened this issue 5 months ago • 5 comments

Type of change

  • [x] Bugfix

  • [ ] Feature

  • [ ] New bidder adapter

  • [ ] Updated bidder adapter

  • [ ] Code style update (formatting, local variables)

  • [ ] Refactoring (no functional changes, no api changes)

  • [ ] Build related changes

  • [ ] CI related changes

  • [ ] Does this change affect user-facing APIs or examples documented on http://prebid.org?

  • [ ] Other

Description of change

When using pbjs.adServers.dfp.buildVideoUrl, the url would contain GDPR related information in GDPR countries, but not the GPP related information in GPP countries.

I cannot find any links to the official Google Ad Manager docs on how to provide this information. However, when using the googletag script for banner ads, you see it using 'gpp_string' and 'gpp_sid' to pass the GPP related information.

Inspecting the obfuscated/minimized googletag script, you can also find that it is using:

a.pingData.gppString

and

a.pingData.applicableSections.join(',')

So I added those gpp_string and gpp_sid to the buildVideoUrl function, and to the bidViewability (because that one was mentioned in issue 9364 as well)

Other information

fixes https://github.com/prebid/Prebid.js/issues/9364

robin-crazygames avatar Aug 12 '25 06:08 robin-crazygames

Thanks for you submission! I contacted Google and they certainly do not have this feature documented at https://support.google.com/admanager/answer/10678356 yet although there may be unstable and unofficial support before a release. Does this feature solve some issue for you?

patmmccann avatar Aug 12 '25 14:08 patmmccann

Solving an issue might be a big word. What we do for videos is first having a Prebid auction. And then we use the URL generated by Prebid to hold another auction on GAM.

I would assume that, for the auction on GAM, passing in the GPP consent string will result in better bids

robin-crazygames avatar Aug 13 '25 08:08 robin-crazygames

We contacted Google, we're not sure adding this would improve monetization in the short term. We expect them to release official support soon and we can try and merge then so we don't subject publishers to a sudden behavior change when Google announces official support.

patmmccann avatar Aug 13 '25 16:08 patmmccann

Per https://support.google.com/admanager/answer/10678356?sjid=8899252983232341054-NC, gpp params are not supported, but I have seen them on there before. Adjacent to this we should add us_privacy to our targeting as well. I'll create a ticket on our side to add this

jimee02 avatar Aug 26 '25 17:08 jimee02

@patmmccann ran an experiment on our side and it did not provide any revenue lift from what we can tell. I'd continue holding off on this PR

jimee02 avatar Oct 29 '25 22:10 jimee02