Method: campaigns.insert

  • This page details how to insert a new campaign using a POST request to the specified URL.

  • The request requires a profileId as a path parameter, which is a string formatted as an int64.

  • The request body should contain an instance of a Campaign object.

  • A successful response will return a newly created instance of a Campaign object.

  • The process requires the https://www.googleapis.com/auth/dfatrafficking authorization scope.

Inserts a new campaign.

HTTP request

POST https://dfareporting.googleapis.com/dfareporting/v5/userprofiles/{profileId}/campaigns

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
profileId

string (int64 format)

User profile ID associated with this request.

Request body

The request body contains an instance of Campaign.

Response body

If successful, the response body contains a newly created instance of Campaign.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/dfatrafficking