THE EASIEST TUTORIAL OF PLACING ADVERTISEMENTS IN THE MIDDLE OF POPULAR POST LIST
GugelQ - Sorry this blog is not made to be long-winded by Jokka Jo
Just go straight to the subject so you can get the knowledge
To place an ad in the middle of a popular post
1. Create an ad unit on google adsense, choose in feed or display too
2. Go to the HTML theme of the blog where the ad will be pasted
3. Search code <b:loop values='data:posts' var='post'>
Or use how to jump to the popular post widget
4. Code in number 3 add index='x'
So that it becomes like <b:loop values='data:posts' var='post'index='x'>
Remember you must complete the code before the >
5. Add this code
<b:if cond='data:x == 3'> <li><!-- Your Ads Code Here --></li> </b:if>
After the code in number 4. Just continue it
6. Replace Code <!---Your Ads code here--->at number 5 with the adsense code that was created earlier.
7. The result will look like this
<b:loop values='data:posts' var='post' index='x'>
<b:if cond='data:x == 3'>
<li><script async='async' crossorigin='anonymous' src='https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9379xxxxxxxxxx'/>
<ins class='adsbygoogle' data-ad-client='ca-pub-93xxxxxxxxxxxxx' data-ad-format='fluid' data-ad-layout-key='-4t+c9+1x-dz+fd' data-ad-slot='5573350833' style='display:block'/>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></li>
DESCRIPTION
Data: x == 3, means that the ad will appear after the 3rd post. Please fill in anything, as long as it's not the number of popular posts
The red one is the adsense code
An example of its application is on this blog, please scroll down
Or check In this Site
__________
<!--Source igniel-->
Post a Comment for "THE EASIEST TUTORIAL OF PLACING ADVERTISEMENTS IN THE MIDDLE OF POPULAR POST LIST"
Hello visitors, give me some comment about this article