googleads / google-publisher-tag-samples

Google Publisher Tag (GPT) code samples.
https://developers.google.com/publisher-tag/samples
Apache License 2.0
36 stars 21 forks source link

ad-sizes/ts #50

Closed KristenWilde closed 1 year ago

KristenWilde commented 1 year ago

The multi-size ad demo does not show multiple ad sizes. It only shows a 300x250 gray rectangle, regardless of the size of the window. I was expecting that if I resized the window and reloaded the page, a size-appropriate image would appear.

jimper commented 1 year ago

Hi @KristenWilde, the "Responsive ad slot" portion of this sample should behave the way you describe. Responsive sizing in GPT lets you to specify which ad sizes are allowed to serve at different screen sizes. This is an extension of "Multi-size ad slot", which is just a set of sizes that Ad Manager is allowed to choose from when determining which ad to serve. You can learn more about the various size options in our Ad sizes guide.