Platforms API का इस्तेमाल शुरू करने के लिए, यह एक हाई-लेवल प्रोसेस है:
- नया Google Cloud प्रोजेक्ट बनाना या किसी मौजूदा प्रोजेक्ट का इस्तेमाल करना
- अपने Google Cloud प्रोजेक्ट में एक सेवा खाता बनाएं. इसके बाद, खाते को अपने AdSense खाते में जोड़ने के लिए, अपने खाता मैनेजर के ज़रिए खाता Google को भेजें
- अपने Google Cloud प्रोजेक्ट के लिए, AdSense Platform API चालू करें. ध्यान दें कि यह पेज सिर्फ़ अनुमति वाली सूची में शामिल प्रोजेक्ट के लिए दिखता है
- सेवा कुंजी बनाना
- ऐक्सेस टोकन जनरेट करने के लिए, Google की OAuth लाइब्रेरी का इस्तेमाल करना
- एचटीटीपी अनुरोधों का इस्तेमाल करके, AdSense Platform API को कॉल करना
पहले से पांचवें चरण के बारे में एपीआई कॉल की पुष्टि करना पेज पर बताया गया है. साथ ही, एपीआई के बारे में उनके पेजों पर बताया गया है:
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
[null,null,[],[[["CustomChannel is a resource representing a custom channel, providing a way to segment ad revenue based on specific criteria."],["It has fields like `name`, `reportingDimensionId`, `displayName`, and `active` for identification and configuration."],["You can manage CustomChannels using methods like create, delete, get, list, listLinkedAdUnits, and patch to control their lifecycle and relationships with ad units."],["Refer to the provided links for detailed information on each method and field."]]],["To utilize the Platforms API, first, establish a Google Cloud project and create a service account, sending it to Google. Then, enable the AdSense Platform API for the project and generate a service key. Use Google's OAuth libraries to obtain an access token. Finally, make HTTP requests to call the AdSense Platform APIs. These APIs enable creating, getting accounts, adding event data, adding sites, and requesting site reviews. Steps to generate the service key and authentication are available at [Authenticating API calls](/adsense/platforms/api/authenticating-api-calls).\n"]]