Ads on the internet are based on decades old tech rooted in running untrusted & potentially unsafe JS. We are on a multiyear journey to fix this. This project reached a major milestone with 12% of display ads served by Google being based on @AMPhtml ads blog.google/products/ads/mak…
3
18
1
62
What ever you think about AMP, ads not being able to run arbitrary JavaScript, and having a format that can be verified to be safe without trusting the source is a huge step forward for the health of the web. No more bitcoin mining, auto-redirects, etc.
3
3
33
So you’re saying this requires AMP and Google couldn’t have used its power to do the same thing with plain HTML?
1
2
You need to subset HTML, because HTML itself isn’t safe. Luckily ads only need a tiny subset of HTML. On other hand they need some superset (say a carousel UI). There wasn’t exactly much competition for safe subsets and supersets of HTML.
1
Replying to @cramforce @AMPhtml
Google punishes certain uses of HTML all the time. They could have done the same here, without creating a new non-standard

Feb 20, 2019 · 11:24 PM UTC

2
1
Replying to @stilkov @AMPhtml
All the bad things AMPHTML ads prevent like bitcoin mining are already not allowed and lead to account termination. It doesn’t help because folks just hack other people’s servers to make them emit malicious HTML.
What parts of AMP are non-standard? I don’t use it personally so I don’t know all the details, but on the surface it looks like any other library/framework out there.
1
ampproject.org/learn/overvie… “AMP HTML is basically HTML extended with custom AMP properties”
1