Welcome to WebmasterWorld Guest from 3.227.233.78

Forum Moderators: martinibuster

Message Too Old, No Replies

ADx new Code

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

Junior Member

10+ Year Member

joined:Jan 31, 2009
posts: 181
votes: 4


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.
6:52 pm on Dec 3, 2018 (gmt 0)

Junior Member

Top Contributors Of The Month

joined:Nov 29, 2015
posts:113
votes: 32


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.