Questions tagged [facebook-python-business-sdk]
The facebook-python-business-sdk tag has no usage guidance.
facebook-python-business-sdk
45
questions
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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('...
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',
'...
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/...
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 ...
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['...
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[...
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-...