amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Yieldbot ad, request all slot sizes

Open elljoh opened this issue 9 years ago • 1 comments

What's the issue?

Yieldbot amp-ad submits a bid request for the primary dimensions only when the multi-size element attribute is specified i.e.

data-multi-size="300x220,300x200"

  <amp-ad width="300" height="250"
          type="yieldbot"
          data-psn="1234"
          data-yb-slot="medrec"
          data-slot="/2476204/medium-rectangle"
          data-multi-size="300x220,300x200"
          json='{"targeting":{"category":["food","lifestyle"]},"categoryExclusions":["health"]}'>
  </amp-ad>

How do we reproduce the issue?

Use the Yieldbot amp-ad manual integration test, test/manual/amp-ad.yieldbot.amp.html

  1. gulp default
  2. open http://localhost:8000/test/manual/amp-ad.yieldbot.amp.html
  3. observe in your developer tools console network requests filtered by init?cb=yieldbot that there is one slot size for the bid request e.g.
  • ssz: 300x250

Expected Results

  • ssz: 300x250.300x220.300x200

What browsers are affected?

  • All

Which AMP version is affected?

Versions since 4ebbc25 impacted.

elljoh avatar Jul 31 '17 13:07 elljoh

PR to address this to come shortly.

elljoh avatar Jul 31 '17 13:07 elljoh