facebook-python-business-sdk

Upload email list to Facebook via API

↘锁芯ラ 提交于 2021-02-17 06:22:06
问题 I need to send or create the list of user emails to our business facebook account as an audience list ,so that we can use it for our marketing purposes(I'm using Python 3.8). Below is the code which i got from Google, But when i searched i found that we cannot directly pass the emails to Facebook via API. Do you have any suggestions on how to achieve it ? Also "can i pass email ID's to this list "fields = [] in the below code ? AND what does the "ID" means ? from facebook_business.adobjects

Facebook Marketing API - Creating an Ad in development mode

荒凉一梦 提交于 2020-06-07 07:18:09
问题 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 need to switch it to be public. Status: 400 Response: { "error": { "message": "Invalid parameter", "type": "OAuthException", "code": 100, "error_subcode": 1885183, "is_transient": false, "error_user_title": "Ads creative post was created by an app

How can I get more than 25 results from Facebook's insights api using Facebook-business-python-sdk?

三世轮回 提交于 2019-12-23 04:06:15
问题 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 method on each account, passing a 'level':'ad' param and filtering on a specific date. I've also checked whether I've reached facebook's limit (using the explanation provided here) and I'm not even close to the limit. The get_insights method doesn't