Method: properties.googleAdsLinks.create
एचटीटीपी अनुरोध
POST https://analyticsadmin.googleapis.com/v1beta/{parent=properties/*}/googleAdsLinks
यह यूआरएल gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ के पैरामीटर
पैरामीटर |
parent |
string
ज़रूरी है. फ़ॉर्मैट का उदाहरण: प्रॉपर्टीज़/1234
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में GoogleAdsLink
का उदाहरण है.
जवाब का मुख्य भाग
कामयाब होने पर, जवाब के मुख्य हिस्से में GoogleAdsLink
का नया इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/analytics.edit
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-05-06 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-05-06 (UTC) को अपडेट किया गया."],[[["Creates a GoogleAdsLink, allowing you to link your Google Ads account with your Google Analytics 4 property."],["Requires `https://www.googleapis.com/auth/analytics.edit` OAuth scope for authorization."],["Uses a POST request to `https://analyticsadmin.googleapis.com/v1beta/{parent=properties/*}/googleAdsLinks` with path and request body parameters to create the link."],["Provides a response body containing the newly created GoogleAdsLink instance upon successful execution."]]],["A `POST` request is made to `https://analyticsadmin.googleapis.com/v1beta/{parent=properties/*}/googleAdsLinks` to create a GoogleAdsLink. The `parent` path parameter, formatted as `properties/1234`, is required. The request body needs a `GoogleAdsLink` instance. Upon success, the response body returns the newly created `GoogleAdsLink`. The `https://www.googleapis.com/auth/analytics.edit` OAuth scope is mandatory for authorization. You can try this method through the given `try it` option.\n"]]