
Welcome to the SEOMAX blog, in this moment, I will talk to you how you can add native in-feed adsense ads to blogger blogspot posts that look like your site and suitable popular post widgets.
The method is that we will create in-feed AdSense ads that match our blog's popular post widget, then we'll go to the blogger theme, and we'll add a tag to the popular post widget as well as the in-feed ad code.
If you want to know what AdSense in-feed ad is and how you can create it for your blog and place it in your blog's popular post widget, follow these steps.
What is an In-Feed AdSense ad?
In-feed ads are an AdSense ad format that you place inside your blog post feed, and what's special about this ad is that the ad looks exactly like the blog post feed, giving visitors a better user experience.
Most users place in-feed ads within blog feed content or where the feed begins or ends. As visitors scroll through blog content, they encounter in-feed ads. Because in-feed ads fit seamlessly into the blog feed, they aren't intrusive and they don't break user flow.
How to create an In-Feed AdSense ad for popular posts widget?
Go to your Adsense account, then go to the Advertising menu > By Ad Unit option > And click on the In-Feed Ads unit.

Choose the "Suggest a style to Google" option, type your domain "URL" address, "Desktop" or " Choose Mobile” ad feed type, and click on “Scan Page” button as you can see in the image below.

After the scanning process is completed, you will see that the popular post will be selected automatically. Appropriate ads will be displayed along with popular post feeds; All you need to do is click on the "Next" button on that page

Now in-feed AdSense ads are ready; You need to copy the ad code by clicking "Copy Code Snippet" or manually and then click "I'm Done" button.

If you encounter an error while creating an ad during the "Let Google suggest a style" option, you need to choose the manual option and create an in-feed ad according to the width and height of your blog's popular posts.
How to place an In-Feed AdSense ad in popular posts widget?
Go to Blogger Dashboard, select the blog you want to add ad code to and go to the “Theme” menu, click the drop-down arrow and then “Click Edit HTML "Options."

Once you open the HTML editing option in your blog theme, click on the "Jump to Widget" icon and then click on the "Popular Post 1" option.

Find the following code in the popular post widget code.
<b:loop values='data:posts' var='post'>
Once you find the above code, add index='x' to it and then your code will look like below code.
<b:loop values='data:posts' var='post' index='x'>
Add the following code below the above code.
<b:if cond='data:x == 2'>
<li>
<!-- Paste your in-feed add code here. -->
</li>
</b:if>
"data:x == 2" means your ad will appear after the second most popular post. This number can be customized as long as you don't exceed the number of popular posts. and replace <!-- paste your in-feed ad code here. --> with your Adsense in-feed ad code.
Once you've merged the in-feed ad code into the popular blog post widget code, click the "Save" icon in the top right corner.

Now the article "How to add an in-feed adsense ad to blogger popular posts?" article is complete, and I hope you learned something from it; And if you have any queries regarding this post, please leave a comment in the comment section below.
Comments
Post a Comment