This documents explains step by step how to start up with Prebid, how to add Adnuntius as a bidder and finally get it working in Google Ad Manager.
1. Download Prebid
First you will have to download prebid from Prebid.org.
Click on the top-right button to get to the page where you can select what SSPs you want to access in Prebid. It's recommended not to select all of the bidders because this will result in a very large file. Only select the ones you want to work with.
After that, click the download button at the bottom and your browser will download a javascript file that you can host on your webpage.
2. Generate the Prebid request
Next step is to create the code that will actually make the request to Prebid. First you will have to set up the ad units that will bind your Google ad units to Prebid. Add something similar to this on your page:
This is the script for creating one ad unit request to Prebid. Most important thing for setting things up for Google, is that the code matches up with the ad-tag that you have generated from google.
After that, you will need to add this to your page:
The code above will make sure that google does not request any ads before Prebid has returned all the winning ads. This is the line in the code above that makes it happen:
googletag.pubads().disableInitialLoad();
Once prebid has returned with ads, it runs the function: initAdserver that will continue with the request an pass all Prebid winning bids as key value targeting into google. After this part of the code you just request your google ads with enableSingleRequest.
A full code example that will return a prebid ad from adnuntius looks like this:
this creative is the one that will select the winning line item from prebid. if the prebid line item in google is the one that won the internal auction in google.
Once you have completed these steps, just change the google-tag in the example code and your should be good to go.