Notification

Please make sure that you visit Your AdSense Page, where you can find personalised information about your account to help you succeed with AdSense.

Get the code for a video tag for AdSense for games

You can use the AdSense for games tag generator to easily create ad tags for your web-based gaming content.

Note: You can manually override any parameters in the tag that you generate, and also add optional parameters, to get your desired ad setup. For more information, see AdSense for games tag parameters for IMA3.
  1. Sign in to your AdSense account.
  2. Click Ads for Games.
  3. On the 'Get code' page, enter a description URL for the video tag, such as http://www.simplevideoad.com/golf.html. The description URL is usually a site that points to where the ad tag and gaming content will serve.
  4. Select whether your video ad type is a 'Standard instream' or a 'Skippable' ad.

    You can assign a "Maximum duration" to the ad type that you select.

  5. Decide on the overlay type. You can select from 'Text' and/or 'Image'.
  6. Identify whether your video position is 'Pre-roll', 'Mid-roll' or 'Post-roll'.

    When you select the 'Mid-roll' video position, you can specify a value in seconds.

  7. Select the video ad technology:
    • Direct SDK: If your ad setup is integrated with the Google IMA SDK.
    • IMA Adapter: If your ad setup is compliant with VAST and VPAID 2 JS standards.
  8. Copy and paste the generated code into your game (make sure that it complies with the AdSense for games policies).
    Sample 'Direct SDK' tag

    https://googleads.g.doubleclick.net/pagead/ads?ad_type=video_text_image&client=ca-games-pub-4968145218643279&videoad_start_delay=0&description_url=http%3A%2F%2Fwww.google.com&max_ad_duration=30000&adtest=on

    Sample 'IMA Adapter' tag

    https://ima3vpaid.appspot.com/?adTagUrl=https%3A%2F%2Fgoogleads.g.doubleclick.net%2Fpagead%2Fads%3Fad_type%3Dvideo_text_image%26client%3Dca-games-pub-4968145218643279%26videoad_start_delay%3D0%26description_url%3Dhttp%253A%252F%252Fwww.google.com%26max_ad_duration%3D30000%26adtest%3Don&type=js

    Tip: You can now take the code generated, and put this in the ad setup for your web-based game. If you want to test your new ad code, try using our Video Suite Inspector.

Was this helpful?

How can we improve it?
true
Your AdSense page

Introducing AdSense Page: a new resource in which you can find personalised information and new opportunities in your account to help to succeed with AdSense.

Search
Clear search
Close search
Main menu
17823964183340501848
true
Search Help Centre
true
true
true
true
true
157
false
false