概要: このドキュメントでは、Google Cloud の Analytics Admin API バージョン 1.0 です。
はじめに
Google Analytics Admin API を使用すると、Google アナリティクス 4(GA4)にプログラムによりアクセスできます。 GA4 プロパティにのみ対応しています。詳細: GA4 プロパティをご覧ください。
Google Analytics Admin API を使用すると、次のことができます。
- 新しいアカウントをプロビジョニングする。
- アカウントを管理します。
- データ共有設定を管理する。
- アカウントの概要を一覧表示します。
- 変更履歴のイベントを検索します。
- プロパティの管理。
- サブプロパティの管理。
- ユーザーデータの収集を承認します。
- プロパティのデータ保持設定を管理します。
- プロパティの Google シグナル設定を管理する(アルファ版)。
- ストリームを管理する。
- Measurement Protocol のシークレットを管理します。
- SKAdNetwork コンバージョン値スキーマ(アルファ版)を管理しましょう。
- ウェブデータ ストリーム用の Google タグスニペットを生成する(アルファ版)。
- キーイベントを管理します。
- コンバージョン イベントを管理する(非推奨)。
- イベント作成ルールの管理(アルファ版)
- イベントの編集ルールを管理する(アルファ版)
- カスタム ディメンションを管理します。
- カスタム指標を管理します。
- GA4 プロパティと Firebase プロジェクトのリンクを管理できます。
- GA4 プロパティと Google 広告アカウントのリンクを管理する
- GA4 プロパティとディスプレイ &ビデオ 360 のリンクのプロポーザルを管理する動画 360 広告主(アルファ版)。
- GA4 プロパティとディスプレイ &ビデオ 360 間のリンクを管理する動画 360 の広告主 (アルファ版)。
- GA4 プロパティと検索広告 360(アルファ版)間のリンクを管理する
- GA4 プロパティと BigQuery プロジェクト間のリンクを管理する(アルファ版)。
- アカウント階層と GA4 プロパティのユーザー権限を管理する (アルファ版)。
- データアクセス レポートを生成する。
- オーディエンスの管理(アルファ版)。
- 拡張データセットを管理する(アルファ版)。
- GA4 設定プロセスの自動オプトアウト設定を管理する(アルファ版)。
利用可能なメソッド
次のメソッドを使用できます。
アカウント プロビジョニング
このメソッドは accountTicketId
フィールドを返します。
利用規約(TOS)の URL:
https://analytics.google.com/analytics/web/?provisioningSignup=false#/termsofservice/ACCOUNT_TICKET_ID
。
ユーザーが TOS URL にアクセスして利用規約に同意すると、
これで Google アナリティクス アカウントが完成します。詳しくは、アカウントのプロビジョニング
サンプルです。
アカウント管理
データ共有設定の管理
アカウント概要のリスト
変更履歴のイベントを検索
プロパティ管理
サブプロパティの管理(アルファ版)
ユーザーデータ収集の確認
データ保持設定の管理
Google シグナル設定の管理(アルファ版)
データ ストリームの管理
properties.dataStreams.create
properties.dataStreams.get
properties.dataStreams.list
properties.dataStreams.patch
properties.dataStreams.delete
Measurement Protocol のシークレット管理
properties.dataStreams.measurementProtocolSecrets.create
properties.dataStreams.measurementProtocolSecrets.get
properties.dataStreams.measurementProtocolSecrets.patch
properties.dataStreams.measurementProtocolSecrets.list
properties.dataStreams.measurementProtocolSecrets.delete
SKAdNetwork コンバージョン値スキーマの管理(アルファ版)
properties.dataStreams.sKAdNetworkConversionValueSchema.get
properties.dataStreams.sKAdNetworkConversionValueSchema.create
properties.dataStreams.sKAdNetworkConversionValueSchema.delete
properties.dataStreams.sKAdNetworkConversionValueSchema.update
properties.dataStreams.sKAdNetworkConversionValueSchema.list
キーイベント管理
properties.keyEvents.create
properties.keyEvents.get
properties.keyEvents.list
properties.keyEvents.delete
properties.keyEvents.patch
コンバージョン イベントの管理
properties.conversionEvents.create
properties.conversionEvents.get
properties.conversionEvents.list
properties.conversionEvents.delete
properties.conversionEvents.patch
イベント作成ルールの管理(アルファ版)
properties.eventCreateRules.create
properties.eventCreateRules.get
properties.eventCreateRules.list
properties.eventCreateRules.delete
properties.eventCreateRules.patch
イベント編集ルールの管理(アルファ版)
properties.eventEditRules.create
properties.eventEditRules.get
properties.eventEditRules.list
properties.eventEditRules.delete
properties.eventEditRules.patch
カスタム ディメンションの管理
properties.customDimensions.create
properties.customDimensions.get
properties.customDimensions.list
properties.customDimensions.patch
properties.customDimensions.archive
カスタム指標の管理
properties.customMetrics.create
properties.customMetrics.get
properties.customMetrics.list
properties.customMetrics.patch
properties.customMetrics.archive
Firebase プロジェクトのリンク設定
Google 広告アカウントとのリンク
properties.googleAdsLinks.create
properties.googleAdsLinks.list
properties.googleAdsLinks.patch
properties.googleAdsLinks.delete
Google タグの生成(アルファ版)
GA4 プロパティとディスプレイ &ビデオ 360 のリンクの提案動画 360 の広告主(アルファ版)
properties.displayVideo360AdvertiserLinkProposals.create
properties.displayVideo360AdvertiserLinkProposals.approve
properties.displayVideo360AdvertiserLinkProposals.cancel
properties.displayVideo360AdvertiserLinkProposals.list
properties.displayVideo360AdvertiserLinkProposals.get
properties.displayVideo360AdvertiserLinkProposals.delete
ディスプレイと動画 360 広告主アカウントのリンク(アルファ版)
properties.displayVideo360AdvertiserLinks.create
properties.displayVideo360AdvertiserLinks.get
properties.displayVideo360AdvertiserLinks.list
properties.displayVideo360AdvertiserLinks.delete
properties.displayVideo360AdvertiserLinks.patch
検索広告 360 アカウントのリンク(アルファ版)
properties.searchAds360Links.create
properties.searchAds360Links.delete
properties.searchAds360Links.patch
properties.searchAds360Links.list
properties.searchAds360Links.get
アナリティクスの検索広告 360 の設定に関する詳細 GA4 の統合 プロパティです。
BigQuery アカウントのリンク(アルファ版)
properties.bigQueryLinks.create
properties.bigQueryLinks.delete
properties.bigQueryLinks.get
properties.bigQueryLinks.list
properties.bigQueryLinks.patch
BigQuery Export の設定の詳細 作成することもできます
ユーザー権限の管理(アルファ版)
accounts.accessBindings.create
accounts.accessBindings.delete
accounts.accessBindings.patch
accounts.accessBindings.list
accounts.accessBindings.get
accounts.accessBindings.batchCreate
accounts.accessBindings.batchDelete
accounts.accessBindings.batchUpdate
accounts.accessBindings.batchGet
properties.accessBindings.create
properties.accessBindings.delete
properties.accessBindings.patch
properties.accessBindings.list
properties.accessBindings.get
properties.accessBindings.batchCreate
properties.accessBindings.batchDelete
properties.accessBindings.batchUpdate
properties.accessBindings.batchGet
データアクセス レポート
詳しくは、データアクセス レポートガイドをご覧ください。 説明します。
オーディエンス管理(アルファ版)
properties.audiences.create
properties.audiences.archive
properties.audiences.patch
properties.audiences.list
properties.audiences.get
オーディエンスの詳細 確認できます
拡張データセット管理(アルファ版)
properties.expandedDataSets.create
properties.expandedDataSets.delete
properties.expandedDataSets.patch
properties.expandedDataSets.list
properties.expandedDataSets.get
拡張データセットの詳細 確認できます
GA4 自動設定プロセスのオプトアウト(アルファ版)
オプトアウトの管理に関する詳細 ステータス をご覧ください。