The DCM/DFA Reporting and Trafficking API v2.6 is deprecated and will be sunset on May 31st, 2017. All users must migrate to a newer API version by that date.

Get Started

The DCM/DFA Reporting and Trafficking API provides programmatic access to information from your DoubleClick Campaign Manager (DCM) account. It's used to manage and create campaigns and reports, just as you would through the DCM and Report Builder web services.

This guide describes how to get started with the DCM/DFA Reporting and Trafficking API.


Before using the DCM/DFA Reporting and Trafficking API, there are a few prerequisite steps you'll need to satisfy:

  1. You must have a DCM account. See Advertisers/Agencies for signup information.
  2. Your DCM account must be enabled for API Access. Contact your DoubleClick representative or the DCM support team for assistance.
  3. You must have a user profile with access to this account. Have your DCM account administrator create a user profile associated with this account.

Creating a project

To get started using the DCM/DFA Reporting and Trafficking API, you need to first create or select a project in the Google API Console and enable the API. Using this link guides you through the process and activates the DCM/DFA Reporting and Trafficking API automatically.

Authorizing requests

All requests you make to the DCM/DFA Reporting and Trafficking API must include an access token, which identifies your application to Google and controls your access to the various services offered by the API.

For more details about access and authorization, refer to the Authorize Requests guide.

Tip: You can visit the OAuth 2.0 Playground to explore authorization concepts interactively.

Setting up OAuth 2.0

To make authorized requests from your application, you need an OAuth 2.0 client ID, which your application uses when requesting an OAuth 2.0 access token. The following instructions guide you through the process of creating an OAuth 2.0 client ID to use with the installed application flow. For instructions on generating credentials for use with the service account flow, refer to the Service Accounts guide.

  1. Follow the steps to configure a Google API Console project.
  2. Open the Credentials page in the API Console.
  3. Click Create credentials > OAuth client ID.
  4. Select Other when prompted to select an application type and enter any additional required information.
    • If this is your first time creating a client ID, besides being able to select your application type, you can configure your consent screen by clicking the Configure consent screen button. You will not get a prompt to configure your consent screen again after you do it the first time, although this information can be updated at any time.
  5. Click Create.

When finished, you'll be presented with a client ID and client secret that your application can use to generate an OAuth 2.0 access token. You may optionally choose to download this information in JSON format.

Finding sample code

Links to sample code are available on the Client Libraries page. To use these samples, follow the steps in the authorization guide to register your application with Google.

Common tasks

Ready to start making requests? Here are some of the more common actions you might need to take.

Tip: The API Reference includes an embedded API Explorer on every method detail page. Use these embedded explorers to test API calls.

User profiles

  • Not sure what your user profile ID is? Look it up with a request to UserProfiles.list.



Send feedback about...

DoubleClick Campaign Manager
DoubleClick Campaign Manager