Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

SpotX

Example

Basic

<amp-ad
  width="300"
  height="250"
  type="spotx"
  data-spotx_channel_id="85394"
  data-spotx_autoplay="1"
>
</amp-ad>

Using Custom Key-Value Pairs

<amp-ad
  width="300"
  height="250"
  type="spotx"
  data-spotx_channel_id="85394"
  data-spotx_custom='{"key1": "val1", "key2": "val2"}'
>
</amp-ad>

Configuration

The SpotX amp-ad integration has many of the same capabilities and options as our SpotX EASI integration. For full list of options, please see the SpotX EASI integration documentation.

Required parameters

  • data-spotx_channel_id
  • width
  • height