Enabling Google AMP ads on an AMP page is relatively simple. You will need to place the appropriate AMP ad code on the page. Here is the list of things you need to know:
Before you start you need to know exactly who your ad provider(s) is.
You need to determine if your ad provider(s) is participating in the Google AMP project. You can find the list of Google AMP ad providers (supported ad networks) here: https://www.ampproject.org/docs/reference/components/amp-ad. Before continuing, you really should visit this page!
All Google AMP ads require you to specify the height, width, layout, and type.
The type attribute (required) is actually the ad network name.
The layout attribute is required for some ad networks.
The additional parameters required by the ad provider are specified as “data-” attributes.
Once you have determined that your ad provider is supported you need to locate the sample ad unit and view the list of required and optional data attributes.
For some ad providers the values for the data attributes can be taken directly from the mobile ad code.
If you cannot determine the data attributes, you need to get them from your ad provider. Many ad providers provide the entire AMP ad code snippet and you can just copy/paste from that.
You can have multiple ad placements on the page.
It is critical that you use the Google AMP validator tool ater installing the ad units to ensure the code is valid.
Sample Google AMP Ad Code
The code below is a sample that would be used for the Taboola ad network.
It is very likely that if you are using a WordPress Google AMP plugin to support your AMP pages, that it will not properly support your ad code. You may need a customized plugin to get the desired ad implementation.
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. READ MOREACCEPT
Privacy & Cookies Policy
Privacy Overview
This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are as essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.