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

How can I get system user token of another facebook business to manage their audiences?

I am working to build an application which would be able to create custom audiences for many of our clients for facebook ads. I came to know that the most suitable access token for this purpose is system user token (correct me if I am wrong). To get…
2
votes
0 answers

Facebook ads api add ad error

I am using Facebook ads api for create campaigns, adsets and ads. I can create campaigns and adsets successfully. Also I could create ads until update the api. When I was try to add new ad it gives me an error like this: "Error:…
2
votes
0 answers

Facebook custom audience API. Users are added, but nothing gets matched. Hashing issue maybe?

I'm using https://github.com/facebook/facebook-php-ads-sdk in Laravel PHP to add users to a Facebook Custom Audience. The request goes fine, but after a few days of adding users, nothing gets matched. If I manually add users to that same audience,…
2
votes
1 answer

Facebook API - Can't update adset targeting's geolocation by zip codes

I'm trying to update my adset's targeting location to include 2 zip codes 85233 and 85224 but facebook keeps returning an Unknown error. My request is https://graph.facebook.com/v2.11/[ADSET_ID] targeting={…
Thuan Nguyen
  • 41
  • 1
  • 4
2
votes
2 answers

Create customer audience from email md5 hash for facebook ad

My organisation is very sensitive about the customer information, and is unwilling to reveal customer information (email) to outside system. However I am trying to target these customer through facebook ads. For this purpose organisation is allowing…
shanmuga
  • 4,329
  • 2
  • 21
  • 35
2
votes
1 answer

How to download facebook report using Insights API Asynchronous Jobs?

Hi I'am new to facebook marketing API. I want to download account complete report in csv format for which I am using Insights API Asynchronous Jobs , Using which I am able to get "report_run_id" and after that I made api request for this link .Its…
2
votes
1 answer

The lead list for a facebook campaign ad always returns empty

I'm creating a management that finds impressions, clicks, and leads for Facebook campaigns associated with my business account. For impressions and clicks, there were no problems but I can not find the leads. This is the code (taken from Facebook…
2
votes
2 answers

Specifying action_type for Facebook Graph Ad API query

I am have some difficulty extending my API query to only include specific actions. I can run the following query just…
C Fisher
  • 21
  • 3
2
votes
1 answer

Facebook ads, add customer page to business manager

What I want to do is to be able to create and publish FB ads from my fb account and publish it on other users fb pages using fb api. User can install my app which will ask for manage_pages+business_management permission along with some other needed…
Arian
  • 465
  • 1
  • 7
  • 18
2
votes
2 answers

Facebook Ads API /adcreatives video error

My team and I have been crawling both the net and Facebook Docs for answers, but for some reason there are no valid answers to our question. So we desperately hope for help from someone here We are trying to create a video AD on facebook. Upload is…
user553869
  • 31
  • 1
  • 7
2
votes
1 answer

How can I retrieve a large number of DELETED Campaigns, Adsets, Ads?

Task I'm trying to retrieve all Ad Campaign, Adsets and Ads from various accounts associated with our Business Manager. Issue The specific endpoints that I'm accessing…
kennes
  • 2,065
  • 17
  • 20
2
votes
2 answers

What time zone is the Facebook Ads Insights API's date_start and date_stop sent in?

Facebook's Ads Insights API returns date_start and date_stop but since they're date objects I can't tell what time zone was used to demarcate the dates. Is it using Facebook's API timezone which they've mentioned to be PT (UTC -8) or is it according…
2
votes
1 answer

Facebook Ads API - Batch Requesting Targeting Search

Question: I am having trouble with submitting batch requests for the Facebook Ads API, and I was wondering if anyone could provide insight on the below error. I am attempting to take a list of artists, just 50 in this simplified example, and then…
jmadd1221
  • 41
  • 5
2
votes
4 answers

How to fetch data from cursor array in facebook From ads insights api call

While calling getInsights() method,it gives an object.so i want to access some data from it. Here is the api call $account->getInsights($fields, $params); echo '
';print_r($resultArr);die;

it will gives result like 
FacebookAds\Cursor Object
(
…
2
votes
1 answer

Is a Business Manager system user allowed to request access to a page?

Our Facebook app is linked to a Business Manager account. We have created a system user for managing all our campaigns. We are in the process of automating permission requests for those pages we don't own, so that we can create ads on their behalf. …