amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Allow amp-selector in AMP4ADS

Open jyn15 opened this issue 7 years ago • 8 comments

amp-form is allowed in amp4ads, and the doc says amp-selector is allowed in amp-form: https://amp.dev/documentation/components/amp-form/?format=ads#inputs-and-fields

Is there any reason why amp-selector itself is not allowed in amp4ads?

jyn15 avatar Nov 26 '19 02:11 jyn15

seems reasonable. @ampproject/wg-ads @ampproject/wg-runtime @ampproject/wg-ui-and-a11y any objections?

lannka avatar Nov 26 '19 17:11 lannka

btw, this allows us achieving more customized carousel buttons in amp-carousel-0.2 https://amp-playground.appspot.com/amp/5639955095224320

jyn15 avatar Dec 04 '19 21:12 jyn15

@jyn15 you can go ahead and make the validator change. you will be updating: https://github.com/ampproject/amphtml/blob/master/extensions/amp-selector/validator-amp-selector.protoascii

/cc @honeybadgerdontcare correct me

lannka avatar Dec 04 '19 21:12 lannka

@jyn15 you can go ahead and make the validator change. you will be updating: https://github.com/ampproject/amphtml/blob/master/extensions/amp-selector/validator-amp-selector.protoascii

/cc @honeybadgerdontcare correct me

That is correct. Any tag spec that has html_format: AMP, add underneath it html_format: AMP4ADS. Probably should also add a specific test file in amp4ads_feature_tests as well.

honeybadgerdontcare avatar Dec 04 '19 21:12 honeybadgerdontcare

Thanks! I will make the change.

jyn15 avatar Dec 04 '19 22:12 jyn15

@jyn15 could you please also update amp-a4a-format.md file

lannka avatar Dec 06 '19 21:12 lannka

Btw, do you know how to remove the banner on the top of page https://amp.dev/documentation/components/amp-selector/?format=ads saying "this component does not support your currently selected format ads!"

jyn15 avatar Dec 14 '19 00:12 jyn15

@CrystalOnScript @pbakaus regarding the banner message

honeybadgerdontcare avatar Dec 14 '19 00:12 honeybadgerdontcare