[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eDisplay & Video 360 API v2 is sunset and this page outlines how to assign a targeting option to an advertiser using the API.\u003c/p\u003e\n"],["\u003cp\u003eThe API request requires specifying the advertiser ID and targeting type as path parameters and the assigned targeting option details in the request body.\u003c/p\u003e\n"],["\u003cp\u003eA successful API call returns the assigned targeting option details in the response body.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization is required using the \u003ccode\u003ehttps://www.googleapis.com/auth/display-video\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],["This describes how to assign a targeting option to an advertiser via a `POST` request to a specific URL. The URL requires `advertiserId` and `targetingType` as path parameters. Supported targeting types include `CHANNEL`, `DIGITAL_CONTENT_LABEL_EXCLUSION`, `OMID`, `SENSITIVE_CATEGORY_EXCLUSION`, and `KEYWORD`. The request body should include an `AssignedTargetingOption` instance, and a successful response will contain a newly created `AssignedTargetingOption` instance. This action requires `https://www.googleapis.com/auth/display-video` OAuth scope.\n"],null,["# Method: advertisers.targetingTypes.assignedTargetingOptions.create\n\n| Display \\& Video 360 API v2 has 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 an advertiser. Returns the assigned targeting option if successful.\n\n### HTTP request\n\n`POST https://displayvideo.googleapis.com/v2/advertisers/{advertiserId}/targetingTypes/{targetingType}/assignedTargetingOptions`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `advertiserId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Required. The ID of the advertiser. |\n| `targetingType` | `enum (`[TargetingType](/display-video/api/reference/rest/v2/TargetingType)`)` Required. Identifies the type of this assigned targeting option. Supported targeting types: - [`TARGETING_TYPE_CHANNEL`](/display-video/api/reference/rest/v2/TargetingType#ENUM_VALUES.TARGETING_TYPE_CHANNEL) - [`TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION`](/display-video/api/reference/rest/v2/TargetingType#ENUM_VALUES.TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION) - [`TARGETING_TYPE_OMID`](/display-video/api/reference/rest/v2/TargetingType#ENUM_VALUES.TARGETING_TYPE_OMID) - [`TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`](/display-video/api/reference/rest/v2/TargetingType#ENUM_VALUES.TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION) - [`TARGETING_TYPE_KEYWORD`](/display-video/api/reference/rest/v2/TargetingType#ENUM_VALUES.TARGETING_TYPE_KEYWORD) |\n\n### Request body\n\nThe request body contains an instance of [AssignedTargetingOption](/display-video/api/reference/rest/v2/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/v2/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)."]]