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

Restricted access to Facebook stories via their API

I'm managing ads via Facebook ads API. The requests are made on behalf a user, which provides access_token. It's info: Expires: Never Valid: True Origin: Web Scopes: public_profile, basic_info, ads_management, user_friends Sometimes requests to…
0
votes
1 answer

While create adset then I got error 'Invalid parameter'

I am using FB Ads API, and successfully created campaigns and get the ID from Facebook. In the next step to create adset with below code then got error. // Call create using an array of parameters. $data = array( AdSetFields::NAME => 'My…
0
votes
0 answers

Cannot retrieve a list of campaigns for some accounts

I'm experiencing troubles requesting list of campaigns for some accounts. I'm requesting data with C# SDK , and my query is pretty simple: /v2.2/act_/adcampaign_groups. For some accounts this works fine, but for some it returns…
0
votes
0 answers

Facebook Ads API - Actions by conversions returns total actions

I'm trying to get info about a specific user's ad campaigns using an async request to /reportstats. When I add all fields to the request, everything is fine. But when I remove both total_actions and total_unique_actions, the fields…
Nyveria
  • 168
  • 13
0
votes
0 answers

Mobile App Installs

I am working on "FB Mobile App Installs" feature. One of my clients for an iOS app created an ad with out creating a FB app ID. The Ads Manager Look like this Now the client has asked me to configure Mobile App Installs. After going through the…
Arsalan Haider
  • 559
  • 3
  • 9
  • 23
0
votes
1 answer

Creating a custom website audience and prefilling with past data

We'd like to create a custom audience, based on website pixel data. This should be prefilled with past visitors that match the criteria Here's an example which does this, but does not prefil $set = new CustomAudience(null,…
Ben
  • 155
  • 2
  • 12
0
votes
1 answer

Facebook Ads API rate limits

Facebook does not explicitly states number of API calls, or anything else regarding rate limits of their Ads API at https://developers.facebook.com/docs/reference/ads-api/api-rate-limiting/ Is there another page that specifies it? Have you…
Jakub Kulhan
  • 1,572
  • 2
  • 16
  • 37
0
votes
0 answers

Invalid View Tags

I am trying to add view tags to ad group, and I am always receiving the same response: { "error": { "message": "Invalid parameter", "type": "FacebookApiException", "code": 100, "error_subcode": 1487248, …
Ovidiu
  • 29
  • 3
0
votes
1 answer

How can I map iOS or android appID to facebook appID?

Facebook ads api requires FB Appid to create any ad with an objective of "mobile_app_install". Is there a way to map iOS appid or android appid to Facebook appid or is there a way of creating such ads without the facebook appid?
0
votes
2 answers

Not getting expected campaign IDs when using Facebook Ad Report Stats API

I created an access token with my personal account with additional ad_management permissions. I used curl to exchange this short-lived token for a permanent access token. The roles page for my ads account says "You can manage campaigns, view…
Sam
  • 14,642
  • 6
  • 27
  • 39
0
votes
1 answer

Facebook campaings structure changes

I'm using bulk import to Power Editor to create campaigns. How can I know, how my excel file should look like, when campaign structure changes ike it is said in these news: http://www.jonloomer.com/2014/08/19/new-facebook-campaign-structure/
wino
  • 94
  • 6
0
votes
1 answer

Facebook Ads Insights API reportstats endpoint

I'm using reportstats edge to download some reports in CSV format. (It probably applies to XLS as well) What I've noticed: headers have different descriptions than the data columns parameters - is there a resource describing the mapping? (eg.…
Kuba
  • 854
  • 1
  • 8
  • 19
0
votes
1 answer

Update ad creatives without loosing likes and shares

Using Facebook Ads API, we can create new creative set, and replace it in the ad group, but this result in loosing the performance records (and engagement). Is there anyway to update the picture/text without loosing the performance records ?
lcl
  • 13
  • 3
0
votes
1 answer

Adding users to custom audiences error - An unknown error has occurred

I try to add users to custom audiences with this code: { import requests import json payload = {'data': ['33f6fc8e08b0804555feeed0e0e81251bc408c7db58c7a030a8252731668afd0'], 'schema': 'EMAIL_SHA256'} params =…
0
votes
0 answers

Facebook ads account Total Spent - UI not matching API

I'm getting a browser-API discrepancy that I cannot fathom out. In the browser, when I go…
sming
  • 801
  • 2
  • 12
  • 25