Forum Moderators: martinibuster

Message Too Old, No Replies

ADx new Code

         

yaashul

5:24 pm on Dec 3, 2018 (gmt 0)

10+ Year Member Top Contributors Of The Month



Hi,

I am using Google Ad Exchange now Google Ad Manager. My service company has told me there is a change in code. Old code could not be targeted for brand advertisement. Old code is like that

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- NAME-OF-THE-AD -->
<ins class="adsbygoogle"
style="display:inline-block;width:336px;height:280px"
data-ad-client="ca-pub-pubid"
data-ad-slot="217xxxxxxx"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>


Now in new code data-ad-slot which used to be number should be the name of the ad. Just like that

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- NAME-OF-THE-AD -->
<ins class="adsbygoogle"
style="display:inline-block;width:336px;height:280px"
data-ad-client="ca-pub-pubid"
data-ad-slot="NAME-OF-THE-AD"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>



Any other person has this information? I am not able to find any support page at all.

leebow

6:52 pm on Dec 3, 2018 (gmt 0)

10+ Year Member Top Contributors Of The Month



I don’t use ADx but looking at the change - assuming before all the ads on your page just had your publisher ID here:

data-ad-slot="217xxxxxxx"

And now each ad on the page will have:

data-ad-slot="AD-NAME-1"
data-ad-slot="AD-NAME-2"
data-ad-slot="AD-NAME-ETC"

It would allow header bidding to determine which ad was being targeted.

BUT...

You know what google are like for changing their code - so I would 100% shoot an email to google before making changes.

It’s just not worth the risk.