ads/google/a4a/docs/RTBExchangeGuide.md
This guide is designed to provide additional information for SSPs and Ad Exchanges that want to support AMPHTML ads in a Real-Time Bidding (RTB) environment. The IAB's OpenRTB 2.5 spec is here.
AMP pages must ensure all content conforms to the AMP format. When non-AMP content is included in an AMP page, there can be a delay as the content is verified. A major benefit for AMPHTML ads on AMP pages is that the ad can be rendered early by splicing the ad into the surrounding AMP page, without affecting the UX of the page and without delay.
For those new to AMPHTML ads, see the background docs at the bottom of this article.
Exchanges will need to indicate in the RTB bid request whether a page is built in AMP, and any specific requirements or treatment of AMPHTML ads. As of OpenRTB 2.5, this is not yet included in the spec, but the proposed implementation to the IAB committee is as follows.
Site Object additional field: amp
A new field is added to the Site object of the OpenRTB standard to indicate whether a webpage is built on AMP. In OpenRTB 2.5, this is section 3.2.13.
| Field | Scope | Type | Default | Description |
|---|---|---|---|---|
amp | optional | integer | - | Whether the request is for an AMP Document. 0 = page is non-AMP, 1 = page is built with AMP HTML. AMP status unknown if omitted. |
Imp Object additional field: ampad
A new field is added to the Imp object of the OpenRTB standard to provide more detail around AMP ad requirements and how AMP ads will load. In OpenRTB 2.5, this is section 3.2.4.
| Field | Scope | Type | Default | Description |
|---|---|---|---|---|
ampad | optional | integer | 1 | AMPHTML ad requirements and rendering behavior. See AMPHTML Ad Status Table. |
AMPHTML Ad Status Table
| Value | Description |
|---|---|
| 1 | AMPHTML ad requirements are unknown. |
| 2 | AMPHTML ads are not allowed. |
| 3 | Either AMPHTML or non-AMPHTML ads are allowed; AMPHTML ads are not early rendered. |
| 4 | Either AMPHTML or non-AMPHTML ads are allowed, and AMPHTML ads are early rendered. |
| 5 | AMPHTML ads are required. Ads that are non-AMPHTML may be rejected by the publisher. |
| 500+ | Exchange-specific values; should be communicated to bidders a priori |
SSPs will need to provide a new field in the bid response to allow bidders to return AMPHTML content, and RTB bidders will need to populate that field in order to return AMPHTML ads. As of OpenRTB 2.5, this is not yet included in the spec, but the proposed workflow is a new field that accepts a URL pointing to AMP ad content.
Bid Object additional field: ampadurl
| Field | Type | Description |
|---|---|---|
ampadurl | string | Optional means of conveying AMPHTML ad markup in case the bid wins; only one of ampadurl or adm should be set. Substitution macros (Section 4.4) may be included. URL should point to a creative server containing valid AMP Ad html. |
<html amp4ads> creative format.ampadurl.ampadurl after a bidder wins the auction.Bid.burl, the "billing notice URL" in OpenRTB 2.5).