Acknowledge GA4 user data collection terms
google-analytics.x.analyticsadmin-properties-acknowledgeuserdatacollectionproperties.acknowledgeUserDataCollection — Acknowledges the terms of user data collection for the specified property. This acknowledgement must be completed (either in the Google Analytics UI or through this API) before MeasurementProtocolSecret resources may be created.
- 価格
- freeカタログ価格で提供
- 成功率
- —成功率データはまだありません直近 30 日 · 0 回
- レイテンシ p50
- ——
- 最終確認
- —未確認
POSThttps://toolswitch.dev/v1/tools/google-analytics.x.analyticsadmin-properties-acknowledgeuserdatacollectionBeta- プラットフォームのクォータを使用
- 同期レスポンス
- 公開データを読み取る
パラメータ
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| パスパラメータ | ||||
property | 文字列 | 必須 | Required. The property for which to acknowledge user data collection. | |
- パスパラメータ
property文字列必須Required. The property for which to acknowledge user data collection.
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
Beta
curl -X POST 'https://toolswitch.dev/v1/tools/google-analytics.x.analyticsadmin-properties-acknowledgeuserdatacollection' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/google-analytics.x.analyticsadmin-properties-acknowledgeuserdatacollection",
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-acknowledgeuserdatacollection", {
method: "POST",
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 です。サービス料を含みます。