Skip to main content

Questions tagged [facebook-python-business-sdk]

The tag has no usage guidance.

facebook-python-business-sdk
0 votes
0 answers
27 views

How do I get Lead Info from Facebook API using Python?

I want to get Leadinfo from my Lead ads using python and the facebook API. I have tried this: import json from facebook_business.api import FacebookAdsApi from facebook_business.adobjects.adaccount ...
user3347814's user avatar
  • 1,315
0 votes
0 answers
22 views

Best way to get campaigns, ads, and urls from Facebook API

I am using Facebook's python package to get ads information from their API. I keep getting throttling errors even though we only have a few hundred ads in the system right now so I wanted to check to ...
cwollett's user avatar
0 votes
0 answers
53 views

Facebook App/Business settings needed to access API

I am having trouble getting ads information to return from the Facebook Ads API. What I have done: Created developer account and app added Marketing API to the app I have this in Live mode All other ...
cwollett's user avatar
0 votes
0 answers
23 views

Uploading data to a Custom dimension META

I'm trying to upload data to a Custom Dimension of META through a Python Script. The amount of data I've got is aboyt 252.000 rows, so I've got to use a batch of 10.000 as Meta says. The problem is ...
jose boto perez's user avatar
0 votes
0 answers
43 views

How can I track the number of API calls I make to the Facebook Ads Insights API when using the Python SDK?

I'm running into rate limiting issues when I try to pull data from the Facebook Ads Insights API. I'd like to track the number of calls I'm making, but I don't see how I can do that with the Python ...
Kyle Zengo's user avatar
0 votes
0 answers
63 views

Python Facebook Marketing API - New Ad Refuses to Use Uploaded Creative

I can duplicate an ad and post it. But when I try to use a new video creative ID. It says the parameter is invalid. The video is in fact uploaded. I can also switch it out manually and set the ad live ...
themeowman 's user avatar
0 votes
1 answer
106 views

Facebook BigQuery connect

I created a function to retrieve data from the advertising cabinet. As a result, I get the generated schema in BigQuery, but in the tab "PREVIEW" the message "There is no data to ...
Artur Kurenov's user avatar
0 votes
0 answers
481 views

How to get a facebook token that does not expire or it does how to not have users reauth

I have a dashboard where users click a button and is redirected to Facebook where they allow me to access ad reports. It works. I get an access token and make another request to get the long access ...
Tampa's user avatar
  • 77.4k
0 votes
1 answer
221 views

mobile_app_install extracted from Facebook Insights API is different from the dashboard

I want to extract mobile_app_install but the numbers I have got from API seems not correct. It's 1839 by API using Python vs. 1736 in the dashboard. Any advice for this? campaign = Campaign('...
Nhi Yen's user avatar
  • 45
0 votes
0 answers
110 views

Convert list to columns with Pandas

I have a Dataframe connect to Facebook Insights API with the following fields: fields = [ 'ad_name', 'action_values', 'reach', 'spend', 'impressions', 'frequency', '...
André Filho's user avatar
0 votes
1 answer
1k views

I'm trying to use the Facebook API to get lead information on an ad, but I keep getting an error message

So, I'm trying to use Python and the Facebook API to get the lead info for an ad. I'm following the instructions under Bulk Read on this page: https://developers.facebook.com/docs/marketing-api/guides/...
jferguson0814's user avatar
1 vote
1 answer
1k views

How to replace all users in a Custom Audience using the Facebook Marketing API

I'm trying to work out how to replace the users in a Custom Audience. I'm able to delete and create a new audience, but ideally I just want to update the existing audience as it's shared with other ...
Alistair's user avatar
  • 483
1 vote
0 answers
955 views

Is it possible to retreive object_story_spec for an ad creative which was not created with that object_story_spec? [Python Facebook API]

I have a set of ad creatives that I retreive through the Facebook Business Python SDK. I need these specifically to retreive the outbound URL when someone clicks on the ad: AdCreative['...
OkkeM's user avatar
  • 38
0 votes
1 answer
441 views

Facebook get AdImage url from image_hash

My code (python-business-sdk): account = AdAccount(ad_account_id) img = account.get_ad_images(params={'hashes': ['6b709f0275d0bdf18fb78ef08492ee79'})[0] print(img['url']) # doesnt work primt(img[...
Hahan't's user avatar
  • 487
1 vote
0 answers
245 views

Python Facebook SDK GRAPH Api Read Time Out error

I want to create an AdCreative using python facebook business sdk, i know the code below works, but sometimes it gets Timeout as a result. The error code is: File "/usr/local/lib/python3.9/site-...
Kerim Siper's user avatar

15 30 50 per page