A guide for setting up Prebid Native in Google Ad Manager
Prerequisites
- Prebid ad ops setup http://prebid.org/adops/setting-up-prebid-native-in-dfp.html
- Prebid engineering setup http://prebid.org/dev-docs/examples/native-ad-example.html
- Include revcontent bid adapter in prebid build. Either:
a) select Revcontent in http://prebid.org/download.html
or
b) include in code pipeline: gulp build --modules=revcontentBidAdapter
- Update your ads.txt to contain our entries: https://www.revcontent.com/ads_txt
When going through the Prebid engineering setup, set up a ‘revcontent’ bidder for each ‘adUnit’ placement you’d like to place Revcontent in
1) Determine the size you’d like to serve in the ad unit:
/*
Supported sizes:
----------------
300x250 - Medium rectangle
728x90 - Leaderboard
300x600 - Half page or large skyscraper
*/
var size = {width: 300, height: 250};
2) In the ‘bids’ field of the ad units you’d like to have Revcontent widgets complete for inventory you’ll need to add a new bidder. Add your account details in the highlighted sections. Choose the widget id that associates with the placement.
{
bidder: 'revcontent',
params: {
size: size,
apiKey: '<API_KEY>',
userId: <ACCOUNT_ID>,
domain: '<SITE-DOMAIN>',
endpoint: 'trends.revcontent.com'
}
}
3) See: https://github.com/prebid/Prebid.js/blob/master/modules/revcontentBidAdapter.md for extra options, such as bid floor, and custom template.
4) See: https://github.com/prebid/Prebid.js/blob/master/integrationExamples/gpt/revcontent_example.html for a full example in context.
Once ads have served (won the bid and displayed the ad), the Revcontent UI should show stats for the widget (manually or automatically created for this domain) in the UI.