About HTML5 for Universal App campaigns
HTML5 assets capture the attention of app users in a unique way by being interactive and entertaining. This article describes where HTML5 assets can appear and the sizes and formats you can upload for your Universal App campaign.
Where and how your ads may appear
Your HTML5 assets may be paired with other assets such as your app icon, app description, or description text when they are displayed on the Google Display Network. Universal App campaigns respect your account settings regarding any exclusions you’ve set for webpages and apps. Learn about how you can exclude webpages and apps.
HTML5 sizes and formats
Before you create a Universal App campaign, consider the following tips for creating your HTML5 assets:
- Google Ads recommends using Google Web Designer to create your HTML5 assets
- Currently accepted sizes for HTML5:
- Recommended sizes (your assets will appear as full screen ads on the majority of devices)
- 320x480 (portrait)
- 480x320 (landscape)
- Other sizes (your assets will appear as fixed-size banner ads and won’t adapt to all screen sizes)
- 300x250
- 320x50
- Recommended sizes (your assets will appear as full screen ads on the majority of devices)
- To validate your HTML5 assets before uploading, run your .ZIP file through the Google Ads HTML5 Validator tool
- Upload your asset as a .ZIP file with a maximum size of 1MB and no more than 40 files within the .ZIP
- You can upload up to 20 .ZIP files for each campaign
- .ZIP files can contain the following formats: HTML, CSS, JS, GIF, PNG, JPG, JPEG, SVG
- UTF-8 must be used for non-ASCII characters
If you use Google Web Designer...
Ad environment | When you create an asset in Google Web Designer, you must specify the “Google Ads” environment. |
Supported components |
|
Publishing for Google Ads | In Google Web Designer:
|
Limitations |
|
If you don't use Google Web Designer...
HTML requirements |
HTML5 assets must include:
Explicit end tags (inline ending tags will not be accepted):
Alternatively, you can extract the inline svg into a separate file. |
Upload requirements |
All code and assets must be referenced using a relative path to resources included in the .ZIP file. No external references are allowed except references to:
|
Clickable buttons |
If you want to make sure users can click only on your call to action button (for example, “Download”), follow these instructions to include the exitapi.js script. If you don't include the exitapi.js script, Google Ads will make your entire asset clickable. Instructions
|
* Nguồn: Google