ऐप्लिकेशन का टाइप चुनना
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Google Ads खातों में उपयोगकर्ता का डेटा होता है. इसलिए, इस डेटा को ऐक्सेस करने के लिए, आपके ऐप्लिकेशन को उपयोगकर्ता से अनुमति लेनी होगी. अनुमति पाने के तरीके के आधार पर, दो मुख्य तरीके हैं.
ऐप्लिकेशन का टाइप चुनना
Google Ads खातों में उपयोगकर्ता का डेटा होता है. इसलिए, इस डेटा को ऐक्सेस करने के लिए, आपके ऐप्लिकेशन को उपयोगकर्ता से अनुमति लेनी होगी. अनुमति पाने के तरीके के आधार पर, दो मुख्य तरीके हैं.
|
सेवा खाता |
उपयोगकर्ता की पुष्टि करना |
खास जानकारी |
अपने Google Ads खाते को मैन्युअल तरीके से कॉन्फ़िगर करें, ताकि किसी सेवा खाते को उस खाते का ऐक्सेस दिया जा सके. इसके बाद, आपका ऐप्लिकेशन सेवा खाते के क्रेडेंशियल का इस्तेमाल करके, उपयोगकर्ता के इंटरैक्शन के बिना Google Ads खाते को एपीआई कॉल कर सकता है. एपीआई कॉल तब तक काम करते हैं, जब तक सेवा खाते के पास Google Ads खाते का ऐक्सेस होता है. |
उपयोगकर्ता से एक बार के लिए OAuth 2.0 की अनुमति पाएं, ताकि आपके ऐप्लिकेशन को उसका Google Ads खाता मैनेज करने की अनुमति मिल सके. इसके बाद, आपका ऐप्लिकेशन Google Ads खाते में एपीआई कॉल करने के लिए, OAuth 2.0 रीफ़्रेश टोकन का इस्तेमाल कर सकता है. यह टोकन, OAuth 2.0 की अनुमति देने की प्रोसेस के तहत जारी किया जाता है. एपीआई कॉल तब तक काम करते हैं, जब तक उपयोगकर्ता अनुमति रद्द नहीं करता या जब तक अनुमति की समयसीमा खत्म नहीं हो जाती. समयसीमा खत्म होने की वजह, कोई गतिविधि न होना या कोई अन्य वजह हो सकती है. |
इस्तेमाल में आसानी |
ऐप्लिकेशन में उपयोगकर्ता की अनुमति न होने की वजह से, कम से कम कॉन्फ़िगरेशन और अनुमतियों की ज़रूरत होती है. |
उपयोगकर्ता की पुष्टि करने की सुविधा, ऐप्लिकेशन का हिस्सा होने की वजह से, ज़्यादा कॉन्फ़िगरेशन और अनुमतियों की ज़रूरत होती है. |
सुझाव |
हमारा सुझाव है कि आप इस तरीके का इस्तेमाल करें |
लेगसी तरीका. जब किसी सेवा खाते को अपने Google Ads खाते की ज़रूरी अनुमतियां न दी जा सकें, तो फ़ॉलबैक विकल्प के तौर पर इसका इस्तेमाल करें. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-31 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-31 (UTC) को अपडेट किया गया."],[],[],null,["# Choose your application type\n\nSince Google Ads accounts contain user data, your application must obtain\nauthorization from the user to access this data. There are two broad approaches\nbased on how you obtain this authorization.\n\nChoose your app type\n--------------------\n\nSince Google Ads accounts contain user data, your app needs to obtain\nauthorization from the user to access this data. There are two broad approaches\nbased on how you obtain this authorization.\n\n| | **Service Account** | **User Authentication** |\n| Summary | Manually configure your Google Ads account to give a service account access to that account. Afterwards, your app can use the service account credentials to make API calls to the Google Ads account without any user interaction. The API calls work as long as the service account has access to the Google Ads account. | Obtain a one-time OAuth 2.0 authorization from a user to allow your app to manage their Google Ads account. Afterwards, your app can use the OAuth 2.0 refresh token (issued as part of the OAuth 2.0 authorization process) to make API calls to the Google Ads account. The API calls work as long as the user doesn't revoke the authorization, or until the authorization expires due to inactivity or other reasons. |\n| Ease of use | Minimal configuration and approvals required due to lack of user authorization in the app. | Extensive configuration and approvals required due to user authentication being part of the app. |\n| Recommendation | **Strongly recommended** as the preferred approach | Legacy approach. Use as a fallback option when you cannot give a service account the required permissions to your Google Ads account. |\n|----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|"]]