Method: campaigns.insert

  • Inserts a new campaign via a POST request to the specified endpoint.

  • Requires a path parameter specifying the user profile ID.

  • The request body should contain an instance of a Campaign object as defined in the provided link.

  • A successful response returns the newly created Campaign object.

  • The operation needs authorization with the dfatrafficking scope.

Inserts a new campaign.

HTTP request

POST https://dfareporting.googleapis.com/dfareporting/v4/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