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

Add A Custom Redirect, If You Change A Post URL

When you rename a blog, the most that you can do, to keep the old URL useful, is to setup a stub post , with a clickable link to the new URL. Yo! The blog is now at xxxxxxx.blogspot.com!! Blogger forbids gateway blogs, and similar blog to blog redirections . When you rename a post, you can setup a custom redirect - and automatically redirect your readers to the post, under its new URL. You should take advantage of this option, if you change a post URL.

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?".

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.