amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Adsense unknown attribute adRegion

Open illiafilin opened this issue 10 years ago • 4 comments

Hey guys, We've implemented ad regions (data-ad-region) for adsense blocks and got an error: Uncaught Error: Unknown attribute for adsense: adRegion.​​​ If this attribute is unknown, will adsense receive it?

Page example http://womanitely.com/exercises-transform-your-body/amp-list/

Block example <amp-ad width="300" height="250" type="adsense" data-ad-region="REGION_1" data-ad-client="ca-pub-8125901705757971" data-ad-slot="7783467241"></amp-ad>

illiafilin avatar Apr 12 '16 07:04 illiafilin

/to @kashyapnitin /cc @cramforce

dvoytenko avatar Apr 12 '16 17:04 dvoytenko

Also cc @bobcassels

cramforce avatar Apr 12 '16 18:04 cramforce

No, the set of publisher controls supported by AdSense in the AMP runtime is very limited, and the data-ad-region / google_ad_region setting will have no effect. All configuration of your ad slots should happen in the AdSense Frontend, not in the HTML.

michaelkleber avatar Apr 21 '16 13:04 michaelkleber

@dmitrymotorin Closing as answered, but please feel free to reopen if there are unanswered questions here

ericlindley-g avatar Apr 29 '16 23:04 ericlindley-g