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

FB iOS SDK 3.2: Why do I need an access token for logging a conversion pixel?

I'm trying to log a conversion pixel with Facebook SDK iOS 3.2 by calling [FBInsights logConversionPixel: valueOfPixel:0] Now... I'm doing this before I know the user logged in with facebook, so it's not certain I have an active FBSession…
yonix
  • 11,665
  • 7
  • 34
  • 52
3
votes
1 answer

Titanium Appcelerator - Facebook Mobile App Install Ads

We have our app built for Android and iOS using Titanium Appcelerator. Our client is asking to take advantage of Facebooks "Mobile App Install Ads". http://developers.facebook.com/docs/concepts/mobile-ads/ Does Titanium have access to make the…
dmmoelle
  • 31
  • 2
2
votes
1 answer

Fatal error: Uncaught OAuthException: (#294)

I've been struggling to find out what is happening with this. My scripts were working fine for a bit and suddenly half stopped. I'm accessing the api and am getting back an access token. With the access token, I can access a users public info just…
zahid
  • 19
  • 2
2
votes
2 answers

Is there a trick to editing the status of an Ad Group?

According to the Facebook documentation, you can update the run status of an individual ad group via the ads api. To do this, you submit a POST request to // with adgroup_status=X where X is your status (1 for active, 9 for paused,…
Jim Rubenstein
  • 6,836
  • 4
  • 36
  • 54
2
votes
1 answer

Demographic Report Data in FB Ads API

Is it possible to access the demographic report data in the Facebook Ads API? If so, how do I do it? If not, why not? Will it be possible soon? I have clients who would really like to have access to this data through our system. It's such valuable…
Ashley
  • 897
  • 1
  • 5
  • 17
2
votes
1 answer

update creative in existing ad group

We are trying to update\replace the creative of existing adgroup with no success. According to the documentation is supported: Updating and deleting ad groups *Using the ad group ID, you can update the following fields in an ad…
Tal Cohen
  • 23
  • 5
2
votes
1 answer

Batch creative image update with ADS Api?

I try to update ads group with batch request. Everything is going fine if not add image_file param but when add it return an error. My ad_specs; Array ( [method] => post [relative_url] =>…
2
votes
2 answers

How to preview an ad using the preview_url in the creative_spec?

I'm developing a Facebook connect site that manage Facebook Ad Campaigns and I have a small problem. When I'm creating an Ad using the API I receive the preview_url in the creative_specs of the ad created and then I want to show it in my…
Yaniv Hakim
  • 91
  • 1
  • 9
2
votes
1 answer

How to find Full list of Facebook ID and names of Cities from Facebook Marketing API

How can I use the Facebook Ads API to find a comprehensive list of all the cities that can be targeted for ads, and what parameters should I use in my request to ensure that I receive accurate and up-to-date information? I tested the following…
2
votes
1 answer

Getting Reach,Social Reach and Frequency metrics from Facebook graph api

Possible Duplicate: Get metrics from Facebook Ads API I am unable to get the bellow metrics for the Ads, Reach, Social_Reach, Frequency, CPC, and CPM. Please help me how to find out these metrics. Thanking you in advance.
suneel
  • 21
  • 3
2
votes
1 answer

How do I access (new july 2022) targeting information from the Facebook Ad Library API (R solution preferred)?

As this announcement mentions (https://www.facebook.com/business/news/transparency-social-issue-electoral-political-ads) new targeting information (or a summary) has been made available in the Facebook Ad Library. I am used to use the 'Radlibrary'…
2
votes
0 answers

How to see conversion value from SKAdNetwork in Facebook ad campaigns for iOS 14.5+ devices

We are struggling to get post install events sent over to facebook using the SKAdNetwork route for iOS 14.5+ devices. Things we have done so far: We have mapped the conversion value to the events in FB Event’s Manager. We have updated our app to…
Deep Shah
  • 420
  • 2
  • 14
2
votes
1 answer

Facebook Graph API - or

Is it possible to give OR filters? Let's say I do an HTTP GET request, the below will yield an AND filter, where both criteria must be satisfied. Is it possible to change it to OR filter? 'filtering': …
2
votes
0 answers

Facebook Ads API - How to get the custom fields that were sent via the JS Pixel?

I have some code that seems to get close, but not quite: import time from facebook_business.adobjects.adspixel import AdsPixel from facebook_business.adobjects.adspixelstats import AdsPixelStats pixel =…
jrjames83
  • 901
  • 2
  • 9
  • 22
2
votes
1 answer

Not getting filtered ads from facebook ads api

I am using facebook marketing api to retrieve fb ads. Using facebook graph api explorer I am trying to retrieve list of ads on the basis of…