Stripping ADX IDs

Posted in: Newspaper
Post count: 27

This is the problem for the tag name,
When you insert an ad-unit in wordpress, a filter verifies the screenview in order to readapt the sizes as you can see here below:

var td_screen_width = window.innerWidth;

if ( td_screen_width >= 1140 ) {
/* large monitors */
document.write(‘<ins class=”adsbygoogle” style=”display:inline-block;width:300px;height:250px” data-ad-client=”ca-pub-9021387890731428″ data-ad-slot=”auto”></ins>’);
(adsbygoogle = window.adsbygoogle || []).push({});
}
The problem arise here because the data-ad-slot is “auto” (see above)
There should be a js that replaces “auto” with the IDs and here we are missing something

Post count: 27

Any idea on this?

The theme is replacing the data ad slot so ADX can’t track the ad codes.

Post count: 22421

Hello,

If you theme ad system interferes with this feature, you can bypass the theme ad system and use the adrotate plugin to render your ads. This way the theme will have no more influence over the ads.

Let us know how it goes.
Thank you!

Post count: 27

Thanks for the response Bogdan, big fan of the theme and have not have many issues at all with it. You can’t look at how the theme is stripping this ad slot data? I’d rather not involve additional plugins.

Post count: 22421

Well we have not tested ADX so we do not know of it;s functionality . We are not sure what to look for. We built the theme to be compatible with the standard adsense codes, but we are not familiar with this tool or any ad tracking. Our theme will modify the ad code to suit the layout better and most likely this adx tool requires the ad code intact. For this you will need to use the ad plugin so the ad code does not get modified.
Sorry for the inconvenience

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.