Inserting clickTAG Variables in Flash Creatives

fawnhobbiesΛογισμικό & κατασκευή λογ/κού

4 Ιουλ 2012 (πριν από 5 χρόνια και 2 μήνες)

394 εμφανίσεις

© 2008 Yahoo!All Rights Reserved.
Inserting clickTAG Variables in Flash Creatives
You can track click performance of a Flash ad by adding up to five clickable
regions to a creative asset and assigning a corresponding click-tracking
URL to each one. Adobe’s suggested implementation method uses
clickTAG variables inside the creative. This way, the vendor-specific click-
tracking URLs can be defined later on when creating the final Flash ad.
To support click tracking, Yahoo!’s advertising management platform
requires that Flash creatives use the clickTAG variable method for
implementation. At least one clickTAG definition is required, and up to four
more are optional.
Note The clickTAG variable name is not case-sensitive. You can type
“clickTag,” “CLICKTAG,” “ClickTag,” “clicktag,” or any other variation
and click tracking will still work.
What you need to do
Step 1: On your local machine
• Construct the Flash creative with up to five clickable regions
each with a corresponding clickTAG variable.
Step 2: After logging in to Yahoo!’s advertising management platform
• Upload the SWF file to the creative library.
• Later on, when you create a Flash ad, define the exact URLs to
use for each clickTAG variable.
What you’ll learn in this document
This document describes how to code the hooks for click-tracking URLs
within the Flash creative you construct offline (step 1 above). For each click-
tracking URL (up to five):
© 2008 Yahoo!All Rights Reserved.
Inserting clickTAG Variables in Flash Creatives
• specify the clickable region as a button, and then
• assign a clickTAG variable for the response action.
Note The following instructions are based on the Adobe® Flash® 9
authoring tools and ActionScript™ 2.0.
Defining the clickable region
To define the clickable region as a button
1
Open your FLA file in Adobe Flash.
2
Create a new layer (Insert > Timeline > Layer) above all other layers
and select the first keyframe in that layer.
3
Using the rectangle tool, draw a rectangle encompassing the entire
area of the creative.
4
Using the selection tool, right-click and select Convert to Symbol.
5
Type a name for the symbol and select the Button behavior type.
6
Double-click the rectangle again to edit it and drag the Up keyframe
to the Hit keyframe.
© 2008 Yahoo!All Rights Reserved.
Inserting clickTAG Variables in Flash Creatives
Inserting the action response using the clickTAG variable
For the button you just created, specify ActionScript that declares and
defines the corresponding clickTAG variable.
To code the action response using a clickTAG variable
1
Select your button.
2
Open the Actions panel. If the Actions panel is not open, choose
Windows > Actions (F9).
Note Make sure Actions - Button displays at the top of the panel.
3
Copy and paste the following code into the ActionScript field:
clickTAG specification guidelines
Here’s a summary of the key things you need to do to make sure your
clickTAG implementation works correctly:
• To have more than one click-tracking URL, number the variables
sequentially, using the exact naming shown below.
on (release) {
if
(_root.clickTAG.substr(0,5)=="http:"||_root.clickTAG.substr(0,6)=="https:") {
getURL (_root.clickTAG, "_blank");
}
}
URL #1
clickTAG
URL #2
clickTAG2
URL #3
clickTAG3
URL #4
clickTAG4
URL #5
clickTAG5
© 2008 Yahoo!All Rights Reserved.
Inserting clickTAG Variables in Flash Creatives
For example:
• Specify absolute URLs using the _root prefix with the clickTAG
variable name; for example, _root.clickTAG.
• You must specify _blank as the second argument in the getURL
call.
Security settings within the Flash player are designed to help protect
websites from malicious content in SWF files. When the window
target is set to a value such as _self or _top, it redirects the main
browser window to the landing page URL. Because this action
affects the main browser window, it might be prevented by the
security settings within the Flash player, causing the action of
accessing the click-through URL to fail. A window target of _blank
opens a new page and is the only window target not subject to this
security measure within the Flash player.
For more information, view article in the Adobe knowledge base
.
Note If you specify _top, _parent, or _self instead, click tracking
won’t work.
What’s next
Make sure you export your creative asset as a SWF file. Then log in to
Yahoo!’s advertising management platform to do the following:
• Upload your SWF file to the creative library.
• Specify the fully-qualified click-tracking URLs when you create a
Flash ad from the SWF file.
Consult online Help to learn how.
on (release) {
if
(_root.clickTAG2.substr(0,5)=="http:"||_root.clickTAG2.substr(0,6)=="https:"){
getURL (_root.clickTAG2, "_blank");
}
}