{"id":124,"date":"2019-05-27T07:09:36","date_gmt":"2019-05-27T07:09:36","guid":{"rendered":"http:\/\/adsforwp.com\/docs\/?post_type=ht_kb&#038;p=124"},"modified":"2019-11-25T10:58:52","modified_gmt":"2019-11-25T10:58:52","slug":"how-to-add-mgid-ads-in-wordpress-amp","status":"publish","type":"ht_kb","link":"https:\/\/adsforwp.com\/docs\/article\/how-to-add-mgid-ads-in-wordpress-amp\/","title":{"rendered":"How to add MGID ads in WordPress &#038; AMP"},"content":{"rendered":"<p>MGID is an intermediary network displaying advertising, which creates a connection between thousands of reputable and huge traffic websites and online advertisers.<\/p>\n<p><strong>Follow these steps to add MGID 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<p><strong>Step 1:<\/strong>\u00a0After installing this plugin Ads option will be displayed on the\u00a0<strong>WordPress dashboard<\/strong>\u00a0-&gt;<strong>Ads Option<\/strong>\u00a0-&gt;\u00a0<strong>create new Ads.<\/strong><\/p>\n<p><strong>Step 2:<\/strong> In Ad Type, you need to Select the &#8220;<strong>MGID<\/strong>&#8221; Option -&gt;\u00a0Now you need three things \u2013 Data Publisher, Data Widget and Data Container.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-786\" src=\"https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/Add-New-Ad-\u2039-magazine3-\u2014-WordPress-2019-11-25-16-25-26.png\" alt=\"\" width=\"1058\" height=\"520\" srcset=\"https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/Add-New-Ad-\u2039-magazine3-\u2014-WordPress-2019-11-25-16-25-26.png 1058w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/Add-New-Ad-\u2039-magazine3-\u2014-WordPress-2019-11-25-16-25-26-300x147.png 300w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/Add-New-Ad-\u2039-magazine3-\u2014-WordPress-2019-11-25-16-25-26-768x377.png 768w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/Add-New-Ad-\u2039-magazine3-\u2014-WordPress-2019-11-25-16-25-26-1024x503.png 1024w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/Add-New-Ad-\u2039-magazine3-\u2014-WordPress-2019-11-25-16-25-26-50x25.png 50w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/Add-New-Ad-\u2039-magazine3-\u2014-WordPress-2019-11-25-16-25-26-60x29.png 60w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/Add-New-Ad-\u2039-magazine3-\u2014-WordPress-2019-11-25-16-25-26-100x49.png 100w\" sizes=\"auto, (max-width: 1058px) 100vw, 1058px\" \/><\/p>\n<figure class=\"wp-block-image\"><\/figure>\n<p><strong>Follow the simple steps to get all this ID\u2019s from MGID Account.<\/strong><\/p>\n<p><strong>Step 1:\u00a0<\/strong>First of all Signup\/login at\u00a0<a href=\"https:\/\/dashboard.mgid.com\/publisher\">MGID Account<\/a>.<\/p>\n<p><strong>Step 2:\u00a0<\/strong>To find your \u201c<strong>Data Publisher, Data Widget and Data Container<\/strong>\u00a0\u201d go to your MGID Dashboard and on the bottom website click.<\/p>\n<figure class=\"wp-block-image\"><img decoding=\"async\" class=\"wp-image-14924\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/11\/Screenshot-1024x452.png\" sizes=\"(max-width: 1024px) 100vw, 1024px\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/11\/Screenshot-1024x452.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/11\/Screenshot-300x133.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/11\/Screenshot-768x339.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/11\/Screenshot-50x22.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/11\/Screenshot-60x27.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/11\/Screenshot-100x44.png 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/11\/Screenshot.png 1349w\" alt=\"\" \/><\/figure>\n<p><strong>Step 3:<\/strong>\u00a0Next, click here to get the code<\/p>\n<figure class=\"wp-block-image\"><img decoding=\"async\" class=\"wp-image-14926\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/11\/Untitled.png\" sizes=\"(max-width: 999px) 100vw, 999px\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/11\/Untitled.png 999w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/11\/Untitled-300x140.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/11\/Untitled-768x357.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/11\/Untitled-50x23.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/11\/Untitled-60x28.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/11\/Untitled-100x47.png 100w\" alt=\"\" \/><\/figure>\n<p><strong>Step 4:<\/strong>\u00a0You can copy the code from the MGID dashboard Data Publisher, Data Widget and Data Container and paste this in MGID Ads<\/p>\n<figure class=\"wp-block-image\"><img decoding=\"async\" class=\"wp-image-14928\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/11\/213234.png\" sizes=\"(max-width: 985px) 100vw, 985px\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/11\/213234.png 985w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/11\/213234-300x170.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/11\/213234-768x436.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/11\/213234-50x28.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/11\/213234-60x34.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/11\/213234-100x57.png 100w\" alt=\"\" \/><\/figure>\n<p><strong>Step 5:<\/strong>\u00a0Now enter the six slots of Ads Ad Type, Width, Height, Data Publisher, Data Widget and Data Container like below the screenshot.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3335 size-large\" src=\"https:\/\/blog.mgid.com\/wp-content\/uploads\/2019\/08\/Screen_1-1-1024x608.jpg\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" srcset=\"https:\/\/blog.mgid.com\/wp-content\/uploads\/2019\/08\/Screen_1-1-1024x608.jpg 1024w, https:\/\/blog.mgid.com\/wp-content\/uploads\/2019\/08\/Screen_1-1-300x178.jpg 300w, https:\/\/blog.mgid.com\/wp-content\/uploads\/2019\/08\/Screen_1-1-768x456.jpg 768w, https:\/\/blog.mgid.com\/wp-content\/uploads\/2019\/08\/Screen_1-1.jpg 1325w\" alt=\"\" width=\"1024\" height=\"608\" \/><\/p>\n<figure class=\"wp-block-image\"><\/figure>\n<ul>\n<li><strong>AD Type:<\/strong>\u00a0Once you select MGID option from Advertisement type below the option will appear like below the screenshot.<\/li>\n<li><strong>Data Publisher:<\/strong>\u00a0In this field, you need to enter the Data Publisher.<\/li>\n<li><strong>Data Widget:\u00a0<\/strong>In this field, you need to enter the Data Widget ID from MGID Account.<\/li>\n<li><strong>Data Container:\u00a0<\/strong>In this field, you need to enter the Data Container.<\/li>\n<li>Click on the \u201c<strong>Save Changes<\/strong>\u201d button.<\/li>\n<\/ul>\n<p><strong>Step 6:\u00a0<\/strong>Click on the \u201c<strong>Publish<\/strong>\u201d button and the ads will be displayed on your AMP page.<\/p>\n<h3>How to set the position of Ads<\/h3>\n<h4>1. Display<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-163\" src=\"https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/3-1.png\" alt=\"\" width=\"874\" height=\"312\" srcset=\"https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/3-1.png 874w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/3-1-300x107.png 300w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/3-1-768x274.png 768w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/3-1-50x18.png 50w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/3-1-60x21.png 60w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/3-1-100x36.png 100w\" sizes=\"auto, (max-width: 874px) 100vw, 874px\" \/><\/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>Position:<\/strong>\u00a0In this option, you\u2019ll see two Position\u2019s in which you can display the ad\u2019s by selecting\u00a01.)\u00a050% of the content\u00a0\u00a02.)\u00a0The number of paragraph option in which It asks you to enter the paragraph number to display the ads.<\/li>\n<li><strong>Alignment:\u00a0<\/strong>This option allows you to select the alignment option of the ad.<\/li>\n<li><strong>Margin:\u00a0<\/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>2. Advanced Display Conditions<\/strong><\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-130\" src=\"https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/4.png\" alt=\"\" width=\"880\" height=\"229\" srcset=\"https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/4.png 880w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/4-300x78.png 300w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/4-768x200.png 768w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/4-50x13.png 50w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/4-60x16.png 60w, https:\/\/adsforwp.com\/docs\/wp-content\/uploads\/2019\/05\/4-100x26.png 100w\" sizes=\"auto, (max-width: 880px) 100vw, 880px\" \/><\/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 MGID Ads.<\/li>\n<\/ul>\n<h4>The Output of the MGID ads in WordPress &amp; AMP<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3341 size-full\" src=\"https:\/\/blog.mgid.com\/wp-content\/uploads\/2019\/08\/Screen_2_mob-1.jpg\" sizes=\"auto, (max-width: 340px) 100vw, 340px\" srcset=\"https:\/\/blog.mgid.com\/wp-content\/uploads\/2019\/08\/Screen_2_mob-1.jpg 340w, https:\/\/blog.mgid.com\/wp-content\/uploads\/2019\/08\/Screen_2_mob-1-147x300.jpg 147w\" alt=\"\" width=\"340\" height=\"694\" \/><\/p>\n<p><strong>That\u2019s it for this tutorial!<\/strong><\/p>\n<p>We hope it helped you. If you have any feedback or questions or do you want us to create compatibility for any other Ad company which isn\u2019t listed in our plugin then you can request us we will surely implement it as soon as possible.<\/p>\n<p><strong>Just contact us\u00a0<a href=\"http:\/\/www.adsforwp.com\/contact\/\">here\u00a0<\/a>and we are always available for you.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>MGID is an intermediary network displaying advertising, which creates a connection between thousands of reputable and huge traffic websites and online advertisers. Follow these steps to add MGID ads: You can download\u00a0ADSforWP\u00a0Plugin from\u00a0here. Step 1:\u00a0After installing this plugin Ads option will be displayed on the\u00a0WordPress dashboard\u00a0-&gt;Ads Option\u00a0-&gt;\u00a0create new Ads. Step&#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-124","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\/124","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=124"}],"version-history":[{"count":15,"href":"https:\/\/adsforwp.com\/docs\/wp-json\/wp\/v2\/ht-kb\/124\/revisions"}],"predecessor-version":[{"id":787,"href":"https:\/\/adsforwp.com\/docs\/wp-json\/wp\/v2\/ht-kb\/124\/revisions\/787"}],"wp:attachment":[{"href":"https:\/\/adsforwp.com\/docs\/wp-json\/wp\/v2\/media?parent=124"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/adsforwp.com\/docs\/wp-json\/wp\/v2\/ht-kb-category?post=124"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/adsforwp.com\/docs\/wp-json\/wp\/v2\/ht-kb-tag?post=124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}