Google Interactive Media Ads

Using the IMA Flash SDK Version 2 (Deprecated)

The Google IMA SDK allows developers to request and track DoubleClick In-Stream as well as AdSense ads in a Flash video player or Flash site. You can install the IMA SDK library in your authoring environment (Adobe Flash CS3/CS4) to facilitate the SDK integration into your rich media content.

Summary

Implement the Google IMA Flash AS3 SDK through the following steps:

  1. Create Your Ads
  2. Set Up Ads in DFP for Dynamic Allocation
  3. Install the IMA Library in Your Development Environment
  4. Request Ads
  5. Display the Ads

Additional References

The IMA Flash SDK provides a number of advanced ad request and rendering capabilities. Common use cases are found in the following guides:

Create Your Ads

You can create ads in DoubleClick for Publishers (DFP), DoubleClick for Advertisers (DFA6), and AdWords to use with the IMA SDK.

Publishers

Publishers can create In-Stream video or Flash-in-Flash ads in DFP. Additionally, publishers can book directly sold In-Stream or Flash-in-Flash ads in DFP. For more information on creating and trafficking ads in DFP, see the Trafficking In-Stream Ads in DoubleClick for Publishers Guide.

Publishers cannot create AdSense ads as they are indirectly sold and delivered by the AdSense network.

Advertisers

Advertisers can create VAST video ads in DFA6. For more information on creating and trafficking ads in DFA6, see the Trafficking section of the DFA Help Center.

Advertisers can create video ads as well as Flash-in-Flash ads in AdWords using Display Ad Builder. For more information on creating and trafficking ads in AdWords, see AdWords Help Center.

Back to top

Set Up Ads in DFP for Dynamic Allocation

A publisher using DFP to traffic In-Stream or Flash-in-Flash ads may wish to allow AdSense and other sales channels to compete for the non-guaranteed or pre-emptible portion of inventory.

When ads are dynamically allocated between DFP and AdSense, the ad server compares the CPM value of the reserved ad in DFP to the CPM value of the winning ad in the AdSense auction and returns the winning ad. Clicks and impressions are reported to both DFP and AdSense so that reports can be generated and verified in both systems.

For more information on dynamic allocation and how to set it up in DFP, see In-Stream Dynamic Allocation Support for Video Ads.

Back to top

Install the IMA Library in Your Development Environment

The IMA SDK provides publicly exposed APIs that publishers can use to request ads, display ads, and attach listeners for various ad events.

These interfaces enable the publisher to get compile-time checking and code completion. Additionally the interfaces have been set up to support local and web debugging.

You can install the IMA Library component either by installing the MXP file or by copying the SWC file to your Adobe Flash IDE Components folder. The MXP file enables automated installation via the Adobe Extension Manager while the SWC file is an archive file which may require additional steps to install.

Using IMA Library Component

IMA Flash components work exclusively within the Adobe Flash CS3/CS4 Professional authoring environment. To use this component, you must also download the Adobe Extension Manager from Adobe's website at http://www.adobe.com/exchange/em_download/.

  1. Download the Google IMA Library Component distribution file.
  2. Open the MXP file. Adobe Extension Manager window appears.
  3. Follow the onscreen installation instructions.
  4. The Google IMA Library appears in the Component window of the Adobe Flash IDE under the Google IMA folder.

After you successfully install the extension, it will appear in the Adobe Extension Manager window as the Google IMA Library. Select the entry for the extension, and DoubleClick's Terms of Service statement is shown in the bottom window.

Note: If you have a previous version of the MXP and are trying to install an upgrade, the Adobe Extension Manager prompts you to replace your old version of the extension with a new version of the software before it lets you install the new component. Please clear your browser cache after successful installation.

Using Google IMA Library SWC

You can install using the the Google IMA Library SWC file via the following steps.

Adobe Flash IDE Installation Instructions

  1. Download the Google IMA Library SWC distribution file.
  2. Create a Google IMA directory in one of the following locations and copy the SWC file there:
    • (Windows) C:\Program Files\Adobe\Adobe Flash CS3(4)\(language)\Configuration\Components

      Note: There is a separate directory for each language supported in Flash CS3/CS4. Save the SWC in the language directory that you are using to author Flash content.

    • (Mac OS X) Macintosh HD/Applications/Adobe Flash CS3(4)/Configuration/Components
  3. The Google IMA Library appears in the Component window of the Adobe Flash IDE under the Google IMA folder.

FlashDevelop Installation Instructions

  1. Download the Google IMA Library SWC distribution file.
  2. Open the FlashDevelop IDE and right-click on your project tree
  3. Select Add > Library asset and navigate to instream_lib_as3.swc you downloaded in Step 1
  4. The Google IMA Library SWC is now included in your FlashDevelop project.

Flex Builder Installation Instructions

  1. Download the Google IMA Library SWC distribution file.
  2. Open the Flex Builder IDE and select Project > Properties > Flex Build Path.
  3. On the Library tab, click the Add SWC button and add the instream_lib_as3.swc to your project.

Back to top

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.