Programming Adrelevantis Bidder Adapter With Native Ads

First, please go to open source repository https://github.com/ghguo/adrhbexamples to get the code and get some feeling about the examples.

The key functionality is in function adrtags(adUnits, adDivIds), which is in the Javascript contentdriventag.js (you can get the file at https://www.adrelevantis.com/pub/contentdriventag.js). The function adrtags takes two parameters: adUnits as defined Prebid.js ad units, and adDivIds as defined DIVs in the page that correspond to individual ad units.

The function adrtags does three things.

1. It extracts page content and sends it to a content analysis (AI) service and returns its IAB Categories and ranked keywords.

2. The IAB Categories and the keywords are added to the Adrelevantis bidder as First Party Data of Prebid.js. The bid request is sent to the Adrelevantis SSP and other SSPs.

3. The returned bids are rendered as native ads. It gives one way to render the bids as native ads. You can use Google Ad Manager for native ads if you work with Google Ad Manager. Or you can render the bids in native ad formats using your own code.

Please don’t hesitate to ask if you have any questions. You can leave a comment or drop us a line at info@adrelevantis.com.

Leave a comment