{"id":150,"date":"2019-05-27T08:23:33","date_gmt":"2019-05-27T08:23:33","guid":{"rendered":"http:\/\/adsforwp.com\/docs\/?post_type=ht_kb&#038;p=150"},"modified":"2019-05-27T09:46:53","modified_gmt":"2019-05-27T09:46:53","slug":"how-to-add-dfp-ads-in-wordpress-amp","status":"publish","type":"ht_kb","link":"https:\/\/adsforwp.com\/docs\/article\/how-to-add-dfp-ads-in-wordpress-amp\/","title":{"rendered":"How to add DFP ads in WordPress &#038; AMP"},"content":{"rendered":"<p><strong>Follow these steps to add DFP Ads:<\/strong><\/p>\n<p>You can download\u00a0<strong>ADSforWP<\/strong>\u00a0Plugin from\u00a0<a href=\"https:\/\/wordpress.org\/plugins\/ads-for-wp\/\">here.<\/a><\/p>\n<ul>\n<li>After installing this plugin Ads option will be displayed on the <strong>WordPress dashboard<\/strong>\u00a0-&gt;<strong>Ads Option<\/strong>\u00a0-&gt;\u00a0<strong>create new Ads.<\/strong><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-154\" src=\"https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/8.png\" alt=\"\" width=\"1043\" height=\"395\" srcset=\"https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/8.png 1043w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/8-300x114.png 300w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/8-768x291.png 768w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/8-1024x388.png 1024w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/8-50x19.png 50w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/8-60x23.png 60w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/8-100x38.png 100w\" sizes=\"auto, (max-width: 1043px) 100vw, 1043px\" \/><\/p>\n<ul>\n<li><strong>Ad type:<\/strong> in this option, you need to Select the DoubleClick option.<\/li>\n<li><strong>Slot ID:<\/strong> In this filed enter slot ID it will be displayed on AMP pages.<\/li>\n<li><strong>Div Gpt Ad: <\/strong>In this filed enter Div Gpt Ad it will be displayed on Non-AMP pages.<\/li>\n<li><strong>Size:<\/strong> In Size, you\u2019ll see the number of ads size which you can use as per your convenience.<\/li>\n<\/ul>\n<h4>Display<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-168\" src=\"https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/11.png\" alt=\"\" width=\"883\" height=\"271\" srcset=\"https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/11.png 883w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/11-300x92.png 300w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/11-768x236.png 768w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/11-50x15.png 50w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/11-60x18.png 60w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/11-100x31.png 100w\" sizes=\"auto, (max-width: 883px) 100vw, 883px\" \/><\/p>\n<ul>\n<li><strong>Display Type:<\/strong>\u00a0In Display type, you\u2019ll see the number of display type which you can use as per your convenience. However, if you want to display the InContent Ads as the name suggests it is used to display the ads in the content of your post by simply putting between the paragraphs.<\/li>\n<li><strong>Alignment:\u00a0<\/strong>This option allows you to select the alignment option of the ad.<\/li>\n<li><strong>Margin: <\/strong>You can also set the margins of the ads as per your taste.<\/li>\n<li><strong>Embed Shortcode:<\/strong>\u00a0Copy the shortcode and place where you want to display the Sticky Ads.<\/li>\n<\/ul>\n<h4 id=\"advanced-display-conditions\"><strong>Advanced Display Conditions<\/strong><\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-157\" src=\"https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/10.png\" alt=\"\" width=\"875\" height=\"226\" srcset=\"https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/10.png 875w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/10-300x77.png 300w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/10-768x198.png 768w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/10-50x13.png 50w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/10-60x15.png 60w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/10-100x26.png 100w\" sizes=\"auto, (max-width: 875px) 100vw, 875px\" \/><\/p>\n<ul>\n<li>In this section, you need to set the condition for the specific post or page or all posts where you want to show Sticky Ads.<\/li>\n<\/ul>\n<p><strong>That\u2019s it for this tutorial!<\/strong><\/p>\n<p>We hope we\u2019ve clear your doubts in case If you have any feedback or questions, then please share them in the comments section below.<\/p>\n<p>Or you Just contact us\u00a0<a href=\"http:\/\/www.adsforwp.com\/contact\/\"><strong>here<\/strong>\u00a0<\/a>and we are always available for you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Follow these steps to add DFP Ads: You can download\u00a0ADSforWP\u00a0Plugin from\u00a0here. After installing this plugin Ads option will be displayed on the WordPress dashboard\u00a0-&gt;Ads Option\u00a0-&gt;\u00a0create new Ads. Ad type: in this option, you need to Select the DoubleClick option. Slot ID: In this filed enter slot ID it will be&#8230;<\/p>\n","protected":false},"author":3,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[18],"ht-kb-tag":[],"class_list":["post-150","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-how-to"],"_links":{"self":[{"href":"https:\/\/adsforwp.com\/docs\/wp-json\/wp\/v2\/ht-kb\/150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adsforwp.com\/docs\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/adsforwp.com\/docs\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/adsforwp.com\/docs\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/adsforwp.com\/docs\/wp-json\/wp\/v2\/comments?post=150"}],"version-history":[{"count":11,"href":"https:\/\/adsforwp.com\/docs\/wp-json\/wp\/v2\/ht-kb\/150\/revisions"}],"predecessor-version":[{"id":170,"href":"https:\/\/adsforwp.com\/docs\/wp-json\/wp\/v2\/ht-kb\/150\/revisions\/170"}],"wp:attachment":[{"href":"https:\/\/adsforwp.com\/docs\/wp-json\/wp\/v2\/media?parent=150"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/adsforwp.com\/docs\/wp-json\/wp\/v2\/ht-kb-category?post=150"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/adsforwp.com\/docs\/wp-json\/wp\/v2\/ht-kb-tag?post=150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}