-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
As a publisher using GPT's sizemapping feature, I'd like Prebid.js to auto detect the browser size and read from my GPT sizemapping array, so that Prebid.js can send out ad requests for different ad sizes depending on the user's browser size.
Acceptance Criteria
- On load, Prebid.js detects the browser size.
- Prebid.js reads an optional passed in sizemapping array for screen width>ad sizes
- Prebid.js will use the optimal sizes in sizemapping, instead of the sizes passed in the adUnits, as the size to pass into header bidding partners.
- Prebid.js will clean up the targeting, so that if GPT refreshes the ad call, the same header bidding ad from the previous round will not be served twice.
GPT's sizemapping feature:
https://support.google.com/dfp_premium/answer/3423562?hl=en
If user resizes the browser and GPT refreshes the ad slots with different sizes, header bidding partners cannot easily participate in that round of auction
Because GPT does not have a callback when it detects the resize of a page. Thus when GPT issues a new ad request when it detects a page resize, header bidding partners do not have time or the opportunity to run an auction.
Reactions are currently unavailable