facebook-marketing-api

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

How to further filter Facebook Graph API query on Graph API Explorer for my ad account?

戏子无情 提交于 2021-02-07 08:19:40
问题 I'm trying to get the ad spend and mobile app installs for my app using the Facebook Graph API v2.11 for marketing. In the Graph API Explorer, when I try /act_<my account>/campaigns?fields=insights{actions,spend}&time_range={'since':'2017-07-07','until':'2017-12-12'} In the output, under "insights", I get an object of this type: "data": [ { "actions": [ { "action_type": "comment", "value": "3" }, { "action_type": "like", "value": "33" }, { "action_type": "link_click", "value": "1531" }, {

Are there any marketing API webhooks for modifying campaigns/adsets/ads

点点圈 提交于 2021-02-05 07:59:05
问题 In the program i am writing users can pause/unpause a campaign. I want to know if theres a way i can update the status of the campaign on my end if the user modify the campaign through the Facebook Ads manager. The only webhooks i could find are for lead generation. 回答1: It looks like i found the documentation hidden here You have to add ads_rules_engine Webhook to your app in order to recieve webhooks for 来源: https://stackoverflow.com/questions/52937040/are-there-any-marketing-api-webhooks

How to send Facebook Test Lead to Webhook - but from Test User's Test Page

时间秒杀一切 提交于 2021-02-05 06:36:06
问题 As i'm testing leads retrieval and integration - i'm wondering did anybody found solution on how to create leadgen ad on test page of test user account create lead from test ad So far i created leadgen_form on Test page via Graph API and test lead via Graph API. Lead is visible in "Publishing Tool -> Lead Ads Form -> Form Libray" but is not sent to webhook on creating. (Despite my app being visible in "Leads Setup" and Webhook is working when testing it from developers.facebok.com) Any

Facebook Marketing API. Geographic search

随声附和 提交于 2021-01-28 02:37:20
问题 I am trying to get list of all cities of a country from Facebook. I started from FB documentation of v2.9 here: Facebook Marketing API And tried of getting list of cities as described using curl: curl -G \ -d 'location_types=["city"]' \ -d 'type=adgeolocation' \ -d 'q=dub' \ -d 'access_token=<MY_TOKEN>' \ https://graph.facebook.com/v2.9/search But it returns empty json. If i remove q=dub parameter it still returns empty data. But if i put country as a type of location, then it nicely returns

How to add SandBox Ad Account to BusinessManager?

穿精又带淫゛_ 提交于 2020-06-09 05:16:26
问题 Background I'm building an Ads-Management application tailored towards both marketing / advertising agencies and individual advertisers (users) To test marketing-api, I have setup a SandBox ad account The very first thing that I'm testing is creating and uploading of custom audience (CSV file upload) and sharing it across ad accounts owned by different BusinessManagers. From what I've gathered thus far, creating custom audience has 2 steps Create an empty Custom Audience Add (upload) users to

How to add SandBox Ad Account to BusinessManager?

给你一囗甜甜゛ 提交于 2020-06-09 05:15:06
问题 Background I'm building an Ads-Management application tailored towards both marketing / advertising agencies and individual advertisers (users) To test marketing-api, I have setup a SandBox ad account The very first thing that I'm testing is creating and uploading of custom audience (CSV file upload) and sharing it across ad accounts owned by different BusinessManagers. From what I've gathered thus far, creating custom audience has 2 steps Create an empty Custom Audience Add (upload) users to

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

Unable to create ad creative using Facebook graph api

空扰寡人 提交于 2020-06-07 06:51:25
问题 We are trying to create dev environment for fetching ads insights in development mode. We are able to achieve below items except ad creative & ad creation Sandbox Ad Account test user Access token with required permissions for ad insights. Using Access token we are able to create adset, campaign, upload image. We are getting below response when we try to create ad creative Response: { "error": { "message": "Invalid parameter", "type": "OAuthException", "code": 100, "error_subcode": 1885183,

Facebook Marketing API sandbox mode

孤人 提交于 2020-05-27 16:36:15
问题 I'm trying to create adverts on the Facebook using marketing (ads) API, but after some rejected requests my account has been blocked. So, I tried to find out ways to testing my API requests via sandbox mode. Could you give me some tips about best practices of the creating adverts, campaigns and adsets on using facebook marketing (ads) API with sandbox accounts 回答1: Enable Account from FB Dev->Marketing API->Tools->Sandbox Ad Account Management . Get Access Token from here. Go to Graph API