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

Facebook Ads API PHP: Video upload using AdVideo class

Query in PHP using API v2.4 When I try to upload a video using AdVideo class as shown below, $time_limit = ini_get('max_execution_time'); set_time_limit(0); $video = new AdVideo(null, $account_id); $video->{AdVideoFields::NAME} = *name*; …
3
votes
0 answers

reachestimate of the union of facebook targeting specs

I'm looking for a simple way to get the reachestimate of a union of targeting specs. It looks like the flexible spec (https://developers.facebook.com/docs/marketing-api/targeting-specs/v2.3#flexible) can't provide a union of different specs. The…
Gil
  • 854
  • 1
  • 11
  • 23
3
votes
1 answer

How to get a listing of product catalogs from a business manager with development access?

I have a developer account and have created an application in development mode, just for testing purposes. I have also created a business manager at business.facebook.com, and added my test app to it. I have an ad account as well, which is added…
kerms
  • 33
  • 3
3
votes
2 answers

Facebook ad account group API access not correct on Facebook's site

I'm trying to build an application that will help manage different ad accounts for different customers (multiple businesses, so it has to handle multiple ad accounts). I'm looking at the ads API documentation for ad account groups, and the examples…
Eric Hydrick
  • 3,467
  • 2
  • 28
  • 41
3
votes
2 answers

Filtering statistics from facebook ads api using the python sdk

I am trying to use Facebook's ads-api to get data about advertising accounts/campaigns/etc within a specified time range. Up until now I managed to get overall information (added below) using the official python sdk , but I can't figure out how to…
PandaZ
  • 127
  • 3
  • 12
3
votes
1 answer

Not Ready: File Not Uploaded when adding to Facebook Custom Audience

I am attempting to add users to a Facebook Custom Audience using version 2.1 of their API. I'm using this Python script to create a new audience, and add users to it. import json, requests # set up params account_id = 'an ads account…
Becca Petrin
  • 1,494
  • 14
  • 13
3
votes
1 answer

paginated response Facebook API

In the Faceboook API, is there a way to get paginated API responses in reverse order? Or take only recent results or something? Using the "next" link as discussed here (https://developers.facebook.com/docs/graph-api/using-graph-api/v2.1#paging), I…
tscizzle
  • 11,191
  • 15
  • 54
  • 88
3
votes
1 answer

Create a Link Ad for a Facebook object (event url)

In business manager it's possible to create a Link Ad with a Facebook Event url. I like to do the same with Facebook Ads API but facing a permissions error. The Ad Creative of an Ad created in business manager looks like this one: { …
jelhan
  • 6,149
  • 1
  • 19
  • 35
3
votes
4 answers

Can't fetch campaigns of adaccounts through access_token of Non admin

In Facebook ad-accounts, one can add other facebook accounts to create/view/manage campaigns. So a account "A" can have multiple ad-accounts under him. Though he is not admin of these accounts. The only extra privilege that admin of any ad-account…
Vishwesh Shetty
  • 687
  • 9
  • 27
3
votes
0 answers

List of all available actions for Ad Report Stats - Facebook Ads Api

Where can I find a list of all the available action types for the Ad Report Stats (such as video_p50_watched_actions) Ad Report Stats Documentation ad report stats usage example:…
Tal Yaari
  • 463
  • 6
  • 15
3
votes
2 answers

Facebook SDK for Javascript, FB.login() callback not firing (async call never gets a response?)

The below code is my Facebook API javascript so far. It's pretty simple, with a bunch of console.log()s to follow the code flow. (I recognize that naming arguments response and response2 is terrible practice but it's just what I put quickly for now…
3
votes
1 answer

Filtering Facebook GET act_id/customaudiences results

I can't find a way to filter Custom audiences. From the documentation it looks like is only possible to retrieve a list for a given actId and I can apply fields query param like this: // Retrieve blank audience curl \ -F "access_token=______" \ -F…
Giuliano Iacobelli
  • 1,010
  • 1
  • 8
  • 21
3
votes
1 answer

How to update a scheduled campaign's start date via FB Ads Api?

Does FB Ads Api allow updating the start time of an existing but not yet live campaign? It is possible to change start time through the Facebook Ads Manager UI, but the API documentation has only support for updating end_time and not start_time:…
randomvlad
  • 33
  • 1
  • 3
3
votes
3 answers

How to know how many people have installed my android/iOS app via a facebook ad?

I have an ad(android/iOS) campaign running on facebook. Currently on the app manager(ap dashboard) I'm getting the following information: Campaign reach, frequency, clicks etc but the 'mobile app installs' field is displaying 0 even after my friend…
Phantom
  • 320
  • 1
  • 5
  • 18
3
votes
1 answer

Facebook Ads API - Link post new format change

About a week ago (Sep 13) Facebook presented the new post-link format (which looks much more like the photo-post - larger image, etc). However, when I upload posts through API (which worked perfectly), I still get posts that look like the old format…
Mark Srulnik
  • 76
  • 1
  • 5