Problemas
-
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 to see the link]
-
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 to see what is exactly going wrong there.
Best regards,
JoachimHi 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
Elsalva333Hello, 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 64Pila 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:17Hi Elsalva333,
Thanks for your reply and the information.
Have you edited your
header.phpfile 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,
JoachimHello 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)
Best regards,
Elsalva333Hi 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,
Joachimok, thank you very much Joachim, I will try what you suggest and I will tell you the result.
Best regards,
SalvadorHello 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
Hi @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,
JoachimHi 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,
SalvaShould I insert the adsense code myself or does advanced ads do it by enabling the automatic ads checkbox in Advanced Ads?
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,
JoachimIs your site marked as “Ready” in the Sites section in your AdSense account?
yes
Are Auto ads enabled in AdSense > Ads > Auto ads?
yesHello 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,
SalvaHi Salva,
Thanks for your reply.
I don’t guess that the HTTPS is causing the issue.
I recommend testing a manually integrated AdSense unit within your content to force the ad injection.
Best regards,
Joachim
The topic ‘Problemas’ is closed to new replies.