[null,null,["上次更新時間:2025-02-22 (世界標準時間)。"],[[["OAuth2 Playground can be used to manually create OAuth2 tokens for accessing the AdMob API."],["To utilize OAuth2 Playground, you need to generate a client ID for a web application in the Google API Console."],["An OAuth consent screen needs to be configured for the client ID, requiring setting the user type to External and the publishing status to either Published or Testing with added test users."],["After authorization, the OAuth2 Playground provides an access token and a refresh token; the refresh token, along with the client ID and client secret, should be saved for using the AdMob API client libraries."],["Remember to remove the OAuth2 Playground from the authorized redirect URIs in the Google API Console after obtaining the refresh token."]]],["To generate OAuth2 credentials, use the OAuth2 Playground with the Google API Console. First, create a project, configure the user consent screen, and enable the AdMob API. Next, generate a client ID and secret for a web application, adding `https://developers.google.com/oauthplayground` as an authorized redirect URI. Configure an OAuth consent screen. Then, in the OAuth2 Playground, authorize the AdMob API, exchange the authorization code for tokens, and copy the refresh token, client ID, and client secret into your client library's configuration. Remove the OAuth2 playground from the authorized redirect URIs.\n"]]