Closed apaleslimghost closed 7 years ago
/to @cramforce
@quarterto there is definitely an argument for changing this. It definitely shouldn't "break" in this case, though. The default documented frame content should work just fine for Twitter (and facebook, etc.)
Do you maintain a site where this is actually broken?
Do you maintain a site where this is actually broken?
Yes, example article where it's broken: http://amp.ft.com/content/b1be7a87-0f52-3159-bf8e-1a72742bf8be (you'll probably get the paywall, but there are ways around it). We're using the meta tag to configure amp-ad
so we can use our own targeting. I'm guessing we could go about that with src
instead?
@quarterto A few comments on that
done
at the same time you do now.config.type
and only if the type is whatever ad network you use, go into the krux code path. Otherwise just call done
without doing anything. (That will fix Twitter)Thanks for the pointers, I'll look into it. We're including a polyfill.
You definitely want to put that polyfill script tag after the inline script. Otherwise it blocks fetching AMP's iframe JS.
On Wed, Oct 5, 2016 at 8:22 AM, Matt Brennan notifications@github.com wrote:
Thanks for the pointers, I'll look into it. We're including a polyfill https://github.com/Financial-Times/google-amp/blob/master/views/ads-iframe.html#L7 .
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ampproject/amphtml/issues/5400#issuecomment-251707276, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFeT2xAwdXcUE_ywzWiog5JFvGw35cUks5qw8DFgaJpZM4KN7CY .
amp-twitter uses the base URL specified by the amp-3p-iframe-src meta tag, which I don't think is valid. There should be no reason not to use the Twitter URL for this frame.