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
4
votes
1 answer

Ads on Graph api: adgroup stats data inconsistencies

We've noticed what appear to be some changes in how Facebook is returning adgroup stats data when requested using: https://graph.facebook.com/stats/startime/endtime?ids={adgroup_id}&access_token=... I am wondering if a) anyone else experiencing…
John Pickard
  • 308
  • 1
  • 8
4
votes
1 answer

Get metrics from Facebook Ads API

I am not able get the below metrics from Facebook API. How can I calculate the these metrics, which appear in Facebook's own ads interface, from the Facebook Ads API: Reach Social reach Frequency, CPC, CPM.
4
votes
1 answer

Facebook webhook verification response structure

This is my first time posting the question so please feel to provide feedback to improve the question. Facebook webhook mentions that the endpoint should be first verified before the webhook endpoint can receive any event notifications. The docs for…
4
votes
1 answer

How to access all draft campaigns with the Facebook marketing API?

I'm trying to list all of my draft campaigns using the Facebook marketing API. By default, it seems, only non-draft (published?) campaigns are listed when calling curl -i -X GET \ …
4
votes
1 answer

Get all lead ads form facebook API

I am trying to get all lead generation forms in my PHP script using Facebook API version 9.0 I am making the request like this: https://graph.facebook.com/v9.0//leadgen_forms? But its returning error, saying { "error": { …
stackuser
  • 168
  • 2
  • 6
  • 15
4
votes
0 answers

facebook marketing api, cant get draft campaigns, ads and adsets

I trying to build my develop environment to test the facebook marketing api. I have created campaigns and adset and ads as drafts and when I Try to get it as draft I'am using this endpoint act_xxxx/campaigns/?include_drafts=true But I getting…
4
votes
1 answer

How to update an Adsets (nested) targeting options via the Facebook Marketing API?

I'm trying to update an existing Adsets targeting options, but I just want the publisher_platforms to be changed. The error message I get is the following: error_user_msg: 'Your audience is missing a location. You can add a location or a Custom…
roundrobin
  • 674
  • 1
  • 7
  • 23
4
votes
2 answers

Facebook is throwing "Please specify an image to run with this ad." when trying to create an Ad

Facebook is throwing "Please specify an image to run with this ad." when I try to create adcreative id in turn to create an ad. Its throwing an image error but the image_hash is valid and verified. I followed the following documentation to create…
4
votes
0 answers

Facebook/Instagram Ads API: "The page-id and/or post-id didn't resolve to a valid story."

I am trying to create an Ad on Instagram via the Facebook Ads API. Our system currently works fine with creating Ads to be published on Facebook, however when I try to create an Ad for Instagram I get the following error: Message: Call was not…
4
votes
0 answers

FBAudienceframework in my framework in swift but its giving final class exception

FBAdLogger is a final class and cannot be subclassed. FBAdLogger 2018-06-19 18:16:46.777370+0530 100MB[28915:293039] * Terminating app due to uncaught exception 'FBFinalClassViolationException', reason: 'FBAdLogger is a final class and cannot be…
4
votes
1 answer

Facebook cannot retreive iPhone store ID

My app is live for 2 days now but I still cannot setup facebook iOS settings (Facebook Developer > MyApp > Settings > Basic > iOS). I receive below massage next to iPhone Store ID box. There was a problem retrieving your iPhone Store ID from the…
savante
  • 805
  • 1
  • 7
  • 20
4
votes
3 answers

Facebook Audience SDK Causing CRASH

I recently update my app's facebook audience sdk to the latest one and always getting a crash because of onLoggingImpression which is a new method in AdListener the below is the stack trace i get. I am using custom admob facebook adapter here.…
1shubhamjoshi1
  • 546
  • 7
  • 16
4
votes
1 answer

What is causing java.lang.ArithmeticException in Facebook Ads SDK

I'm getting the Crash below from my Google Play Console. Even with uploaded Deobfuscation files, I can't figure out where in the app, the crash is taking place. I'm showing Facebook Interstitial Ads in two places in my app and also in a Banner under…
Asiimwe
  • 2,199
  • 5
  • 24
  • 36
4
votes
0 answers

Accessing Facebook Audience Insights breakdown information

I'm trying to access FB Audience Insights via Graph API similar to what is shown in the 'Facebook Business' (https://www.facebook.com/business/news/audience-insights). This looks like it's possible as documented in the Graph API docs page here. I…
4
votes
2 answers

How to get Facebook post ID from an ad using API?

I'm pretty happy with a Facebook ads reporting tool that I've built. It lists out all of the campaigns within an ad account, plus all the adsets within each campaign, and all of the ads within each adset. And it shows the metrics that I care…
Ryan
  • 22,332
  • 31
  • 176
  • 357