Method: campaigns.insert
Stay organized with collections
Save and categorize content based on your preferences.
campaigns.insert a new campaign for an owner using the specified campaign data.
HTTP request
POST https://youtubepartner.googleapis.com/youtube/partner/v1/campaigns
The URL uses gRPC Transcoding
syntax.
Query parameters
Parameters |
onBehalfOfContentOwner
|
string
The onBehalfOfContentOwner
parameter identifies the content owner that the user is acting on behalf of. This parameter supports users whose accounts are associated with multiple content owners.
|
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/youtubepartner
For more information, see the OAuth 2.0 Overview
.
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[[["\u003cp\u003eThis endpoint facilitates the creation of a new campaign for a content owner.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a POST method to the specified URL: \u003ccode\u003ehttps://youtubepartner.googleapis.com/youtube/partner/v1/campaigns\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eonBehalfOfContentOwner\u003c/code\u003e query parameter specifies the content owner the user is acting on behalf of.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain a \u003ccode\u003eCampaign\u003c/code\u003e instance, and a successful response returns the newly created \u003ccode\u003eCampaign\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/youtubepartner\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],["This content outlines the process for inserting a new campaign via a POST request to the YouTube Partner API. The endpoint is `https://youtubepartner.googleapis.com/youtube/partner/v1/campaigns`. The `onBehalfOfContentOwner` query parameter specifies the content owner. The request body requires `Campaign` data. A successful operation returns a new `Campaign` instance in the response body. Authorization requires the `https://www.googleapis.com/auth/youtubepartner` OAuth scope.\n"],null,["# Method: campaigns.insert\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\ncampaigns.insert a new campaign for an owner using the specified campaign data.\n\n### HTTP request\n\n`POST https://youtubepartner.googleapis.com/youtube/partner/v1/campaigns`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Query parameters\n\n| Parameters ||\n|--------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `onBehalfOfContentOwner` | `string` The `onBehalfOfContentOwner` parameter identifies the content owner that the user is acting on behalf of. This parameter supports users whose accounts are associated with multiple content owners. |\n\n### Request body\n\nThe request body contains an instance of [Campaign](/youtube/partner/reference/rest/v1/campaigns#Campaign).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Campaign](/youtube/partner/reference/rest/v1/campaigns#Campaign).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/youtubepartner`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]