Home » , , , , » Info How To Railroad Train Page-Level Adsense Ads Inwards Your Weblog

Info How To Railroad Train Page-Level Adsense Ads Inwards Your Weblog

This article describes Page-level ads, a novel type of AdSense promotion which Google has of late introduced.   It includes how to laid upwardly these ads if you lot role Blogger, in addition to roughly troubleshooting information close them.  

It likewise describes how to laid upwardly an mistake inward the code which is supplied, which causes a message similar "Attribute yell "async" associated amongst an chemical constituent type "script" must live on followed yesteryear the ' = ' character".



What are Page Level AdSense ads

Google has of late introduced a novel type of Adsense ad-units, which may live on shown to people who see a website using a mobile device (eg smartphone of tablet),

There are 2 types of Page-level ads:
  • Vignette ads:   When a visitor on your site clicks on a link to roughly other page on you lot site, a vignette advertizement may live on loaded every bit a full-page overlay which the user needs to closed earlier they come across the page which they navigated to.
  • Overlay ads:   these are smaller ads which present at the plough over or bottom of your screen, in addition to which "stick" to the edge, therefore they appear to remain inward house every bit the user scrolls upwardly in addition to downward your site.   The see may click on them inward the green way.

For Blogger users, these ads are solely currently available if you lot convey a sum AdSense account: if you lot solely convey a hosted AdSense account, in addition to therefore you lot cannot instruct the code to install them.   But if you lot practise convey a sum AdSense occupation concern human relationship (either because you lot convey a custom domain, or because you lot signed upwardly for AdSense earlier the "host AdSense account" selection was introduced), they are attractive because they don't count towards the count of advertisement-units which you lot are allowed to display on each page.

They likewise solely operate if you lot convey a mobile subject switched on for your blog, therefore that visitors who role a mobile device come across mobile-optimised screen.


How to install AdSense Page Level ads inward Blogger

Log inward to your AdSense account.

Go to the My Ads tab

Turn on i or both of  Overlay or Vignette ads options.
(By default, they are both turned Off.    Click on the empty box beside the "0" to plough an selection to  on:  in these controls, 0 agency "off" in addition to 1 agency "on".)




Click the < > Get Code button.

Copy the code that is generated.

Switch to Blogger, in addition to edit your theme in the green way.

Find the text   <head>    (including the brackets).

On the really side yesteryear side draw later on <head>, paste in your code.

Optional - but highly recommended - add comments to clearly present what this code is for.   I commonly use
<!-- START ADSENSE PAGE LEVEL ADS -->
in addition to and therefore the code goes inward hither ...
<!-- END ADSENSE PAGE LEVEL ADS -->
Preview the theme, in addition to make certain it's working.
(See Troubleshooting department below if you lot instruct a message close   Attribute yell "async" associated amongst an chemical constituent type "script"    or similar.

Save the theme.



Job done!   This is all you lot bespeak to practise to enable page-levels ads for your blog:   you lot practise non bespeak to install gadgets to state where these ads go, because Google handles this for you.


How to come across what page-level ads await similar inward your blog

Visit your weblog using a smartphone or tablet.

Add the text   #googleads   at the halt of the website address, therefore it changes from something like:
theadsenseblog.blogspot.com/?m=1
to something like:
theadsenseblog.blogspot.com/?m=1#googleads

After this, when you lot click on a link to motion a dissimilar page inward your blog,  a Vignette way advertizement volition display - these are whole-page ads, which include a "close ad" button, similar this:



Troubleshooting

Extra "src" text inward the ad-code

Right now, at that spot is a work amongst the code that AdSense are providing.   I don't know if this is because Blogger doesn't empathize a characteristic that AdSense is using, or if it's a genuine bug.    But if you lot come across a message similar this when you lot essay to preview the theme:
Could non charge subject preview: Error parsing XML, draw 21, column 15: Attribute yell "async" associated amongst an chemical constituent type "script" must live on followed yesteryear the ' = ' character.
in addition to therefore there's a really elementary alter that you lot convey to make.

All you lot convey to practise is delete the "src" directly later on the give-and-take async.

So your code changes from similar this:
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
  (adsbygoogle = window.adsbygoogle || []).push({
    google_ad_client: "ca-pub-DONT-USE-MY-NUMBER-GET-YOUR-OWN-PUBLISHER-ID",
    enable_page_level_ads: true
  });
</script>

to similar this:
<script async ="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
  (adsbygoogle = window.adsbygoogle || []).push({
    google_ad_client: "ca-pub-DONT-USE-MY-NUMBER-GET-YOUR-OWN-PUBLISHER-ID",
    enable_page_level_ads: true
  });
</script>

Different Page Level settings for dissimilar websites

If you lot are using Adsense across several dissimilar websites, in addition to therefore you lot may desire to enable i of vignette or overlay ads on roughly sites, in addition to a dissimilar selection on others.

Currently, at that spot is no way to practise this:  you must pick out i combination of:
  • No Page Level ads
  • Overlay ads only, no Vignette ads
  • No Overlay ads, but practise present Vignette ads
  • Allowing Google to pick out Overlay and/or Vignette ads

Stop Vignette ads beingness attached to roughly links

By default, whatsoever link to roughly other page inward your weblog may convey a Vignette advertizement attached to it.    However at that spot may live on roughly links which you lot specifically don't desire this to occur to - for representative if the user actually needs to retrieve what was on the electrical flow page i time the instruct to the side yesteryear side one.

You tin give the axe forestall whatsoever Vignette ads beingness displayed when a user clicks a link yesteryear adding a tag to the link.

The tag to add together is:
data-google-vignette=”false”

in addition to you lot bespeak to switch to Edit HTML (top left of the post-editor window) to add together it.

This is an representative link to roughly other page on this weblog which is prevented from having a Vignette ad, in addition to this is the HTML code I've used to accomplish this.
<a data-google-vignette=”false” href="theadsenseblog.blogspot.com/search?q=simpler-but-more-limited-adsense-sign">an representative link</a> 

More help

Google convey provided to a greater extent than information close Page degree ads here.



Related Articles

Setting upwardly a mobile subject for your blog

Editing your Blogger theme

Hosted AdSesne accounts for Blogger users

0 comments:

Post a Comment

Powered by Blogger.