A partir del
8 de septiembre de 2025, cada elemento de la línea nuevo deberá declarar si publicará anuncios políticos de la Unión Europea (UE). Las cargas de la API de Display & Video 360 y del SDF que no proporcionen declaraciones fallarán. Consulta nuestra
página de bajas para obtener más detalles sobre cómo actualizar tu integración y realizar esta declaración.
Method: customBiddingAlgorithms.uploadRules
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Crea un objeto de referencia de reglas para un archivo AlgorithmRules
.
El objeto de referencia resultante proporciona una ruta de acceso al recurso en la que se debe subir el archivo AlgorithmRules
. Este objeto de referencia se debe incluir cuando se crea un recurso CustomBiddingAlgorithmRules
nuevo.
Solicitud HTTP
GET https://displayvideo.googleapis.com/v4/customBiddingAlgorithms/{customBiddingAlgorithmId}:uploadRules
La URL usa la sintaxis de la transcodificación gRPC.
Parámetros de ruta de acceso
Parámetros |
customBiddingAlgorithmId |
string (int64 format)
Obligatorio. Es el ID del algoritmo de ofertas personalizadas al que pertenece el recurso de reglas.
|
Parámetros de consulta
Parámetros |
Parámetro de unión owner . Obligatorio. Identifica la entidad de DV360 a la que pertenece el algoritmo de ofertas personalizadas superior. Puede ser un socio o un anunciante. Las direcciones (owner ) solo pueden ser una de las siguientes opciones: |
partnerId |
string (int64 format)
Es el ID del socio propietario del algoritmo de ofertas personalizadas superior.
|
advertiserId |
string (int64 format)
Es el ID del anunciante que es propietario del algoritmo de ofertas personalizadas superior.
|
Cuerpo de la solicitud
El cuerpo de la solicitud debe estar vacío.
Cuerpo de la respuesta
Si se ejecuta de forma correcta, el cuerpo de la respuesta contiene una instancia de CustomBiddingAlgorithmRulesRef
.
Permisos de autorización
Requiere el siguiente alcance de OAuth:
https://www.googleapis.com/auth/display-video
Para obtener más información, consulta OAuth 2.0 Overview.
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-25 (UTC)
[null,null,["Última actualización: 2025-07-25 (UTC)"],[],["The Display & Video 360 API v4, in beta, allows creating a rules reference object for an AlgorithmRules file. This is achieved via a `GET` HTTP request to a specified URL, requiring the `customBiddingAlgorithmId`, and either `partnerId` or `advertiserId` as path and query parameters. The request body should be empty. A successful response provides a CustomBiddingAlgorithmRulesRef instance, indicating the resource path for uploading the AlgorithmRules file, required when creating a CustomBiddingAlgorithmRules resource. The required OAuth scope is `https://www.googleapis.com/auth/display-video`.\n"],null,["# Method: customBiddingAlgorithms.uploadRules\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreates a rules reference object for an [AlgorithmRules](/display-video/api/reference/rest/v4/AlgorithmRules) file.\n\nThe resulting reference object provides a resource path where the [AlgorithmRules](/display-video/api/reference/rest/v4/AlgorithmRules) file should be uploaded. This reference object should be included when creating a new [CustomBiddingAlgorithmRules](/display-video/api/reference/rest/v4/customBiddingAlgorithms.rules#CustomBiddingAlgorithmRules) resource.\n\n### HTTP request\n\n`GET https://displayvideo.googleapis.com/v4/customBiddingAlgorithms/{customBiddingAlgorithmId}:uploadRules`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `customBiddingAlgorithmId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Required. The ID of the custom bidding algorithm that owns the rules resource. |\n\n### Query parameters\n\n| Parameters ||\n|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Union parameter `owner`. Required. Identifies the DV360 entity that owns the parent custom bidding algorithm. It can be either a partner or an advertiser. `owner` can be only one of the following: ||\n| `partnerId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The ID of the partner that owns the parent custom bidding algorithm. |\n| `advertiserId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The ID of the advertiser that owns the parent custom bidding algorithm. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [CustomBiddingAlgorithmRulesRef](/display-video/api/reference/rest/v4/customBiddingAlgorithms.rules#CustomBiddingAlgorithmRulesRef).\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)."]]