Method: advertisers.bulkEditAdvertiserAssignedTargetingOptions
Stay organized with collections
Save and categorize content based on your preferences.
HTTP request
POST https://displayvideo.googleapis.com/v1beta2/advertisers/{advertiserId}:bulkEditAdvertiserAssignedTargetingOptions
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
advertiserId |
string (int64 format)
Required. The ID of the advertiser.
|
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 2024-09-18 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 2024-09-18 UTC."],[[["\u003cp\u003eThis API allows for bulk editing of targeting options under a single advertiser, enabling deletion and creation of assigned targeting options.\u003c/p\u003e\n"],["\u003cp\u003eThe request body includes separate lists for delete requests and create requests, each specifying the targeting options to remove or add.\u003c/p\u003e\n"],["\u003cp\u003eSupported targeting types include Channel, Digital Content Label Exclusion, OMID, and Sensitive Category Exclusion for both deletion and creation.\u003c/p\u003e\n"],["\u003cp\u003eA successful response returns a list of the newly created assigned targeting options, if any.\u003c/p\u003e\n"],["\u003cp\u003eThe operation requires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/display-video\u003c/code\u003e scope.\u003c/p\u003e\n"]]],[],null,["# Method: advertisers.bulkEditAdvertiserAssignedTargetingOptions\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.BulkEditAdvertiserAssignedTargetingOptionsResponse.SCHEMA_REPRESENTATION)\n- [Authorization Scopes](#body.aspect)\n\nBulk edits targeting options under a single advertiser. The operation will delete the assigned targeting options provided in [BulkEditAdvertiserAssignedTargetingOptionsRequest.delete_requests](/display-video/api/v1beta2/reference/rest/v1beta2/advertisers/bulkEditAdvertiserAssignedTargetingOptions#body.request_body.FIELDS.delete_requests) and then create the assigned targeting options provided in [BulkEditAdvertiserAssignedTargetingOptionsRequest.create_requests](/display-video/api/v1beta2/reference/rest/v1beta2/advertisers/bulkEditAdvertiserAssignedTargetingOptions#body.request_body.FIELDS.create_requests) .\n\n### HTTP request\n\n`POST https://displayvideo.googleapis.com/v1beta2/advertisers/{advertiserId}:bulkEditAdvertiserAssignedTargetingOptions`\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/v1beta2/reference/rest/v1beta2/DeleteAssignedTargetingOptionsRequest) } ], \"createRequests\": [ { object (/display-video/api/v1beta2/reference/rest/v1beta2/CreateAssignedTargetingOptionsRequest) } ] } ``` |\n\n| Fields ||\n|--------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `deleteRequests[]` | `object (`[DeleteAssignedTargetingOptionsRequest](/display-video/api/v1beta2/reference/rest/v1beta2/DeleteAssignedTargetingOptionsRequest)`)` The assigned targeting options to delete in batch, specified as a list of `DeleteAssignedTargetingOptionsRequest`. Supported targeting types: - [`TARGETING_TYPE_CHANNEL`](/display-video/api/v1beta2/reference/rest/v1beta2/TargetingType#ENUM_VALUES.TARGETING_TYPE_CHANNEL) - [`TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION`](/display-video/api/v1beta2/reference/rest/v1beta2/TargetingType#ENUM_VALUES.TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION) - [`TARGETING_TYPE_OMID`](/display-video/api/v1beta2/reference/rest/v1beta2/TargetingType#ENUM_VALUES.TARGETING_TYPE_OMID) - [`TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`](/display-video/api/v1beta2/reference/rest/v1beta2/TargetingType#ENUM_VALUES.TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION) |\n| `createRequests[]` | `object (`[CreateAssignedTargetingOptionsRequest](/display-video/api/v1beta2/reference/rest/v1beta2/CreateAssignedTargetingOptionsRequest)`)` The assigned targeting options to create in batch, specified as a list of `CreateAssignedTargetingOptionsRequest`. Supported targeting types: - [`TARGETING_TYPE_CHANNEL`](/display-video/api/v1beta2/reference/rest/v1beta2/TargetingType#ENUM_VALUES.TARGETING_TYPE_CHANNEL) - [`TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION`](/display-video/api/v1beta2/reference/rest/v1beta2/TargetingType#ENUM_VALUES.TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION) - [`TARGETING_TYPE_OMID`](/display-video/api/v1beta2/reference/rest/v1beta2/TargetingType#ENUM_VALUES.TARGETING_TYPE_OMID) - [`TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`](/display-video/api/v1beta2/reference/rest/v1beta2/TargetingType#ENUM_VALUES.TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION) |\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/v1beta2/reference/rest/v1beta2/advertisers.campaigns.targetingTypes.assignedTargetingOptions#AssignedTargetingOption) } ] } ``` |\n\n| Fields ||\n|-------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `createdAssignedTargetingOptions[]` | `object (`[AssignedTargetingOption](/display-video/api/v1beta2/reference/rest/v1beta2/advertisers.campaigns.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](https://developers.google.com/identity/protocols/OAuth2)."]]