{"id":7230,"date":"2019-04-19T06:23:57","date_gmt":"2019-04-19T06:23:57","guid":{"rendered":"https:\/\/ampforwp.com\/tutorials\/?post_type=ht_kb&#038;p=7230"},"modified":"2019-07-15T12:19:22","modified_gmt":"2019-07-15T12:19:22","slug":"how-to-set-auto-ads-in-amp","status":"publish","type":"ht_kb","link":"https:\/\/ampforwp.com\/tutorials\/article\/how-to-set-auto-ads-in-amp\/","title":{"rendered":"How To set up Auto Ads in AMP"},"content":{"rendered":"\n<p><strong>There are three ways to Add Auto Ads  in AMP:<\/strong><\/p>\n\n\n\n<ol><li><a href=\"https:\/\/ampforwp.com\/tutorials\/article\/how-to-set-auto-ads-in-amp\/#1-with-the-help-of-adsforwp-plugin\">By AdsforWP plugin<\/a><\/li><li><a href=\"https:\/\/ampforwp.com\/tutorials\/article\/how-to-set-auto-ads-in-amp\/#2-with-the-help-of-advanced-amp-ads-extension\">By Advanced AMP ADS extension<\/a>.<\/li><li> <a href=\"https:\/\/ampforwp.com\/tutorials\/article\/how-to-set-auto-ads-in-amp\/#3-with-the-help-of-our-ampforwp-plugin\">By AMPforWP plugin<\/a> <\/li><\/ol>\n\n\n\n<h4><strong>1. With the help of AdsforWP plugin.<\/strong><\/h4>\n\n\n\n<p>You can download <strong>ADSforWP<\/strong> Plugin from <a href=\"https:\/\/wordpress.org\/plugins\/ads-for-wp\/\">here.<\/a><\/p>\n\n\n\n<p>After installing this plugin Ads option will be displayed on the <strong>WordPress dashboard<\/strong> -&gt;<strong>Ads Option<\/strong> -&gt; <strong>create new Ads.<\/strong> <\/p>\n\n\n\n<ul><li>First Select the AdSense Option then Select the type Ads &#8220;Auto Ads&#8221; then you need to enter the data client ID ( publisher ID )<\/li><li> Click on Publish button your Auto Ads will be displayed on AMP pages. <\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"445\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/4-1-1024x445.png\" alt=\"\" class=\"wp-image-7263\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/4-1-1024x445.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/4-1-300x130.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/4-1-768x334.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/4-1-50x22.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/4-1-60x26.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/4-1-100x43.png 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/4-1.png 1337w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4 id=\"2-with-the-help-of-advanced-amp-ads-extension\"><strong>2. With the help of Advanced AMP ADS extension.<\/strong><\/h4>\n\n\n\n<p> You can download <strong>Advanced AMP ADS<\/strong>  extension from <a href=\"https:\/\/ampforwp.com\/advanced-amp-ads\/\">here.<\/a><\/p>\n\n\n\n<ul><li>First, Go to<strong> WordPress admin area<\/strong> -&gt;<strong>AMP option panel<\/strong> -&gt; <strong>Advanced AMP ADS.<\/strong><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"193\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/5-1-1024x193.png\" alt=\"\" class=\"wp-image-7289\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/5-1-1024x193.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/5-1-300x57.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/5-1-768x145.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/5-1-50x9.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/5-1-60x11.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/5-1-100x19.png 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/5-1.png 1271w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption><br><\/figcaption><\/figure>\n\n\n\n<ul><li><strong>AMP Auto Ads:<\/strong> Once you enable this option script will automatically be added in the head tag.<\/li><\/ul>\n\n\n\n<ul><li><strong>AMP Auto Ads Code:<\/strong> In this textarea, you need to paste the Auto Ads code from Google AdSense.<\/li><\/ul>\n\n\n\n<ul><li><strong> <\/strong>Click on saves change button your Auto Ads will be displayed on AMP pages.  <\/li><\/ul>\n\n\n\n<h4><strong>3. With the help of our <\/strong>AMPforWP <strong>plugin.<\/strong><\/h4>\n\n\n\n<ul><li>First, go to<strong> WordPress admin area<\/strong> -&gt;<strong>AMP option panel<\/strong> -&gt; <strong>Settings<\/strong> -&gt; <strong>Advance settings<\/strong>. <\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"436\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/3-1-1024x436.png\" alt=\"\" class=\"wp-image-7250\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/3-1-1024x436.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/3-1-300x128.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/3-1-768x327.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/3-1-50x21.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/3-1-60x26.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/3-1-100x43.png 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/3-1.png 1312w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul><li><strong> Enter HTML in Header:<\/strong> In head tag, you need to add Auto Ads script tag.  <\/li><li><strong> Enter HTML in Body (beginning of body tag):<\/strong> In body tag, you need to add Auto Ads tag.  <\/li><li> Click on save changes button your Auto Ads will be displayed on AMP pages.  <\/li><\/ul>\n\n\n\n<h4><strong> Troubleshooting of No anchor element found in Auto Ads :<\/strong><\/h4>\n\n\n\n<ul><li> Use standard ads instead of the Auto ads. because google Auto Ads are like experimental ads by Google. <\/li><li>You can display your Ads in a certain area by using <a href=\"https:\/\/ampforwp.com\/tutorials\/article\/how-to-setup-ads-in-amp\/\">standard Ads<\/a>.<\/li><\/ul>\n\n\n\n<p style=\"background-color: #ffdddd; border-left: 2px solid #f44336;padding:10px;\" > <strong > Note:<\/strong>We just only place the markup for Auto Ads but google will decide where and what time to display the Ads in your website. <\/p>\n\n\n\n<p><\/p>\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\n\n\n<p> <\/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>There are three ways to Add Auto Ads in AMP: By AdsforWP plugin By Advanced AMP ADS extension. By AMPforWP plugin 1. With the help of AdsforWP plugin. You can download ADSforWP Plugin from here. After installing this plugin Ads option will be displayed on the WordPress dashboard -&gt;Ads Option&#8230;<\/p>\n","protected":false},"author":18,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[34],"ht-kb-tag":[],"_links":{"self":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/7230"}],"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=7230"}],"version-history":[{"count":115,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/7230\/revisions"}],"predecessor-version":[{"id":12598,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/7230\/revisions\/12598"}],"wp:attachment":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/media?parent=7230"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-category?post=7230"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-tag?post=7230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}