Errores comunes
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
En esta página, se describen los errores más frecuentes que muestra la API de Google Ad Manager. Los errores se muestran en el formato Error.REASON
:
EntityChildrenLimitReachedError
- Resumen
- Se alcanzó la cantidad máxima de elementos secundarios permitidos para la entidad, y no se le pueden agregar más elementos secundarios.
- Sugerencias de manejo recomendadas
- Crea un tipo nuevo de entidad que haya alcanzado la cantidad máxima permitida de entidades secundarias y agrega la entidad secundaria que intentas crear a la nueva.
Por ejemplo, si recibes LINE_ITEM_LIMIT_FOR_ORDER_REACHED,
deberás crear un pedido nuevo y agregar a él la línea de pedido que intentas
crear.
QuotaError.EXCEEDED_QUOTA
- Resumen
- La cantidad de solicitudes realizadas por segundo es demasiado alta y se superó el límite permitido.
- Sugerencias de manejo recomendadas
-
- Usa métodos por lotes, como updateLineItems, para recopilar los cambios de forma local y realizar una única solicitud a fin de completar todos esos cambios a la vez.
- Espera unos 5 segundos y vuelve a enviar la solicitud. Ten en cuenta que esto no garantiza que la solicitud se realice de forma correcta. Si vuelve a fallar, aumenta el tiempo de espera. Esto se recomienda para las aplicaciones interactivas que se integran en Ad Manager y que se usan en tiempo real.
- Limita las solicitudes a 2 por segundo para las redes de Ad Manager o a 8 por
segundo para las redes de Ad Manager 360. Una vez más, esto no garantiza que todas las solicitudes se realicen correctamente, pero puede ayudar a reducir la cantidad de veces que recibes este error. Esto se recomienda para las aplicaciones que se integran con Ad Manager y que no tienen interacción en tiempo real, como ejecutar informes nocturnos.
AuthenticationError.GOOGLE_ACCOUNT_ALREADY_ASSOCIATED_WITH_NETWORK
- Resumen
- El usuario intentó crear una red de prueba con una cuenta que ya está asociada a una red.
- Causas habituales
- El usuario no creó una nueva Cuenta de Google antes de llamar a
NetworkService.makeTestNetwork()
.
- Sugerencias de manejo recomendadas
- Crea una cuenta nueva antes de llamar a
NetworkService.makeTestNetwork()
. Consulta cómo crear una red de prueba para obtener más información.
AuthenticationError.NETWORK_CODE_REQUIRED
- Resumen
- El usuario no proporcionó un
networkCode
. Para realizar la solicitud, se requiere un código de red.
- Causas habituales
- Los códigos de red son obligatorios para todas las solicitudes, excepto
NetworkService.getAllNetworks()
y NetworkService.makeTestNetwork()
.
- Sugerencias de manejo recomendadas
- Incluye el código de red de la red que se aborda en el encabezado de la solicitud. Usa solo un código de red disponible para el acceso a tu cuenta. Puedes encontrar
el código en el sitio web de Ad Manager para tu cuenta, en la página Administrador > Configuración
de red, junto a "Código de red". Puedes encontrar más información para configurar tu código de red en la página de encabezados de respuesta y solicitud XML de SOAP.
AuthenticationError.NETWORK_NOT_FOUND
- Resumen
- No se pudo realizar la solicitud porque el código de red proporcionado en la
configuración no se encuentra en el servidor.
- Causas habituales
- Especificaste un código de red incorrecto en tu configuración.
- Sugerencias de manejo recomendadas
- El campo "activador" del registro de errores a menudo sugerirá la red correcta para el usuario.
AuthenticationError.NO_NETWORKS_TO_ACCESS
- Resumen
- El usuario no está asociado con ninguna red.
- Causas habituales
- No habilitaste tu cuenta de producción para tener acceso a la API.
- Sugerencias de manejo recomendadas
- Habilita el acceso a la API para tu entorno de producción. Consulta Cómo habilitar el acceso a la API para obtener más información.
AuthenticationError.NOT_WHITELISTED_FOR_API_ACCESS
- Resumen
- El cliente no está incluido en la lista blanca para acceder a la API.
- Causas habituales
- Tu red no está incluida en la lista de entidades permitidas para producción, pero proporcionaste un código de red en el encabezado de SOAP.
-
- Sugerencias de manejo recomendadas
- Habilita el acceso a la API.
-
PermissionError.PERMISSION_DENIED
- Resumen
- El usuario no tiene el permiso necesario para realizar la solicitud.
- Causas habituales
-
- Intentaste acceder a un objeto que existe en otra red.
- Intentaste acceder a un objeto que existe en tu red, pero no tienes permiso para leer o actualizar.
- Intentaste realizar una tarea que requiere una función adicional para
habilitar en tu cuenta.
- Sugerencias de manejo recomendadas
-
- Si estás creando una IU, indícale al usuario que no tenía permiso para realizar esta acción y hablar con su administrador.
- Si intentaste realizar una tarea, por ejemplo, una relacionada con una función premium
que tu red no tiene permiso para hacer, comunícate con tu
administrador de cuentas para habilitar esta función.
- Recuerda que, de forma predeterminada, las redes de prueba no son de Ad Manager 360, lo que significa que no tienen las funciones premium de las redes de Ad Manager 360. Comunícate con tu administrador de cuentas para habilitar las funciones en tu
red de prueba.
ApiVersionError.UPDATE_TO_NEWER_VERSION
- Resumen
- La aplicación inició una solicitud que requiere una versión más reciente para completarse correctamente o inició una solicitud a una versión obsoleta.
- Causas habituales
-
- La versión de la llamada a la API dejó de estar disponible. Suscríbete a nuestro blog para conocer los anuncios de baja.
- La solicitud que realizaste requiere una versión más reciente de la API para ejecutarse correctamente.
Este suele ser el caso cuando se incorpora una función en la IU y, para que la API envíe el objeto correctamente, necesita una versión más reciente de la API.
- Sugerencias de manejo recomendadas
-
- Mantente al tanto de las versiones de la API y planifica actualizaciones periódicas.
- Suscríbete a nuestro blog para recibir notificaciones sobre las bajas.
Error 404
- Resumen
- Tu solicitud no llegó al servidor.
- Causas habituales
- Es posible que la conexión a Internet o el proxy estén mal configurados. Es posible que la versión de la API a la que llamas también deje de estar disponible.
-
- Sugerencias de manejo recomendadas
- Verifica tu configuración de Internet o del proxy y asegúrate de usar una versión reciente de la API. Te recomendamos que también actualices tu biblioteca cliente a la versión más reciente.
-
- Sugerencias de prevención
- Suscríbete al foro de la API de Ad Manager y consulta nuestro blog para mantenerte al tanto de las noticias más recientes sobre la API de Ad Manager.
Error de selección
- Resumen
- El XML de SOAP en tu solicitud no cumplía con la especificación del WSDL.
- Causas habituales
- La solicitud contiene campos o entidades no incluidas en la especificación WSDL o en un espacio de nombres incorrecto.
-
- Hay una discrepancia de tipo en la solicitud (p.ej., un campo de números enteros tiene un valor de string).
-
- Sugerencias de manejo recomendadas
- Asegúrate de que tu solicitud cumpla con la especificación del WSDL.
-
- Usa una biblioteca cliente para generar SOAP válido y úsala para realizar comparaciones. Todas las bibliotecas cliente admiten el registro de solicitudes y respuestas de SOAP.
-
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-08-21 (UTC)
[null,null,["Última actualización: 2025-08-21 (UTC)"],[[["\u003cp\u003eThis page lists common Google Ad Manager API errors and offers troubleshooting tips.\u003c/p\u003e\n"],["\u003cp\u003eErrors are categorized by type, such as authentication, permission, and quota errors.\u003c/p\u003e\n"],["\u003cp\u003eEach error description includes a summary, common causes, and recommended handling tips.\u003c/p\u003e\n"],["\u003cp\u003eUsers are encouraged to stay updated on API versions and subscribe to the Ad Manager API forum and blog for the latest news.\u003c/p\u003e\n"],["\u003cp\u003eUtilizing client libraries for generating valid SOAP requests is recommended to avoid unmarshalling errors.\u003c/p\u003e\n"]]],[],null,["# Common Errors\n\nThis page describes the most frequently encountered errors returned by the\nGoogle Ad Manager API. Errors are returned in the format\n`Error.REASON`:\n\n- [`EntityChildrenLimitReachedError`](#EntityChildrenLimitReachedError)\n- [`QuotaError.EXCEEDED_QUOTA`](#QuotaError.EXCEEDED_QUOTA)\n- [`AuthenticationError.GOOGLE_ACCOUNT_ALREADY_ASSOCIATED_WITH_NETWORK`](#AuthenticationError.GOOGLE_ACCOUNT_ALREADY_ASSOCIATED_WITH_NETWORK)\n- [`AuthenticationError.NETWORK_CODE_REQUIRED`](#AuthenticationError.NETWORK_CODE_REQUIRED)\n- [`AuthenticationError.NETWORK_NOT_FOUND`](#AuthenticationError.NETWORK_NOT_FOUND)\n- [`AuthenticationError.NO_NETWORKS_TO_ACCESS`](#AuthenticationError.NO_NETWORKS_TO_ACCESS)\n- [`AuthenticationError.NOT_WHITELISTED_FOR_API_ACCESS`](#AuthenticationError.NOT_WHITELISTED_FOR_API_ACCESS)\n- [`PermissionError.PERMISSION_DENIED`](#PermissionError.PERMISSION_DENIED)\n- [`ApiVersionError.UPDATE_TO_NEWER_VERSION`](#ApiVersionError.UPDATE_TO_NEWER_VERSION)\n- [404 Error](#404Error)\n- [Unmarshalling Errors](#Unmarshalling)\n\n[Entity limit errors](/ad-manager/api/reference/latest/LineItemService.EntityChildrenLimitReachedError)\n-------------------------------------------------------------------------------------------------------\n\n### `EntityChildrenLimitReachedError`\n\nSummary\n: The maximum number of allowed children has been reached for the entity\n and no more children can be added to that entity.\n\nRecommended handling tips\n: Create a new type of the entity that has reached the max allowed number\n of children and add the child entity you are trying to create to the new one.\n For example if you receive [LINE_ITEM_LIMIT_FOR_ORDER_REACHED](/ad-manager/api/reference/latest/LineItemService.EntityChildrenLimitReachedError.Reason#LINE_ITEM_LIMIT_FOR_ORDER_REACHED),\n then you will need to create a new order and add the line item you are trying\n to create to that new order.\n\n[Quota errors](/ad-manager/api/reference/latest/NetworkService.QuotaError)\n--------------------------------------------------------------------------\n\n### `QuotaError.EXCEEDED_QUOTA`\n\nSummary\n: The number of requests made per second is too high and has exceeded the\n allowable limit.\n\nRecommended handling tips\n:\n - Use batch methods such as [updateLineItems](/ad-manager/api/reference/latest/LineItemService#updateLineItems) by gathering changes locally and making a single request to fulfill those changes all at once.\n - Wait about 5 seconds and then retry the request. Note that this does not guarantee the request will succeed. If it fails again, try increasing the wait time. This is recommended for interactive applications integrating with Ad Manager that are used in real time.\n - Limit requests to 2 per second for Ad Manager networks, or 8 per second for Ad Manager 360 networks. Once again this does not guarantee that every request will succeed, but may help reduce the number of times you receive this error. This is recommended for applications integrating with Ad Manager that do not have real time interaction, such as running nightly reports.\n\n[Authentication errors](/ad-manager/api/reference/latest/NetworkService.AuthenticationError)\n--------------------------------------------------------------------------------------------\n\n### `AuthenticationError.GOOGLE_ACCOUNT_ALREADY_ASSOCIATED_WITH_NETWORK`\n\nSummary\n: The user tried to create a test network using an account that already is\n associated with a network.\n\nCommon causes\n: The user did not create a new Google account first before calling\n `NetworkService.makeTestNetwork()`.\n\nRecommended handling tips\n: Create a brand new account before calling\n `NetworkService.makeTestNetwork()`. See [how to create a test network](/ad-manager/api/start#enable_api) for more\n information.\n\n### `AuthenticationError.NETWORK_CODE_REQUIRED`\n\nSummary\n: The user did not provide a `networkCode`. To make the request,\n a network code is required.\n\nCommon causes\n: Network codes are required for all requests except\n `NetworkService.getAllNetworks()` and\n `NetworkService.makeTestNetwork()`.\n\nRecommended handling tips\n: Include the network code of the network being addressed in the request\n header. Only use a network code available to your account login. You can find\n the code on the Ad Manager website for your account, on the Admin \\\u003e Network\n Settings page next to \"Network code\". More information about setting your\n network code can be found on the [SOAP XML request and\n response headers](/ad-manager/api/soap_xml) page.\n\n### `AuthenticationError.NETWORK_NOT_FOUND`\n\nSummary\n: The request could not be made because the network code provided in the\n configuration is not found on the server.\n\nCommon causes\n: You have specified an incorrect network code in your configuration.\n\nRecommended handling tips\n: The \"trigger\" field of the error log will often suggest the correct\n network for the user.\n\n### `AuthenticationError.NO_NETWORKS_TO_ACCESS`\n\nSummary\n: The user is not associated with any network.\n\nCommon causes\n: You have not enabled your production account for API access.\n\nRecommended handling tips\n: Enable API access to your production environment. See [Enabling API Access](/ad-manager/api/start#enable_api) for information.\n\n### `AuthenticationError.NOT_WHITELISTED_FOR_API_ACCESS`\n\nSummary\n: The customer is not whitelisted for API access.\n\nCommon causes\n: Your network is not whitelisted for production, but you provided a [network code](/ad-manager/api/soap_xml) in the SOAP Header.\n:\n\nRecommended handling tips\n: Enable [API access](/ad-manager/api/start#enable_api).\n:\n\n[Permission errors](/ad-manager/api/reference/latest/NetworkService.PermissionError)\n------------------------------------------------------------------------------------\n\n### `PermissionError.PERMISSION_DENIED`\n\nSummary\n: The user does not have the required permission for the request.\n\nCommon causes\n:\n - You tried to access an object that exists in another network.\n - You tried to access an object that exists in your network, but you don't have permission to read or update.\n - You tried to perform a task that requires an additional feature to enabled on your account.\n\nRecommended handling tips\n:\n - If you are creating a UI, indicate to the user that they did not have permission to perform this action and to speak to their Administrator.\n - If you tried performing a task, such as one involving a premium-only feature that your network does not have permission to do, speak to your account manager about enabling this feature.\n - Remember, test networks are, by default, not Ad Manager 360 networks, meaning that they do not have the premium features found in Ad Manager 360 networks. Speak to your account manager to enable features on your test network.\n\n[Version errors](/ad-manager/api/reference/latest/NetworkService.ApiVersionError)\n---------------------------------------------------------------------------------\n\n### `ApiVersionError.UPDATE_TO_NEWER_VERSION`\n\nSummary\n: The application either: initiated a request that requires a newer version\n to succeed; or initiated a request to a deprecated version.\n\nCommon causes\n:\n - The version of the API call has been deprecated. Please subscribe to our [blog](//ads-developers.googleblog.com/search/label/ad_manager_api) for deprecation announcements.\n - The request you made requires a newer version of the API to succeed. This is often the case where a feature has been introduced in the UI and in order for the API to send the object correctly, it needs a newer version of the API.\n\nRecommended handling tips\n:\n - Stay up to date on API versions; plan on upgrading regularly.\n - Subscribe to our [blog](//ads-developers.googleblog.com/search/label/ad_manager_api) to be notified about deprecations.\n\n404 Error\n---------\n\nSummary\n: Your request did not reach the server.\n\nCommon causes\n: Your internet connection or proxy may be misconfigured. The version of\n the API you are calling may also be sunsetted.\n:\n\nRecommended handling tips\n: Check your internet or proxy configuration and make sure you are using a\n recent version of the API. You may want to upgrade your client library to\n the most recent version as well.\n:\n\nPrevention tips\n: Subscribe to the [Ad\n Manager API forum](//groups.google.com/group/google-doubleclick-for-publishers-api) and check our [blog](//ads-developers.googleblog.com/search/label/ad_manager_api)\n to stay updated on the latest Ad Manager API news.\n\nUnmarshalling Error\n-------------------\n\nSummary\n: The SOAP XML in your request did not conform to the WSDL\n specification.\n\nCommon causes\n: The request contains fields or entities not included in the WSDL\n specification, or in the wrong namespace.\n:\n: There is a type mismatch in the request (e.g., an integer field has a\n string value).\n:\n\nRecommended handling tips\n: Ensure that your request conforms to the WSDL specification.\n:\n: Use a [client library](/ad-manager/api/clients) to generate\n valid SOAP, and use this for comparison. All client libraries support\n logging of SOAP requests and responses.\n:"]]