यह किसी UA प्रॉपर्टी के लिए, GA4 को अपने-आप सेट अप करने की प्रोसेस से ऑप्ट आउट करने का स्टेटस फ़ेच करता है. ध्यान दें: इससे GA4 प्रॉपर्टी पर कोई असर नहीं पड़ता.
एचटीटीपी अनुरोध
POST https://analyticsadmin.googleapis.com/v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut
अनुरोध के मुख्य भाग में, नीचे दिए गए स्ट्रक्चर वाला डेटा होता है:
JSON के काेड में दिखाना
{"property": string}
फ़ील्ड
property
string
ज़रूरी है. ऑप्ट आउट की स्थिति पाने वाली UA प्रॉपर्टी. ध्यान दें कि यह अनुरोध, UA-XXXXXX-YY फ़ॉर्मैट के ट्रैकिंग आईडी के बजाय, इंटरनल प्रॉपर्टी आईडी का इस्तेमाल करता है. फ़ॉर्मैट: properties/{internalWebPropertyId} उदाहरण: properties/1234
जवाब का मुख्य भाग
अपने-आप GA4 सेटअप करने की प्रोसेस के लिए, ऑप्ट आउट करने का स्टेटस फ़ेच करने के लिए रिस्पॉन्स मैसेज.
अगर एपीआई सही से जुड़ जाता है, ताे जवाब के मुख्य भाग में नीचे दिए गए स्ट्रक्चर शामिल होता है.
JSON के काेड में दिखाना
{"optOut": boolean}
फ़ील्ड
optOut
boolean
UA प्रॉपर्टी के लिए ऑप्ट आउट की स्थिति.
अनुमति के दायरे
इसके लिए, OAuth के इनमें से किसी एक स्कोप की ज़रूरत होती है:
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-01-14 (UTC) को अपडेट किया गया."],[[["Fetches the automated GA4 setup opt-out status for a Universal Analytics (UA) property, having no impact on GA4 properties."],["The request requires the internal property ID of the UA property, not the tracking ID."],["The response indicates whether the automated GA4 setup is opted out for the specified UA property."],["Requires authorization with either `analytics.readonly` or `analytics.edit` scope."]]],["The core action is to fetch the opt-out status of a UA property for the automated GA4 setup. This is done via a POST request to `https://analyticsadmin.googleapis.com/v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut`. The request body requires a JSON object with the `property` field specifying the UA property's internal ID. The response body contains a JSON object with the `optOut` field indicating the property's opt-out status. Two authorization scopes are available:`analytics.readonly` or `analytics.edit`.\n"]]