Add Page Level Ads to Blogger without change Adsense Code

If you are Adsense publisher so you have to know Page Level Ads. This is the product from Google Adsense for increase more click and income on smartphone. Just turn on this feature from My ads tab in your AdSense account. Get Page-level Ads code from your account to put in the <head> tag (or at the top of the body) of each page that you want to show on your website.

 If you want to put Page-level ads code on Blogger so you can't make it directly on Edit HTML. It's will say "Error parsing XML, line 663, column 15: Attribute name "async" associated with an element type "script" must be followed by the ' = ' character." It's mean you have to add equal character in you Adsense Code. Some one don't want to do like that.

 I have the way for put Page-level ads in you blogger by don't change any Adsense code. Just make Header tab on Blogger Layout can add HTML/JavaScript gadget by follow this step. Choose your blog in Blogger account page and then go to Template > Edit HTML

 Find this code  

<b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
<b:widget id='Header1' locked='true' title='YOUR BLOG TITLE(Header)' type='Header'/>


Change 

maxwidgets='1' to maxwidgets='2' 
showaddelement='no' to showaddelement='yes' 

Normally default Header tab can't put any Gadget. After code changed, its mean that you can put 2 Gadgets in Header tab on Layout so maximum can change code to 4 for put more Gadgets. 

 Go to go to Layout > Header tab > Add a Gadget > HTML/JavaScript then put Page-level ads code on HTML/JavaScript Gadget and save. You will have the Page-level ads on your Blogger by don't change any Adsense code. If you want to check that they're working correctly. In the address bar of your smartphone browser, add #googleads to the end of your page's URL such as http://smartphoneshowto.blogspot.com#googleads.

Popular Posts