This page lists examples of common errors and provides tips on preventing and
handling them. See the [Google API Error Model](https://cloud.google.com/apis/design/errors)
for additional guidance.
Error Code `400` <var translate="no">Invalid Argument</var>

**Message**   
*Invalid account information in request url: 'accounts/pub-XXXXXXXXXXXXXXXX'*

**Details**   
Replace `pub-XXXXXXXXXXXXXXXX` with your publisher ID, see the [instructions](https://support.google.com/admob/answer/2784578) to find your publisher ID.
<var translate="no">Invalid Argument</var>

**Message**   
*Cannot request more than 100,000 rows in one report request.*

**Details**   
Change the `https://developers.google.com/admob/api/v1/reference/rest/v1/accounts.networkReport/generate#networkreportspec` field to a value from 1 to 100,000, inclusive.
<var translate="no">Invalid Argument</var>

**Message**   
*Requested metrics and dimensions are incompatible.*

**Details**   
Visit the [reference documentation](https://developers.google.com/admob/api/release-notes) to determine which metrics and dimensions are incompatible for both [network](https://developers.google.com/admob/api/v1/reference/rest/v1/accounts.networkReport/generate) and [mediation](https://developers.google.com/admob/api/v1/reference/rest/v1/accounts.mediationReport/generate) reports.
`401` <var translate="no">Unauthorized</var>

**Message**   
*Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.*

**Details**   
The access token is not authorized for the following account. Follow the steps on the [getting started page](https://developers.google.com/admob/api/v1/getting-started#first_request) to complete authentication. Ensure that you are signed in to the correct account with the required [user roles](https://support.google.com/admob/answer/12291973) when accepting the consent screen.
`403` <var translate="no">Permission Denied</var>

**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](https://console.developers.google.com/apis/library) to enable the AdMob API.
<var translate="no">Access Denied</var>

**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](https://support.google.com/admob/answer/2784628) article.
`429` <var translate="no">Resource Exhausted</var>

**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](https://developers.google.com/admob/api/quotas) to understand the quota limits.