[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eDisplay & Video 360 API v1 has been sunset and this documentation details assigning a targeting option to a partner using the updated API.\u003c/p\u003e\n"],["\u003cp\u003eThe API utilizes an HTTP POST request to \u003ccode\u003ehttps://displayvideo.googleapis.com/v1/partners/{partnerId}/targetingTypes/{targetingType}/assignedTargetingOptions\u003c/code\u003e to create the assignment.\u003c/p\u003e\n"],["\u003cp\u003eRequired parameters include \u003ccode\u003epartnerId\u003c/code\u003e and \u003ccode\u003etargetingType\u003c/code\u003e which specify the target partner and the type of targeting being assigned.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain an \u003ccode\u003eAssignedTargetingOption\u003c/code\u003e object defining the specifics of the assignment, and a successful response will return the created \u003ccode\u003eAssignedTargetingOption\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/display-video\u003c/code\u003e OAuth scope for access.\u003c/p\u003e\n"]]],["This document details the process of assigning a targeting option to a partner using the Display & Video API. It outlines that a `POST` request is made to `https://displayvideo.googleapis.com/v1/partners/{partnerId}/targetingTypes/{targetingType}/assignedTargetingOptions`. The `partnerId` and `targetingType` are required path parameters. The request body should include an `AssignedTargetingOption` instance. A successful response returns a new `AssignedTargetingOption` instance. This operation requires OAuth scope `https://www.googleapis.com/auth/display-video`. The v1 version of this API has been sunset.\n"],null,["# Method: partners.targetingTypes.assignedTargetingOptions.create\n\n| Display \\& Video 360 API v1 has been sunset.\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization Scopes](#body.aspect)\n- [Try it!](#try-it)\n\nAssigns a targeting option to a partner. Returns the assigned targeting option if successful.\n\n### HTTP request\n\n`POST https://displayvideo.googleapis.com/v1/partners/{partnerId}/targetingTypes/{targetingType}/assignedTargetingOptions`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `partnerId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Required. The ID of the partner. |\n| `targetingType` | `enum (`[TargetingType](/display-video/api/reference/rest/v1/TargetingType)`)` Required. Identifies the type of this assigned targeting option. Supported targeting types: - [`TARGETING_TYPE_CHANNEL`](/display-video/api/reference/rest/v1/TargetingType#ENUM_VALUES.TARGETING_TYPE_CHANNEL) |\n\n### Request body\n\nThe request body contains an instance of [AssignedTargetingOption](/display-video/api/reference/rest/v1/advertisers.campaigns.targetingTypes.assignedTargetingOptions#AssignedTargetingOption).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [AssignedTargetingOption](/display-video/api/reference/rest/v1/advertisers.campaigns.targetingTypes.assignedTargetingOptions#AssignedTargetingOption).\n\n### Authorization Scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/display-video`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]