常见错误和建议操作
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页面列出了常见错误的示例,并提供了有关如何预防和处理这些错误的提示。如需获得更多指导,请参阅 Google API 错误模型。
错误代码 |
400 |
Invalid Argument
消息 请求网址中的帐号信息无效:“accounts/pub-XXXXXXXXXXXXXXXX”
详细信息 将 pub-XXXXXXXXXXXXXXXX 替换为您的发布商 ID,请参阅相关说明,了解如何查找您的发布商 ID。
|
Invalid Argument
消息 在一个报告请求中请求的行数不能超过 10 万行。
详细信息 将 max_report_rows 字段的值从 1 到 100,000(含)更改为其他值。
|
Invalid Argument
消息 请求的指标和维度不兼容。
详细信息 请参阅参考文档,确定哪些指标和维度与广告网络报告和中介报告不兼容。
|
|
401 |
Unauthorized
消息 请求缺少所需的身份验证凭据。必须提供 OAuth 2 访问令牌、登录 Cookie 或其他有效的身份验证凭据。请参阅 https://developers.google.com/identity/sign-in/web/devconsole-project。
详细信息 以下帐号的访问令牌未获得授权。请按照使用入门页面 上的步骤完成身份验证。在接受权限请求页面时,请确保您登录的是具有所需 用户角色的正确帐号。
|
|
403 |
Permission Denied
消息 项目 XXXXXXXXXXXX 中从未使用过 AdMob API,或此 API 已停用。请访问 https://console.developers.google.com/apis/api/admob.googleapis.com/overview?project=XXXXXXXXXXXX,然后重试。
详细信息 对指定资源的访问遭拒。如果您的项目未启用 AdMob API,通常就会发生这种情况。请访问 Google Cloud 控制台以启用 AdMob API。
|
Access Denied
消息 有效用户无法访问所请求的资源
详细信息 有效用户对指定资源的访问权限遭拒。如需详细了解用户角色和查看权限,请参阅这篇新用户角色一文。
|
|
429 |
Resource Exhausted
消息 超出配额组“ReportingReadGroup”的配额,并且使用方“project_number:XXXXXXXXXXXX”的服务“admob.googleapis.com”的“每位用户每 100 秒报告读取请求数”上限。
详细信息 已超出配额限制。如需了解配额限制,请访问配额页面。
|
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-05-08。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-05-08。"],[[["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."]]],[]]