Common Errors and Suggested Actions
This page lists examples of common errors and provides tips on preventing and
handling them. See the Google API Error Model
for additional guidance.
Error Code |
400 |
Invalid Argument
Message Invalid account information in request url: 'accounts/pub-XXXXXXXXXXXXXXXX'
Details Replace pub-XXXXXXXXXXXXXXXX with your publisher ID, see the instructions to find your publisher ID.
|
Invalid Argument
Message Cannot request more than 100,000 rows in one report request.
Details Change the max_report_rows field to a value from 1 to 100,000, inclusive.
|
Invalid Argument
Message Requested metrics and dimensions are incompatible.
Details Visit the reference documentation to determine which metrics and dimensions are incompatible for both network and mediation reports.
|
|
401 |
|
403 |
Permission Denied
Message AdMob API has not been used in project XXXXXXXXXXXX before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/admob.googleapis.com/overview?project=XXXXXXXXXXXX then retry.
Details Access to the specified resource was denied. This commonly occurs when the AdMob API is not enabled for your project. Visit the Google Cloud Console to enable the AdMob API.
|
Access Denied
Message The requested resource is not accessible to the effective user
Details Access to the specified resource was denied for the effective user. To learn more on user roles and to check permissions, please see the following new user roles article.
|
|
429 |
Resource Exhausted
Message Quota exceeded for quota group 'ReportingReadGroup' and limit 'Reporting read requests per user per 100 seconds' of service 'admob.googleapis.com' for consumer 'project_number:XXXXXXXXXXXX'.
Details The quota limits have been exceeded. Visit the Quota page to understand the quota limits.
|
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-08 UTC.
[null,null,["Last updated 2024-11-08 UTC."],[[["This page provides examples of common AdMob API errors and tips for preventing and resolving them."],["Errors are categorized by error code (e.g., 400, 401, 403, 429) and include detailed messages and troubleshooting steps."],["Common issues include invalid arguments, authentication failures, permission issues, and exceeding quota limits."],["Refer to the Google API Error Model and the provided links for further guidance on error handling."]]],[]]