Display- und Video 360 API Version 2 wird eingestellt. Verwenden Sie Display- und Video 360 API v3. Eine Anleitung zur Migration von Version 2 zu Version 3 finden Sie in unserer Migrationsanleitung.
Die ID des Werbetreibenden, dem der übergeordnete Channel gehört.
Anfragetext
Der Anfragetext enthält Daten mit folgender Struktur:
JSON-Darstellung
{"newSites": [{object (Site)}],// Union field owner can be only one of the following:"partnerId": string// End of list of possible types for union field owner.}
Die Websites, die die vorhandenen Websites ersetzen, die dem Channel zugewiesen sind, angegeben als Liste von Sites.
Union-Feld owner. Erforderlich. Damit wird das DV360-Element identifiziert, zu dem der übergeordnete Kanal gehört. Dabei kann es sich entweder um einen Partner oder einen Werbetreibenden handeln. Für owner ist nur einer der folgenden Werte zulässig:
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2024-10-14 (UTC)."],[[["This documentation details the `replaceSites` method, which replaces all existing sites under a specific channel with new ones provided in the request."],["The request requires the `channelId` and either the `partnerId` or `advertiserId` to identify the channel being modified."],["A list of new sites must be included in the request body, adhering to the `Site` object structure."],["Successful execution results in a `ReplaceSitesResponse` object in the response body."],["The operation requires authorization with the `https://www.googleapis.com/auth/display-video` scope."]]],["This outlines how to replace all sites within a channel using the Display & Video 360 API. A POST request is sent to a specified URL, including the `advertiserId` and `channelId` as path parameters. The request body contains a list of `newSites` and a field `owner` that identifies the channel owner, either a `partnerId` or `advertiserId`. Successful requests return a `ReplaceSitesResponse`, and OAuth scope `https://www.googleapis.com/auth/display-video` is required for authorization.\n"]]