会話型アクションのサポートは 2023 年 6 月 13 日に終了しました。詳細については、
会話型アクションの廃止をご覧ください。
Method: setWebAndAppActivityControl
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ウェブとサービス アカウントに対するアプリのアクティビティ管理。
通話アクションを使用するには、この設定を有効にする必要があります。この設定は当初、サービス アカウントに対して無効になっており、別の値を設定するまで保持されます。つまり、後で無効にしない限り、アカウントごとに 1 回のみ有効にします(テストごとに 1 回は必要ではありません)。
呼び出し元がサービス アカウントでない場合、エラーを返します。ユーザー アカウントは、[アクティビティ管理] ページでこの設定を変更できます。詳しくは、https://support.google.com/websearch/answer/54068 をご参照ください。
HTTP リクエスト
POST https://actions.googleapis.com/v2:setWebAndAppActivityControl
この URL は gRPC Transcoding 構文を使用します。
リクエストの本文
リクエストの本文には、次の構造のデータが含まれます。
JSON 表現 |
{
"enabled": boolean
} |
フィールド |
enabled |
boolean
設定を有効と無効のどちらの状態に設定するか。
|
レスポンスの本文
成功すると、レスポンスの本文は空になります。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[[["わかりやすい","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-07-26 UTC。"],[[["Enables or disables Web & App Activity control for service accounts, required for using call Actions."],["This setting is persistent and needs to be enabled only once per account unless later disabled."],["Returns an error if used by non-service accounts; user accounts manage this setting through the Activity Controls page."],["The request body uses a simple JSON structure with a boolean field \"enabled\" to set the desired state."],["A successful operation results in an empty response body."]]],[]]