{"id":159,"date":"2017-03-09T10:35:35","date_gmt":"2017-03-09T10:35:35","guid":{"rendered":"https:\/\/ampforwp.com\/tutorials\/?p=159"},"modified":"2020-04-21T12:53:15","modified_gmt":"2020-04-21T12:53:15","slug":"how-i-can-put-taboola-ads-in-amp","status":"publish","type":"ht_kb","link":"https:\/\/ampforwp.com\/tutorials\/article\/how-i-can-put-taboola-ads-in-amp\/","title":{"rendered":"How i can put Taboola ADS in AMP"},"content":{"rendered":"\n<p><strong>Follow these steps to add Taboola ads:<\/strong><\/p>\n\n\n\n<p>You can download&nbsp;<strong>Advanced AMP Ads&nbsp;<\/strong>Plugin from&nbsp;<a href=\"https:\/\/ampforwp.com\/advanced-amp-ads\/\">here<\/a><a href=\"https:\/\/wordpress.org\/plugins\/ads-for-wp\/\">.<\/a><\/p>\n\n\n\n<p><strong>Step 1:<\/strong>&nbsp;After installing this plugin Ads option will be displayed on the&nbsp;<strong>WordPress dashboard<\/strong>&nbsp;-&gt;<strong>AMP option panel<\/strong>&nbsp;-&gt;&nbsp;<strong>Advanced AMP ADS<\/strong><strong>.<\/strong><\/p>\n\n\n\n<p><strong>Step 2:&nbsp;<\/strong>Here We have 4 Incontent Ad which you want just Enable Incontent Ad option<strong>.<\/strong><\/p>\n\n\n\n<p><strong>Step 3:<\/strong>&nbsp;In&nbsp;<strong>Advertisement Type<\/strong>, you need to Select the Custom Advertisement Option.<\/p>\n\n\n\n<p><strong>Step 4:&nbsp;<\/strong>In this option, you need to enter Taboola Ads code this code is directly added into the body tag.<\/p>\n\n\n\n<p><strong>Step 5:<\/strong>&nbsp;In this option &#8220;<strong>Custom Ads incontent Ads Position&#8221;&nbsp;<\/strong>Select after how many paragraphs your ads should show.<\/p>\n\n\n\n<p><strong>This is the example of Code<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;amp-embed width=\"100\" height=\"283\" \n type=\"taboola\"\n layout=\"responsive\" \n heights=\"(min-width:1907px) 39%, (min-width:1200px) 46%, (min-width:780px) 64%, (min-width:480px) 98%, (min-width:460px) 167%, 196%\"\n data-publisher=\"amp-demo\" \n data-mode=\"thumbnails-a\"\n data-placement=\"Ads Example\" \n data-article=\"auto\">\n&lt;\/amp-embed><\/code><\/pre>\n\n\n\n<p><strong>For more details follow this below links<\/strong><\/p>\n\n\n\n<ol><li><a href=\"https:\/\/amp.dev\/documentation\/components\/amp-ad\">https:\/\/amp.dev\/documentation\/components\/amp-ad<\/a><\/li><li><a href=\"https:\/\/github.com\/ampproject\/amphtml\/blob\/master\/ads\/taboola.md\">https:\/\/github.com\/ampproject\/amphtml\/blob\/master\/ads\/taboola.md<\/a><\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/1-5.png\"><img decoding=\"async\" loading=\"lazy\" width=\"1316\" height=\"531\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/1-5.png\" alt=\"\" class=\"wp-image-10774\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/1-5.png 1316w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/1-5-300x121.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/1-5-768x310.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/1-5-1024x413.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/1-5-50x20.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/1-5-60x24.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/1-5-100x40.png 100w\" sizes=\"(max-width: 1316px) 100vw, 1316px\" \/><\/a><\/figure>\n\n\n\n<ul><li><strong>Advertisement Code:<\/strong>\u00a0In this field, you can add your custom Advertisement code for any third-party<strong> <\/strong>companies who provide AMP-compatible code or you can also add images.<\/li><li>Click on the \u201c<strong>Save Changes<\/strong>\u201d button.<\/li><\/ul>\n\n\n\n<p style=\"background-color: #ffdddd; border-left: 2px solid #f44336; padding: 10px;\"><strong>Note: <\/strong>&nbsp;Replace the parameters with your preferred parameters such as width, height, data-publisher, data-mode, data-placement with the one from your Taboola ad code.<\/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<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>Follow these steps to add Taboola ads: You can download&nbsp;Advanced AMP Ads&nbsp;Plugin from&nbsp;here. Step 1:&nbsp;After installing this plugin Ads option will be displayed on the&nbsp;WordPress dashboard&nbsp;-&gt;AMP option panel&nbsp;-&gt;&nbsp;Advanced AMP ADS. Step 2:&nbsp;Here We have 4 Incontent Ad which you want just Enable Incontent Ad option. Step 3:&nbsp;In&nbsp;Advertisement Type, you need&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"open","template":"","format":"standard","meta":[],"ht-kb-category":[18],"ht-kb-tag":[17],"_links":{"self":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/159"}],"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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/comments?post=159"}],"version-history":[{"count":24,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/159\/revisions"}],"predecessor-version":[{"id":17169,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/159\/revisions\/17169"}],"wp:attachment":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/media?parent=159"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-category?post=159"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-tag?post=159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}