Update a Measurement Protocol secret on a GA4 stream
google-analytics.x.analyticsadmin-properties-datastreams-measurementprotocolsecrets-patchmeasurementProtocolSecrets.patch — Updates a measurement protocol secret.
- 価格
- freeカタログ価格で提供
- 成功率
- —成功率データはまだありません直近 30 日 · 0 回
- レイテンシ p50
- ——
- 最終確認
- —未確認
PATCHhttps://toolswitch.dev/v1/tools/google-analytics.x.analyticsadmin-properties-datastreams-measurementprotocolsecrets-patchBeta- プラットフォームのクォータを使用
- 同期レスポンス
- 公開データを読み取る
パラメータ
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| パスパラメータ | ||||
name | 文字列 | 必須 | Identifier. Resource name of this secret. This secret may be a child of any type of stream. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} | |
| クエリパラメータ | ||||
updateMask | 文字列 | 任意 | Required. The list of fields to be updated. Omitted fields will not be updated. | |
- パスパラメータ
name文字列必須Identifier. Resource name of this secret. This secret may be a child of any type of stream. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
- クエリパラメータ
updateMask文字列任意Required. The list of fields to be updated. Omitted fields will not be updated.
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
Beta
curl -X PATCH 'https://toolswitch.dev/v1/tools/google-analytics.x.analyticsadmin-properties-datastreams-measurementprotocolsecrets-patch' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"PATCH",
"https://toolswitch.dev/v1/tools/google-analytics.x.analyticsadmin-properties-datastreams-measurementprotocolsecrets-patch",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/google-analytics.x.analyticsadmin-properties-datastreams-measurementprotocolsecrets-patch", {
method: "PATCH",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());このゲートウェイ API は Beta です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は free です。サービス料を含みます。