このガイドは、AdMob API を使用して AdMob アカウントのデータをプログラムで取得 することを目的としたデベロッパーの方を対象としています。
アプリがユーザーに代わってウェブサービスとやり取りできるように、すべての Google AdMob API 呼び出しは OAuth2 による認証を受ける必要があります。OAuth2 を使用すると、ユーザー名やパスワードの処理や保存を行うことなく、AdMob API クライアント アプリからユーザーの AdMob アカウントにアクセスできます。認可の概要については、認可をご覧ください。
[[["わかりやすい","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"]],["最終更新日 2024-11-08 UTC。"],[[["This guide helps developers programmatically access AdMob account data using the AdMob API, requiring OAuth2 authorization for secure interactions."],["Before starting, ensure you have a Google Account, an AdMob account, and familiarity with REST basics and OAuth 2.0 authorization."],["Choose the appropriate authentication type (Desktop or Web app) based on your app's needs and authorization process."],["Create or select a Google API project and enable the AdMob API to get started, then generate OAuth2 credentials for authorization."],["Make your first API request using provided code examples (Java, PHP, Python, or curl) and manage token revocation for security."]]],["To use the AdMob API, developers must authorize requests via OAuth2. Key actions include creating a project in the Google API Console and enabling the AdMob API. Developers then generate OAuth2 credentials, choosing between desktop or web app authentication types. The OAuth consent screen must be configured. Finally, with created credentials and specifying the scope (`admob.readonly` or `admob.report`), developers can use HTTP or Google API client libraries to make their first API request and start retrieving AdMob data. Shared tokens can be revoked.\n"]]