amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Document Ad resizing rules

Open dvoytenko opened this issue 10 years ago • 6 comments

Document which iframe resizing rules apply to Ad resizing. If they are the same - we can consider merging this part of the doc or simply referencing one from the other.

/cc @Meggin @coreybyrnes

dvoytenko avatar Mar 15 '16 18:03 dvoytenko

@dvoytenko I have an example here for ads that you may find helpful : http://dfp-amp-testing-1185.appspot.com/amp_tests/dfp-image-resize.html

jasti avatar Mar 16 '16 22:03 jasti

Thanks, @jasti !

dvoytenko avatar Mar 16 '16 23:03 dvoytenko

@dvoytenko - resizing is already documented here - https://github.com/ampproject/amphtml/tree/master/ads#ad-resizing

do we need to add something?

camelburrito avatar Mar 17 '16 16:03 camelburrito

@sriramkrish85 cool, thanks!

@coreybyrnes how does this look? https://github.com/ampproject/amphtml/tree/master/ads#ad-resizing

dvoytenko avatar Mar 17 '16 17:03 dvoytenko

@coreybyrnes Please give feedback when you get a chance. Closing this since it seems like it's addressed.

rudygalfi avatar Mar 24 '16 00:03 rudygalfi

In my opinion the documentation isn't clear on what will allow a resize to occur or not. From my testing it seems a resize will always occur if triggered by user interaction or if triggered automatically and the ad is above or below the viewport. It seems if the resize is triggered automatically (from within the ad code) and the ad is within the viewport that the resize will always fail. I feel like simply replacing the word "whether" with "if" in the documentation would make it much more clear.

coreybyrnes avatar Mar 24 '16 17:03 coreybyrnes