Mulai 8 September 2025, setiap item baris baru harus menyatakan apakah item baris tersebut akan menayangkan iklan politik Uni Eropa (EU) atau tidak. Upload SDF dan API Display & Video 360 yang tidak memberikan pernyataan akan gagal. Lihat halaman penghentian penggunaan kami untuk mengetahui detail selengkapnya tentang cara memperbarui integrasi Anda untuk membuat pernyataan ini.
[null,null,["Terakhir diperbarui pada 2025-07-25 UTC."],[[["\u003cp\u003eEdits targeting options for a single advertiser by deleting and creating assigned targeting options in batches.\u003c/p\u003e\n"],["\u003cp\u003eUses an HTTP POST request to the endpoint \u003ccode\u003ehttps://displayvideo.googleapis.com/v3/advertisers/{advertiserId}:editAssignedTargetingOptions\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eRequires specifying the \u003ccode\u003eadvertiserId\u003c/code\u003e as a path parameter and providing \u003ccode\u003edeleteRequests\u003c/code\u003e and \u003ccode\u003ecreateRequests\u003c/code\u003e in the request body.\u003c/p\u003e\n"],["\u003cp\u003eSupports various targeting types including channel, digital content label exclusion, OMIO, sensitive category exclusion, and keyword.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/display-video\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["This content details an API endpoint for editing targeting options under a specific advertiser. It uses a `POST` request to the provided URL, requiring the advertiser's ID as a path parameter. The request body, in JSON format, contains lists of `deleteRequests` and `createRequests` to specify targeting options to be removed or added. The response body returns a list of `createdAssignedTargetingOptions`. Five targeting types are supported. The request also requires an OAuth scope.\n"],null,["# Method: advertisers.editAssignedTargetingOptions\n\n| Display \\& Video 360 API is deprecated and will sunset on **October 7, 2025** . Migrate to [Display \\& Video 360 API v4](/display-video/api/reference/rest/v4) before sunset to avoid an interruption in service.\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n - [JSON representation](#body.BulkEditAdvertiserAssignedTargetingOptionsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nEdits targeting options under a single advertiser. The operation will delete the assigned targeting options provided in [BulkEditAdvertiserAssignedTargetingOptionsRequest.delete_requests](/display-video/api/reference/rest/v3/advertisers/editAssignedTargetingOptions#body.request_body.FIELDS.delete_requests) and then create the assigned targeting options provided in [BulkEditAdvertiserAssignedTargetingOptionsRequest.create_requests](/display-video/api/reference/rest/v3/advertisers/editAssignedTargetingOptions#body.request_body.FIELDS.create_requests) .\n\n### HTTP request\n\n`POST https://displayvideo.googleapis.com/v3/advertisers/{advertiserId}:editAssignedTargetingOptions`\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\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"deleteRequests\": [ { object (/display-video/api/reference/rest/v3/DeleteAssignedTargetingOptionsRequest) } ], \"createRequests\": [ { object (/display-video/api/reference/rest/v3/CreateAssignedTargetingOptionsRequest) } ] } ``` |\n\n| Fields ||\n|--------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `deleteRequests[]` | `object (`[DeleteAssignedTargetingOptionsRequest](/display-video/api/reference/rest/v3/DeleteAssignedTargetingOptionsRequest)`)` The assigned targeting options to delete in batch, specified as a list of `DeleteAssignedTargetingOptionsRequest`. Supported targeting types: - [`TARGETING_TYPE_CHANNEL`](/display-video/api/reference/rest/v3/TargetingType#ENUM_VALUES.TARGETING_TYPE_CHANNEL) - [`TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION`](/display-video/api/reference/rest/v3/TargetingType#ENUM_VALUES.TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION) - [`TARGETING_TYPE_OMID`](/display-video/api/reference/rest/v3/TargetingType#ENUM_VALUES.TARGETING_TYPE_OMID) - [`TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`](/display-video/api/reference/rest/v3/TargetingType#ENUM_VALUES.TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION) - [`TARGETING_TYPE_KEYWORD`](/display-video/api/reference/rest/v3/TargetingType#ENUM_VALUES.TARGETING_TYPE_KEYWORD) |\n| `createRequests[]` | `object (`[CreateAssignedTargetingOptionsRequest](/display-video/api/reference/rest/v3/CreateAssignedTargetingOptionsRequest)`)` The assigned targeting options to create in batch, specified as a list of `CreateAssignedTargetingOptionsRequest`. Supported targeting types: - [`TARGETING_TYPE_CHANNEL`](/display-video/api/reference/rest/v3/TargetingType#ENUM_VALUES.TARGETING_TYPE_CHANNEL) - [`TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION`](/display-video/api/reference/rest/v3/TargetingType#ENUM_VALUES.TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION) - [`TARGETING_TYPE_OMID`](/display-video/api/reference/rest/v3/TargetingType#ENUM_VALUES.TARGETING_TYPE_OMID) - [`TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`](/display-video/api/reference/rest/v3/TargetingType#ENUM_VALUES.TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION) - [`TARGETING_TYPE_KEYWORD`](/display-video/api/reference/rest/v3/TargetingType#ENUM_VALUES.TARGETING_TYPE_KEYWORD) |\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"createdAssignedTargetingOptions\": [ { object (/display-video/api/reference/rest/v3/advertisers.adGroups.targetingTypes.assignedTargetingOptions#AssignedTargetingOption) } ] } ``` |\n\n| Fields ||\n|-------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `createdAssignedTargetingOptions[]` | `object (`[AssignedTargetingOption](/display-video/api/reference/rest/v3/advertisers.adGroups.targetingTypes.assignedTargetingOptions#AssignedTargetingOption)`)` The list of assigned targeting options that have been successfully created. This list will be absent if empty. |\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](/identity/protocols/OAuth2)."]]