Title: Google Adsense Code &#8211; GDPR
Last modified: May 21, 2018

---

# Google Adsense Code – GDPR

 *  Resolved [simoptim](https://wordpress.org/support/users/simoptim/)
 * (@simoptim)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/google-adsense-code-gdpr/)
 * Hello,
    i like your plugin but wonder how i can make it GDPR ready. The plugin
   atitself will create automatically the google adsense code of the cookie. So 
   i am using a cookie-opt in tool, where i can put in custom java script which 
   is loaded after the user accept it.
 * So how can i use your plugin with some kind of optin tool?

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

 *  Plugin Author [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/google-adsense-code-gdpr/#post-10303071)
 * Hi simoptim,
 * thanks for reaching out.
 * I am not sure I understand this properly: “The plugin atitself will create automatically
   the google adsense code of the cookie.”
 * Advanced Ads does not place AdSense automatically. You can place AdSense ads 
   manually or enable their Auto ads feature, but it is not enabled by default.
 * Would you like to enable AdSense only for users who accepted it? If so, are you
   using a custom made tool or something else? Knowing how it works might help me
   providing the solution.
 * Thanks
    Thomas
 *  Thread Starter [simoptim](https://wordpress.org/support/users/simoptim/)
 * (@simoptim)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/google-adsense-code-gdpr/#post-10306270)
 * Hey Thomas,
    thanks for your fast reply.
 * Yes. I am using a optin plugin, called Borlabs Cookie.
    There i can put in custom
   code: [https://cl.ly/3H1x2y201o3S](https://cl.ly/3H1x2y201o3S) And if the user
   is accepting the optin pop up, the custom code will load on the website. If not,
   it will not load.
 * So how can i make this happen in combination with your plugin?
 * So that the google adsense code is only loaded if accepting the optin.
 *  Plugin Author [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/google-adsense-code-gdpr/#post-10306884)
 * Hi simoptim,
 * thanks for your reply. I had another user with this setup who later told me that
   this feature in Borlabs Cookie isn’t working as expected. I can’t say anything
   about that myself, though.
 * As for AdSense, I don’t think you should copy in all the AdSense code. It would
   be too much maintenance work.
 * What you could try, and I would really appreciate feedback about this, is to 
   add the call to load the AdSense library. Without that, no ads would load and
   no cookies set. It is used for every AdSense ad:
 * `<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"
   ></script>`
 * Let me know if that works.
 * Thomas
 *  [es3k](https://wordpress.org/support/users/es3k/)
 * (@es3k)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/google-adsense-code-gdpr/#post-10312804)
 * To my understanding the case with GDPR is that you’ll need user approval for 
   personalized AdSense ads – if you configure AdSense that no personalized ads 
   are displayed it should be ok just with the normal cookie consent. At least that
   is my understanding.
 *  Plugin Author [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/google-adsense-code-gdpr/#post-10322252)
 * [@es3k](https://wordpress.org/support/users/es3k/)
    Yes, this is also how I read
   this and the updated AdSense conditions. I just verified that it is now possible
   to disable personalized ads for EU visitors in your AdSense account, in case 
   setting up consent is not possible. See [https://support.google.com/adsense/answer/7670013](https://support.google.com/adsense/answer/7670013).
 * I am working on getting the consent (mostly integrating with existing tools),
   but can’t give a release date, yet.
 * Thomas

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

The topic ‘Google Adsense Code – GDPR’ 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/)

 * 5 replies
 * 3 participants
 * Last reply from: [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/google-adsense-code-gdpr/#post-10322252)
 * Status: resolved