Some ad sizes not showing

Posted in: Newspaper
Post count: 13

Hi!
I am implementing ads into the theme – I will be using mainly DFP ads, and you suggest using some ads plugin to help with implementing. I did not choose AdRotate, but Advanced Ads. I put DFP head code into Analytics, as some people on Forum here suggested, and made 4 ads to show in my header (3 sizes). I tried every ad alone to see if the code and shortcode work, and they do – so standalone ads work. But when I implement 4 sizes it shows only 1. and 3. one, 2. and 4. not. The code I put in my header is:

<div class=”td-visible-desktop”>
[the_ad id=”3465″]
</div>

<div class=”td-visible-tablet-landscape”>
[the_ad id=”3465″]
</div>

<div class=”td-visible-tablet-portrait”>
[the_ad id=”3466″]
</div>

<div class=”td-visible-phone”>
[the_ad id=”3467″]
</div>

I would like to mention that it is the same if I avoid using ad plugin and put direct DFP tag code into theme ad space – it shows each ad if it is standalone, but disappears on 2. and 4. spotif I use 4 classes with different ad for each class.

Could you please help me with that, I could send you via PM login, because on the frontend the site is coming soon, visible only when logged in.

Thank you in advance.

Igor

Post count: 13

And interesting thing happened with some experimenting. I have tried adding one by one, saving and checking after each one:
1.
<div class=”td-visible-phone”>
[the_ad id=”3467″]
</div>

And the smallest ad would show up, of course, only when the screen was small, other were blank.

2.
<div class=”td-visible-tablet-portrait”>
[the_ad id=”3466″]
</div>

After that website would show ads for that two sizes.

And the last, after i added the next one, that one wouldn’t show, and then desktop ad – also wouldn’t show (but those small ones still showed).

I am really not sure what is wrong since codes are ok. Also, I have tried disabling plugins if they interfere, cleared cache, but the problem was still here.

Post count: 20688

Hi,

If you mean the solutions and implementation from this topic
https://forum.tagdiv.com/topic/tutorial-responsive-ads-with-google-dfp/
That might as well work or not, there are mixed results from users.
Those classes you mention that are used to display different ads based on device, are working properly
https://forum.tagdiv.com/using-other-ads-non-adsense-ads/
Maybe you could make some tests with the AdRotate plugin as well, the result might be more positive.

Thanks

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.