Method: setWebAndAppActivityControl
Stay organized with collections
Save and categorize content based on your preferences.
Sets the Web & App Activity control on a service account.
It 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.
Returns an error if the caller is not a service account. User accounts can change this setting via the Activity Controls page. See https://support.google.com/websearch/answer/54068.
HTTP request
POST https://actions.googleapis.com/v2:setWebAndAppActivityControl
The URL uses gRPC Transcoding syntax.
Request body
The request body contains data with the following structure:
JSON representation |
{
"enabled": boolean
} |
Fields |
enabled |
boolean
Whether the setting should be set to an enabled or disabled state.
|
Response body
If successful, the response body is empty.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 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,["- [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\nHTTP request\n\n`POST https://actions.googleapis.com/v2:setWebAndAppActivityControl`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nRequest 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\nResponse body\n\nIf successful, the response body is empty."]]