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 to create a Facebook ad based on a post?

After many tries, I'm not getting how we can use the Facebook API to create a simple Ad based on a Post (and it's creative) like it is possible in the Business Manager. For example, my last attempt failed due to a problem with Instagram: Facebook…
2
votes
1 answer

Facebook Graph API Ad Insights doesn't match Business Manager values

I'm working on a report building tool that pulls data from Facebook Graph Api to display metrics on ads in an ad account. When I pull all the Insights from the account level the pixels purchases value is significant less than what is displayed in…
2
votes
1 answer

Python - How to filter on Facebook Marketing API AdAccount.get_lead_gen_forms?

How can i define a filter for Facebook Marketing API for the method get_lead_gen_forms? I have tried passing some params, but nothing works. I need to filter by date because the number of data is exceeding my limit. Here's my code (* the code…
2
votes
2 answers

Ads API - MediaObject - howto?

The Facebook Ads API has a call for the posting of ads - and it requires attaching images to the post, and setting the filename in a creative_spec and then attaching the image with that name in the multipart. The FacebookMedia object seems right for…
Kurt Koller
  • 446
  • 3
  • 22
2
votes
0 answers

"message": "(#294) Managing advertisements requires an acess token with the extended permission for ads_management"

I'm trying to test my server to server app and my app is an website. But the calls to the marketing API are done from my node js server. I am able to create campaigns and Adsets, but not the Ads. when I try, I'm reciving this error message on…
2
votes
2 answers

Facebook Business SDK: cannot create an Ad

I cannot create a simple Ad with an external link to a mobile app. I have properly set access, can create a Campaign, an AdSet, load an image, but during an Ad creation I get an error: Ads and ad creatives must be associated with a Facebook Page.…
2
votes
1 answer

How to update Facebook campaign detail using Facebook marketing api

I am using the Facebook marketing api to create a campaign, adset, creative and ads and I am using the PHP sdk 3.0 to manage them in Facebook. I can create them successfully. Here is code to create a campaign: $fields = array(); $params = array( …
Vish
  • 111
  • 1
  • 13
2
votes
1 answer

Facebook Ads API is deprecated, please update to the latest version v3.0

I have downloaded the "SAMPLE_CODE.js" from the Facebook developers website for their Marketing API. However, while I was trying to run their sample code, I continuously ran into this error: response: { error: { message: '(#2635) You are…
Leo Li
  • 203
  • 7
  • 15
2
votes
0 answers

How can I check on which Facebook account user is logged-in in their PC, to update the respective token for that Facebook User

I created an application in python using allauth with the facebook provider, which have the posibility to allow to add multiple Facebook Account. For updating the token, user needs to re-add their Facebook Account. Suppose that we have a user with…
2
votes
2 answers

Facebook marketing api access non existing field

I am trying to access campaigns of the facebook account. Using python lib: https://github.com/facebook/facebook-python-ads-sdk Receive error: (#100) Tried accessing nonexisting field (campaigns) on node type (AdAccount) Url:…
Snobby
  • 1,067
  • 3
  • 18
  • 38
2
votes
2 answers

branch.io deep-linked URL not passing data in App from Facebook Ads

We are using branch.io to pass custom data to App. For that we are following this steps in branch dashboard. 1) Ads -> Partner Management -> Facebook -> Create Facebook Link 2) Set data in Key/Value under "Deep Linking" Section (data which we need…
Manish Sapkal
  • 5,591
  • 8
  • 45
  • 74
2
votes
0 answers

How to show the Interstitial Ads using facebook ad network?

I have to develop Custom Ad networks using Android Platfrom.When i implementing FAN(Facebook) Ad Network the Interstitial ads does not show. when i run my app app sho blank activity. and i got his below log error. Banner ad working fine. 04-19…
2
votes
3 answers

Adding Facebook banner Ad in Android

I've added a Facebook banner ad in my Android app . I used a valid banner ID but there is nothing . I want to know if my code has something wrong . Here is my code in build.app compile 'com.facebook.android:audience-network-sdk:4.18.0' in…
user9317657
2
votes
1 answer

Get results for specific facebook marketing campaigns objectives

Each Facebook ad campaign has an objective, such as LINK_CLICKS or CONVERSIONS. In Ad Manager, one can see the performance of each of their ad campaigns. There is a column called "results" that has the number of objective-specific conversions for…
Ventulus
  • 35
  • 1
  • 4
2
votes
1 answer

How to resolve this #606 application is blocked error in facebook ad network?

I am using this version of fb ad network sdk in my app. implementation 'com.google.ads.mediation:facebook:4.27.0.0' implementation 'com.facebook.android:audience-network-sdk:4.27.0' Few days back my app was removed from the google playstore. But…