Title: Problemas
Last modified: February 28, 2021

---

# Problemas

 *  Resolved [elsalva333](https://wordpress.org/support/users/elsalva333/)
 * (@elsalva333)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/problemas-4/)
 * Hola, llevo usando su plugin durante varios años, hace poco he estado teniendo
   problemas con la publicidad de adsense y por si había algún conflicto con su 
   plugin lo he desactivado, sorpresa la mia que tras la desactivacion me ha desaparecido
   todo el contenido de mi web, al volver a activar el plugin vuelve a aparecer 
   todo ¿porque pasa esto? muchas gracias por su ayuda
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblemas-4%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 30 total)

1 [2](https://wordpress.org/support/topic/problemas-4/page/2/?output_format=md) 
[→](https://wordpress.org/support/topic/problemas-4/page/2/?output_format=md)

 *  [schmidt25](https://wordpress.org/support/users/schmidt25/)
 * (@schmidt25)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/problemas-4/#post-14115337)
 * Hi elsalva333,
 * Thanks for reporting your issue.
 * Unfortunately, I don’t speak Spanish, and the auto-translation could not translate
   your text correctly.
 * My understanding of your issue is that if you deactivate the Advanced Ads plugin,
   your website’s content doesn’t show up anymore. Is this correct?
 * I recommend [enabling the WP_DEBUG mode](https://wpadvancedads.com/finding-errors-with-wp_debug/)
   to see what is exactly going wrong there.
 * Best regards,
    Joachim
 *  Thread Starter [elsalva333](https://wordpress.org/support/users/elsalva333/)
 * (@elsalva333)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/problemas-4/#post-14117690)
 * Hi Joachim Thank you for answering, my problem is exactly that, when I deactivate
   the Advanced Ads plugin the content of my website disappears, I find it very 
   strange that this happens when I deactivate a plugin, I am going to do what you
   recommend and tell you. sorry for my english
    Best regards Elsalva333
 *  Thread Starter [elsalva333](https://wordpress.org/support/users/elsalva333/)
 * (@elsalva333)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/problemas-4/#post-14118241)
 * Hello, I have installed Query Monitor and I have disabled advanced ads and this
   is the report:
    Fatal error: Uncaught Error: Call to undefined function the_ad_placement()
   in /home/nexonr0/public_html/wp-content/themes/Instant/header.php on line 64
 * Pila de llamadas:
 * menu_1_default()
    wp-includes/nav-menu-template.php:164wp_nav_menu() wp-content/
   themes/Instant/header.php:52require_once() wp-includes/template.php:730load_template()
   wp-includes/template.php:676locate_template() wp-includes/general-template.php:
   48get_header() wp-content/themes/Instant/single.php:1include() wp-includes/template-
   loader.php:106require_once() wp-blog-header.php:19require() index.php:17
 *  [schmidt25](https://wordpress.org/support/users/schmidt25/)
 * (@schmidt25)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/problemas-4/#post-14119658)
 * Hi Elsalva333,
 * Thanks for your reply and the information.
 * Have you edited your `header.php` file earlier to add a manual placement via 
   a PHP function there?
 * This PHP code should look like this `if( function_exists('the_ad_placement') ){
   the_ad_placement('placement-name'); }`.
 * If you want to stop using Advanced Ads and remove the plugin, you should also
   remove this entry from your `header.php`.
 * Best regards,
    Joachim
 *  Thread Starter [elsalva333](https://wordpress.org/support/users/elsalva333/)
 * (@elsalva333)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/problemas-4/#post-14121583)
 * Hello Joachim , thank you very much for your answer, actually I do not want to
   delete advanced ads, I have been working with it for a long time and I am very
   happy with the plugin, the reason why I wanted to deactivate it is that adsense
   advertising has disappeared for a month , I share on my website local advertising
   designed by me and AdSense advertising using advanced ads for a long time, when
   I saw that adsense advertising did not work I thought that if I put AdSense in
   automatic ads it would be resolved but it did not and that is why I thought about
   deactivating the plugin in case there was a conflict between the plugin and AdSense
   and that was when my website went blank and I got the big scare.
    I would appreciate
   if you could help me with this AdSense problem, again thank you very much for
   your interest, help and support( Very nice your website [https://riads-marrakesch.de](https://riads-marrakesch.de))
   Best regards, Elsalva333
 *  [schmidt25](https://wordpress.org/support/users/schmidt25/)
 * (@schmidt25)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/problemas-4/#post-14121812)
 * Hi Elsalva333,
 * Thanks for your reply.
 * Even if you want to keep Advanced Ads active, I recommend checking your header.
   php and searching for a manual placement injected via PHP. If the `if( function_exists('
   the_ad_placement') )` is missing there, I recommend adding it.
 * Regarding the AdSense problem: I can see correctly injected AdSense code in your
   sidebar. But I also notice an error in my browser console (`adsbygoogle.push()
   error: No slot size for availableWidth=0`). Can you please change the ad type
   from responsive to a fixed-size ad unit?
 * Best regards,
    Joachim
 *  Thread Starter [elsalva333](https://wordpress.org/support/users/elsalva333/)
 * (@elsalva333)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/problemas-4/#post-14121856)
 * ok, thank you very much Joachim, I will try what you suggest and I will tell 
   you the result.
    Best regards, Salvador
 *  Thread Starter [elsalva333](https://wordpress.org/support/users/elsalva333/)
 * (@elsalva333)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/problemas-4/#post-14124183)
 * Hello Joachim, I have changed the code in header.php but I do not know if I have
   done it correctly and I have changed the adsense ads to fixed but I still do 
   not have adsense advertising, when inspecting the web in console I get two errors,
   do you think it may be that ?, thank you very much for your help
 *  [schmidt25](https://wordpress.org/support/users/schmidt25/)
 * (@schmidt25)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/problemas-4/#post-14150594)
 * Hi [@elsalva333](https://wordpress.org/support/users/elsalva333/),
 * I checked your source code and noticed that the auto ads code injected with the
   Site Kit plugin looks broken. This is causing one of the two script errors in
   the browser console.
 * Can you please enable the auto ads checkbox in _Advanced Ads > Settings > AdSense_?
 * Best regards,
    Joachim
 *  Thread Starter [elsalva333](https://wordpress.org/support/users/elsalva333/)
 * (@elsalva333)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/problemas-4/#post-14150683)
 * Hi Joachim,
    ok, I have enabled the automatic ads check box in Advanced Ads> 
   Settings> AdSense and connected advanced ads with my adsense account, I have 
   also deactivated site kit, I had deactivated that box because it seemed that 
   I had double code of automatic adsense ads in my site Best regards, Salva
 *  Thread Starter [elsalva333](https://wordpress.org/support/users/elsalva333/)
 * (@elsalva333)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/problemas-4/#post-14150707)
 * Should I insert the adsense code myself or does advanced ads do it by enabling
   the automatic ads checkbox in Advanced Ads?
 *  [schmidt25](https://wordpress.org/support/users/schmidt25/)
 * (@schmidt25)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/problemas-4/#post-14151017)
 * Hi elsalva333,
 * The auto ads code is correctly injected now.
 * Is your site marked as “Ready” in the _Sites _section in your AdSense account?
   
   Are Auto ads enabled in _AdSense > Ads > Auto ads_?
 * Best regards,
    Joachim
 *  Thread Starter [elsalva333](https://wordpress.org/support/users/elsalva333/)
 * (@elsalva333)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/problemas-4/#post-14151064)
 * Is your site marked as “Ready” in the Sites section in your AdSense account?
   
   yes Are Auto ads enabled in AdSense > Ads > Auto ads? yes
 *  Thread Starter [elsalva333](https://wordpress.org/support/users/elsalva333/)
 * (@elsalva333)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/problemas-4/#post-14151692)
 * Hello Joachim, first to thank you for your help,
    I have been thinking and I 
   think that the problems with adsense started when activating automatic ads and
   I think the reason is that my server has activated ssl Let’s Encrypt htpps and
   I have wordpress in htpp, you think this Could this be the problem that automatic
   ads don’t work? Best regards, Salva
 *  [schmidt25](https://wordpress.org/support/users/schmidt25/)
 * (@schmidt25)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/problemas-4/#post-14154805)
 * Hi Salva,
 * Thanks for your reply.
 * I don’t guess that the HTTPS is causing the issue.
 * I recommend testing a [manually integrated AdSense unit](https://wpadvancedads.com/place-adsense-ad-unit-manually/)
   within your content to force the ad injection.
 * Best regards,
    Joachim

Viewing 15 replies - 1 through 15 (of 30 total)

1 [2](https://wordpress.org/support/topic/problemas-4/page/2/?output_format=md) 
[→](https://wordpress.org/support/topic/problemas-4/page/2/?output_format=md)

The topic ‘Problemas’ 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/)

 * 30 replies
 * 2 participants
 * Last reply from: [elsalva333](https://wordpress.org/support/users/elsalva333/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/problemas-4/page/2/#post-14233749)
 * Status: resolved