Skip to main content

AdSense Code



As presented by AdSense.

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
  (adsbygoogle = window.adsbygoogle || []).push({
    google_ad_client: "ca-pub-3680557255602509",
    enable_page_level_ads: true
  });
</script>


As installed in the blog header.

<head>
<script async="async" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-123456789",
enable_page_level_ads: true
});
</script>


As installed outside the header.

<script async='async' src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
//<![CDATA[
  (adsbygoogle = window.adsbygoogle || []).push({
    google_ad_client: "ca-pub-01234567890",
    enable_page_level_ads: true
  });
//]]>
</script>


As installed in an HTML gadget.

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
  (adsbygoogle = window.adsbygoogle || []).push({
    google_ad_client: "ca-pub-3680557255602509",
    enable_page_level_ads: true
  });
</script>


Attribute name "async" associated with an element type "script" must be followed by the '=' character.



This is HTML (AdSense) vs XHTML (Blogger). It's not just a Blogger limitation.

In XHTML, attribute minimization is forbidden, and the async attribute must be defined as <script async="async">.

It's Blogger, observing XHTML standards.

https://productforums.google.com/forum/#!category-topic/blogger/exx3yvB9d8c

https://productforums.google.com/d/topic/blogger/exx3yvB9d8c/discussion

https://productforums.google.com/d/topic/blogger/Jdl7cxdjEiQ/discussion

https://productforums.google.com/d/topic/blogger/MPSYVu9hpzw/discussion



target="_blank"





#FFCCCC ltred #FFF0B2 ltorange #FFFFCC ltyellow The REAL Blogger Status Have you posted yet in AdSense Help Forum: Blogger, YouTube, Partner sites? Have you posted yet in Blogger Help Forum: Learn More About Blogger? Have you posted yet in Blogger Help Forum: Get Help with an Issue? http://blogging.nitecruzr.net/ blogging.nitecruzr.net http://bloggerstatusforreal.blogspot.com/ bloggerstatusforreal.blogspot.com

Comments

Popular posts from this blog

Adding A Link To Your Blog Post

Occasionally, you see a very odd, cryptic complaint I just added a link in my blog, but the link vanished! No, it wasn't your imagination.

What's The URL Of My Blog?

We see the plea for help, periodically I need the URL of my blog, so I can give it to my friends. Help! Who's buried in Grant's Tomb, after all? No Chuck, be polite. OK, OK. The title of this blog is "The Real Blogger Status", and the title of this post is "What's The URL Of My Blog?".

Embedded Comments And Main Page View

The option to display comments, embedded below the post, was made a blog option relatively recently. This was a long requested feature - and many bloggers added it to their blogs, as soon as the option was presented to us. Some blog owners like this feature so much, that they request it to be visible when the blog is opened, in main page view. I would like all comments, and the comment form, to be shown underneath the relevant post, automatically, for everyone to read without clicking on the number of comments link. And this is not how embedded comments work.