How to Install InFeed Ads on Templates blog safely and easily

bpninfo.blogspot.com


How to Install InFeed Ads on Templates
Below is a guide to installing InFeed ads on all blog templates

Ads that are installed will later appear among the list of posts on the front page.

Please follow the steps below:
Log in to your AdSense Account and create an InFeed ad unit. How to read here ...
If so, copy the ad unit code
Go to Blogger> Themes> Edit HTML

Look for this code in the template:

<data:defaultAdStart/>
<b:loop values='data:posts' var='post'>

Delete the code and replace it with the following code:

<data:defaultAdStart/>
<b:loop values='data:posts' var='post' index='x'>

Next look for the following code:

<div class='post-outer'>
Note: There is more than one code, look for the closest location to the code that was edited before.

If found, add this code right below it:
<b:if cond='data:blog.pageType == &quot;index&quot;'>
<b:if cond='data:x==1'>
<div class='post'>
... the in-feed ad code here ...
</div>
</b:if>
<b:if cond='data:x==3'>
<div class='post'>
... the in-feed ad code here ...
</div>
</b:if>
</b:if>

Replace the writing code ... the in-feed ad code here ... with the in-feed ad code that has been parsed earlier.
Finally click "Save theme"

Yuk komennya!

Previous Post Next Post