Today, I will be talking on how you can easily parse your Google Adsense HTML code before integrating it into your template codes. Doing this can look overwhelming but I will be explaining this in a simple english.
Why Do We Have to Parse Our Google Adsense Code?
Simply to make the codes compatible. Before we can make use of Adsense ads in our blog post, it must be parsed. If you insert the code the way it was generated from your Adsense account into your blog template, the ads will not display correctly and this is also against Google Adsense TOS. That means you also risk a ban!
Although, Adsense frawn to editing or altering their codes, but some ‘little’ edits are acceptable. Little edits because we will only be replacing some HTML character with some entities, so that the code can become compatible and hence shows correctly on your blog.
Parsing Google Adsense HTML Code
After getting your Adsense code, we are going to parse it to make it compatible, shows correctly on our blog and when viewed using Page Source, it will still looks exactly has the generated code from Google.
See below for an example of how Adsense ad code looks like:
google_ad_client = “pub-xxxxxxxxxxxxxxxx”;
/* Large Rectangle */
google_ad_slot = “xxxxxxxxxx”;
google_ad_width = 336;
google_ad_height = 280;
Now, parsing is just changing some characters like the < to < and the > to > and then the quote sign (“) to ”
After parsing the above Google ad code, all the signsand ” must have been replaced. You can simply do this with a Notepad.
Follow this simple steps to parse your Google Adsense code:
1. Generate your code and paste it into a Notepad
2. Hit CTRL + H or Click Edit and select Replace
3. In the “Find what” box, enter the sign <
4. In the “Replace with” box, enter <
5. Then click Replace All.
We have just replaced the ”
That should do the trick. Now copy the already parsed Google Adsense code into your blog template.
You can easily do this with any free online tools. There are several free online Adsense code parsers that can parse your code automatically without you editing anything.
You can use the following free online parser:
To learn how to insert your parsed Google Adsense code into your blog post, stick close to this blog. I will be posting it soon.
Now you are ready to show ads from Google on your blogger blog properly. Do you gain from this post? Share it with your friends by clicking the Facebook and Twitter icon below. Do not want to miss another great updates from this blog? Subscribe by entering your active email address in the box below.
How I totally got rid of my pot belly, excess fat and overweight in just 9 days. Click here for details.
After four years, I finally got over infertility with this natural solution. Click here to find out.
How I recovered from high blood pressure without chemical. Click here to find out how I did it.
How I increased my blokos size & last 40mins+ in bed every night with a natural solution. Click here for details.
AMAZING! How this business makes me over 800k monthly partnering with Facebook & a U.S company. Click here to download FREE report now.
LATEST DISCOVERY! How to reverse Type II Diabetes in few weeks completely with this natural solution. No side effect. Click here.
Own a property at Ibeju-Lekki - the fastest developing area in Lagos State for as low as N1.5 million.
WARNING TO MEN: These 3 foods is killing your erection & sexual performance. Click here to know them.
ONE game cut your ticket? Don't worry. NairaBET go still pay you. Click here to register with NairaBET.