• Resolved jmckiernan86

    (@jmckiernan86)


    Hello,

    I’m having an issue with ads not showing up on pages. I’m using a dummy ad unit and I’m trying to get it to show up in the content. It IS showing on posts, but not on pages. I made sure the tag I used in the placement (after H2) was on a page for testing. I also checked the troubleshooting steps listed for this plugin and deactivated any plugins that could cause an issue. I’m not using any exclusion conditions. The ads work both in posts and in the sidebar fine, but not in pages. I’m using the astra theme with the elementor plugin

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Thomas Maier

    (@webzunft)

    Hi jmckiernan86,

    I hope you are well.

    Thanks for the detailed description and for starting to debug it on your own, really appreciated!

    Would it be possible to share a link to sample pages (one with and one without ads) here?

    Thanks,
    Thomas

    Thread Starter jmckiernan86

    (@jmckiernan86)

    Hi Thomas,

    Thanks for your reply.

    Here is a post where the ad is working:

    https://staging-healthbuff.kinsta.com/hello-4/

    and here is a page where it is not working:

    https://staging-healthbuff.kinsta.com/sample-page-2/

    I used the after 2nd paragraph tag placement for this ad

    • This reply was modified 6 years, 6 months ago by jmckiernan86.
    Plugin Author Thomas Maier

    (@webzunft)

    Hi jmckiernan86,

    thanks for the links. I am not seeing any ad in the content of the post either now. Did you remove the placement?

    Thanks,
    Thomas

    Thread Starter jmckiernan86

    (@jmckiernan86)

    I’m not sure why they aren’t showing now on the posts either. I didn’t change anything. I just checked all the settings and they are the same. I’m not sure when that happened.

    Plugin Author Thomas Maier

    (@webzunft)

    No problem, we can work with that as well.

    Could you please check again if you have placements set up in _Advanced Ads > Placements_ and that there are ads assigned to them?

    Check in the admin bar in the frontend of the pages if the “Ad Health” option is red and what the warning says.

    Enable the debug mode in the settings of an ad that should appear in the post and page and check if the debug output is displayed. This would mean that there is a display or visitor condition preventing the ad from showing up.

    Let me know if any of these steps result into anything.

    Thanks,
    Thomas

    Thread Starter jmckiernan86

    (@jmckiernan86)

    In ad placements I am using the dummy ad after paragraph tag 2 and then I also set another placement after H2 tag for the pages – It is the same ad unit that shows up in the sidebar. With debug mode enabled I can see the debug output in the ad unit in the sidebar but there is no output at all in the posts or pages.

    Here is a link with screenshots that may help

    dummy ad (1 and 2) and placement (3)

    Thank you for your assistance!

    Plugin Author Thomas Maier

    (@webzunft)

    Thanks for the screenshot and the explanations.

    It could be that the code is too nested due to Elementor. Please go to Advanced Ads > Settings > General and enable the “Disable level limitation” option.

    Advanced Ads has some checks to prevent ad injection into sub-containers. That should normally also show as a warning in the “Ad Health” section in the admin bar in the frontend. Do you see anything there?

    Thanks,
    Thomas

    Thread Starter jmckiernan86

    (@jmckiernan86)

    I checked the ‘Disable level limitation’ but the ads still didn’t show and I didn’t see any ‘Ad Health’ warnings. After I unchecked it again I changed the ‘Unlimited ad injection’ value to 1 and the ads started showing (on both pages and posts) and then I could also see the ‘Ad health’ warning in the admin bar but the ads were already showing at that point. It didn’t appear that checking it changed anything other than making the warning go away. I’m also using the ‘in feed’ display option but I still can’t seem to get that one to show up on my home or archive pages – https://staging-healthbuff.kinsta.com/

    One more question – in the premium version are there more placement options? for example, I would like to place ads after the 3rd time an li tag appears that is before an H2 tag?

    Thanks again for your help I really appreciate it!

    Plugin Author Thomas Maier

    (@webzunft)

    Thanks for your feedback.

    Which warning appeared in Ad Health when you decreased the “Unlimited ad injection” option?

    Not sure why changing that helped in that case, but definitely happy that this was a solution.

    Your homepage is a static page, not a normal WordPress loop (feed). This is why the in-Feed placement doesn’t work here.

    Yes, there are more placements and options in Pro. There is not a direct option for your condition, though. If the position can be defined using jQuery selectors then it should possible to place an ad there using the Custom Position placement.

    Thomas

    Thread Starter jmckiernan86

    (@jmckiernan86)

    The warning that came up was about using Unlimited ad injection. But I can’t get it to show now even if I change the settings back to how they were (made sure to clear the cache).

    The home page I’m using is an elementor element called ‘posts’ that shows most recent posts in a feed – is there any way to get it to work or will I need to use the wordpress default feed?

    Plugin Author Thomas Maier

    (@webzunft)

    In that case, you can try the Post List placement with the “secondary loops” option enabled (less recommended in my opinion) or the Custom Position placement.

    See https://wpadvancedads.com/insert-ads-between-posts-wordpress/

    Both are Pro features, so if you run into an issue with them you can reach out directly for email support.

    Thanks,
    Thomas

    Thread Starter jmckiernan86

    (@jmckiernan86)

    Sounds good, thanks Thomas!

    (also I meant to say that the warning that came up was about ‘Disable level limitation’ not ‘Unlimited ad injection’ – though the ‘Unlimited ad injection’ was the option that seemed to fix the issue.)

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Ads not showing on pages’ is closed to new replies.