Skip to content

Latest commit

 

History

History
57 lines (44 loc) · 1.05 KB

adthrive.md

File metadata and controls

57 lines (44 loc) · 1.05 KB

AdThrive

Your site must be approved and active with AdThrive prior to use. AdThrive will install or provide specific tags for your site.

Examples

Render an ad with the default sizes

<amp-ad
  width="320"
  height="50"
  type="adthrive"
  data-site-id="test"
  data-ad-unit="AdThrive_Content_1"
>
</amp-ad>

Render an ad with a fixed size 320x50

<amp-ad
  width="320"
  height="50"
  type="adthrive"
  data-site-id="test"
  data-ad-unit="AdThrive_Content_1"
  data-sizes="320x50"
>
</amp-ad>

Render an ad with multiple sizes (320x50,320x100,300x250)

<amp-ad
  width="320"
  height="50"
  type="adthrive"
  data-site-id="test"
  data-ad-unit="AdThrive_Content_1"
  data-sizes="320x50,320x100,300x250"
>
</amp-ad>

Configuration

Required parameters

  • data-site-id - Your AdThrive site id.
  • data-ad-unit - AdThrive provided ad unit.

Optional parameters

data-sizes - Comma separated list of ad sizes this ad slot should support. The iFrame will be resized if allowed.