Rede de Display e A API Video 360 v2 foi descontinuada. Use o Display & Video 360 API v3. Para ver as instruções de migração da v2 para a v3, consulte nosso guia de migração.
O ID do anunciante proprietário do canal principal.
Corpo da solicitação
O corpo da solicitação contém dados com a seguinte estrutura:
Representação JSON
{"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.}
Os sites que substituirão os sites existentes atribuídos ao canal, especificados como uma lista de Sites.
Campo de união owner. Obrigatório. Identifica a entidade do DV360 proprietária do canal principal. Pode ser um parceiro ou um anunciante. owner pode ser apenas de um dos tipos a seguir:
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Não contém as informações de que eu preciso","missingTheInformationINeed","thumb-down"],["Muito complicado / etapas demais","tooComplicatedTooManySteps","thumb-down"],["Desatualizado","outOfDate","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Problema com as amostras / o código","samplesCodeIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 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"]]