Настройка OAuth
{% включают "/shared/console/___local_variables" %}
{% включает "/admob/api/v1/___auth" %}
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2024-11-19 UTC.
[null,null,["Последнее обновление: 2024-11-19 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"]]