外部ユーザータイプ用に OAuth 同意画面が構成され、公開ステータスが Testing の Google Cloud Platform プロジェクトには、7 日後に期限切れになる更新トークンが発行されます。
対応方法
Google プロジェクトの公開ステータスが Testing であるため、更新トークンは 7 日ごとに期限切れになり、invalid_grant エラーが発生します。Google API Console に移動し、OAuth 同意画面に移動します。次に、こちらの手順に沿って公開ステータスを In production に変更し、7 日以内に更新トークンが期限切れにならないようにします。
アクセス トークンの生成に使用された Google アカウントが、どの Google 広告アカウントにも関連付けられていません。
一般的な原因
ご提供いただいたログイン情報は、Google 広告が有効になっていない Google アカウントに対応しています。
対応方法
OAuth フローでは、有効な Google 広告アカウント(通常は MCC アカウント)でログインしてください。クライアント センター(MCC)アカウントにログインし、該当するクライアント アカウントまたはクライアント センター(MCC)アカウントを選択して Tools and Settings > Access and security に移動し、Google アカウントのメールアドレスを追加することで、既存の Google 広告アカウントにアクセスするよう Google アカウントを招待することもできます。
各 Google API Console プロジェクトは、1 つのクライアント センター(MCC)アカウントの開発者トークンにのみ関連付けることができます。Google Ads API リクエストを行うと、デベロッパー トークンは Google API Console プロジェクトと永続的にペア設定されます。新しい Google API Console プロジェクトを使用しない場合、リクエストを行うと DEVELOPER_TOKEN_PROHIBITED エラーが発生します。
[[["わかりやすい","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"]],["最終更新日 2025-07-13 UTC。"],[[["This page provides solutions and preventative measures for common Google Ads API errors."],["For a comprehensive list of errors, refer to the dedicated error references section."],["Additional assistance and community support can be found on the Google Ads API forum."],["Understanding and addressing these errors is crucial for successful API integration and campaign management."]]],[]]