The AMP spec allows for a variety of layouts for ads including fixed (which does require width and height) and responsive (which doesn't require a width and height). Please see the AMP docs here (https://amp.dev/documentation/components/amp-ad/) and here (https://amp.dev/documentation/guides-and-tutorials/learn/amp-html-layout/?format=websites#(tl;dr)-summary-of-layout-requirements-&-behaviors).