アプリがユーザーに代わってウェブサービスとやり取りできるように、すべての Google AdMob API 呼び出しは OAuth2 による認証を受ける必要があります。OAuth2 を使用すると、ユーザー名やパスワードの処理や保存を行うことなく、AdMob API クライアント アプリからユーザーの AdMob アカウントにアクセスできます。認可の概要については、認可をご覧ください。
[null,null,["最終更新日 2024-11-08 UTC。"],[[["All Google AdMob API calls require OAuth2 authorization for your app to access user data securely without storing sensitive login credentials."],["Choose between desktop or web app authentication flow based on your app's needs and authorization process."],["Create or select a Google API project and enable the AdMob API before generating OAuth2 credentials."],["Make authorized requests to the AdMob API using HTTP clients or client libraries in various programming languages."],["Revoke access tokens through your Google account permissions or the Google Identity API when necessary."]]],["To use the Google AdMob API, authorize calls via OAuth2. First, create or select a project in the Google API Console and enable the AdMob API. Next, create OAuth2 credentials, choosing between \"Desktop app\" or \"Web app\" authentication types based on your needs. Configure the OAuth consent screen, download the generated client ID and secret, and then use these credentials to authorize requests with specified scopes, such as `admob.monetization` or `admob.readonly`. To start making requests, you can utilize the Google API client libraries. If you want to revoke access, you can do so from your Google account or using Google Identity API.\n"]]