{"id":9230,"date":"2022-06-20T05:50:05","date_gmt":"2022-06-20T05:50:05","guid":{"rendered":"https:\/\/www.uptymes.com\/edu\/learn-how-to-put-or-add-adsense-ads-below-post-title-middle-post-inside-the-post\/"},"modified":"2022-06-20T05:50:05","modified_gmt":"2022-06-20T05:50:05","slug":"learn-how-to-put-or-add-adsense-ads-below-post-title-middle-post-inside-the-post","status":"publish","type":"post","link":"https:\/\/www.uptymes.com\/edu\/learn-how-to-put-or-add-adsense-ads-below-post-title-middle-post-inside-the-post\/","title":{"rendered":"Learn How to put or add adsense ads below post title middle post inside the post?"},"content":{"rendered":"\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"285\" height=\"208\" data-id=\"9227\" src=\"https:\/\/www.uptymes.com\/edu\/wp-content\/uploads\/2024\/02\/Learn-How-to-put-or-add-adsense-ads-below-post.png\" alt=\"\" class=\"wp-image-9227\" title=\"\"><\/figure>\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"843\" height=\"502\" data-id=\"9228\" src=\"https:\/\/www.uptymes.com\/edu\/wp-content\/uploads\/2024\/02\/1707435971_4_Learn-How-to-put-or-add-adsense-ads-below-post.png\" alt=\"\" class=\"wp-image-9228\" title=\"\"><\/figure>\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"551\" height=\"322\" data-id=\"9229\" src=\"https:\/\/www.uptymes.com\/edu\/wp-content\/uploads\/2024\/02\/1707435972_416_Learn-How-to-put-or-add-adsense-ads-below-post.png\" alt=\"\" class=\"wp-image-9229\" title=\"\"><\/figure>\n<\/figure>\n \r\n<br><div id=\"adsense-target\">\n<div class=\"ssmainhide\" style=\"clear: both; text-align: justify;\"><img fetchpriority=\"low\" decoding=\"async\" class=\"\" title=\"Adsense ads in the middle or anywhere inside Blogger Posts\" src=\"https:\/\/www.uptymes.com\/edu\/wp-content\/uploads\/2024\/02\/Learn-How-to-put-or-add-adsense-ads-below-post.png\" alt=\"adsense placement\" width=\"543\" height=\"396\" border=\"0\" loading=\"lazy\"\/><\/div>\n<p style=\"text-align: justify;\"><b>But what if we want to display an AdSense ad in the middle of a post?<\/b><\/p>\n<p style=\"text-align: justify;\">How to add adsense ads below post title middle post inside the post?We can manipulate the location of the ads to be displayed by adding a script inside the template and using a tag inside our post to where we want the AdSense ad to appear. Once added, we can place the ads anywhere, be it between paragraphs or in the middle of the content etc.<\/p>\n<p style=\"text-align: justify;\"><strong>How to add adsense ads below post title middle post inside the post?<\/strong> Manually inserting AdSense ads in the middle of posts in Blogger is pretty easy, just follow these steps below:<\/p>\n<h3 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"Adding_Adsense_Ads_In_the_Middle_or_Anywhere_inside_Blogger_Posts\"\/>Adding Adsense Ads In the Middle or Anywhere inside Blogger Posts<span class=\"ez-toc-section-end\"\/><\/h3>\n<p style=\"text-align: justify;\">Before proceeding, it is recommended to backup your template: go to \u201cTemplate\u201d and click on the \u201cBackup\/restore\u201d button to save a copy on your hard drive.<\/p>\n<h4 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"Adding_the_script\"\/>Adding the script<span class=\"ez-toc-section-end\"\/><\/h4>\n<p style=\"text-align: justify;\">Step 1. First thing we need to do is to parse the AdSense code and convert it to plain text. Then go to \u201cTemplate\u201d, click on the \u201cEdit HTML\u201d button and click anywhere inside the code area to search using CTRL + F keys for this tag:<\/p>\n<blockquote class=\"tr_bq\"><p>&lt;data:post.body\/&gt;<\/p><\/blockquote>\n<p style=\"text-align: justify;\">Note: you may find it several times, but we need to stop at the second one. Or, if you can\u2019t see any changes, test the third one.<\/p>\n<div style=\"clear: both; text-align: justify;\"><img decoding=\"async\" src=\"https:\/\/www.uptymes.com\/edu\/wp-content\/uploads\/2024\/02\/1707435971_4_Learn-How-to-put-or-add-adsense-ads-below-post.png\" width=\"500\" height=\"307\" border=\"0\" loading=\"lazy\" fetchpriority=\"low\" alt=\"\" title=\"\"><\/div>\n<p style=\"text-align: justify;\">Step 2. Replace &lt;data:post.body\/&gt; with this code:<\/p>\n<blockquote class=\"tr_bq\"><p>&lt;div expr:id=&#8217;\u201dadsmiddle1\u2033 + data:post.id\u2019&gt;&lt;\/div&gt;<br\/>&lt;b:if cond=\u2019data:blog.pageType == \u201citem\u201d\u2018&gt;<br\/>&lt;b:if cond=\u2019data:blog.pageType != &amp;quot;static_page&amp;quot;\u2019&gt;<br\/>&lt;div style=\u201dclear:both; margin:10px 0\u201d&gt;<br\/><span style=\"color: #cc0000;\">&lt;!\u2013 Add here the code of your ad \u2013&gt;<\/span><br\/>&lt;\/div&gt;<br\/>&lt;\/b:if&gt;<br\/>&lt;\/b:if&gt;<br\/>&lt;div expr:id=&#8217;\u201dadsmiddle2\u2033 + data:post.id\u2019&gt;<br\/>&lt;data:post.body\/&gt;<br\/>&lt;\/div&gt;<br\/>&lt;script type=\u201dtext\/javascript\u201d&gt;<br\/>var obj0=document.getElementById(\u201cadsmiddle1&lt;data:post.id\/&gt;\u201d);<br\/>var obj1=document.getElementById(\u201cadsmiddle2&lt;data:post.id\/&gt;\u201d);<br\/>var s=obj1.innerHTML;<br\/>var r=s.search(\/\\x3C!\u2013 adsense \u2013\\x3E\/igm);<br\/>if(r&gt;0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+16);}<br\/>&lt;\/script&gt;<\/p><\/blockquote>\n<p style=\"text-align: justify;\">Step 3. Add the converted Adsense code on where you see the <span style=\"color: #cc0000;\">&lt;!\u2013 Add here the code of your ad \u2013&gt;<\/span> annotation, then save the changes by clicking on the \u201cSave template\u201d button.<\/p>\n<p style=\"text-align: justify;\">Note: For centering the ads, add the &lt;center&gt;&lt;\/center&gt; tags before and after the AdSense code, like this:<\/p>\n<blockquote class=\"tr_bq\"><p>&lt;div style=\u201dclear:both; margin:10px 0\u2033&gt;<br\/><span style=\"background-color: yellow;\">&lt;center&gt;<\/span><br\/><span style=\"color: #cc0000;\">&lt;!\u2013 Add here the code of your ad \u2013&gt;<\/span><br\/><span style=\"background-color: yellow;\">&lt;\/center&gt;<\/span><br\/>&lt;\/div&gt;<\/p><\/blockquote>\n<h4 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"Adding_the_AdSense_annotation_to_display_the_ad\"\/>Adding the AdSense annotation to display the ad<span class=\"ez-toc-section-end\"\/><\/h4>\n<p style=\"text-align: justify;\">Step 4. When you create a New Post, add this annotation inside the \u201cHTML\u201d section to where you want the Google AdSense ads to appear:<\/p>\n<blockquote class=\"tr_bq\"><p>&lt;!\u2013 adsense \u2013&gt;<\/p><\/blockquote>\n<p style=\"text-align: justify;\">For example:<\/p>\n<blockquote class=\"tr_bq\"><p>This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text.&lt;br \/&gt;&lt;br \/&gt;<br\/><span style=\"background-color: yellow;\">&lt;!\u2013 adsense \u2013&gt;<\/span>This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text.<\/p><\/blockquote>\n<table class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\"><img decoding=\"async\" src=\"https:\/\/www.uptymes.com\/edu\/wp-content\/uploads\/2024\/02\/1707435972_416_Learn-How-to-put-or-add-adsense-ads-below-post.png\" width=\"420\" height=\"250\" border=\"0\" loading=\"lazy\" fetchpriority=\"low\" alt=\"\" title=\"\"><\/td>\n<\/tr>\n<tr>\n<td class=\"tr-caption\" style=\"text-align: center;\">AdSense annotation in the middle of the post content<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: justify;\">How to add adsense ads below post title middle post inside the post? Please note that if you don\u2019t add this annotation to specify where to display the ad, then it will appear below the title by default.<\/p>\n<p style=\"text-align: justify;\">So this is how we can add AdSense ads in the middle or anywhere inside our Blogger posts. Don\u2019t worry about violating the <a href=\"https:\/\/support.google.com\/adsense\/answer\/1354736?hl=en&amp;ref_topic=1271508\" target=\"_blank\" rel=\"nofollow noopener external noreferrer\" data-wpel-link=\"external\">Google\u2019s Terms of Service<\/a> because applying this method will not modify the ad\u2019 structure.<\/p>\n<\/div>\r\n<br>\r\n","protected":false},"excerpt":{"rendered":"<p>But what if we want to display an AdSense ad in the middle of a post? How to add adsense ads below post title middle post inside the post?We can manipulate the&#8230;<\/p>\n","protected":false},"author":1,"featured_media":9227,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-9230","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-all-posts"],"_links":{"self":[{"href":"https:\/\/www.uptymes.com\/edu\/wp-json\/wp\/v2\/posts\/9230","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.uptymes.com\/edu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.uptymes.com\/edu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.uptymes.com\/edu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.uptymes.com\/edu\/wp-json\/wp\/v2\/comments?post=9230"}],"version-history":[{"count":0,"href":"https:\/\/www.uptymes.com\/edu\/wp-json\/wp\/v2\/posts\/9230\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.uptymes.com\/edu\/wp-json\/wp\/v2\/media\/9227"}],"wp:attachment":[{"href":"https:\/\/www.uptymes.com\/edu\/wp-json\/wp\/v2\/media?parent=9230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.uptymes.com\/edu\/wp-json\/wp\/v2\/categories?post=9230"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.uptymes.com\/edu\/wp-json\/wp\/v2\/tags?post=9230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}