Method: campaigns.get

  • Retrieves a single campaign using its unique ID.

  • Requires user profile ID and campaign ID as path parameters.

  • Returns a Campaign object in the response if successful.

  • Needs dfatrafficking OAuth scope for authorization.

Gets one campaign by ID.

HTTP request

GET https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/{profileId}/campaigns/{id}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
profileId

string (int64 format)

User profile ID associated with this request.

id

string (int64 format)

Campaign ID.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of Campaign.

Authorization scopes

Requires the following OAuth scope:

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