• Resolved Ben Castellani

    (@ben-castellani)


    The “Disable Ads for Members” option works fairly well for my sites, but the Overlay Ads from Google Adsense seem to not follow this checkbox (i.e. even Members are getting the Overlay ads).

    Do you have any idea how to block these or plan to support this ad set to disable in the future?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Jarryd Long

    (@jarryd-long)

    Hi Ben, thank you for reaching out to the Paid Memberships Pro team.

    Depending on how you add these Ads to your site, you can use the same function to only show them to non-members.

    Please let me know how it’s been added and if it’s just with a tag in the header/footer or with a plugin and we can advise from there.

    Kind Regards,
    Jarryd
    Support Manager at Paid Memberships Pro

    Thread Starter Ben Castellani

    (@ben-castellani)

    Hi Jarryd,

    Auto-Ads are a new common feature by Google, and are described here: https://support.google.com/adsense/answer/9261307?hl=en&ref_topic=9261304&sjid

    I can obviously disable Auto-Ads, but in my experience they perform the best for revenue.

    In short, here are the instructions though which I dont see how to incorporate PMP into this workflow:

    —-

    Copy and paste the AdSense code in between the <head></head> tags of your site

    Place this code on every page across your site and Google will automatically show ads in all the best places for you

    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-555555XXXXX999999"
    crossorigin="anonymous"></script>
    Plugin Support Jarryd Long

    (@jarryd-long)

    Thank you for your feedback. Please navigate to Memberships > Settings > Advanced and scroll down to the ‘Hide Ads From Members?’ dropdown. Select either option that works for you.

    Then edit your theme’s header.php file (or wherever the Google Ads script has been added and replace that line with the following:

    <?php if ( function_exists( 'pmpro_displayAds' ) && pmpro_displayAds() ) { ?>
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-555555XXXXX999999"
    crossorigin="anonymous"></script>
    <?php } ?>

    The code will only show for non-members then. Please give this a try and let me know if it helps?

    Kind Regards,
    Jarryd
    Support Manager at Paid Memberships Pro

    Plugin Support Jarryd Long

    (@jarryd-long)

    Because there have not been any recent updates to this topic, we will be changing the status to resolved. If you have any other questions regarding this issue please start a new topic for each question to ensure we can provide the best support possible.

    If you’re enjoying Paid Memberships Pro, would you mind rating it 5-stars to help spread the word? https://www.ads-software.com/support/plugin/paid-memberships-pro/reviews/

    Kind Regards,
    Jarryd
    Support Manager at Paid Memberships Pro

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.