AMP
If your site have AMP version pages, you can use amp-ad
tag for ads.
The example below:
<amp-ad
type="rfp"
width="320"
height="250"
data-adspot-id="XXXXXXXX"
data-stylesheet-url="https://example.com/styles/ad.css">
</amp-ad>
Attribute Explanation
Attribute name | Explanation |
---|---|
type |
rfp (fixed, required.) |
width |
Width of ad unit. |
height |
Height of ad unit. |
data-* |
Additional attribute. |
Available data
attributes
Parameter name | Required | Explanation | Example |
---|---|---|---|
data-adspot-id |
Ad Spot ID | XXXXXX |
|
data-stylesheet-url |
Stylesheet URL for Ads | https://example.com/styles/ad.css |