Disable overlay vignette Google ads for VIP Members
Amrayu78
Max Romanchenko: Can you help to implement this? Thank you.
Max Romanchenko
Amrayu78 Sure, could you please specify the pages and the area (maybe a screenshot) for ads that are already hidden for VIP and that need to be hidden?
Amrayu78
Max Romanchenko Screenshot below is an inline ad. This is already blocked for VIP members using permissions shortcode in a content template.
Amrayu78
Max RomanchenkoScreenshot in this comment is a vignette or overlay add. It's like a popup or modal. Google adsense dynamically shows these ads, but there's a way to block all ads by adsense ID. These are the ads I want to block for VIP members.
Max Romanchenko
Amrayu78 Thanks for the details. I blocked the ads for VIP users in the comments using the same method as the ads above. Did I understand you correctly?
Amrayu78
Max Romanchenkoso are vignette ads not showing for VIP members now?
Max Romanchenko
Amrayu78 Yes, ads should be hidden for VIP users. Check, please.
Amrayu78
Max Romanchenko: Hi Max, I just tested with my dummy account. The top ad on every page is still showing. And the vignette ads are still showing. I'm checking this in incognito mode.
Max Romanchenko
Amrayu78 Hi Duong, yes I see the problem, thanks for the screenshot.
I fixed that, please check it now.
Amrayu78
Max Romanchenko: Vignette/overlay ads are still showing.
Max Romanchenko
Amrayu78 Can you please specify exactly how you added the code for the ads to the site? I don't see the ad script in header.php. Here is an example of how it is done if the script is added directly to header.php:
https://support.google.com/adsense/thread/133424130/hello-i-would-like-to-disbale-auto-ads-for-users-logged-in-to-my-webiste-how-do-i-do-that?hl=en
Amrayu78
Max Romanchenko: Hi Max, this code isn't embedded anywhere. It's dynamic and enabled via Google Adsense. I think there's code where it just disables all Google Adsense ads if you specify the ca-pub ID.
Max Romanchenko
Amrayu78 I checked several times and it looks like something is still adding google ads scripts to all pages in header.php
I found the reason - it's the Site KIT plugin. I recorded a short video.
https://share.vidyard.com/watch/CubUueZNQiP7TPw1PtJ1aM?
In the video I am logged in as a VIP user. If you disable Site KIT, then in the source code of the site there are only 2 mentions of the word "google" (these are just fonts). With the plugin activated, there are already 42 "google" mentions.
That is, advertising is added to all pages and there is no way to specify an exception for user role. I have already blocked ads for VIPs in the Long Skinny Ad and Two Block Ads Content Templates (this was done at the Toolset level). However, there is no way to block ads that are added by the Site KIT plugin. The only option is to manually add necessary scripts to heder.php without using Site KIT. Then I can wrap the script in a condition (so that it does not load for VIP users).
Please check your Site KIT settings, I think it loads more data than just ads. I think he also adds analytics and other Google services. So I can't just turn it off...
Amrayu78
Max RomanchenkoGot it Max. Let's move on from this for now then. I will check the settings for it, although I think its a Google Adsense feature and ties into Google Site Kit.
Max Romanchenko
Amrayu78 Understood. Let's leave this question half-open.