Important
Important: We highly recommend that you use the new method in AAS to make your standard banners clickable. This method does not require adding extra code to your ads. For more information, see Create a standard banner in any authoring tool.
This article describes the legacy methods for building standard banners. To ensure that these ads are compliant with Amazon Ad Server (AAS), you need to add our library and click-through method.
If you are working with the standard banner template, you are prompted to append the AAS EB Clickthrough method correctly to each clickable element with EB.clickthrough();
.
The following table describes the list of files to include in your ad folder.
File |
Description |
Required |
---|---|---|
|
HTML file for the banner. |
Required |
|
CSS file for the banner. |
Optional (if CSS code is included in the html file) |
|
Call the JavaScript object EB for enabling capacities and tracking |
Required |
|
JavaScript (logic and tracking) for the banner. |
Required |
|
|
Required |
The following shows an example of the index.html
file.
<!doctype html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>HTML5 Standard Banner: 300x250</title> <link rel="stylesheet" href="styles/style.css" /> <script src="scripts/EBLoader.js"></script> <!-- #1 Call Simzek by Amazon's EBLoader library --> <script src="scripts/script.js"></script> <!-- #2 Call Simzek by Amazon's script file --> </head> <body> <div id="ad"> <!-- #3 Open main div --> <div id="clickthrough-button"> <!-- #4 Add Clickthrough div --> <!-- #5 Your animation here --> </div> <!-- #6 Close Clickthrough tag --> </div> <!-- #7 Close main div --> </body> </html>
The following shows an example of the script.js
file.
var adDiv; function initEB() { if (!EB.isInitialized()) { EB.addEventListener(EBG.EventName.EB_INITIALIZED, startAd); } else { startAd(); } } function startAd() { adDiv = document.getElementById("ad"); addEventListeners(); } function addEventListeners() { document.getElementById("clickthrough-button").addEventListener("click", clickthrough); } function clickthrough() { // opens the landing page URL set by the campaign manager EB.clickthrough(); } window.addEventListener("load", initEB);
Important
Important: Before you begin, make sure that you download the following files:
-
AAS publishing template adkit-secure.html file. Unzip the file, and put it in a folder that you can use for all of your Adobe Animate ads. This file includes the links to AAS
adkit.js
and Adobecreatejs.min.js
(version 1.0.0) libraries. -
This config.js file. Unzip the file, and place the
config.js
file in the root folder of each ad.
-
Open Adobe Animate, and create a new document.
-
Select the Advanced tab, and under Platforms, select HTML5 Canvas.
-
Click File > Publish Settings.
-
On the Basic tab, verify that your export settings are set to the defaults.
-
Click HTML/JS, and perform the following actions:
-
Click Import New.
-
Locate and select the adkit-secure.html file you downloaded.
-
-
Click Image Settings, and select the method in which to export image assets. If you are not sure about which method to use, and your images were optimized in Photoshop, it is recommended to select Image Assets.
-
Click OK.
-
Place the
config.js
file in the same folder as thehtml
file for your published ad.
The following table describes the list of files that should be included in the ad folder.
File Name |
Description |
Required |
---|---|---|
|
FLA file of Adobe Animate. |
Not required for upload |
|
HTML file for the banner. |
Required |
|
JavaScript (logic and tracking) for the banner. |
Required |
|
A configuration file with static variables and/or dynamic items AdKit dependency. |
Required |
|
|
Required |
Once your project is set up, you can begin to design your ad. rich media banner can include additional interactions; whereas standard banner can only include one interaction. You need to verify that these interactions are properly fired to fill the campaign reports.
Note
Note: For ads that include looped animation, we recommend putting all of the code for event listeners in frame 1, and starting any animation loops from frame 2. This ensures accurate data reporting; otherwise, the code for each event listener will run on each loop of the animation.
Your banners must include at least one clickable element that redirects users to the advertiser landing page upon click or tap.
-
Create a clickable element. We recommend creating a button with a large hit area.
-
Give the element an instance name, for example, myButton.
-
Open the Action window.
-
On the first frame of your timeline, add a click event on the instance name. This event calls the AAS click-through method.
/* Clicking on the specified symbol instance opens a new browser window with the Clickthrough URL value set by the media agency at placement level. */ this.myButton.on('click', ClickToGoToWebPage); function ClickToGoToWebPage() { adkit.clickthrough(); }
Once the ad is complete, you are ready to publish. Make sure that your ad includes a backup image, jpg
, gif
, or png
file format. The default image must be less than 200 KB and match the dimensions of the ad.
Important
Important: Adobe Animate will remove your video file and poster image after publishing. Before you zip and set up your ad in AAS, add the video file and poster image again to the folders.
-
Create a new blank file.
-
Make sure that in the Environment list, you select Non-Google Ad.
-
Perform the following actions:
-
In the Name box, enter a name for your ad.
-
In the Dimensions area, enter the width and height of your ad.
-
Click OK.
-
-
Click Components. From the Components pane, drag the AdKit component to the stage.
-
Select the AdKit component, and then click Properties to configure the AdKit settings.
The following table describes the required options you must configure in the AdKit component properties. Other options do not require configuration.
For this option |
Do this |
---|---|
Config File |
Click here to download the NoteNote: Currently, GWD does not allow Mac users to click Add and select the |
Default Image |
Select your default image. The default image must be less than 200 KB and match the dimensions of the ad. |
Ad Format |
Select Standard. |
Video API |
Default is true. standard banners do not allow capturing of video metrics. |
Once your project is set up, you can begin to design your ad. standard banner is limited to 200 KB and cannot track videos; therefore, you can use video and YouTube components.
For more information, see Add Dynamic Elements to Your HTML Ads Using Google Web Designer.
After you create your ad, set up the ad in AAS. For more information, see Set up a standard banner.
Comments