Questions tagged [facebook-python-business-sdk]
42 questions
                    
                    10
                    
            votes
                
                0 answers
            
        Message "Application does not have the capability to make this API call." on API '/adcreative'
I'm trying to create automated Facebook ads using Facebook Marketing API and Facebook Python Business SDK. So far I succeeded in posting new campaign and ad sets, but when I tried created the ad creatives it returned message "Application does not…
        
        Petra Barus
        
- 3,815
 - 8
 - 48
 - 87
 
                    4
                    
            votes
                
                1 answer
            
        Python, facebook-python-business-sdk: How to increase graph api limit from 25 to 500
I use following API:
  https://github.com/facebook/facebook-python-business-sdk
Where i need to specify limit fields to return more result from facebook.
My code:
fields = [
    AdsInsights.Field.campaign_id,
    AdsInsights.Field.campaign_name,
 …
        
        Alexey Alexeenka
        
- 891
 - 12
 - 15
 
                    2
                    
            votes
                
                1 answer
            
        Python - You are calling a deprecated version of the Ads API
Seems this is a commun issue when using Facebook APIs. I am trying to use the ads API using Python. When I am testing it using the Graph API Explorer, I have the version 9.0 and I am not getting any errors. I am trying to implement the API call…
        
        Pierre-Alexandre
        
- 543
 - 1
 - 10
 - 31
 
                    2
                    
            votes
                
                1 answer
            
        How to create a video ad in Facebook with Python SDK using an already existing video?
I am trying to create a video ad using a video that already exists in the ad account's asset library. When I first tried it, I did not specify a thumbnail and got an error message saying it needs a video thumbnail, which can be specified using…
        
        Jadin Press
        
- 46
 - 3
 
                    2
                    
            votes
                
                1 answer
            
        How can I get more than 25 results from Facebook's insights api using Facebook-business-python-sdk?
I'm trying to get basic ad level data from Facebook's insights API using facebook-python-business-sdk with python 3.7.
The problem is I'm only getting 25 results back, even in accounts that have more than 25 active ads.
I'm using the get_insights…
        
        idoka
        
- 81
 - 4
 
                    2
                    
            votes
                
                1 answer
            
        How to do complex queries using Facebook's TargetingSearch API?
I found some nice documentation for doing targeting searches via Facebooks api here:
https://developers.facebook.com/docs/marketing-api/targeting-search/
The code that I have been using successfully, which was copied directly from the above…
        
        sometimesiwritecode
        
- 2,993
 - 7
 - 31
 - 69
 
                    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…
        
    
                    1
                    
            vote
                
                0 answers
            
        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:…
        
        OkkeM
        
- 38
 - 5
 
                    1
                    
            vote
                
                0 answers
            
        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-packages/urllib3/connectionpool.py", line 353, in…
        
        Kerim Siper
        
- 87
 - 10
 
                    1
                    
            vote
                
                1 answer
            
        Adding Users with multiple keys to a Custom Audience using Python facebook marketing API
I need to create a custom audience with multi keys of users such as:
+-----------+------+-----+----------------------+------------+
| EXTERN_ID |  FN  | LN  |        EMAIL         |   PHONE   …
        
        Yash Sharma
        
- 324
 - 6
 - 25
 
                    1
                    
            vote
                
                1 answer
            
        How can we access the Ads Action Stats list in the Facebook Marketing API, using the Python SDK?
I have been trying to access the list on the Facebook Ads API for a few days now but haven't been able to make any headway. 
I need to pull the purchase_roas field which is part of the Ads Action Stats List. However, I'm not able to do so.
I'm using…
        
        rohit0505
        
- 375
 - 1
 - 3
 - 10
 
                    1
                    
            vote
                
                0 answers
            
        Create custom audience using Facebook API SDK
I have an access token for Facebook Audiences but I am not able to get create a custom audience using Python-SDK
First I get information about USER id using the following link:
https://developers.facebook.com/tools/debug/accesstoken
Than I use the…
        
        briba
        
- 2,857
 - 2
 - 31
 - 59
 
                    1
                    
            vote
                
                1 answer
            
        FacebookRequestError while trying to retrieve Campaign Insight Data via Facebook Marketing API with Python/Django
I am trying to get Campaign Insights via Facebook's Marketing API using the Python Business SDK and I am getting a FacebookRequestError:
  Message: Call was not successful
  Method:  GET
  Path:   …
        
        aksonai
        
- 101
 - 2
 - 7
 
                    1
                    
            vote
                
                0 answers
            
        Facebook Marketing API - Creating an Ad in development mode
I'm implementing an application using Facebook Marketing API's SDK (python), I'm a newbie to this, yet I read the documentation and I was able to create campaigns, and ad sets. But not for ad creatives. The error was that my app is in dev mode and I…
        
        Alice J
        
- 59
 - 1
 - 7
 
                    0
                    
            votes
                
                0 answers
            
        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 fine.
The bold part is where this takes place.…
        
        themeowman 
        
- 31
 - 3