I’m new here and not sure if I missed something… I am not using a cloud template for the header. I just have the default header and using Style 1, which shows a gray block when I presume the ad would display. I’ve pasted my adsense code under the Ads section and within the Header Ad section. Other ads seem to be working just fine. What am I missing?
Hi,
If the ad is set in header ads in theme panel, and the ad is approved then should be display.
Please provide me a link where I can inspect this problem, in this way I will be able to provide a better answer.
Thank you for your understanding!
I have the following code block pasted into the Header ad section of the theme panel.
<script async src=”https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<ins class=”adsbygoogle”
style=”display:block”
data-ad-format=”fluid”
data-ad-layout-key=”-fb+5w+4e-db+86″
data-ad-client=”ca-pub-1618476641738906″
data-ad-slot=”2153876771″></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
My site is http://www.hanginwithharv.com
Hi HanginWithHarv,
I just inspect your website and you are using a PRO Demo. When you are using a pro demo you are using cloud template and the settings from theme panel will no longer apply directly to the theme, these options are only for standard demos. For pro demos you’ll need to edit the page using tagDiv Composer -> https://i.imgur.com/Eb38wUm.png select the ad box from header and select the adspot -> https://i.imgur.com/QPbXbVx.png or you can set the code directly in ad box -> https://i.imgur.com/WIVb6oF.png
Hope this will help you!
Thank you!
Hi Calin,
Ok, so… the reason I switch from just the default global header was the add not working there. I’ve looked at the PNGs you posted and I have done exactly what you mentioned. https://i.imgur.com/UtBYCbZ.png And here’s another pic viewing the live site using a tool in WP to show the blocks and I see it recognizes the adsense ad. https://i.imgur.com/RY93o1V.png I’ve tried all other adsense ads from my site in the header. They all work elsewhere in the site, just not in the header where I want them the most.
I’ve tried with the same code that is showing ads down the right sidebar and in the footer and even deleted the ad block that was part of the header template and recreated it. Nothing seems to work. Also I took the code and pasted it directly into the Custom ad tab itself and on the general table had the adspot selection both showing header and -Select an ad spot. I’m sure it must be something simple, but I am running out of things to try.
-
This reply was modified 6 years by
HanginWithHarv.
-
This reply was modified 6 years by
HanginWithHarv.
Hi,
Indeed you have some ads in posts -> https://i.imgur.com/ft5vIsK.png
I found a possible cause for this to happen
– https://www.kerstner.at/2014/09/multiple-google-adsense-ad-blocks-on-same-page-are-causing-error-400-bad-response/
Here are some similar topic
Topic Tag: 400 Bad Request -> https://wordpress.org/support/topic-tag/400-bad-request/
400 Bad Request Error: What It Is and How to Fix It -> https://airbrake.io/blog/http-errors/400-bad-request
Thank you!