概要: このドキュメントでは、Google アナリティクス Admin API バージョン 1.0 の概要について説明します。
はじめに
Google アナリティクスの Admin API を使用すると、Google アナリティクスの設定データにプログラムでアクセスできます。この API は、Google アナリティクスのプロパティとのみ互換性があります。詳しくは、Google アナリティクスのプロパティについての記事をご覧ください。
Google Analytics Admin API を使用すると、次のことができます。
- 新しいアカウントをプロビジョニングする。
- アカウントを管理する。
- データ共有設定を管理する。
- アカウントの概要を一覧表示します。
- 変更履歴イベントを検索する。
- プロパティを管理する。
- サブプロパティを管理する。
- ユーザーデータの収集に同意します。
- プロパティのデータ保持設定を管理する。
- Google シグナルにおける特定のプロパティの設定を管理する(アルファ版)
- ストリームを管理する。
- Measurement Protocol のシークレットを管理する。
- SKAdNetwork コンバージョン値スキーマを管理する(アルファ版)。
- ウェブデータ ストリーム用の Google タグスニペットを生成する(アルファ版)。
- キーイベントを管理する。
- コンバージョン イベントを管理する(非推奨)
- イベント作成ルールを管理する(アルファ版)
- イベントの編集ルールを管理する(アルファ版)
- カスタム ディメンションを管理する。
- カスタム指標を管理する。
- Google アナリティクスのプロパティと Firebase プロジェクト間のリンクを管理する。
- Google アナリティクスのプロパティと Google 広告アカウントのリンクを管理する。
- Google アナリティクスのプロパティとディスプレイ&ビデオ 360 の広告主とのリンクの提案を管理する(アルファ版)。
- Google アナリティクスのプロパティとディスプレイ&ビデオ 360 の広告主とのリンクを管理する(アルファ版)。
- Google アナリティクスのプロパティと検索広告 360 のリンクを管理する(アルファ版)
- Google アナリティクスのプロパティと BigQuery プロジェクト間のリンクを管理する(アルファ版)。
- アカウント階層と Google アナリティクスのプロパティのユーザー権限を管理する(アルファ版)。
- データアクセス レポートを生成する。
- オーディエンスの管理(アルファ版)
- 拡張データセットを管理する(アルファ版)。
- Google アナリティクスの自動設定プロセスのオプトアウト設定を管理(アルファ版)。
利用可能な方法
使用可能な方法は次のとおりです。
アカウント プロビジョニング
このメソッドは、利用規約(TOS)の URL に含める必要がある accountTicketId
フィールドを返します。
https://analytics.google.com/analytics/web/?provisioningSignup=false#/termsofservice/ACCOUNT_TICKET_ID
ユーザーが利用規約の 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.dataStreams.eventCreateRules.create
properties.dataStreams.eventCreateRules.get
properties.dataStreams.eventCreateRules.list
properties.dataStreams.eventCreateRules.delete
properties.dataStreams.eventCreateRules.patch
イベント編集ルールの管理(アルファ版)
properties.dataStreams.eventEditRules.create
properties.dataStreams.eventEditRules.get
properties.dataStreams.eventEditRules.list
properties.dataStreams.eventEditRules.delete
properties.dataStreams.eventEditRules.patch
properties.dataStreams.eventEditRules.reorder
カスタム ディメンションの管理
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 タグの生成(アルファ版)
Google アナリティクスのプロパティとディスプレイ&ビデオ 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
詳しくは、Google アナリティクスのプロパティでアナリティクスと検索広告 360 の統合を設定する方法をご覧ください。
BigQuery アカウントのリンク(アルファ版)
properties.bigQueryLinks.create
properties.bigQueryLinks.delete
properties.bigQueryLinks.get
properties.bigQueryLinks.list
properties.bigQueryLinks.patch
Google アナリティクス プロパティの 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
詳しくは、Google アナリティクスのオーディエンスについての記事をご覧ください。
拡張データセットの管理(アルファ版)
properties.expandedDataSets.create
properties.expandedDataSets.delete
properties.expandedDataSets.patch
properties.expandedDataSets.list
properties.expandedDataSets.get
Google アナリティクス 360 の拡張データセットの詳細
Google アナリティクスの自動設定プロセスのオプトアウト(アルファ版)
UA プロパティの自動 Google アナリティクス設定プロセスのオプトアウト ステータスの管理について