Skip to content

Latest commit

 

History

History
90 lines (70 loc) · 2.85 KB

adocean.md

File metadata and controls

90 lines (70 loc) · 2.85 KB

AdOcean

Example

Single placement:
<amp-ad
  width="300"
  height="250"
  type="adocean"
  data-ao-id="ado-bIVMPpCJPX0.5tjQbNyrWpnws_dbbTJ1fUnGjLeSqJ3.K7"
  data-ao-emitter="myao.adocean.pl"
  data-block-on-consent
>
</amp-ad>
Master-Slave:
<amp-ad
  width="300"
  height="250"
  type="adocean"
  data-ao-emitter="myao.adocean.pl"
  data-ao-master="FDyQKk0qN2a9SxwCMal6Eove..r_lvBE3pPfr_Ier9..f7"
  data-ao-id="adoceanmyaonhqnqukjtt"
  data-ao-keys="key1,key2,key3"
  data-block-on-consent
>
</amp-ad>

<amp-ad
  width="300"
  height="250"
  type="adocean"
  data-ao-emitter="myao.adocean.pl"
  data-ao-master="FDyQKk0qN2a9SxwCMal6Eove..r_lvBE3pPfr_Ier9..f7"
  data-ao-id="adoceanmyaokiheeseoko"
  data-ao-keys="key1,key2,key3"
  data-block-on-consent
>
</amp-ad>

Do not define different values for slaves within one master for paramerters: data-ao-keys, data-ao-vars and data-block-on-consent. Otherwise, the behavior will be non-deterministic.

Configuration

For details on the configuration semantics, see AdOcean documentation.

Required parameters

  • data-ao-id - Ad unit unique id
  • data-ao-emitter - Ad server hostname

Optional parameters

  • data-ao-mode - sync|buffered - processing mode
  • data-ao-preview - true|false - whether livepreview is enabled
  • data-ao-keys - additional configuration, see adserver documentation, do not define different values for slaves within one master
  • data-ao-vars - additional configuration, see adserver documentation, do not define different values for slaves within one master
  • data-ao-clusters - additional configuration, see adserver documentation
  • data-ao-master - unique id of master placement

User Consent Integration

When user consent is required. AdOcean ad approaches user consent in the following ways:

  • CONSENT_POLICY_STATE.SUFFICIENT: Serve a personalized ad to the user.
  • CONSENT_POLICY_STATE.INSUFFICIENT: Serve a non-personalized ad to the user.
  • CONSENT_POLICY_STATE.UNKNOWN_NOT_REQUIRED: Serve a personalized ad to the user.
  • CONSENT_POLICY_STATE.UNKNOWN: Serve a non-personalized ad to the user.