To improve ad performance and provide a better viewing experience, Google Ad Manager publishers require the playsinline
attribute for all in-banner videos. This attribute ensures that in-banner video creatives do not expand to full screen without user action.
Starting in June 2019, all HTML5 creatives with in-banner videos that are missing the playsinline
attribute will be filtered from Display & Video 360 auctions. To make sure your creatives are eligible for bidding, always enable in-line playback for all in-banner videos. The playsinline
attribute is not a requirement for Programmatic Direct.
Note: The webkit-playsinline
attribute is not supported. Make sure to only use the playsinline
attribute.
How to turn on in-line playback
Google Web Designer
All creatives built with Google Web Designer after March 14, 2019 (Version 5.0.4.0226) automatically include the required attribute (
playsinline
). If your creative was built before this date, update to the latest version of Web Designer, then open and republish your creative.HTML
Add the
playsinline
attribute to every video element in your HTML. This is a Boolean element, so adding the playsinline
attribute on its own is the same as setting it to true.<video id="video1" controls="controls" poster="image.jpg" playsinline>
<source type="video/mp4" src="video.mp4" />
<source type="video/ogg" src="video.ogg" />
<source type="video/webm" src="video.webm" />
</video>
YouTube player
If you're using the YouTube player with Google Web Designer, follow the Web Designer steps above to update creatives, if necessary.
If you're using the YouTube player API, add the
playsinline
player parameter.<iframe id="ytplayer" type="text/html" width="720" height="405"
src="https://youtube.com/embed/M7lc1UVf-VE?playsinline=1"
frameborder="0" allowfullscreen>