Forum Discussion
Pulling Data from Facebook Ad Campaigns
I've build a custom data connector for Facebook Ads
You can just copy the mez file from https://github.com/Hugoberry/FacebookAds/tree/master/build into your
[My Documents]\Microsoft Power BI Desktop\Custom Connectors directory
and enable custom connectors in Power BI.
The FacebookAds connector now supports two functions. The initial functionality FacebookAds.Campaigns() will return you the insights for your campaigns.
The Second function FacebookAds.API(uri,params) is more of a credentials wrapper for the enitre MarketingAPI. You can tailor your requests as you want with it.
Hey...I just tried using this and got this error (replaced token with xxxxxxx).
DataSource.Error: Web.Contents failed to get contents from 'https://graph.facebook.com/v2.11/act_59096518/campaigns?access_token=xxxxxxx&fields=name' (400): Bad Request
Details:
DataSourceKind=FacebookAds
DataSourcePath=FacebookAds
Url=https://graph.facebook.com/v2.11/act_59096518/campaigns?access_token=xxxxx&fields=name
Let me know if I'm missing something