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
3
votes
0 answers

Facebook custom audiences error: "There was a problem replacing your customer list Custom Audience. Try again later." - Marketing API

We have a platform that offers the possibility to our clients to create and push custom audiences to facebook. We use the replace endpoint to replace existing user from the audiences. The audiences synchronisation works up to a point, after which…
3
votes
1 answer

How we can Filter the Insight data for multiple specific campaigns in Facebook marketing?

I'm trying to get Insight of an Ad-Account by filtering using multiple specific campaigns, I was able to filter with single specific campaigns Here is the code which I tried for single specific…
3
votes
1 answer

Way to get image URL from the image hash ID of a Facebook Ad

Is there any way to use the Facebook API (or other method) to get the image URL for my ad images? I have a list of image hashes, but how can I get their URLs? Alternatively, is there another way to get the URL of my ad images without relying on the…
Geoff
  • 71
  • 1
  • 3
3
votes
2 answers

Why does facebook's conversion pixel load multiple JavaScript files?

If I visit a website with the facebook conversion pixel installed (such as https://www.walmart.com/), I notice that several different JavaScript files are loaded by the pixel. The first one is https://connect.facebook.net/en_US/fbevents.js. The…
user886596
  • 2,380
  • 5
  • 31
  • 53
3
votes
0 answers

Boosting an Instagram Post through Facebook API

I've been going through the FB API docs for hours and can't seem to find the the right approach to "boosting" or promoting an Instagram post. I have a page-linked Instagram business account, and I've been trying to create an ad creative (to then…
3
votes
1 answer

Facebook Business PHP SDK : Cannot access an object not managed by the business owning this app

I am trying to create a facebook Adaccount with Facebook Business SDK. But when I use method createAdAccount it gives me an error. please see the image attached below. Here is the documentation about adacount creation I am using createAdAccount…
3
votes
1 answer

Error "Unable to use the video in an ad creative. Video id XXX,XXX,XXX,XXX,XXX might not be id of a video, or you might not have permission to see it"

I'm trying to create an ad using the php-facebook-sdk and with the help of curl Facebook API. I already have uploaded my video with the use of curl and it returns an id. Now, that video id will be used to add an adcreative, but when I submit my…
3
votes
0 answers

Notice of Violation of Facebook Audience Network Policy - This placement encourages accidental ad clicks

I have an Android app and I have integrated Facebook ads in it. In the app I have an activity which has next and previous button. On clicking the next or the previous button the content changes. I display Interstitial ad when the user clicks on next…
SPS
  • 147
  • 11
3
votes
1 answer

Facebook sdk marketing api get bulk insights with date_preset

I am trying to fetch insights of bulk campaigns, ads and adsets but i can only fetch data of default date_preset value which is i guess 7 days or something. When i use sandbox account i get data value but after using original account i do not…
3
votes
1 answer

Facebook ad budget estimate (reach estimate cpm)

I've been tasked with finding out how to use the Facebook ads api to get budget estimates for reaching a particular audience. I believe I'm looking for the estimated daily reach or possibly the delivery estimate. I'm looking for a response something…
Milo
  • 335
  • 4
  • 15
3
votes
1 answer

Custom Audience list or retrieve users

I am trying to integrate facebook market-APIs into my application lets say Custom Audience from the documentation I can see the only method to create and remove users, Is there any method where we can get the list of users that were added to the…
3
votes
1 answer

Facebook audience network ads crash from ads.db android

I'm getting the below crash reporting in firebase crash reporting console. Its looking like, its from facebook ads. Please give a solution for this crash. Exception java.lang.RuntimeException: An error occured while executing doInBackground() …
Suresh
  • 427
  • 1
  • 6
  • 22
3
votes
1 answer

Facebook pixel Purchase event deduplication

How can one avoid a duplicate Purchase event when doing conversion tracking with a Facebook pixel? I'm wondering if I can send a unique ID with the event somehow to avoid tracking that event more than once (if, for instance, the user reloads the…
typeoneerror
  • 55,990
  • 32
  • 132
  • 223
3
votes
2 answers

Facebook Marketing API sandbox mode

I'm trying to create adverts on the Facebook using marketing (ads) API, but after some rejected requests my account has been blocked. So, I tried to find out ways to testing my API requests via sandbox mode. Could you give me some tips about best…
3
votes
1 answer

Facebook sdk for api marketing. Issue with v2.9

I'm trying to get budget per day and started with getting list of campaigns. I followed the instructions here https://developers.facebook.com/docs/marketing-api/sdks , but when it reaches this line $my_adaccount =…
Jane08
  • 127
  • 1
  • 14