Questions tagged [facebook-ads-api]

The Facebook Ads API (aka Marketing API) is used by application developers to create, manage and measure ad campaigns that run on Facebook.

The Facebook Marketing API (previously referred to as Ads API) is an interface into Facebook to create ads, manage campaigns, and measure the performance of a campaign. The Facebook Marketing API has various levels of access, some of which may require an application and review process. See Facebook's Marketing APIs access documentation for more details.

The Facebook Marketing API is a subset of the Facebook Graph API where requests and responses are sent over HTTP and the responses are usually returned as JSON.

The Facebook hosted documentation is available here: Facebook Marketing API Documentation

867 questions
7
votes
1 answer

How to solve this Facebook Audience network bug causing for version update?

After updating Facebook Audience Network SDK version to 4.26.0, my app is facing lots of crash because of the below issue according to Firebase crash report. Caused by java.lang.IllegalStateException: attempt to re-open an already-closed object:…
7
votes
2 answers

How to retrieve all my active Facebook ads?

I'm creating a dashboard for myself that helps me keep track of the Facebook ads I'm running. What I've not been able to figure out is: How can I retrieve an array of ad IDs for all ads that are active or could soon be active after no further action…
7
votes
3 answers

Facebook "Boost Post" through API?

I've been crawling through the documentation and found out that it IS possible to achieve a "Boost Post" functionality through the Facebook Ad APIs. However, I have had some trouble finding what exactly the Boost Post does? i.e. Which part of the…
Muhwu
  • 1,151
  • 1
  • 10
  • 26
7
votes
1 answer

Facebook: How to separate debug and prod mode events?

I'm using the Facebook SDK to track ads mobile install and followed this tutorial: mobile ads install So far, events in DashBoard / Insight are not separated for debug / prod mode. Do I have to create 2 appIDs to separate the debug and prod events…
james075
  • 1,280
  • 1
  • 12
  • 22
6
votes
1 answer

Instagram Post Insights - Organic v/s Paid Breakdown

According to Instagram (GRAPH) documentation, it's straight forward to get the insights of a post or media object (even story). Unlike the Facebook insights of a post, Instagram (GRAPH) does not provide paid/organic breakdown on a post level for…
6
votes
4 answers

Facebook Ads Error : You can't call show() for ad in state LOADING

I'm integrating Facebook Ads in my app following their official documentation. But when I run my app I get the following exception java.lang.IllegalStateException: You can't call show() for ad in state LOADING. You can change Integration Error mode…
AwaisMajeed
  • 2,254
  • 2
  • 10
  • 25
6
votes
0 answers

Get Facebook Marketing API Ads insights results as CSV or JSON format

I am attempting to use the Facebook-Python-Ads-SDK to automate reporting on Ad Account performance. I have successfully requested a report at the ad set level, however the output of the report is a Cursor object, where I would prefer it to be a json…
R.Z.
  • 101
  • 6
6
votes
1 answer

In the FB marketing api, there is an option to export_format: 'csv', how do I download the csv file?

I'm looking to download a CSV from my api call to FB ads, I've set it in the parameters as per the code below, the call works fine but I only get a paginated JSON as a response. I'm not quite sure how to access the CSV report, the response doenst…
6
votes
1 answer

Facebook Ads page_welcome_message invalid for ads with Messenger as destination

trying to run a 'Traffic' ad to a Facebook Messenger bot. In order to initiate the bot conversation I need to use the 'Get Started' button as part of the messenger ad conversation and therefore need to use the "Structured Message (JSON)" option. I…
6
votes
4 answers

Facebook Ads Python: How to access the HTTP header returned?

I want to get the load limit of my facebook ads app. I am using the facebook ads python library. According to the docs, the HTTP response contains a X-FB-Ads-Insights-Throttle header. How can I access it?
Eadan Fahey
  • 353
  • 2
  • 11
6
votes
2 answers

Possible to specify date_preset with insights edge in Facebook Ads API?

For the Marketing API, I know that I'm able to make one call to retrieve all of the adsets from a certain account along with their insights, but am I able to specify the date_preset for the insights edge in that same call? For example, the following…
6
votes
2 answers

Facebook Marketing API Rate Limit

I know that fb have made available some documentation about the requests limits to the api https://developers.facebook.com/docs/marketing-api/api-rate-limiting, but it is not clear how each api call is calculated... i.e, If I want to get stats for…
6
votes
3 answers

Facebook Ads Api Request fails with #273 requires user to be admin

I'm trying to query the Facebook Ads API with the Graph Api Explorer. I have two Ads Account connected to me (if i query /me/adaccounts/ I see both) one is my own and the other one I'm only admin on but not owner. The Problem is with the one I'm not…
L.A
  • 445
  • 5
  • 11
6
votes
2 answers

Facebook Ads API: (#10) You do not have sufficient permissions to perform this action

I have facebook app with status Live and available to all users. When I login through this app on my site I get access_token for my facebook user. And with this access_token I can read with Ads API next methods (for my own ad…
Vitalii Ponomar
  • 10,686
  • 20
  • 60
  • 88
6
votes
1 answer

There have been too many calls from this ad-account. Wait a bit and try again

I am trying to fetch the reportstats from our account. I need to make async calls because otherwise I would get and error that the data is to old. When I create multiple requests I will get the error: "There have been too many calls from this…
Jostcrow
  • 369
  • 5
  • 13
1 2
3
57 58