Gadget Ads HomeOverviewDeveloping Your Ad
Google Gadgets |
How to Run Gadget Ads on YouTubeGoogle Gadget Ads can be delivered on YouTube by two different methods:
There are a few differences in how you create your Google Gadget Ad depending on which system delivers it. This document outlines the basic differences in the gadget ad code for each of the two delivery systems. Next, it provides specific directions for creating gadget ads that will be delivered by DoubleClick and run on YouTube. Contents
Differences between AdWords and DoubleClick DeliveryIn general, the process for creating Google Gadget Ads is the same, whether the ad is delivered using AdWords or DoubleClick. Here are the main differences:
Tracking Clickthroughs Using DoubleClick Delivery
To track clickthroughs for gadget ads delivered using DoubleClick, use the
<UserPref name="clickurl" datatype="hidden" default_value="DEBUG"/>
As described in the Tutorial, setting
NOTE: To track both clickthroughs and interactions, use the
DART Tag GeneratorThe DART tag generator is a simple HTML form that allows you to specify the basic URL for your gadget, its size in pixels, and whether to open clickthroughs in a new window. It then generates the HTML snippet that DART will use to serve your gadget ad and creates a preview of your ad. If you're curious about this snippet, read the Tag Syntax section, which explains the parameters used in this snippet. You won't need to edit this snippet, so you can simply follow the directions in DART Tag Generator, and then cut and paste the generated text into a file used by DART. This file contains the <iframe> that loads your gadget ad. STEP 1: Fill in the DART Tag Generator form and press Preview This Gadget
STEP 2: Preview Your Gadget.STEP 3: Save the tag and upload to DART.
A. Create a new file.
B. Copy and paste the tag from the box below into the file and save.
C. In DART, upload the file as the tag.
For debugging, here's the text of the ad (already selected for cut/paste): Experiment with the DART Tag GeneratorAfter you've created a sample gadget ad, try inserting its URL into the DART tag generator above, check the preview of your ad, and examine the new <iframe> tag created for it. Tag SyntaxThe "src" attribute of the <iframe> element contains the URL for the gadget ad as well as all necessary parameters to render the gadget. This data is automatically generated for you by the DART tag generator and should not be modified. The following table describes the parameters and is intended for information only.
Tracking with Google AnalyticsThis section describes how to use Google Analytics to track (1) interactions only or (2) interactions and clickthroughs for gadget ads delivered using DoubleClick. The Google Analytics library provides two methods for tracking:
The
The Required Steps to Set Up TrackingTo set up tracking with Google Analytics, complete these steps:
Using the Tracking Methods
This section provides explains how to use the Tracking Interactions
The
ga.reportPageview('/view/HP Gadget Ad');
ga.reportPageview('/interaction/HP Gadget Ad/play/preview trailer/1.5');
ga.reportPageview('/click/HP Gadget Ad/http://myserver.com/myDetailedInfoPage');
Constructing the Virtual Pageview PathThis section describes a suggested technique for collecting this data in a manner that separates pageviews (impressions), clicks, and interactions, and that tracks multiple types of interactions (events). You are free to develop your own techniques if this one doesn't fit the type of data you're collecting. Set up your virtual URL to classify first by broad type of action, then gadget name, followed by an optional label and optional numerical value, as follows:
Note that it's important to create a separate tracking URL with action_type=view so that pageviews will not become intermingled with interactions in the Google Analytics reports.
Here is an example of using the
ga.reportPageview('/view/HP Gadget Ad');
ga.reportPageview('/interaction/HP Gadget Ad/play/preview trailer/1.5');
ga.reportPageview('/click/HP Gadget Ad/http://myserver.com/myDetailedInfoPage');
Tracking Both Interactions & Clickthroughs
The
var destUrl = 'http://www.google.com';
var ga = new _IG_GA('UA-000-1');
ga.reportPageviewClick(destUrl, '/action_type/gadget_name/opt_label/opt_value');
Here is an example of a sample gadget that contains calls to report pageviews, interactions, and interactions+clicks using Google Analytics methods:
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="My Gadget Ad" width="" height="" thumbnail="" scrolling="false">
<Require feature="ads"/>
<Require feature="com.google.gadgets.analytics"/>
</ModulePrefs>
<UserPref name="clickurl" datatype="hidden" default_value="DEBUG"/>
<UserPref name="aiturl" datatype="hidden" default_value="DEBUG"/>
<UserPref name="ads_clicktarget_new_" datatype="hidden" default_value="1"/>
<Content type="html"><![CDATA[
<a href="javascript:ga.reportPageview('/view/Test Gadget');">Report Pageview</a>
<br>
<a href="javascript:ga.reportPageview('/interaction/Test Gadget/item_1/1.5');">Report Interaction</a>
<br>
<a href="javascript:ga.reportPageviewClick('http://www.google.com', '/click/Test Gadget/http://www.google.com');">Report Interaction & Click</a>
<script>
var ga = new _IG_GA('UA-000000-1');
</script>
]]>
</Content>
</Module>
|
