Title: Adsense code in source code
Last modified: February 27, 2018

---

# Adsense code in source code

 *  Resolved [Rodrigo](https://wordpress.org/support/users/vejapixel/)
 * (@vejapixel)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/adsense-code-in-source-code/)
 * Hello guys,
 * I have some pages that talk about gambling and so I used the Advanced Ads plugin
   to remove the Adsense ads from these pages.
 * But I got a notification of policy violation where they show me a page they say
   contain Adsense ad. However, the page does not appear any ad, as I hid with the
   plugin. I request review and it continues to point to me as a violation.
 * I think that when I request revision, it is not a human who will check and rather
   a robot. And robots are not looking at the page graph to see that no Adsense 
   ads appear, but rather they look at the source code. And as the source code is
   being quoted Adsense words and even my UA ([https://screenshot.net/pt/ljy1vik](https://screenshot.net/pt/ljy1vik)),
   then to the robot my page consists of Adsense ads.
 * I contacted the Adsense staff to find out if this is the case.
 * But I’ve gone before to see you, if you can remove the entire ad code when I 
   choose not to show the ad on a page.
 * As it currently stands, the plugin only hides the ad from being viewed on the
   page, but the ad code remains on the page, and it continues to participate in
   the page load, contributing to loading time. In the case of Adsense using scripts,
   the page is loading those scripts, even though the ad does not appear graphically
   on the page.
 * So I was wondering if you can also remove the ad code from the source code of
   the page and not just hide from the visual page?
 * Thanks,
    Rodrigo

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/adsense-code-in-source-code/#post-10019860)
 * Hi Rodrigo,
 * thanks for reaching out with your question.
 * As long as the ad code is not executed, there shouldn’t be an issue. I don’t 
   want to speculate about the AdSense reviews since they are not in my hands and
   would instead like to ask my contacts at Google.
 * Could you please reach out to our [email support](https://wpadvancedads.com/support)
   and provide me with more information about your site?
 * Thanks
    Thomas
 *  Thread Starter [Rodrigo](https://wordpress.org/support/users/vejapixel/)
 * (@vejapixel)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/adsense-code-in-source-code/#post-10021220)
 * Contact made at [https://wpadvancedads.com/support/](https://wpadvancedads.com/support/)
 *  Anonymous User 14978628
 * (@anonymized-14978628)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/adsense-code-in-source-code/#post-10100659)
 * This is worrying to hear this. Any update on this? If Google doesn’t see the 
   ads as being hidden/not displayed, then this could cause trouble for a lot of
   users who want to prevent ads displaying on certain pages.
 *  Plugin Author [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/adsense-code-in-source-code/#post-10100776)
 * Just had to look back and read up on what Rodrigo and I discussed. Everything
   was fine when I looked at his page and source code and he confirmed it and applied
   for another review with AdSense. Maybe it was a cached, older version of the 
   site which they looked at.
 * Thomas
 *  Anonymous User 14978628
 * (@anonymized-14978628)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/adsense-code-in-source-code/#post-10100787)
 * That’s good to hear! So can you confirm that if an ad is hidden on a page (set
   to not display) then the adsense code will not be present in the source code 
   of that page? Thanks
 *  Plugin Author [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/adsense-code-in-source-code/#post-10100858)
 * Oh, yes. Advanced Ads doesn’t hide ads with CSS, ever. Our Ad Health menu includes
   a check for that in case it is done by another plugin or theme.
 * It is also not what happened here. The mentioning of “AdSense” in the source 
   code was referring to features like our Ad Health checks and are only enabled
   for logged-in admins. No AdSense code was executed.
 * Thomas
 *  Thread Starter [Rodrigo](https://wordpress.org/support/users/vejapixel/)
 * (@vejapixel)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/adsense-code-in-source-code/#post-10103322)
 * I have not received any more Adsense notifications for now.
 * As for the source code, I get the word “Adsense”, but it looks like the codes
   are in Analytics because the ID that appears is my Google Analytics ID.
 * Rodrigo
 *  Anonymous User 14978628
 * (@anonymized-14978628)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/adsense-code-in-source-code/#post-10103682)
 * [@rodrigo](https://wordpress.org/support/users/rodrigo/)
 * Did you find out what was the cause of you receiving the adsense notification
   on the pages where adsense was set not to display? You said you requested a review
   several times, i was just wondering how you solved this? Was it a cached page
   issue as Thomas said?
 *  Thread Starter [Rodrigo](https://wordpress.org/support/users/vejapixel/)
 * (@vejapixel)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/adsense-code-in-source-code/#post-10105452)
 * The reason I do not know. I asked for some reviews, so when I asked again, Adsense
   did not report me any more. However, I did not change anything on the page, it
   was always with hidden ad.
 * I got in touch with Adsense support, but no one knew how to tell me too.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Adsense code in source code’ is closed to new replies.

 * ![](https://ps.w.org/advanced-ads/assets/icon-256x256.gif?rev=2773443)
 * [Advanced Ads – Ad Manager & AdSense](https://wordpress.org/plugins/advanced-ads/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-ads/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-ads/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-ads/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-ads/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-ads/reviews/)

 * 9 replies
 * 3 participants
 * Last reply from: [Rodrigo](https://wordpress.org/support/users/vejapixel/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/adsense-code-in-source-code/#post-10105452)
 * Status: resolved