החל מ-
8 בספטמבר 2025, בכל פריט חדש צריך להצהיר אם הוא יציג מודעות פוליטיות באיחוד האירופי (EU) או לא. העלאות של קובצי SDF ושל Display & Video 360 API שלא כוללות הצהרות ייכשלו. מידע נוסף על אופן העדכון של האינטגרציה כדי להוסיף את ההצהרה הזו זמין ב
דף ההוצאה משימוש.
Method: advertisers.locationLists.assignedLocations.bulkEdit
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
בקשת HTTP
POST https://displayvideo.googleapis.com/v4/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations:bulkEdit
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
advertiserId |
string (int64 format)
חובה. המזהה של המפרסם ב-DV360 שאליו שייכת רשימת המיקומים.
|
locationListId |
string (int64 format)
חובה. המזהה של רשימת המיקומים שאליה הוקצו המשימות האלה.
|
גוף הבקשה
גוף הבקשה מכיל נתונים במבנה הבא:
ייצוג ב-JSON |
{
"deletedAssignedLocations": [
string
],
"createdAssignedLocations": [
{
object (AssignedLocation )
}
]
} |
שדות |
deletedAssignedLocations[] |
string (int64 format)
המזהים של המיקומים שהוקצו למחיקה בכמות גדולה, שצוינו כרשימה של ערכים מסוג assignedLocationId .
|
createdAssignedLocations[] |
object (AssignedLocation )
המיקומים שהוקצו ליצירה בכמות גדולה, שצוינו כרשימה של משאבי AssignedLocation .
|
גוף התשובה
אם הפעולה מצליחה, גוף התגובה מכיל נתונים במבנה הבא:
שדות |
assignedLocations[] |
object (AssignedLocation )
רשימת המיקומים שהוקצו ונוצרו בהצלחה. אם הרשימה הזו ריקה, היא לא תופיע.
|
היקפי הרשאה
נדרשת הרשאת OAuth ברמה הבאה:
https://www.googleapis.com/auth/display-video
מידע נוסף זמין בOAuth 2.0 Overview.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[],[],null,["# Method: advertisers.locationLists.assignedLocations.bulkEdit\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.BulkEditAssignedLocationsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nBulk edits multiple assignments between locations and a single location list.\n\nThe operation will delete the assigned locations provided in [deletedAssignedLocations](/display-video/api/reference/rest/v4/advertisers.locationLists.assignedLocations/bulkEdit#body.request_body.FIELDS.deleted_assigned_locations) and then create the assigned locations provided in [createdAssignedLocations](/display-video/api/reference/rest/v4/advertisers.locationLists.assignedLocations/bulkEdit#body.request_body.FIELDS.created_assigned_locations).\n\n### HTTP request\n\n`POST https://displayvideo.googleapis.com/v4/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations:bulkEdit`\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 DV360 advertiser to which the location list belongs. |\n| `locationListId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Required. The ID of the location list to which these assignments are assigned. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"deletedAssignedLocations\": [ string ], \"createdAssignedLocations\": [ { object (/display-video/api/reference/rest/v4/advertisers.locationLists.assignedLocations#AssignedLocation) } ] } ``` |\n\n| Fields ||\n|------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `deletedAssignedLocations[]` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The IDs of the assigned locations to delete in bulk, specified as a list of [assignedLocationId](/display-video/api/reference/rest/v4/advertisers.locationLists.assignedLocations#AssignedLocation.FIELDS.assigned_location_id) values. |\n| `createdAssignedLocations[]` | `object (`[AssignedLocation](/display-video/api/reference/rest/v4/advertisers.locationLists.assignedLocations#AssignedLocation)`)` The assigned locations to create in bulk, specified as a list of [AssignedLocation](/display-video/api/reference/rest/v4/advertisers.locationLists.assignedLocations#AssignedLocation) resources. |\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"assignedLocations\": [ { object (/display-video/api/reference/rest/v4/advertisers.locationLists.assignedLocations#AssignedLocation) } ] } ``` |\n\n| Fields ||\n|-----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `assignedLocations[]` | `object (`[AssignedLocation](/display-video/api/reference/rest/v4/advertisers.locationLists.assignedLocations#AssignedLocation)`)` The list of assigned locations 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](/identity/protocols/OAuth2)."]]