Wanting to place AdSense Ad Code inside your blogger template seems quite difficult especially when you’re a total newbie or just don’t like the Code things talkless of finding the right place to place the code and finally not getting any error.
Before I proceed on explaining how you can easily place AdSense Ad Codes inside your Blogger template, I want you to know that you can:
Do this using Widget from Layout
Yes, you can actually place an Ad on your Blogger with the aid of a creating a New Widget selecting the option either using HTML Widget or just the AdSense Widget. In the HTML widget case, you have to get your Ad Code directly from your AdSense dashboard and then place it inside your widget and then boom!
Finally, to use the Ad Widget option, your AdSense account must be linked to your Blogger blog using the Earnings tab from your dashboard and then it is that easy since you won’t have to log in to your AdSense account in this case.
Want to go an Extra Mile with AdSense?
To maximize revenue, Blogspot users apparently want to place Ads before, after and between posts which will require tedious template editing, unlike WordPress where a plugin can just do that. On the verge of trying to place the Ad code inside the XML template, there’s always an error if you put the code directly ad copied from AdSense which you may probably have no idea on how to fix it.
Error parsing XML, line 6, column 15: Attribute name “async” associated with an element type “script” must be followed by the ‘ = ‘ character.
All you need to do is apply Basic HTML Knowledge by adding async=”async” attribute to the Ad Code first line. For example, here is the structure of a default Ad Code and
Finally, remember the only change here in this code occurs in the first line of the Ad Code which is by adding async=”async”. Parsing your AdSense code might not be really advisable especially when you use low-quality Parse tools with your code and place in your template.