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

Lookalike audience: Total audience by country?

How may I fetch the "total audience by country" for Lookalike audience creation, similar to Ads manager? I've tried... geo location autocomplete, doesn't return audience size, like some targeting options do. reach estimate. For US (only) returns…
Garrett Davis
  • 339
  • 2
  • 11
0
votes
1 answer

What is needed to use ads_read permission in Facebook API?

I have a Facebook App that uses only one permission: ads_read. What is the simplest way to make it work when it comes to authorization? I see that there's an option to authorize particular ads accounts to the app, but is there any easier way for…
Robo Robok
  • 21,132
  • 17
  • 68
  • 126
0
votes
1 answer

Website Clicks in Facebook API

Facebook Ad Report tool allows to select from wide selection of columns for displaying. One of them is Website Clicks, which is defined like this: The number of clicks on links appearing on your ad or Page that direct people to your sites off…
Robo Robok
  • 21,132
  • 17
  • 68
  • 126
0
votes
1 answer

Use App Access Token for ads stats?

I need to access Facebook API to retrieve ads stats. All my requests will be handled on server side. I already know how to access those data by obtaining User Access Token with ads_read permission, where user has admin role in the ad account. My…
0
votes
3 answers

How do I download Facebook Ad creative

we download buckets of stats (conversions, spend etc.) but also need to download the Ad creative itself, including: Headline Text Images (including Positioning, or just the visible part of the image) I've scoured the Facebook API docco and can't…
sming
  • 801
  • 2
  • 12
  • 25
0
votes
2 answers

How can I use automatic bid pricing on the Facebook Ads API?

I'm using the Facebook Ads API to create Page Post Engagement ads. The API is in general a breeze to use but I can't seem to find a way to set automatic bid pricing or, in other words, achieve this: rather than this, which is what I'm getting: My…
Julio Santos
  • 3,837
  • 2
  • 26
  • 47
0
votes
1 answer

Get facebook ads disapprove reasons for multiple ads

What is the best and most optimal way to check the list of given ad_groups (list of ad_group ids) for disapprove status and to get the reasons of disapprovements? The most straight-forward but not optimal way is to: 1) Get all disapproved ad_groups…
0
votes
1 answer

When Facebook ads app install measure charge for service?

I want to tack number of app install via Facebook ads app install. I have completed all the steps. Installed the latest SDK for iOS or Android. Added code in AppDelegate. Registered your app with Facebook. Completed App Settings Page. Completed App…
Gaurang Makwana
  • 216
  • 2
  • 9
0
votes
1 answer

Facebook Marketing API reach of post

is the Facebook Ads API the right API to look at when I want to get the estimated reach of a post (posted in the name of a page) on Facebook? I would need to set location, radius, gender, budget and get the reach - I am looking for a general…
0
votes
1 answer

How do I get daily Ad stats using the graph API?

let's say you want the daily Ad performance stats for an account for January. Currently we (inefficiently) achieve this by making 31 calls (one per day of the month of January) like…
sming
  • 801
  • 2
  • 12
  • 25
0
votes
1 answer

Facebook post object

I'm using Facebook Ads API. And receive AdCreative's property object_story_id in form %PageID%_%PostID%. Then I can get two obects from FB API: the first using that URI: https://graph.facebook.com/v2.2/%PostID% the second using…
0
votes
1 answer

Facebook Ads API Cron Job

We are trying to use the facebook ad reporting api to update a 3rd party app to keep up-to-date on our daily spending on facebook. We would like for these values to update automatically via a cron job but this doesn't appear to work. We have to go…
tytyguy
  • 340
  • 1
  • 4
  • 15
0
votes
1 answer

How do I retrieve thumbnail from facebook ad api?

With facebook ad api, I can send a query to retrieve ad image information. The following is the examples from facebook doc. https://developers.facebook.com/docs/reference/ads-api/adimage/v2.2 curl -G \ -d "access_token="…
0
votes
0 answers

Why can't I get facebook ad-group stats using the api?

I am trying to extract stats from ad groups using the facebook-ads python package by applying the "get_conversion_stats" method to an AdGroup object (class 'facebookads.objects.AdGroup'). accounts = me.get_ad_accounts(fields=['name',…
PandaZ
  • 127
  • 3
  • 12
0
votes
1 answer

How to get stats of multiple campaigns in Facebook ads api

I write the below code for retrieve single campaign stats. $fields = array( 'start_time','actions','spent','clicks','impressions','end_time', ); $params = array(); $campaign = new AdCampaign(123456); $stats = $campaign->getStats($fields,…