完成後,您會看到 OAuth 2.0 用戶端 ID 與用戶端密鑰,您可以下載 JSON 格式並儲存供日後使用。
提出要求
AdMob API 是以 HTTP 和 JSON 做為建構基礎,因此任何標準 HTTP 用戶端都可以向這個 API 傳送要求並剖析回應。不過,Google API 用戶端程式庫可以提供更出色的語言整合功能、更高的安全性,並支援需要授權的要求。用戶端程式庫支援多種程式設計語言,只要善加利用,您就不必再手動設定 HTTP 要求及剖析回應。
[[["容易理解","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 (世界標準時間)。"],[[["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"]]