Back to Amphtml

amp-ad-network-oblivki-impl

extensions/amp-ad-network-oblivki-impl/amp-ad-network-oblivki-impl.md

latest1.4 KB
Original Source

amp-ad-network-oblivki-impl

Oblivki implementation of AMP Ad tag which requests early by XHR and renders natively within the page if a valid AMP Ad is returned. Should not be directly referenced by pages and instead is dynamically loaded via the amp-ad tag. However, in order to remove an async script load of this library, publishers can include its script declaration.

<table> <tr> <td class="col-fourty" width="40%"><strong>Availability</strong></td> <td>In Development</td> </tr> <tr> <td class="col-fourty"><strong>Required Script</strong></td> <td><code>&lt;script async custom-element="amp-ad" src="https://cdn.ampproject.org/v0/amp-ad-0.1.js">&lt;/script></code></td> </tr> </table>

Example

html
<amp-ad
  width="300"
  height="250"
  type="oblivki"
  data-use-a4a="true"
  data-block-key="XgSNxZnGpAmULblp9d23"
  src="https://oblivki.biz/amp_a4a?key=XgSNxZnGpAmULblp9d23"
>
</amp-ad>

Attributes

Oblivki impl uses the same attributes as <amp-ad> .

<table> <tr> <td width="40%"><strong>data-use-a4a</strong></td> <td>If non-empty, Oblivki will attempt to render via the A4A pathway (i.e., fast rendering for AMP creatives). Otherwise, it will attempt to render via the delayed iframe path.</td> </tr> <tr> <td width="40%"><strong>data-block-key</strong></td> <td>Unique block key</td> </tr> </table>