Questions tagged [facebook-business-sdk]

67 questions
0
votes
1 answer

Facebook Marketing API - how to handle rate limit for retrieving *all* ad sets through campaign ids?

I've recently started working with the Facebook Marketing API, using the facebook_business SDK for Python (running v3.9 on Ubuntu 20.04). I think I've mostly wrapped my head around how it works, however, I'm still kind of at a loss as to how I can…
nikUoM
  • 639
  • 1
  • 8
  • 18
0
votes
2 answers

Can't get Results of Ad in Business Manager through Marketing API

I use facebook business SDK to get data from facebook business manager by Python. I can get almost all fields using get_insights method, but I can't get Results field. And I don't see it in the documentation. params_ads={'time_range': {'since':…
0
votes
1 answer

Can I pull ads from facebook pages that are not mine using facebook api?

I want to develop a web application that pulls the ads that the pages are running on. Those that appear in the ad library. It is possible? Can I pull ads from pages that are not mine? If possible, how do I do this? Can I do it with…
0
votes
1 answer

How to remove sting from json object from facebook insight API Python

I am making api call via python sdk to get facebook insights dat and I am getting the following response from API. I would like to remove from response json object. can you please guide me how to do this? I have tried to serialize it by .dumps()…
0
votes
1 answer

nodejs special characters encoding issue only when hosted in IIS with iisnode module

using express and body-parser with the following setup: const express = require('express'); const bodyParser = require('body-parser'); const app = express(); app.use(bodyParser.json({limit: '100mb', extended: true,type:…
0
votes
1 answer

Getting error in testing facebook business-sdk

I started with facebook business sdk for php. Was following this doc: https://developers.facebook.com/docs/business-sdk/getting-started/ installed without trouble, then tried testing as they instructed, created src/test.php
Abir Imtiaz
  • 33
  • 1
  • 10
0
votes
1 answer

How to can I see the allowed Whatsapp Business API solutions providers that have access to my Facebook Business?

I'm looking inside the Facebook Business settings console but I does not have success.
0
votes
0 answers

Facebook Marketing API reach/delivery estimate with budget and time range

I'm making a small tool where my users can place ads on Facebook. Campaign, adset and ad creation is working fine, but i want to show users a small insight what they get for the budget they entered. I've tried getDeliveryEstimate and…
0
votes
1 answer

How to get Response Headers in Facebook Business SDK

For a Project I need to check the X-App-Usage response Headers to throttle the amount of requests we are doing without running into the rate limiting. How can I get the response headers? I can't find any documentation for this and no simple solution…
Frederick Behrends
  • 3,075
  • 23
  • 47
0
votes
1 answer

Permission Error Facebook Custom Conversion Stats

I'm trying to get the custom conversions for a Facebook Business using the Python SDK but I can't seem to make it work. After calling CustomConversion.get_stats(customConversionId) or graph.get_object('/customConversionId/stats') I get the…
0
votes
0 answers

Facebook API: Error Creating Ad: Payment disabled for user (error_subcode: 1815010)

We are having an issue with the Marketing API when trying to create Ads in Facebook. The error we are getting is the following: { "error": { "message":"Invalid parameter", "type":"OAuthException", "code":100, …
0
votes
0 answers

Facebook Target Search: Search for ALL ZIP Codes of a City

I am trying to retrieve all the ZIP codes of a country with the specific code: $result = TargetingSearch::search( TargetingSearchTypes::GEOLOCATION, null, null, array( 'location_types' => array('zip'), 'country_code'…
0
votes
2 answers

Latest gem version not installing

If you look at the facebookbusiness gem, you will notice that currently the latest version is 0.4.0.1 However running gem install 'facebookbusiness' gives: Successfully installed facebookbusiness-0.3.3.4 1 gem installed Trying to specify a version…
Ben
  • 2,957
  • 2
  • 27
  • 55
0
votes
1 answer

Publish an In-Store Offer on Facebook with PHP

Create and publish offers on Facebook page using Facebook PHP SDK. I have implemented the SDK as provided in documentation and successuly created the offer and that API is returning offer id as described. When I run the publish offer API in my case.…
0
votes
1 answer

How to set a nested properties value on a FacebookAds::AdSet object

I am currently using the facebook-ruby-business-sdk to manage ads on Facebook. I have written a method to update a FacebookAds::AdSet object. # Fetch the adset adset = FacebookAds::AdSet.get(source_adset_id, session) # Set the new name adset.name =…
ricks
  • 3,154
  • 31
  • 51