Set up Prebid Stack in your GAM
Last edited: 2024/06/24
Prebid Stack requires implementation in Google Ad Manager. This includes:
- Creating Orders and Line Items or enabling Header Bidding trafficking (GAM 360 & limited number of Bidders only)
- Creating key values
Why is this needed?
Prebid Stack transmits bid information, including price, to the ad server's tag on the page. This information is then passed to the ad server as query string parameters. The ad server has line items that target these bid parameters. If Prebid Stack is determined to be the winner by the ad server, a signal is returned to Prebid Stack. This signal instructs the library to display the winning creative on the website.
How to do Prebid Stack setup in GAM
The GAM setup differs between GAM360 and GAM Small Business version.
Implementation when using GAM 360
- Enable Header Bidding Trafficking in your GAM. How to do it is explained in Google Ad Manager documentation (link). Alternatively, you can refer to Prebid documentation (link).
- The necessary key values will be implemented by Yieldbird (you don’t have to take any actions).
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.
Implementation when using GAM Small Business
GAM Small Business does not support Header Bidding Trafficking, hence the setup has to be done in a “classic way” - by creating Advertiser, Orders and Line items.
To do it, we created a script that does that automatically. It can be triggered wither by you, or you can ask Yieldbird to do that on your behalf.
Publisher setting up Prebid in GAM independently
- Go to: Your profile in the top right corner > Workspace: Connection to GAM >
Connect
- Select the account that is to be used in setting up Prebid Stack in your GAM and allow yieldbird.com to access this Google Account This account needs to have all the permissions connected with viewing and editing: Advertisers, Orders, Line items, Creatives.
- The New connection menu will appear:
- Network code (contains the list of GAM accounts that the account you used in step 2 has access to): select the GAM account that you want to connect to (where you want to create Prebid Stack Orders, Line items, advertiser… )
- Currency: select the currency that is the main currency in your GAM
- Optionally:
- add template ID for Banner & outstream video
- add Native
- add template ID for Native
- Click
Run
and wait for the process to finish - When the process is complete, Approve the created Orders in GAM:
- Sign in to your GAM and go to Delivery > Orders
- Filter:
- All orders
- Name containing “QuickWrap”
- Approve each Draft order:
- Click on the name of the Order to see its details
- Click Approve button:
- Done! ✅
You shall see a list similar to this one (can differ in currency shown):
Yieldbird setting up Prebid Stack in GAM on Publisher’s behalf
In order for Yieldbird to be able to handle the connection for you, you have to update the permissions given to the GAM user: benchmarks@yieldbird.com and grant it admin role. The admin permission can be revoked and the user can return to the regular permissions, necessary for functioning of other products.
See the article GAM user: benchmarks@yieldbird.com for more information.
What exactly is created in your GAM?
Creating an advertiser
Firstly, we create an advertiser, because all line items and creatives must be associated with an advertiser. An advertiser named “QuickWrap” is created to associate the necessary elements with it.
Creating header bidding orders
Due to the limit of 450 line items per order the bot creates 6 orders in total (2079 line items in total are necessary).
Example:
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.
Creating header bidding line items
Line items must cover all yb_hb_pb values (2079). One line item per one yb_hb_pb value.
Example:
- Line item priority - because header bidding partners return prices, set the line item type to price priority to enable them to compete on price
- Line item creative placeholders - all sizes you are using on your websites
- Rate - same as yb_hb_pb values
- Line item currency - the same as specified in Prebid Stack
- Set display creatives to one or more since we’ll have one or more creatives attached to this line item
Creating key-values
Name | Public Knowledge Base description | Public: Sample values |
---|---|---|
Used to identify the configuration version when A/B testing is running on a domain. |
| |
Indicates if Prebid Stack was enabled on a given ad request. |
| |
Indicates which Bidder won Prebid Auction on a given ad request. | Equal to Bidder Code (Bidder Alias) name. | |
Indicates the Media Type that won in Prebid Auction. | ||
Indicates the value of a line item triggered by Prebid Stack. Applies only to implementations that don’t use Header Bidding Trafficking. | Equal to line item value. | |
Indicates if the Prebid auction was won by a client-side or server-to-server bid. |
| |
Indicates if Prebid Stack was enabled on an ad request and specifies the auction mode used. |
|
Example:
← Previous
Next →
On this page:
- Set up Prebid Stack in your GAM
- Why is this needed?
- How to do Prebid Stack setup in GAM
- Implementation when using GAM 360
- Implementation when using GAM Small Business
- Publisher setting up Prebid in GAM independently
- Yieldbird setting up Prebid Stack in GAM on Publisher’s behalf
- What exactly is created in your GAM?