Last edited: 2025/05/06
Prebid Stack requires implementation in Google Ad Manager (GAM). This includes creating Delivery items: Advertiser, Orders, Line Items, and Creatives in your GAM. These must be set up separately for:
Alternatively, you can enable Header Bidding Trafficking (requires GAM 360 & supports only selected Bidders).
Prebid Stack sends bid information (including the price) as key values to Google Publisher Tag (GPT) on the page. GPT then passes this data to Google Ad Manager (GAM) using query string parameters.
In GAM, Line Items are set up to target these key values. If GAM chooses Prebid as the winner, it sends a signal back to Prebid Stack, which then displays the winning creative on the site.
You don’t need to setup Prebid Delivery items if you use GAM 360 and enable Header Bidding Trafficking. How to do it is explained in Google Ad Manager documentation (link). Alternatively, you can refer to Prebid documentation (link).
<aside> <img src="/icons/new-alert_red.svg" alt="/icons/new-alert_red.svg" width="40px" /> Attention: Not all Bidders are supported in Header Bidding Trafficking! Before you proceed with this type of implementation, please verify if all the Bidders you want to implement are currently supported. The list is available here.
If not all Bidders you want to use are available with Header Bidding Trafficking, please follow the implementation explained for GAM Small Business and create Orders/Line items for implementation.
</aside>
If you want to ensure full support for all Bidders available in Prebid, or if you are using GAM Small Business, please complete the following steps:
Go to ****Global setup > GAM connection: Setup Prebid Stack in GAM
Use the toggle switches to select which Media Types you want to create Prebid Delivery items for in your GAM. You can also optionally customize their settings:
for Banner & outstream video and Native Media Types:
Creative Template ID to be used for Creatives for these Media Types
<aside> <img src="/icons/link_yellow.svg" alt="/icons/link_yellow.svg" width="40px" /> Google Ad Manager documentation on Creative templates: link
</aside>
for Instream video and Native Media Type:
Click ‘Start’ and wait for the process to complete.
<aside> <img src="/icons/new-alert_red.svg" alt="/icons/new-alert_red.svg" width="40px" /> This process may take up to one hour. To ensure it completes smoothly, avoid making any changes in GAM during the setup.
Also, make sure that your account hasn’t reached Google Ad Manager limits for Line Items, Orders, or Key Values.
</aside>
Once the setup is complete, you will see the time and date of the successful setup.
<aside> <img src="/icons/info-alternate_blue.svg" alt="/icons/info-alternate_blue.svg" width="40px" /> The process that we execute is basically a full automation of what is explained in the Prebid documentation. In case you need more information then explained below, please refer to Prebid’s step by step guide to GAM setup.
</aside>
Firstly, we create an advertiser, because all line items and creatives must be associated with an advertiser. An advertiser named “YIELDBIRD” is created to associate the necessary elements with it.
Due to the limit of 450 line items per order the script creates 6 orders in total (2079 line items in total are necessary).
When it comes to Start and End date, you typically do not include an end date in your line items. That’s why our bot sets the End date to “Unlimited” in GAM, and the Start date is set to begin immediately.
Line items must cover all yb_hb_pb values (2079). One line item per one yb_hb_pb value.
All Line Items will be linked to the appropriate general Prebid creatives.
On this page: