製品をチェック

無償トライアル:

無償トライアルへ

製品の情報と無償トライアルへ:

Facebook Ads ADO.NET Provider

Facebook Ads データに連携する.NET アプリケーションを素早く、簡単に開発できる便利なドライバー。

データ連携でお困りですか?

お問い合わせ

Facebook Ads データをDevExpress Data Grid にデータバインドする。


Facebook Ads 用の CData ADO.NET プロバイダーをDevExpress Windows Forms とWeb コントロールとともに使用し、Facebook Ads をチャートに入力します。


facebookads ロゴ画像
ado ロゴ画像

ADO.NET

DevExpress ロゴ画像

Facebook Ads 用の CData ADO.NET プロバイダーはサードパーティーコントロールで使うことのできる通常のADO.NET データベースアクセスコンポーネントを実装しています。データバインドするための通常のADO.NET プロセスに従うことで、UI コントロールから実データへの双方向アクセスを可能にします。 この記事では、CData を使ってDevExpress Windows Forms とウェブコントロールにデータバインドする方法を説明します。ここでは、最新のデータを表示するチャートにデータバインドします。

Most tables require user authentication as well as application authentication. Facebook uses the OAuth authentication standard. To authenticate to Facebook, you can use the embedded OAuthClientId, OAuthClientSecret, and CallbackURL or you can obtain your own by registering an app with Facebook.

See the Getting Started chapter of the help documentation for a guide to using OAuth.

Windows Forms コントロール

下のコードでは、Facebook Ads でDevExpress のチャートに追加する方法を説明します。FacebookAdsDataAdapter はチャートコントロールのSeries プロパティにバインドします。コントロールのDiagram プロパティはx 軸とy 軸をカラム名として定義します。

using (FacebookAdsConnection connection = new FacebookAdsConnection( "")) { FacebookAdsDataAdapter dataAdapter = new FacebookAdsDataAdapter( "SELECT AccountId, Name FROM AdAccounts WHERE Name = 'Acct Name'", connection); DataTable table = new DataTable(); dataAdapter.Fill(table); DevExpress.XtraCharts.Series series = new DevExpress.XtraCharts.Series(); chartControl1.Series.Add(series); DataTable table = new DataTable(); series.ValueDataMembers.AddRange(new string[] { "Name" }); series.ArgumentScaleType = DevExpress.XtraCharts.ScaleType.Qualitative; series.ArgumentDataMember = "AccountId"; series.ValueScaleType = DevExpress.XtraCharts.ScaleType.Numerical; chartControl1.Legend.Visibility = DevExpress.Utils.DefaultBoolean.False; ((DevExpress.XtraCharts.SideBySideBarSeriesView)series.View).ColorEach = true; } The complete code example and the resulting chart.

Web コントロール

下のコードではFacebook Ads でDevExpress Web を操作するための設定方法を説明します。FacebookAdsDataAdapter はチャートのSeries プロパティにバインドします。Diagram プロパティはx 軸とy 軸をカラム名として定義します。 using DevExpress.XtraCharts; using (FacebookAdsConnection connection = new FacebookAdsConnection( "")) { FacebookAdsDataAdapter FacebookAdsDataAdapter1 = new FacebookAdsDataAdapter("SELECT AccountId, Name FROM AdAccounts WHERE Name = 'Acct Name'", connection); DataTable table = new DataTable(); FacebookAdsDataAdapter1.Fill(table); DevExpress.XtraCharts.Series series = new Series("Series1", ViewType.Bar); WebChartControl1.Series.Add(series); DataTable table = new DataTable(); series.ValueDataMembers.AddRange(new string[] { "Name" }); series.ArgumentScaleType = ScaleType.Qualitative; series.ArgumentDataMember = "AccountId"; series.ValueScaleType = ScaleType.Numerical; ((DevExpress.XtraCharts.SideBySideBarSeriesView)series.View).ColorEach = true; } An ASP.NET application created with the ADO.NET Provider and the DevExpress Web Forms control.(Salesforce is shown.)