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.
This field will be set to false. If this field is set to true when deprecated, all positive first-party audience targeting assigned to this line item will be replaced with negative targeting of the same first-party audiences to ensure the continued exclusion of those audiences.
TargetingExpansionLevel
The Optimized targeting setting.
Enums
TARGETING_EXPANSION_LEVEL_UNSPECIFIED
The optimized targeting setting is not specified or is unknown in this version.
NO_EXPANSION
Optimized targeting is off.
LEAST_EXPANSION
Optimized targeting is on.
SOME_EXPANSION
If used, will automatically be set to LEAST_EXPANSION.
BALANCED_EXPANSION
If used, will automatically be set to LEAST_EXPANSION.
MORE_EXPANSION
If used, will automatically be set to LEAST_EXPANSION.
MOST_EXPANSION
If used, will automatically be set to LEAST_EXPANSION.
[null,null,["Last updated 2024-09-18 UTC."],[[["\u003cp\u003eDisplay & Video 360 API v2 is sunset and replaced with new options.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTargetingExpansionConfig\u003c/code\u003e controls optimized targeting settings for line items.\u003c/p\u003e\n"],["\u003cp\u003eOptimized targeting can be turned on or off using \u003ccode\u003etargetingExpansionLevel\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eexcludeFirstPartyAudience\u003c/code\u003e is deprecated and will be set to \u003ccode\u003efalse\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eSeveral \u003ccode\u003eTargetingExpansionLevel\u003c/code\u003e enums are deprecated and will default to \u003ccode\u003eLEAST_EXPANSION\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# TargetingExpansionConfig\n\n| Display \\& Video 360 API v2 has sunset.\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [TargetingExpansionLevel](#TargetingExpansionLevel)\n\nSettings that control the [optimized targeting](//support.google.com/displayvideo/answer/12060859) settings of the line item.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"targetingExpansionLevel\": enum (/display-video/api/reference/rest/v2/TargetingExpansionConfig#TargetingExpansionLevel), \"excludeFirstPartyAudience\": boolean } ``` |\n\n| Fields ||\n|----------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `targetingExpansionLevel` | `enum (`[TargetingExpansionLevel](/display-video/api/reference/rest/v2/TargetingExpansionConfig#TargetingExpansionLevel)`)` Required. Whether optimized targeting is turned on. This field supports the following values: - `NO_EXPANSION`: optimized targeting is turned off - `LEAST_EXPANSION`: optimized targeting is turned on If this field is set to any other value, it will automatically be set to `LEAST_EXPANSION`. `NO_EXPANSION` will be the default value for the field and will be automatically assigned if you do not set the field. |\n| `excludeFirstPartyAudience` **(deprecated)** | `boolean` | This item is deprecated! Whether to exclude first-party audiences from use in targeting expansion. This field was deprecated with the launch of [optimized targeting](//support.google.com/displayvideo/answer/12060859). This field will be set to `false`. If this field is set to `true` when deprecated, all positive first-party audience targeting assigned to this line item will be replaced with negative targeting of the same first-party audiences to ensure the continued exclusion of those audiences. |\n\nTargetingExpansionLevel\n-----------------------\n\nThe Optimized targeting setting.\n\n| Enums ||\n|-----------------------------------------|-------------------------------------------------------------------------------------|\n| `TARGETING_EXPANSION_LEVEL_UNSPECIFIED` | The optimized targeting setting is not specified or is unknown in this version. |\n| `NO_EXPANSION` | Optimized targeting is off. |\n| `LEAST_EXPANSION` | Optimized targeting is on. |\n| `SOME_EXPANSION` | If used, will automatically be set to `LEAST_EXPANSION`. | This item is deprecated! |\n| `BALANCED_EXPANSION` | If used, will automatically be set to `LEAST_EXPANSION`. | This item is deprecated! |\n| `MORE_EXPANSION` | If used, will automatically be set to `LEAST_EXPANSION`. | This item is deprecated! |\n| `MOST_EXPANSION` | If used, will automatically be set to `LEAST_EXPANSION`. | This item is deprecated! |"]]