Page Summary
-
This webpage details how to retrieve a specific YouTube campaign using its ID.
-
The request is made using a
GETHTTP request to a specific URL, including the campaign ID in the path. -
It uses the
onBehalfOfContentOwnerquery parameter to specify the content owner when the user manages multiple accounts. -
The request body must be empty, and the successful response body will contain campaign details.
-
Retrieving campaigns requires authorization with the
https://www.googleapis.com/auth/youtubepartnerOAuth scope.
- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Retrieves a particular campaign for an owner.
HTTP request
GET https://youtubepartner.googleapis.com/youtube/partner/v1/campaigns/{campaignId}
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
campaignId |
The |
Query parameters
| Parameters | |
|---|---|
onBehalfOfContentOwner |
The |
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/youtubepartner
For more information, see the OAuth 2.0 Overview.