Content-Relevant Ads with Prebid.js and Google Ad Manager

For publishers that would like to display content-relevant ads, you can go to Customize and Download Prebid.js and check Adrelevantis bidder adapter (https://docs.prebid.org/dev-docs/bidders/adrelevantis.html). You can also build from source code. Once you have the code, add the code file to your page (replacing www.mydomain.com with real domain path).

<script async src="//www.mydomain.com/prebid.js">

Next, if you have a Google Ad Manager account and would like use it to manage your prebid.js header bidding, you can set it up by following this link (https://docs.prebid.org/adops/step-by-step.html). Then, add the following line to your page.

<script async src="//www.googletagservices.com/tag/js/gpt.js">

Now here comes your secret sauce for displaying content-relevant ads. Just add the following line to your page.

<script src="//www.adrelevantis.com/pub/contentdriventag.js">

The above code parses the page content to identify its IAB Categories and top keywords and sends them to Adrelevantis bidder adapter for matching ads.

This is just a high-level description how Adrelevantis works with Prebid.js and Google Ad Manger to display content-relevant ads. There are still more details. Here is a working example to show how it works. Feel free to explore the source code of the page for the details.

Anaplasmosis in Dogs: The Tick-Borne Disease You Might Not Know About

Drop us a line at info@adrelevantis.com or contact us at https://www.adrelevantis.com/ if you would like to know more.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s