{"id":406,"date":"2017-07-03T11:56:49","date_gmt":"2017-07-03T11:56:49","guid":{"rendered":"https:\/\/ampforwp.com\/tutorials\/?p=406"},"modified":"2020-04-21T19:31:57","modified_gmt":"2020-04-21T19:31:57","slug":"how-to-insert-media-net-ads-in-amp","status":"publish","type":"ht_kb","link":"https:\/\/ampforwp.com\/tutorials\/article\/how-to-insert-media-net-ads-in-amp\/","title":{"rendered":"How to insert Media.net ADS in AMP"},"content":{"rendered":"\n<p><strong>Follow these steps to add Media.net ads:<\/strong><\/p>\n<p>You can download\u00a0<b>Advanced AMP Ads\u00a0<\/b>Plugin from\u00a0<a href=\"https:\/\/ampforwp.com\/advanced-amp-ads\/\">here<\/a><a href=\"https:\/\/wordpress.org\/plugins\/ads-for-wp\/\">.<\/a><\/p>\n<p><strong>Step 1:<\/strong>\u00a0After installing this plugin Ads option will be displayed on the\u00a0<strong>WordPress dashboard<\/strong>\u00a0-&gt;<strong>AMP option panel<\/strong>\u00a0-&gt;\u00a0<strong>Advanced AMP ADS<\/strong><strong>.<\/strong><\/p>\n<p><strong>Step 2:\u00a0<\/strong>Here We have 4 Incontent Ad which you want just Enable Incontent Ad option<strong>.<\/strong><\/p>\n<p><strong>Step 3:<\/strong>\u00a0In\u00a0<strong>Advertisement Type<\/strong>, you need to Select the Custom Advertisement Option.<\/p>\n<p><strong>Step 4:\u00a0<\/strong>In this option, you need to enter Media.net Ads code this code is directly added into the body tag.<\/p>\n<p><strong>Step 5:<\/strong>\u00a0In this option \u201c<strong>Custom Ads incontent Ads Position\u201d\u00a0<\/strong>Select after how many paragraphs your ads should show.<\/p>\n<p><strong>This is the example of Code<\/strong><\/p>\n<p>Media.net adapter supports the integration of both, its Contextual Monetization solution and the Header Bidding solution. The example listed below states the configuration and the implementation-related details.<\/p>\n<p><strong>A) <span style=\"text-decoration: underline;\">For Contextual Monetization<\/span><\/strong><\/p>\n<pre><amp-ad width=\"300\" height=\"250\"\ntype=\"medianet\"\ndata-tagtype=\"cm\"\ndata-cid=\"8CUS8O7EX\"\ndata-crid=\"112682482\">\n<amp-ad>\n<\/pre>\n<p><strong>B) <span style=\"text-decoration: underline;\">For\u00a0 Header Bidder<\/span><\/strong><\/p>\n<pre><amp-ad width=\"300\" height=\"250\"\ntype=\"medianet\"\ndata-tagtype=\"headerbidder\"\ndata-cid=\"8CU852274\"\ndata-slot=\"\/45361917\/AMP_Header_Bidder\"\njson='{\"targeting\":{\"mnetAmpTest\":\"1\",\"pos\":\"mnetSlot1\"}}'>\n<amp-ad><\/pre>\n\n<p>\u00a0<\/p>\n<p><a href=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/1-5.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-10774\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/1-5.png\" alt=\"\" width=\"1316\" height=\"531\" 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><\/p>\n<p>\u00a0<\/p>\n\n\n\n<ul><li><strong>Advertisement Code:<\/strong>&nbsp;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 \u201cSave changes\u201d button.<\/li><\/ul>\n\n\n\n<p style=\"background-color: #ffdddd; border-left: 2px solid #f44336; padding:10px;\"><strong>Note:<\/strong> Replace the parameters with your preferred parameters. Such as width, height, data-cid, data-slot, json. <\/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 Media.net ads: You can download\u00a0Advanced AMP Ads\u00a0Plugin from\u00a0here. Step 1:\u00a0After installing this plugin Ads option will be displayed on the\u00a0WordPress dashboard\u00a0-&gt;AMP option panel\u00a0-&gt;\u00a0Advanced AMP ADS. Step 2:\u00a0Here We have 4 Incontent Ad which you want just Enable Incontent Ad option. Step 3:\u00a0In\u00a0Advertisement Type, you need&#8230;<\/p>\n","protected":false},"author":6,"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\/406"}],"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\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/comments?post=406"}],"version-history":[{"count":27,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/406\/revisions"}],"predecessor-version":[{"id":13334,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/406\/revisions\/13334"}],"wp:attachment":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/media?parent=406"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-category?post=406"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-tag?post=406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}