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

Cannot obtain lead info from Facebook API

What I have: Facebook business account, that has a Page, that has some Ad forms, that generate leads. What I need: I need to store leads contact data in my company's database. What I did: First of all, I followed this doc. It describes how to set up…
2
votes
1 answer

Fetch Facebook's latest ad types and their requirements via facebook marketing api

I have been looking through the facebook api documentation at https://developers.facebook.com/docs/marketing-api/, but have yet to find a solution for this. I simply want to get a list of facebook's latest ad types that are listed on this page:…
2
votes
1 answer

Implement facebook banner ads in recyclerview

I am trying to implement an Facebook banner ad(not native banner) on 3rd position of the recyclerview. I have created an ads_row.xml which has the ad layout. ads_row.xml is displayed properly but ad is not visible. I will post my adapter code…
2
votes
0 answers

Facebook API, create adcreative error Cannot load post

I am getting following error: {"name":"FacebookRequestError","message":"Cannot load post: The post cannot be loaded and this can be due to many reasons. For example, the post might not exist, or it exists but is blocked, or it is a scheduled post…
2
votes
1 answer

Server-side PageView events not attributed to ads

My client sells in an online marketplace like Amazon. We've setup a branded domain example.com that redirects users to her storefront page, ecommerce-site.com/example. example.com basically just serves 302 redirect responses. She's been creating…
2
votes
2 answers

How do facebook ads spy tools scrape the data?

How do these websites like BigSpy get the latest ads from Facebook? Do you need to scrape all the pages on FB to a database and then use Puppeteer or Selenium to click through the Facebook page UI and look at the ads? Or is it somehow done through…
wongz
  • 3,255
  • 2
  • 28
  • 55
2
votes
3 answers

Facebook ads API // passing fbp parameters to build the target Custom Audiences

I want to make retargeting audiences in facebook Facebook writes in its documentation that i need to hash and send the emails and phone numbers. link Also Facebook has its fbp identifier (which means browser id), that we keep collecting. link So can…
Besp
  • 47
  • 7
2
votes
1 answer

Facebooks ads campaign Nodejs

I want to create facebook ads by creating facebook ad campaign , but getting error of special_ad_category can't resolve this const createCompainNew = async () => { let test5 = 'Create Edge'; let create = await…
Hammad ul Hasan
  • 306
  • 3
  • 15
2
votes
1 answer

How do I retrieve the Business Manager ID from Facebook graph api using ad account id

There seems to be nothing in the documentation on how this is achieved. Using the graph api explorer to achieve this would be of huge help https://developers.facebook.com/tools/explorer/ Thanks for any feedback.
2
votes
2 answers

Why does "(#2) Service Temporarily Unavailable" in FBAudienceNetwork?

Facebook Interstitial Ads return (#2) Service temporarily unavailable error message in my Android App. Anyone have any idea what exact problem with Facebook Ads SDK. How do I resolve this error? Please Help...
2
votes
2 answers

Facebook Marketing api "read" function deprecation issue

I am using php code for fb marketing api and facing this deprecation issue Deprecated: read is being deprecated, please try not to use this in new code. use FacebookAds\Object\AdAccount; use FacebookAds\Object\Fields\AdAccountFields; $account =…
Zain Farooq
  • 2,956
  • 3
  • 20
  • 42
2
votes
1 answer

Testing the ads_management permission for a Facebook app

I'm building an app that will allow users to export some data in my application to their Facebook Business Manager/Ad Account. For this I need the ads_management API. To get this permission, my app needs to go through a review. How do I develop my…
Vishaal Kalwani
  • 730
  • 1
  • 7
  • 20
2
votes
0 answers

Facebook ads deferred deep linking not working on Instagram but same ad working fine on Facebook

I have created a Facebook Ad campaign with a deferred deep link which is placed on FB & Instagram. Now when the user already having my application in the device then they are going to mentioned deferred deep link & it's working completely fine on…
2
votes
0 answers

How to retrieve leads information in Web-hook using Test Form in Facebook

I have created a webhook using some samples. I am able to get leads information when using webhooks Test but not able to get the leads info using a Test form: Steps I have followed: 1. Created a Facebook APP. 2. Added Facebook Login and…
2
votes
1 answer

Error: 'NoneType' object has no attribute 'call'

I'm trying to create Ad-set using the code given in developer's site. Here is link Code: from facebookads.adobjects.adset import AdSet from facebookads.adobjects.targeting import Targeting adset = AdSet(parent_id='act_Account-ID') adset.update({ …
shaik moeed
  • 5,300
  • 1
  • 18
  • 54