DoubleClick Campaigns Service (original) (raw)

The DoubleClick Campaigns service lets you use theDCM/DFA Reporting and Trafficking API in Google Apps Script. This API provides programmatic access to DoubleClick Campaign Manager (DCM) and DoubleClick Digital Marketing (DDM) Reporting.

This is an advanced service that must beenabled before use.

Reference

For detailed information on this service, see thereference documentation for the DCM/DFA Reporting and Trafficking API. Like all advanced services in Apps Script, the DoubleClick Campaigns service uses the same objects, methods, and parameters as the public API. For more information, seeHow method signatures are determined.

To report issues and find other support, see theDCM/DFA Reporting and Trafficking support guide.

Sample code

The following sample code usesversion 4 of the API.

Get a list of user profiles

This sample logs all of the user profiles available in the account.

Get a list of active campaigns

This sample logs names and ID's of all active campaigns. Note the use of paging tokens to retrieve the whole list.

Create a new advertiser and campaign

This sample creates a new advertiser, and creates a new campaign with that advertiser. The campaign is set to last for one month.