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

Hero Image Change Based on Facebook add url

I have very basic knowledge of .liquid language. In a Shopify store my client wants to give two adds on Facebook and She wants when a visitor come from Facebook adds they will see two different hero image in her home page. For example. If a visitor…
0
votes
1 answer

Adding users to Facebook Custom Audience without any roles of Facebook app

I'm currently working in a service that allow to create Custom Audience and add users to Audiences Everything works fine when I'm the developer or admin of the app But when I'm trying to add users by another account without any roles of the app, it…
Just4Fun
  • 3
  • 2
0
votes
1 answer

Facebook ads insights API - get basic metrics

I would like to connect to the Facebook Ads Insights API with google scripts in order to generate and update a google sheet containing my ads key performance indicators. I have read Facebook's documentation but I'm a bit lost, for example In the…
gerard baste
  • 305
  • 6
  • 12
0
votes
3 answers

Facebook API: Can't retrieve Facebook Lead Ads

I have set up successfully a webhook to point to my callback URL and it receives the following example data: Array ( [object] => page [entry] => Array ( [0] => Array ( [id] => 297269987142139 …
Snowball
  • 1,402
  • 2
  • 17
  • 31
0
votes
1 answer

How to get the targets population numbers through marketing API?

What's marketing API can get the predict daily targets population coverage when setting ads audience step. It like the picture as below: predict daily targets population coverage
王世刚
  • 27
  • 6
0
votes
1 answer

How to set budget unit which through call API's code

Maybe my ad account's pay method was set CNY. How to set budget unit which through call API's code? Here is my CURL code. create ad set by CURL Error msg: Your budget is too low. The minimum budget for this ad set is $1.00. Thanks!
王世刚
  • 27
  • 6
0
votes
1 answer

Java NullpointerException In Facebook audience native ads, Recyclerview

I want to display native ads in predetermined position within my RecyclerView, I have setup the code for showing the ads template but once I integrated the code for showing Facebook Audience native ads the app clashes, I do not know what to after…
0
votes
1 answer

Facebook conversion tracking values for predetermined events

Can the {value: '0.00'} parameter be used with all 9 predetermined Facebook events for conversion tracking? For example, I am trying to say that a Search is worth 2.30. This is not a monetary value however, so I was leaving out the currency. Will…
0
votes
1 answer

Facebook OAuth Get Business Manager Id

I am struggling to get the business manager id, via facebook oauth of business manager account.I also have standard access api Api::init(APP_ID, APP_SECRET, $access_token); $fbUser = new Business('me'); $business_manager = $fbUser->read(); The…
Ronak Shah
  • 450
  • 2
  • 9
  • 23
0
votes
0 answers

Passing Dynamic Variables From Facebook Ad Link UTMs?

Does Facebook have any known variables that can be set and passed on in a UTM parameter from ad link clicks? Something like {userid} in the example…
0
votes
1 answer

Check custom audience email list

I am using facebook/php-ads-sdk: 2.5.* I created new custom audience using SDK. Then manually added user by emails. Then I check my custom audience list And checked Audience History which seems fine to me My recent audience history but That shows me…
Rushabh Joshi
  • 233
  • 3
  • 14
0
votes
1 answer

facebook ads api - can't add custom tracking specs in an ad

I'm using facebook-python-ads-sdk,and i have followed the official site: https://developers.facebook.com/docs/marketing-api/tracking-specs#examples with: Pixel Tracking You can track the performance of different pixels in an ad by specifying the…
HFX
  • 550
  • 6
  • 24
0
votes
0 answers

Handling data in response from Facebook graph API

I am trying to handle Facebook advertising data recieved via a batched request. $requests = [ $fb->request("GET", "act_XXXX/insights/?fields=account_id,spend,campaign_id,campaign_name&level=campaign&date_preset=last_30_days"), …
Morten Hagh
  • 2,055
  • 8
  • 34
  • 66
0
votes
1 answer

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…
0
votes
1 answer

facebookadsapi invalid appsecret-proof in python

I'm new to the Facebook Marketing API and I'm trying to run the example custom_audience_utils.py script only to have it return an error message displaying "Invalid appsecret_proof provided in the API argument". I turned off appsecret_proof in my…