{"id":14839802,"date":"2021-09-05T09:30:49","date_gmt":"2021-09-05T09:30:49","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/amp-ad-issues-with-google-ads\/"},"modified":"2021-09-05T09:33:19","modified_gmt":"2021-09-05T09:33:19","slug":"amp-ad-issues-with-google-ads","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/amp-ad-issues-with-google-ads\/","title":{"rendered":"AMP-AD issues with Google Ads"},"content":{"rendered":"<p>We are having a bit of an issue with the <code>&lt;amp-ad&gt;&lt;\/amp-ad&gt;<\/code> tags on our website and we are wondering if anyone has had this issue and found a solution. <\/p>\n<p>The site we&#8217;re working on is https:\/\/www.digitalcitizen.life\/<\/p>\n<p>The pages where you can see our issue are: https:\/\/www.digitalcitizen.life\/8-ways-start-control-panel-windows-10\/ and https:\/\/www.digitalcitizen.life\/razer-viper-8khz-review\/<\/p>\n<p>The issue is as follows:<br \/>\nWe are serving AdSense ads, via the <code>&lt;amp-ad&gt;&lt;\/amp-ad&gt;<\/code> and on mobile devices only the served ads ignore our settings and the ads are wider than the container, like in this screenshot: https:\/\/www.screencast.com\/t\/XSi5x2a0p<\/p>\n<p>We have also tried using layout=&#8221;responsive&#8221; to no avail.<br \/>\nDoes anyone have any clue on how to solve this, and make the mobile ads respect the size we try to enforce? Thank you!<\/p>\n<p>The code is as follows: <\/p>\n<pre><code>&lt;div class=&quot;block--ad ad-1&quot;&gt;\n\t\t&lt;amp-ad class=&quot;digcit-ad&quot; media=&quot;(min-width: 1744px)&quot; type=&quot;adsense&quot; layout=&quot;fixed&quot; width=&quot;970&quot; height=&quot;90&quot;  data-ad-slot=&quot;SlotIDnumber&quot; data-ad-client=&quot;ClientNumber&quot;&gt;&lt;\/amp-ad&gt;\n\t\t&lt;amp-ad class=&quot;digcit-ad&quot; media=&quot;(min-width: 1168px) and (max-width: 1743px)&quot; type=&quot;adsense&quot; layout=&quot;fixed&quot; width=&quot;728&quot; height=&quot;90&quot;  data-ad-slot=&quot;SlotIDnumber&quot; data-ad-client=&quot;ca-ClientNumber&quot;&gt;&lt;\/amp-ad&gt;\n\t\t&lt;amp-ad class=&quot;digcit-ad&quot; media=&quot;(min-width: 992px) and (max-width: 1167px)&quot; type=&quot;adsense&quot; layout=&quot;fixed&quot; width=&quot;580&quot; height=&quot;400&quot;  data-ad-slot=&quot;SlotIDnumber&quot; data-ad-client=&quot;ClientNumber&quot;&gt;&lt;\/amp-ad&gt;\n\t\t&lt;amp-ad class=&quot;digcit-ad&quot; media=&quot;(max-width: 991.98px)&quot; type=&quot;adsense&quot; layout=&quot;fixed&quot; width=&quot;300&quot; height=&quot;250&quot;  data-ad-slot=&quot;SlotIDnumber&quot; data-ad-client=&quot;ClientNumber&quot;&gt;&lt;\/amp-ad&gt;\n\t&lt;\/div&gt;<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-14839802","topic","type-topic","status-publish","hentry","topic-tag-ads"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14839802","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14839802\/revisions"}],"predecessor-version":[{"id":14839803,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14839802\/revisions\/14839803"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=14839802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}