Starting
September 8, 2025, every new line item will need to declare whether or not they will serve Eurpoean Union (EU) political ads. Display & Video 360 API and SDF uploads that don't provide declarations will fail. See our
deprecations page for more details on how to update your integration to make this declaration.
Method: partners.editAssignedTargetingOptions
Stay organized with collections
Save and categorize content based on your preferences.
HTTP request
POST https://displayvideo.googleapis.com/v4/partners/{partnerId}:editAssignedTargetingOptions
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
partnerId |
string (int64 format)
Required. The ID of the partner.
|
Request body
The request body contains data with the following structure:
Fields |
deleteRequests[] |
object (DeleteAssignedTargetingOptionsRequest )
The assigned targeting options to delete in batch, specified as a list of DeleteAssignedTargetingOptionsRequest . Supported targeting types:
|
createRequests[] |
object (CreateAssignedTargetingOptionsRequest )
The assigned targeting options to create in batch, specified as a list of CreateAssignedTargetingOptionsRequest . Supported targeting types:
|
Response body
If successful, the response body contains data with the following structure:
Fields |
createdAssignedTargetingOptions[] |
object (AssignedTargetingOption )
The list of assigned targeting options that have been successfully created. This list will be absent if empty.
|
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/display-video
For more information, see the OAuth 2.0 Overview.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-27 UTC.
[null,null,["Last updated 2025-03-27 UTC."],[],[],null,["# Method: partners.editAssignedTargetingOptions\n\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.BulkEditPartnerAssignedTargetingOptionsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nEdits targeting options under a single partner. The operation will delete the assigned targeting options provided in [BulkEditPartnerAssignedTargetingOptionsRequest.deleteRequests](/display-video/api/reference/rest/v4/partners/editAssignedTargetingOptions#body.request_body.FIELDS.delete_requests) and then create the assigned targeting options provided in [BulkEditPartnerAssignedTargetingOptionsRequest.createRequests](/display-video/api/reference/rest/v4/partners/editAssignedTargetingOptions#body.request_body.FIELDS.create_requests) .\n\n### HTTP request\n\n`POST https://displayvideo.googleapis.com/v4/partners/{partnerId}:editAssignedTargetingOptions`\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\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/v4/DeleteAssignedTargetingOptionsRequest) } ], \"createRequests\": [ { object (/display-video/api/reference/rest/v4/CreateAssignedTargetingOptionsRequest) } ] } ``` |\n\n| Fields ||\n|--------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `deleteRequests[]` | `object (`[DeleteAssignedTargetingOptionsRequest](/display-video/api/reference/rest/v4/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/v4/TargetingType#ENUM_VALUES.TARGETING_TYPE_CHANNEL) |\n| `createRequests[]` | `object (`[CreateAssignedTargetingOptionsRequest](/display-video/api/reference/rest/v4/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/v4/TargetingType#ENUM_VALUES.TARGETING_TYPE_CHANNEL) |\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/v4/advertisers.adGroups.targetingTypes.assignedTargetingOptions#AssignedTargetingOption) } ] } ``` |\n\n| Fields ||\n|-------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `createdAssignedTargetingOptions[]` | `object (`[AssignedTargetingOption](/display-video/api/reference/rest/v4/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)."]]