diff --git a/extensions/amp-ad/validator-amp-ad.protoascii b/extensions/amp-ad/validator-amp-ad.protoascii index 4d777d3c4bd3..3bf4989c453f 100644 --- a/extensions/amp-ad/validator-amp-ad.protoascii +++ b/extensions/amp-ad/validator-amp-ad.protoascii @@ -65,6 +65,8 @@ tags: { # attrs: { name: "template" } attrs: { name: "type" mandatory: true } attrs: { name: "sticky" value: "" } + attrs: { name: "always-serve-npa" } + attrs: { name: "block-rtc" } attr_lists: "extended-amp-global" spec_url: "https://amp.dev/documentation/components/amp-ad/" amp_layout: { @@ -146,6 +148,8 @@ tags: { # } disallowed_value_regex: "__amp_source_origin" } + attrs: { name: "always-serve-npa" } + attrs: { name: "block-rtc" } attrs: { name: "type" mandatory: true } attr_lists: "extended-amp-global" spec_url: "https://amp.dev/documentation/components/amp-ad/" @@ -223,6 +227,8 @@ tags: { # disallowed_value_regex: "__amp_source_origin" } attrs: { name: "type" mandatory: true } + attrs: { name: "always-serve-npa" } + attrs: { name: "block-rtc" } attr_lists: "extended-amp-global" spec_url: "https://amp.dev/documentation/components/amp-ad/" amp_layout: { @@ -258,6 +264,8 @@ tags: { # } attrs: { name: "json" } attrs: { name: "rtc-config" } + attrs: { name: "always-serve-npa" } + attrs: { name: "block-rtc" } attrs: { name: "src" value_url: { diff --git a/validator/testdata/feature_tests/ads.html b/validator/testdata/feature_tests/ads.html index d4c87aa49780..0e9b2f4b035e 100644 --- a/validator/testdata/feature_tests/ads.html +++ b/validator/testdata/feature_tests/ads.html @@ -650,6 +650,21 @@

Doubleclick with RTC config

rtc-config="{foo: bar}">
+

Doubleclick with block-rtc attribute

+ + + +

Doubleclick with always-serve-npa attribute

+ + +

Doubleclick with JSON based parameters

| | +|

Doubleclick with block-rtc attribute

+| +| +| +|

Doubleclick with always-serve-npa attribute

+| +| +| |

Doubleclick with JSON based parameters

|