Requirements
In order to use AdUp ads on your website, you need to have created a page and a corresponding ad unit in your publisher account.
AMP-HTML-Ads use our Responsive-Ads logic in the background, so your ad unit layout should be optimized for this.
Syntax
Add the following <amp-ad> tag at the position on your AMP-HTML page where you want the ads to appear:
Required attributes
Name | Description | Example |
---|---|---|
placementkey | The unique placement key of your ad unit. | |
width | The desired width of the advertising medium | |
height | The desired height of the advertising medium |
Optimal attributes
Name | Description | Example |
---|---|---|
layout | Controls the layout behaviour of the ad:
| |
data-query | Keywords by which the ads are to be filtered. Several keywords can be separated by semicolons. | |
data-mincpc | This is the minimum price you want to earn for a click. Generally, the lower the minimum price, the more campaigns you will be presented with and the more money you can earn due to greater competition for the position. | |
data-pageurl | The current URL of the page on which the advertisement is played. Should always be set if our advertising material is embedded within one or more nested iFrames on your page, as we may then no longer be able to determine the URL. | |
data-adtest | Impressions and clicks are not tracked when activated. Should only be used for test purposes! | |
data-gdpr data-gdpr_consent | Normally, we determine the required GDPR data automatically via the <amp-consent> module installed on the AMP page. If this is not available, or if it is not possible to access it for technical reasons, you have the option here of transferring the GDPR data to us manually. data-gdpr 1 = GDPR applies 0 = GDPR does not apply (omit) = Unknown (default) data-gdpr_consent The IAB Consent String (base64url-encoded) (omit) = Unknown (default) |