[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\u003cp\u003eTo use the Google Ads API, you'll need a developer token, authentication credentials (OAuth2), and a Google Ads account.\u003c/p\u003e\n"],["\u003cp\u003eYou can test the API with test accounts before your developer token is approved for production use.\u003c/p\u003e\n"],["\u003cp\u003eThe process involves obtaining a developer token, setting up OAuth2 for authentication, and making your first API call using a client library.\u003c/p\u003e\n"],["\u003cp\u003eGoogle provides client libraries and code samples in various programming languages to help you integrate with the API.\u003c/p\u003e\n"],["\u003cp\u003eRefer to the detailed guides and tutorials linked throughout the documentation for step-by-step instructions.\u003c/p\u003e\n"]]],[],null,["# Set up Google Ads API access\n\nSummary\n-------\n\nYou must request a [developer token](/google-ads/api/docs/first-call/dev-token) and obtain authentication credentials to\nuse the [Google Ads API](/google-ads/api/docs/start) and make API calls on a Google Ads account. See the\n[Quickstart guide](/google-ads/api/docs/first-call/overview) for more detail.\n\nManual steps\n------------\n\nTo use the Google Ads API, complete the following steps:\n\n### Obtain a developer token\n\nA Google Ads developer token connects your app to the Google Ads API.\n\n1. Follow the steps in [Obtain Your Developer Token](/google-ads/api/docs/first-call/dev-token).\n2. After signing up, your token is **pending approval**.\n3. Make sure your software adheres to the Google Ads API [Terms and Conditions\n (T\\&C)](/google-ads/api/terms) and the [Required Minimum Functionality (RMF)](/google-ads/api/docs/rmf). RMF is only required for tokens with Standard Access.\n\nYou can retrieve the developer token for your manager account at any time in the\n[Google Ads UI](https://ads.google.com), under **TOOLS \\& SETTINGS \\\u003e SETUP \\\u003e API Center**.\n\nYou can use your developer token immediately with a test manager account. Your\ndeveloper token must be approved before you can use it with production Google\nAds accounts.\n\nThe API provides the following access levels:\n\n- Test\n- Basic\n- Standard\n\nSee [Access Levels \\& Permissible Use](/google-ads/api/docs/access-levels) for more information on each level.\n\n### Create test accounts\n\nTest accounts aren't required, but they let you make API calls and test your\ncode before your developer token is approved. Follow [these\ninstructions](/google-ads/api/docs/first-call/test-accounts#create) to\ncreate test accounts and test campaigns.\n\n### Choose a client library\n\nDownload one of the Google Ads API [client libraries](/google-ads/api/docs/client-libs).\n\nCode samples and installation instructions are included with each client\nlibrary.\n\n### Set up OAuth2\n\n[OAuth2](https://oauth.net/2/) lets your app operate on behalf of your account. This workflow is for\ndesktop apps, see [Configure a Google API Console Project](/google-ads/api/docs/first-call/oauth-cloud-project) for more\ninformation.\n\nTo use OAuth2 with Google APIs, create an OAuth2 client ID and client secret:\n\n1. While signed in to your manager account, open the [Google API Console\n Credentials page](https://console.developers.google.com/apis/credentials).\n2. Expand the **Projects** drop-down, then choose **NEW PROJECT**.\n3. Enter a name for the project, then click **CREATE**.\n4. In the sidebar, click **OAuth consent screen** , then enter the required information, and click **SAVE AND CONTINUE** . See the [OAuth guide](/google-ads/api/docs/first-call/oauth-cloud-project) for more details.\n5. In the sidebar, click **Credenials \\\u003e CREATE CREDENTIALS \\\u003e OAuth client\n ID** , then choose **Desktop app**.\n6. Enter a name for your client, then click **CREATE**.\n\nThis generates your client ID and client secret.\n| **Important:** Save these credentials. You need to add them to the configuration file in your Google Ads API library to use the API.\n\n### Get a refresh token\n\nYou also need a refresh token to access Google APIs.\n\nTo get a [refresh token](/google-ads/api/docs/first-call/refresh-token), follow the steps for your\nchosen [client library](/google-ads/api/docs/client-libs). The steps are different for each\nprogramming language. See the authentication samples for each library.\n\n### Make your first API call\n\nFollow the Google Ads API [First call tutorial](/google-ads/api/docs/first-call/get-campaigns) to make a simple call.\n\nAutomatic steps\n---------------\n\nNot available for this process."]]