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

Facebook Graph audience insights queries

I found some intriguing Facebook Graph API documentation here:…
2
votes
1 answer

Facebook ad creative with call to action returns no permission for call_to_action

I am trying to create a Facebook ad using Facebook Marketing Api. When I try to ad a call to action button to ad Creative I get an error stating: ( [code] => 100 [error_subcode] => [message] => (#100) No permission to access…
2
votes
1 answer

Facebook ad statistics - can't get facebook keyword stats

I have created a campaign, specified the interests in the ad and successfully executed the campaign which lasted 2 days. I have got around 9 website clicks and the reach was approximately 35000. I am trying to retrieve keyword stats through api but…
2
votes
1 answer

redownload param for AdSet does not work

I am trying to use redownload to download all fields of an AdSet but it doesn't seem to be working. Here is my code: ad_set = AdSet('6049562095738') response=ad_set.api_get(params={AdSet.Field.redownload:True}) print(response) and I get { "id":…
Piyush
  • 728
  • 1
  • 8
  • 11
2
votes
1 answer

Is product audience spec supported in facebook graph api v2.5

I was reading facebook graph api documentation. They have redirected documentation URL to v2.6 and v2.7. So, I'm not able to see documentation of v2.5. Does anybody know that facebook supports product_audience_specs as targeting at AdSet in v2.5.
2
votes
1 answer

Facebook Native Ads with RecyclerAdapter

I'm trying to implement Facebook Native Ads by including them as an alternative view in my RecyclerAdapter. Has anyone had any experience with this? I've included my entire class for good measure. public class FeedRecyclerAdapter extends…
Martin Erlic
  • 5,467
  • 22
  • 81
  • 153
2
votes
1 answer

Fields not appearing while trying to fetch adset using facebook ads sdk 2.5.1(python)

Following is the code which will try to fetch the fields for a given adset id. The problem is I'm not able to get any fields that I've mentioned. Only id is being seen in the response. Code : FacebookAdsApi.init(account_id, "credentials",…
2
votes
2 answers

How to find ids of all existing Facebook ad campaigns

I want to extract ids of all ad campaigns using facebook api in python. me = AdUser(fbid='me') my_account = me.get_ad_account() Now for AdAccount 'my_account', I want to get the list of ids of all campaigns. Tried to…
2
votes
1 answer

Invalid parameter while creating adset

While creating an Adset in facebook-ads-sdk i get invalid parameter. I tried my best to track and resolve the problem but couldn't succeed. Please help. Following is the code snippet: function…
2
votes
1 answer

Facebook Ads API managing own account rate limits

my question is simple, we need an app to manage a large amount of Facebook ads/adsets on our own single account. Basic operations, like for example setting a daily budget for all adsets in one shot, instead of manually doing it via facebook…
2
votes
1 answer

Facebook Ads API Invalid OAuth access token

We are currently trying to setup an Ads API in Laravel. It has been days but the getAdAccounts() call always results in 'Invalid OAuth access token.' exception. However same access token when used in the Graph Explorer API works just as well for the…
Navin Nagpal
  • 640
  • 10
  • 25
2
votes
1 answer

Facebook Ads Insights API System user and data fetching automation

I'm going to use Facebook Ads Insights API to fetch stats about campaigns (read_insights permission) and load them into my app. I don't want the user of my app to need to login through facebook. However, it appears that the process of getting System…
Vadzim L
  • 21
  • 1
2
votes
1 answer

facebook ads insights - adding day dimension breakdown

We are using the https://developers.facebook.com/docs/marketing-api/reference/ad-account/insights/ endpoint to get insights for a Facebook ad-account. To get data for a few days with a day breakdown (for analytical purposes) we are creating a…
Raanan Raz
  • 63
  • 6
2
votes
1 answer

Get ads Insights and AdCreatives data for an AdAccount on Facebook Ads PHP SDK

I want transform this Facebook Graph API request: act_xyz/ads?fields=insights.date_preset(yesterday){ad_name,adset_name,campaign_name,account_name,account_id,impressions,inline_link_clicks,spend,ad_id},adcreatives{object_story_spec} to use Facebook…
2
votes
2 answers

Fb Ads api How to get Active only FB Campaigns?

I am trying to get the campaigns list from facebook ads api I am using below code $account = new AdAccount('act_' . $account_id); $campaignSets = $account->getCampaigns(array( CampaignFields::ID, …
Ronak Shah
  • 450
  • 2
  • 9
  • 23