自
2025 年 9 月 8 日起,每个新订单项都需要声明是否会投放欧盟 (EU) 政治广告。Display & Video 360 API 和未提供声明的 SDF 上传操作将会失败。如需详细了解如何更新集成以进行此声明,请参阅我们的
弃用页面。
CreateAssignedTargetingOptionsRequest
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
应创建并添加的请求列表,其中指定了给定定位类型的定位选项。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eCreate and add assigned targeting options for a given targeting type using a JSON request.\u003c/p\u003e\n"],["\u003cp\u003eThe request must specify the targeting type and include an array of assigned targeting options.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003etargetingType\u003c/code\u003e field identifies the type of assigned targeting option using the \u003ccode\u003eTargetingType\u003c/code\u003e enum.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eassignedTargetingOptions\u003c/code\u003e field contains an array of \u003ccode\u003eAssignedTargetingOption\u003c/code\u003e objects representing the options to create and add.\u003c/p\u003e\n"]]],[],null,["# CreateAssignedTargetingOptionsRequest\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- [JSON representation](#SCHEMA_REPRESENTATION)\n\nA request listing which assigned targeting options of a given targeting type should be created and added.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"targetingType\": enum (/display-video/api/reference/rest/v3/TargetingType), \"assignedTargetingOptions\": [ { object (/display-video/api/reference/rest/v3/advertisers.adGroups.targetingTypes.assignedTargetingOptions#AssignedTargetingOption) } ] } ``` |\n\n| Fields ||\n|------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `targetingType` | `enum (`[TargetingType](/display-video/api/reference/rest/v3/TargetingType)`)` Required. Identifies the type of this assigned targeting option. |\n| `assignedTargetingOptions[]` | `object (`[AssignedTargetingOption](/display-video/api/reference/rest/v3/advertisers.adGroups.targetingTypes.assignedTargetingOptions#AssignedTargetingOption)`)` Required. The assigned targeting options to create and add. |"]]