• Resolved slobizman

    (@slobizman)


    I just loaded this up on my site, and my Adsense ads did not show up in-content on my pages and posts. The ads are placed with shortcodes in the page/post that I created in functions.php. Site is a current, fully updated Genesis site.

    Had to disable of course.

    Note: I also use Cloudflare.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Frank Goossens

    (@futtta)

    as per the FAQ you can troubleshoot such issues by;

    * disabling JS or CSS optimization to find out which one is breaking things
    * if JS (which is more likely) check your browser console for JS errors
    * based on that (and the plugin you’re using to place your ads) excluding relevant JS from optimization

    do let me know if you need additional help (in which case a URL would help)!

    frank

    Thread Starter slobizman

    (@slobizman)

    First of all, thank you so much for your prompt reply. You sure don’t see this often from plugin authors and I am impressed.

    First a CLARIFICATION: I had previously told you that I created shortcodes in my Genesis functions.php file that I use to place the ads in the site. That was incorrect (that’s how my other sites work, but in this site’s case) for most cases — I instead used the plugin “AdSense In-Post Ads” for all ads with the exception of an ad on my home page where I just place the adsense code directly into a widget.

    So, surprisingly to me are the following tests:

    HTML checked (only): In the ad on the home page where the ad code is simply placed in a widget, it allocates space to the ad, but the ad never shows up, showing that tiny icon in the middle that means it can’t display the image Other ads served by placing shortcodes in-content (pages and posts) are fine.

    Javascript checked (only): All ads show properly — horizontal and rectangle.

    CSS checked (only): No ads at all show up, and no space is allocated to them, EXCEPT the one horizontal on the home page as described in the “HTML checked” note above.

    * All ads are responsive if that matters

    I would provide you the link to the site, but this particular site is one I don’t like to make public. I’d be happy to send the link to you privately. But I can’t have you look at it while the plugin is running with all checked because ihe site makes a lot of money and even if ads were not working for an hour it’s a significant hit.

    Plugin Author Frank Goossens

    (@futtta)

    OK, what you could try (esp. for the widget) is wrapping the homepage adsense-code in nopitimize-tags;

    <!--noptimize--><script>your adsense code here</script><!--/noptimize-->

    you could try the some with the shortcode (but not 100% sure if that’ll work, you’ll probably have to switch from the HTML to the text editor);

    <!--noptimize-->[adsense_shortcode_here]<!--/noptimize-->

    If that doesn’t work the best solution would be to reproduce the problem on a hidden page and mail me the URL (futtta-at-gmail-dot-com) would that be possible?

    frank

    Plugin Author Frank Goossens

    (@futtta)

    additionally; as the problems seem CSS-related, you could also try toggling the “aggregate inline CSS”-option?

    Thread Starter slobizman

    (@slobizman)

    1) I’ve added the noptimize tags and I’m not having any issues! Is this a tag meant solely for your plugin, or is it some other universal tag?

    2) As for the ad that was acting funky in the widget, I realize that was on Chrome only, and even did it when I had Autoptimize disabled. I think it might have something to do with my adblocker extension, even though it was set to ignore this my website. Anyway, seems to be working now.

    3) You wrote, “additionally; as the problems seem CSS-related, you could also try toggling the “aggregate inline CSS”-option?” I don’t see this option, where is it?

    4) My render-blocking errors on Google’s PageSpeed tool is much cleaner now! But I’m still getting the following ones. I see that in the Advanced Options for JS you have exclusions for “seal.js, js/jquery/jquery.js”. So, is jquery.js something that I just keep there despite Google’s tool telling me to remove it? And the two CSS errors are from

    Remove render-blocking JavaScript:
    https://www.—-.com/wp-includes/js/jquery/jquery.js?ver=1.12.4

    Optimize CSS Delivery of the following:
    https://www.—-.com/wp-content/cache/autoptimize/css/autoptimize_543c681cb6e6673a389f7f7016e4589d.css
    https://www.—-.com/wp-content/cache/autoptimize/css/autoptimize_bb66e8897dce6123eb6a1c274d6f1d7a.css

    5) This doesn’t have anything to do with you plugin, but I’m curious of what you might say about it. I use Cloudflare and I tried setting the Auto-Minify (css, js and html) to minify (this is while your plugin is not active), and it doesn’t do anything at all. Just wondering why that could be.

    6) THANKS FOR YOUR TERRIFIC SUPPORT!

    Plugin Author Frank Goossens

    (@futtta)

    1. noptimize is AO-only (as far as I know)
    3. autoptimize settings, make sure “advanced options” are visible, under CSS optimization, 4th option
    4. jquery is excluded by default because that’s the safest setting, but you can try removing jquery from the exclusion-list and check if everything still works
    5. I don’t use cloudflare myself, nor have I tried auto-minify, but I believe you ??

    have a nice day,
    frank

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Blocked Adsense ads’ is closed to new replies.