{"id":9760,"date":"2019-05-13T08:13:01","date_gmt":"2019-05-13T08:13:01","guid":{"rendered":"https:\/\/ampforwp.com\/tutorials\/?post_type=ht_kb&#038;p=9760"},"modified":"2019-07-13T11:16:24","modified_gmt":"2019-07-13T11:16:24","slug":"how-to-add-ads-inbetween-loop-in-advance-amp-ads","status":"publish","type":"ht_kb","link":"https:\/\/ampforwp.com\/tutorials\/article\/how-to-add-ads-inbetween-loop-in-advance-amp-ads\/","title":{"rendered":"How to add Ads Inbetween Loop  in Advance AMP Ads"},"content":{"rendered":"\n<p>In Our Core Plugin, we are providing six slots of Ads but if you want more slots then you need to install our Ads for WP plugin for this you need to click on the \u201cUpgrade for Free\u201d button.&nbsp;<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"481\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/1-3-1024x481.png\" alt=\"\" class=\"wp-image-12350\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/1-3-1024x481.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/1-3-300x141.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/1-3-768x361.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/1-3-50x23.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/1-3-60x28.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/1-3-100x47.png 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/1-3.png 1316w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Once you click on the \u201cUpgrade for free\u201d button the Ads for WP plugin will be installed on your website.<\/p>\n\n\n\n<p>If you want to add Ads Inbetween loop then first you need to purchase and install <a href=\"https:\/\/ampforwp.com\/advanced-amp-ads\/\">Advance AMP Ads<\/a>\u00a0plugin.  <\/p>\n\n\n\n<p><strong> 1. <\/strong>First go to <strong>WordPress Admin Area<\/strong> -&gt;<strong>AMP option panel<\/strong> -&gt; <strong>Advance AMP ADS<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"180\" height=\"277\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/1-9.png\" alt=\"\" class=\"wp-image-9764\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/1-9.png 180w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/1-9-32x50.png 32w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/1-9-39x60.png 39w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/1-9-65x100.png 65w\" sizes=\"(max-width: 180px) 100vw, 180px\" \/><\/figure>\n\n\n\n<p>Scroll down a little to see this option <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"917\" height=\"117\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/22.png\" alt=\"\" class=\"wp-image-9769\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/22.png 917w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/22-300x38.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/22-768x98.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/22-50x6.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/22-60x8.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/22-100x13.png 100w\" sizes=\"(max-width: 917px) 100vw, 917px\" \/><\/figure>\n\n\n\n<p><strong>2. Ads Inbetween Loop:<\/strong> Enable this option. (<strong>Works only with 0.9.68 or higher version of ampforwp plugin<\/strong>)<\/p>\n\n\n\n<p><strong>3.<\/strong> <strong>After How many posts?: <\/strong>In this field, you need to enter a number after how many posts you need the ads.<\/p>\n\n\n\n<p> <strong>4. Advertisement Type: <\/strong>In this option, you need to select the Advertisement type. In this option, we have 3 Advertisement type.<\/p>\n\n\n\n<ol><li><a href=\"https:\/\/ampforwp.com\/tutorials\/article\/how-to-add-ads-inbetween-loop-in-advance-amp-ads\/#1-adsense\">Adsense<\/a><\/li><li><a href=\"https:\/\/ampforwp.com\/tutorials\/article\/how-to-add-ads-inbetween-loop-in-advance-amp-ads\/#2-doubleclick\">DoubleClick<\/a><\/li><li><a href=\"https:\/\/ampforwp.com\/tutorials\/article\/how-to-add-ads-inbetween-loop-in-advance-amp-ads\/#3-custom-advertisement\">Custom Advertisement<\/a><\/li><\/ol>\n\n\n\n<h4>1. Adsense<\/h4>\n\n\n\n<p>If you select Adsense option from  Advertisement type below the option will appear like below the screenshot. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"917\" height=\"401\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/2-9.png\" alt=\"\" class=\"wp-image-9766\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/2-9.png 917w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/2-9-300x131.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/2-9-768x336.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/2-9-50x22.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/2-9-60x26.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/2-9-100x44.png 100w\" sizes=\"(max-width: 917px) 100vw, 917px\" \/><\/figure>\n\n\n\n<ul><li> <strong>Responsive Ad unit:<\/strong> If you enable this option ads will be automatically adjusted on any device. <\/li><li> <strong>Width:<\/strong> In this field enter the width of Ads<\/li><li> <strong>Height:<\/strong> In this field enter the height of Ads <\/li><li><strong> Data AD Client:<\/strong> In this field, you need to enter the ca-pub ID from Adsense Account <\/li><li><strong> Data AD Slot: <\/strong>In this field, you need to enter the Data Ad Slot ID from Adsense Account  <\/li><li> Click on the &#8220;Save changes&#8221; button. <\/li><\/ul>\n\n\n\n<h4>2. DoubleClick<\/h4>\n\n\n\n<p> If you select DoubleClick option from  Advertisement type below the option will appear like below the screenshot.  <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"925\" height=\"322\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/3-5.png\" alt=\"\" class=\"wp-image-9772\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/3-5.png 925w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/3-5-300x104.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/3-5-768x267.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/3-5-50x17.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/3-5-60x21.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/3-5-100x35.png 100w\" sizes=\"(max-width: 925px) 100vw, 925px\" \/><\/figure>\n\n\n\n<ul><li><strong>Width:<\/strong> In this field enter the width of Ads<\/li><li> <strong>Height:<\/strong> In this field enter the height of Ads <\/li><li><strong>Data Slot:<\/strong> In this field, you need to enter Data Slot ID from DoubleClick Account.<\/li><li>Click on the &#8220;Save changes&#8221; button. <\/li><\/ul>\n\n\n\n<h4>3. Custom Advertisement<\/h4>\n\n\n\n<p> If you select the Custom Advertisement option from  Advertisement type below the option will appear like below the screenshot.   <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"914\" height=\"334\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/4-5.png\" alt=\"\" class=\"wp-image-9776\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/4-5.png 914w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/4-5-300x110.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/4-5-768x281.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/4-5-50x18.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/4-5-60x22.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/4-5-100x37.png 100w\" sizes=\"(max-width: 914px) 100vw, 914px\" \/><\/figure>\n\n\n\n<ul><li><strong>Advertisement Code:<\/strong> In this field, you can add your custom Advertisement code for any third party companies who provide AMP compatible code or you can also add images.<\/li><li>Click on the &#8220;Save changes&#8221; button.<\/li><\/ul>\n\n\n\n<p><strong>That\u2019s it for this tutorial!<\/strong><\/p>\n\n\n\n<p>We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.<\/p>\n<div id=\"div-1\" class=\"hkb-feedback\">\n\t\t\t<strong class=\"ht-mobile-exit__title\">Ask your Questions Directly!<\/strong><br>\n\t\t\t<div class=\"hkb_widget_exit__content\" style=\"font-size: 14px;\">If you can't find the solutions in this article, then just ask us in the comments and we will answer it for you!<\/div>\n\t\t\t<a href=\"https:\/\/ampforwp.com\/support\/#contact\" id=\"button\" target=\"_blank\" rel=\"noopener noreferrer\"><button>Yes, I have a Question<\/button><\/a>\n\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>In Our Core Plugin, we are providing six slots of Ads but if you want more slots then you need to install our Ads for WP plugin for this you need to click on the \u201cUpgrade for Free\u201d button.&nbsp; Once you click on the \u201cUpgrade for free\u201d button the Ads&#8230;<\/p>\n","protected":false},"author":18,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[18],"ht-kb-tag":[],"_links":{"self":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/9760"}],"collection":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/comments?post=9760"}],"version-history":[{"count":28,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/9760\/revisions"}],"predecessor-version":[{"id":12425,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/9760\/revisions\/12425"}],"wp:attachment":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/media?parent=9760"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-category?post=9760"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-tag?post=9760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}