اعتبارًا من 8 سبتمبر 2025، يجب أن يحدّد كل عنصر جديد في الحملة ما إذا كان سيعرض إعلانات سياسية في الاتحاد الأوروبي أم لا. ستتعذّر عمليات تحميل واجهة برمجة التطبيقات "مساحة العرض والفيديو 360" وملفات SDF التي لا تقدّم بيانات الإفصاح. يمكنك الاطّلاع على صفحة الإيقاف النهائي لمزيد من التفاصيل حول كيفية تعديل عملية الدمج لإجراء هذا البيان.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eThis page describes the \u003ccode\u003eeditAssignedTargetingOptions\u003c/code\u003e method for the Display & Video 360 API, which has been sunset.\u003c/p\u003e\n"],["\u003cp\u003eThe method allows for batch editing of targeting options under a single advertiser, including deleting and creating options.\u003c/p\u003e\n"],["\u003cp\u003eSupported targeting types include Channel, Digital Content Label Exclusion, OMID, Sensitive Category Exclusion, and Keyword.\u003c/p\u003e\n"],["\u003cp\u003eIt requires the \u003ccode\u003ehttps://www.googleapis.com/auth/display-video\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful responses will contain a list of the newly created assigned targeting options.\u003c/p\u003e\n"]]],["This document details the process of editing targeting options for an advertiser using the Display & Video 360 API. The core action is to update assigned targeting options via the `editAssignedTargetingOptions` method, which deletes specified options and creates new ones. The request requires an `advertiserId` and includes `deleteRequests` and `createRequests` lists, supporting targeting types like channels, keyword and sensitive category. The successful response provides a list of newly created targeting options. The API uses POST method and requires OAuth 2.0 authorization.\n"],null,["# Method: advertisers.editAssignedTargetingOptions\n\n| Display \\& Video 360 API v2 has sunset.\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- [Try it!](#try-it)\n\nEdits targeting options under a single advertiser. The operation will delete the assigned targeting options provided in [BulkEditAdvertiserAssignedTargetingOptionsRequest.delete_requests](/display-video/api/reference/rest/v2/advertisers/editAssignedTargetingOptions#body.request_body.FIELDS.delete_requests) and then create the assigned targeting options provided in [BulkEditAdvertiserAssignedTargetingOptionsRequest.create_requests](/display-video/api/reference/rest/v2/advertisers/editAssignedTargetingOptions#body.request_body.FIELDS.create_requests) .\n\n### HTTP request\n\n`POST https://displayvideo.googleapis.com/v2/advertisers/{advertiserId}:editAssignedTargetingOptions`\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/reference/rest/v2/DeleteAssignedTargetingOptionsRequest) } ], \"createRequests\": [ { object (/display-video/api/reference/rest/v2/CreateAssignedTargetingOptionsRequest) } ] } ``` |\n\n| Fields ||\n|--------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `deleteRequests[]` | `object (`[DeleteAssignedTargetingOptionsRequest](/display-video/api/reference/rest/v2/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/v2/TargetingType#ENUM_VALUES.TARGETING_TYPE_CHANNEL) - [`TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION`](/display-video/api/reference/rest/v2/TargetingType#ENUM_VALUES.TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION) - [`TARGETING_TYPE_OMID`](/display-video/api/reference/rest/v2/TargetingType#ENUM_VALUES.TARGETING_TYPE_OMID) - [`TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`](/display-video/api/reference/rest/v2/TargetingType#ENUM_VALUES.TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION) - [`TARGETING_TYPE_KEYWORD`](/display-video/api/reference/rest/v2/TargetingType#ENUM_VALUES.TARGETING_TYPE_KEYWORD) |\n| `createRequests[]` | `object (`[CreateAssignedTargetingOptionsRequest](/display-video/api/reference/rest/v2/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/v2/TargetingType#ENUM_VALUES.TARGETING_TYPE_CHANNEL) - [`TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION`](/display-video/api/reference/rest/v2/TargetingType#ENUM_VALUES.TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION) - [`TARGETING_TYPE_OMID`](/display-video/api/reference/rest/v2/TargetingType#ENUM_VALUES.TARGETING_TYPE_OMID) - [`TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`](/display-video/api/reference/rest/v2/TargetingType#ENUM_VALUES.TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION) - [`TARGETING_TYPE_KEYWORD`](/display-video/api/reference/rest/v2/TargetingType#ENUM_VALUES.TARGETING_TYPE_KEYWORD) |\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/v2/advertisers.campaigns.targetingTypes.assignedTargetingOptions#AssignedTargetingOption) } ] } ``` |\n\n| Fields ||\n|-------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `createdAssignedTargetingOptions[]` | `object (`[AssignedTargetingOption](/display-video/api/reference/rest/v2/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)."]]