How to use the Facebook Ads API to get custom columns in Ads Manager? - facebook

I've been experimenting with the Facebook Marketing API to see what I can access in terms of the user's campaigns, ad sets and ads etc. One thing I'm curious by, through the API, is it possible to get the customised columns that the user has selected when viewing metrics for their campaigns, ad sets or ads?
For example, the user has selected to see only Delivery, Cost and Budget metrics for their ad sets. Can I somehow know they've picked these columns from the API alone?

You can't. The Ads manager on Facebook is just another app using the Marketing API (same goes for Power editor, Graph API explorer and others).
Settings of the Ads manager aren't part of ad account data and are private to the app.

Related

Manage data for multiple ads accounts by Facebook Marketing API

my team uses many Facebook Business Manager to manage multiple Ad Accounts. Usually our employees will check the Amount Spent and Bill manually in Facebook sites. But now the number of ad accounts increases, I would like to automate the tasks: syncing data from Facebook to our own database (for high manager to view).
I tried with my own Facebook Account (by my own facebook App), I can get the Amount Spent already. My questions are:
What is the API to get Amount Billed, I searched around but not yet found
Because the number of ad accounts is big, what will be the good approach? (I am thinking of create a sole app and let the advertisers authorize it, And use the token to call Graph API; 2nd way is: each facebook user create their own app, this will not need Facebook to approve the app).
Sorry for my bad English, I am really new to Facebook API, please help. Thank you very much.
You can get Budget,Spend... with Ad Set (lifetime_budget,daily_budget)
https://developers.facebook.com/docs/marketing-api/reference/ad-campaign#fields
and get report Cpc,cpm... with Insight
https://developers.facebook.com/docs/marketing-api/reference/ad-campaign-group/insights/#fields

Facebook ad attribution report per-user

My company launched several Facebook ads campaign to drive page likes. Once the campaigns have run for several days, Facebook was able to generate a report of the result of the campaign, showing the number of users that are reached by the campaign aggregated by various dimensions (gender, age, etc).
Given that FB is able to show such aggregate value, I imagine internally FB ads attribution already associated the FB accounts that were reached by said campaign. But no matter what kind of report I try to create, there seems to be no way to download this list of individual accounts that were reached by a campaign, either via API nor GUI.
Is there a way to get this list? Or is it deliberately made not possible due to some regulations or privacy policy?
Facebook deliberately made it this way. You can access the performance data as granular as the ad level, but no further than that. I think attribution solution companies that collaborate with FB have access to the user level information, so the data are definitely collected and stored.

How to get user data now with restrictions on instagram platform api?

There have been lots of changes to the facebook api recently, which now includes the instagram api as well. https://www.instagram.com/developer/changelog/
They have shutdown a lot of endpoints way ahead of schedule and has created a huge problem for my application which integrates instagram user data. They have the instagram graph api now, but looks like it can be used only for business accounts (looked like that prima facie). Reading through the news past couple of days, I am really confused about what is available and what is not. My application used to get user data (number of followers, recent posts, reach, likes, etc) using the instagram handle provided by users. Since this is totally restricted on the platform api now, is there a way I can have the same functionality using the new graph api? Or should I look into 3rd party APIs? I am open to asking users for authentication (I already have the facility). Can the user information be fetched after they authenticate my app to do so?
You can use the following Graph API to get all the details for any IG business account.
https://developers.facebook.com/docs/instagram-api/business-discovery

Marketing API: New ads stops delivery on the entire ad account

We have been creating new campaigns + a couple of ad sets and a single ad within each ad set using the Marketing API.
While the ad accounts work just fine when we create ads using the Facebook interfaces, those created using the API causes the entire account to stop delivering any ads for approximately 24 hours. Then it magically starts working.
Is there any documented or practical reason why this could happen? The access tokens are from application owners obtained and extended using graph api explorer.
Updates and read calls to API works without issues. It's just creating ads causing issues.
Any ideas?
Edit: We did contact the Ads support team and they said there does not seem to be any issues with the accounts.

How can I track performance of facebook mobile app ad campaigns

As we know, we can use marketing API of facebook to check our campaigns.
But these statistics are aggregated, can not understand my audiences of ads.
Whether there is API to fix this problem?
I just want to get device level info from every ads.
Like:
Get IDFA (advertising ID in iOS) have been installed Application by clicking My facebook ads.
User level data is not accessible due to user's privacy. However, you can get some aggregated numbers with more detail by using Facebook Analytics or the /app_insights endpoint. https://developers.facebook.com/docs/graph-api/reference/application/app_insights