rocket Meet
Merchant API - جانشین رسمی Content API برای خرید.
point_of_sale با نحوه مدیریت کسب و کار و محصولات خود در Google و نحوه دسترسی برنامهریزی شده به دادهها، اطلاعات بینش و قابلیتهای منحصربهفرد در مقیاس بیاموزید.
امروز با Merchant API شروع کنید!
دسترسی به API Google Ads را تنظیم کنید، دسترسی API Google Ads را تنظیم کنید
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
{% شامل "/google-ads/shopping/articles/___t11" %}
،
{% شامل "/google-ads/shopping/articles/___t11" %}
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-08-29 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-08-29 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eTo use the Google Ads API, you must obtain a developer token and set up authentication credentials.\u003c/p\u003e\n"],["\u003cp\u003eDeveloper tokens have different access levels (Test, Basic, Standard) and require approval for production use.\u003c/p\u003e\n"],["\u003cp\u003eSetting up OAuth2 involves creating a Google API Console project and generating a client ID and secret.\u003c/p\u003e\n"],["\u003cp\u003eYou need a refresh token, obtained through steps specific to your chosen client library, for Google API access.\u003c/p\u003e\n"],["\u003cp\u003eTest accounts are recommended for initial code testing before your developer token is approved for live accounts.\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."]]