How to insert Media.net ADS in AMP

Follow these steps to add Media.net ads:

You can download Advanced AMP Ads Plugin from here.

Step 1: After installing this plugin Ads option will be displayed on the WordPress dashboard ->AMP option panel -> Advanced AMP ADS.

Step 2: Here We have 4 Incontent Ad which you want just Enable Incontent Ad option.

Step 3: In Advertisement Type, you need to Select the Custom Advertisement Option.

Step 4: In this option, you need to enter Media.net Ads code this code is directly added into the body tag.

Step 5: In this option “Custom Ads incontent Ads Position” Select after how many paragraphs your ads should show.

This is the example of Code

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.

A) For Contextual Monetization


amp-ad width="300" height="250"
type="medianet"
data-tagtype="cm"
data-cid="8CUS8O7EX"
data-crid="112682482">
amp-ad>

B) For  Header Bidder


amp-ad width="300" height="250"
type="medianet"
data-tagtype="headerbidder"
data-cid="8CU852274"
data-slot="/45361917/AMP_Header_Bidder"
json='{"targeting":{"mnetAmpTest":"1","pos":"mnetSlot1"}}'>
amp-ad>

 

 

  • Advertisement Code: 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.
  • Click on the “Save changes” button.

Note: Replace the parameters with your preferred parameters. Such as width, height, data-cid, data-slot, json.

That’s it for this tutorial!

We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.

Share
Published by
Azeem

How to create an AWeber form in AMP

If you want to add an AWeber form in AMP then first you need to…

3 years ago

How to setup webpushr notification in AMP

Webpushr is the fastest growing web push notifications platform that marketers love & developers rely…

3 years ago

How to add Adobe Analytics in AMP

Follow these steps to add Adobe Analytics in AMP Step 1: Go to WordPress Admin Area -> AMP…

3 years ago

What is the CWV plugin all about

Core Web Vitals are the subset of Web Vitals that apply to all web pages,…

4 years ago

How to fix “Alternate page with proper canonical tag” Page Index issue in Google Search Console

The following reasons can be shown for non-indexing. Server error (5xx) Your server returned a 500-level…

4 years ago

Google Analytics ( GA4 ) integration in AMPforWP

We have added the Google Analytics 4 ( GA 4 ) integration in AMPforWP v1.0.80.…

4 years ago