New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 Fix story ads in no signing exp #30224
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you remind me why we had these 2 formats of prefix?
* @return {!IArrayLike} | ||
*/ | ||
export function getAmpCtaMetaTags(doc) { | ||
return doc.querySelectorAll('meta[name^=amp-cta-]'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you try one query to select both?
meta[name^=amp-cta-],meta[name^=amp4ads-vars-]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switched to single selector.
We started with |
* look for more tags * use single selector * cleanup
In the normal case the cta url & cta type are extracted from the metadata obj and added as data-var attrs to the element. In the no-signing case the metadata obj does not exist. This PR extends what we query for in the ad doc to find the
<meta name=amp-cta-*>
elements.Should fix broken experimentA on master builds.