Method: setWebAndAppActivityControl
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
वेब और सेवा खाते में ऐप्लिकेशन गतिविधि कंट्रोल.
कॉल की कार्रवाइयों का इस्तेमाल करने के लिए, यह सेटिंग चालू होना ज़रूरी है. दरअसल, यह सेटिंग सेवा खातों के लिए बंद की जाती है. साथ ही, इसे तब तक सुरक्षित रखा जाता है, जब तक इसे किसी दूसरी वैल्यू पर सेट नहीं किया जाता. इसका मतलब है कि इसे हर खाते के लिए सिर्फ़ एक बार चालू करना होगा (हर टेस्ट के लिए एक बार ऐसा नहीं करना होगा), जब तक कि इसे बाद में बंद न कर दिया जाए.
अगर कॉलर, सेवा खाता नहीं है, तो गड़बड़ी वाला मैसेज दिखाता है. उपयोगकर्ता खाते के पास 'गतिविधि कंट्रोल' पेज पर जाकर, इस सेटिंग को बदलने का विकल्प होता है. https://support.google.com/websearch/answer/54068 देखें.
एचटीटीपी अनुरोध
POST https://actions.googleapis.com/v2:setWebAndAppActivityControl
यह यूआरएल gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
अनुरोध का मुख्य भाग
अनुरोध के मुख्य हिस्से में, यहां दिए गए स्ट्रक्चर का डेटा शामिल होता है:
JSON के काेड में दिखाना |
{
"enabled": boolean
} |
फ़ील्ड |
enabled |
boolean
सेटिंग को 'चालू है' पर सेट करना है या 'बंद है' पर.
|
जवाब का मुख्य भाग
जवाब सही होने पर, जवाब का मुख्य हिस्सा खाली होता है.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eEnables or disables Web & App Activity control for service accounts, required for using call Actions.\u003c/p\u003e\n"],["\u003cp\u003eThis setting is persistent and needs to be enabled only once per account unless later disabled.\u003c/p\u003e\n"],["\u003cp\u003eReturns an error if used by non-service accounts; user accounts manage this setting through the Activity Controls page.\u003c/p\u003e\n"],["\u003cp\u003eThe request body uses a simple JSON structure with a boolean field "enabled" to set the desired state.\u003c/p\u003e\n"],["\u003cp\u003eA successful operation results in an empty response body.\u003c/p\u003e\n"]]],[],null,["# Method: setWebAndAppActivityControl\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n\nSets the Web \\& App Activity control on a service account.\n\nIt is necessary to have this setting enabled in order to use call Actions. The setting is originally disabled for service accounts, and it is preserved until set to a different value. This means it only needs to be enabled once per account (and not necessarily once per test), unless it is later disabled.\n\nReturns an error if the caller is not a service account. User accounts can change this setting via the Activity Controls page. See \u003chttps://support.google.com/websearch/answer/54068\u003e.\n\n### HTTP request\n\n`POST https://actions.googleapis.com/v2:setWebAndAppActivityControl`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation ||\n|--------------------------------|---|\n| ``` { \"enabled\": boolean } ``` |\n\n| Fields ||\n|-----------|------------------------------------------------------------------------------|\n| `enabled` | `boolean` Whether the setting should be set to an enabled or disabled state. |\n\n### Response body\n\nIf successful, the response body is empty."]]