Viewing Adobe Analytics データ in RAD Studio Data Explorer

How to view Adobe Analytics データ in RAD Studio Data Explorer using the CData ODBC Driver for Adobe Analytics.

最終更新日:2023-06-12

Embarcadero RAD Studio provides a development environment for Delphi and C++Builder applications. With the CData ODBC Driver for Adobe Analytics, you gain access to live Adobe Analytics データ within RAD Studio, abstracting the data into tables, views, and stored procedures that can be used to both retrieve Adobe Analytics データ. This article will walk through connecting to Adobe Analytics using the Data Explorer.

Configure a Connection to Adobe Analytics

If you have not already, first specify connection properties in an ODBC DSN (data source name). This is the last step of the driver installation. You can use the Microsoft ODBC Data Source Administrator to create and configure ODBC DSNs.

Adobe Analytics への接続

Adobe Analytics に接続するには、GlobalCompanyId およびRSID を識別する必要があります。デフォルトで、ドライバーは会社とレポートスイートの識別を自動で試みますが、これらの値を明示的に指定することもできます。方法はヘルプドキュメントの「Adobe Analytics への接続」セクションを参照してください。

Adobe Analytics への認証

Adobe Analytics はOAuth 認証標準を利用しています。 OAuth またはサービスアカウントで認証できます。

ユーザーアカウント(OAuth)

すべてのユーザーアカウントフローでAuthSchemeOAuth に設定する必要があります。OAuth 経由のAdobe 認証では、2週間ごとにリフレッシュトークンを更新する必要があります。詳しい認証方法については、ヘルプドキュメントの「Adobe Analytics への認証」セクションを参照してください。

サービスアカウント

サービスアカウントにはサイレント認証があり、ブラウザでのユーザー認証は必要ありません。このフローでは、アプリケーションを作成する必要があります。アプリケーションの作成および認可については、ドキュメントの「カスタムOAuth アプリの作成」を参照してください。これでサービスアカウントにアクセス権があるAdobe Analytics データに接続できます。

サービスアカウントを使用したServer-to-Server OAuthで認証するには、AuthSchemeOAuthClient に設定します。接続するには次のプロパティを設定します。

  • InitiateOAuthGETANDREFRESH に設定。
  • OAuthClientId:アプリケーション設定のクライアントId に設定。
  • OAuthClientSecret:アプリケーション設定のクライアントシークレットに設定。

接続すると、本製品 はサービスアカウントでのOAuth フローを完了します。

  1. クライアントクレデンシャルOAuth フローで指定されたOAuthClientId およびOAuthClientSecret を使用して、アクセストークンを取得します。
  2. OAuthSettingsLocation にOAuth 値を保存し、接続間で永続化されるようにします。
  3. トークンが期限切れになった際に、新しいアクセストークンを要求します。

Connecting to Adobe Analytics データ Using Data Explorer

You can create a simple application for displaying Adobe Analytics データ by utilizing the CData FireDAC Components for Adobe Analytics and a new VCL Forms Application:

  1. Open the Data Explorer in RAD Studio and expand FireDAC.
  2. Right-click the ODBC Data Source node in the Data Explorer.
  3. Click Add New Connection.
  4. Enter a name for the connection.
  5. In the FireDAC Connection Editor that appears, set the DataSource property to the name of the ODBC DSN for Adobe Analytics.
  6. Back in the Data Explorer, expand the views for the connection.
  7. Create a new VCL Forms application and drag a view (for example: AdsReport) onto the form.

  8. Select the AdsReportView object on the form and set the Active property to true.
  9. Right-click on the object, bind visually, and link everything (*) to a new control (TStringGrid).

  10. Arrange the TStringGrid on the form and run the application to see the AdsReport data.

Related Articles

Below you can find other articles for using the CData ODBC Driver with RAD Studio, Delphi, and C++ Builder.

関連コンテンツ

トライアル・お問い合わせ

30日間無償トライアルで、CData のリアルタイムデータ連携をフルにお試しいただけます。記事や製品についてのご質問があればお気軽にお問い合わせください。