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.
[[["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 2025-03-27 UTC."],[],["The Display & Video 360 API v4, in beta, allows assigning a targeting option to an advertiser via a POST request. The URL specifies the advertiser's ID and targeting type using path parameters. The request body requires an `AssignedTargetingOption` instance, and a successful request returns a newly created `AssignedTargetingOption`. Supported targeting types include channel, digital content label exclusion, OMID, sensitive category exclusion, and keyword. Authorization requires the `https://www.googleapis.com/auth/display-video` scope.\n"],null,["- [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\nHTTP request\n\n`POST https://displayvideo.googleapis.com/v4/advertisers/{advertiserId}/targetingTypes/{targetingType}/assignedTargetingOptions`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nPath 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/v4/TargetingType)`)` Required. Identifies the type of this assigned targeting option. Supported targeting types: - [`TARGETING_TYPE_CHANNEL`](/display-video/api/reference/rest/v4/TargetingType#ENUM_VALUES.TARGETING_TYPE_CHANNEL) - [`TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION`](/display-video/api/reference/rest/v4/TargetingType#ENUM_VALUES.TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION) - [`TARGETING_TYPE_OMID`](/display-video/api/reference/rest/v4/TargetingType#ENUM_VALUES.TARGETING_TYPE_OMID) - [`TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`](/display-video/api/reference/rest/v4/TargetingType#ENUM_VALUES.TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION) - [`TARGETING_TYPE_KEYWORD`](/display-video/api/reference/rest/v4/TargetingType#ENUM_VALUES.TARGETING_TYPE_KEYWORD) |\n\nRequest body\n\nThe request body contains an instance of [AssignedTargetingOption](/display-video/api/reference/rest/v4/advertisers.adGroups.targetingTypes.assignedTargetingOptions#AssignedTargetingOption).\n\nResponse body\n\nIf successful, the response body contains a newly created instance of [AssignedTargetingOption](/display-video/api/reference/rest/v4/advertisers.adGroups.targetingTypes.assignedTargetingOptions#AssignedTargetingOption).\n\nAuthorization 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)."]]