facebook-ads-api

How to generate Facebook Marketing API access token to use it in Windows application

混江龙づ霸主 提交于 2019-12-05 00:17:04
问题 I am using Facebook as advertising platform to promote my application on Apple and Google stores. I would like to make windows service which will download daily report(s) about advertising status of my marketing campaign running one Facebook, preferably using 60 day token, or some permanent solution so that token is retrieved when required. I think that i understand everything to do this except how to generate access token to use it with Facebook Graph API. Which token for which Facebook

Can't create Facebook Ad creative with a facebook app in a development mode

我们两清 提交于 2019-12-04 23:30:59
I am working on a FB app for creating Facebook Ads. In the past I was able to debug the whole FB Ad creation process in a development mode but suddenly I started getting this error that I was not able to find documentation for. Request: https://graph.facebook.com/v2.2/act_foo/adcreatives?access_token=bar Response: {"error":{"message":"Invalid parameter","type":"FacebookApiException","code":100,"error_subcode":1885183,"is_transient":false,"error_user_title":"Ads creative post was created by an app that is in development mode","error_user_msg":"Ads creative post was created by an app that is in

Facebook conversion event callback

泪湿孤枕 提交于 2019-12-04 22:18:01
I cant find in the documentation if there is any callback functionality in the conversion tracking ( https://developers.facebook.com/docs/ads-for-websites/tag-api ) In order to track an event you just need to call: window._fbq = window._fbq || []; window._fbq.push(['track', 'FBCONVERSIONCODE', {'value':'0.00','currency':'USD'}]); That is very similar to google analytics conversion code, only though they allow you to call a function when the ajax call finish: ga('send', 'pageview', { 'page': '/my-new-page', 'hitCallback': function() { alert('analytics.js done sending data'); } }); Is there a

branch.io deep-linked URL not passing data in App from Facebook Ads

亡梦爱人 提交于 2019-12-04 15:19:55
We are using branch.io to pass custom data to App. For that we are following this steps in branch dashboard. 1) Ads -> Partner Management -> Facebook -> Create Facebook Link 2) Set data in Key/Value under " Deep Linking " Section (data which we need in our app) 3) We set Play/App Store URL in Android/iOs respectively Or set Default Redirects under " Redirects " section That's it!!! Now Go to Facebook Ads Manager and select App Install Campaign. 1) Select Play/App Store under App Section. 2) Set above generated URL under " deffered deep link " You can read more here : https://docs.branch.io

retrieve async ads insights results from FB ads API with pagination

ε祈祈猫儿з 提交于 2019-12-04 07:27:33
I am using facebook-python-ads-sdk to make async calls for FB insights API as described . params = { "time_increment": 1, "level": "ad", "date_preset": "last_28d", "breakdowns": "hourly_stats_aggregated_by_advertiser_time_zone", "limit": 1000 } job = AdAccount("id").get_insights_async(params=params) result_cursor = wait_for_async_job(job) results = [item for item in result_cursor] def wait_for_async_job(job): for _ in range(TIMEOUT): time.sleep(1) job = job.remote_read() status = job[AdReportRun.Field.async_status] if status == "Job Completed": return job.get_result() So the job to retrieve

FB Ads API status , effective_status and the ads actual status

自作多情 提交于 2019-12-03 23:33:30
From the ads api doc it says effective_status enum {ACTIVE, PAUSED, DELETED, PENDING_REVIEW, DISAPPROVED, PREAPPROVED, PENDING_BILLING_INFO, CAMPAIGN_PAUSED, ARCHIVED, ADSET_PAUSED} The effective status of the ad. The status could be effective either because of its own status, or the status of its parent units. status enum {ACTIVE, PAUSED, DELETED, ARCHIVED} The configured status of the ad. The field returns the same value as 'configured_status', and is the suggested one to use. BUT, the problem is unless the advertiser actively stops or pauses or deletes an advert or campaign the ad's status

Match facebook campaign objective with insights actions types

大城市里の小女人 提交于 2019-12-03 12:34:56
问题 Facebook campaigns have an objective among those listed here ( PAGE_LIKES , VIDEO_VIEWS , etc). Facebook insights list users actions among those listed here ( like , video_view , etc, but some are missing, unlike for example). The problem is: objective and actions do not match. For example, there is a PAGE_LIKES objective and a like action. In the facebook power manager there is a "Results" column which gives, for each campaign, the user actions count that match the campaign objective ( 992

Match facebook campaign objective with insights actions types

倾然丶 夕夏残阳落幕 提交于 2019-12-03 03:06:07
Facebook campaigns have an objective among those listed here ( PAGE_LIKES , VIDEO_VIEWS , etc). Facebook insights list users actions among those listed here ( like , video_view , etc, but some are missing, unlike for example). The problem is: objective and actions do not match. For example, there is a PAGE_LIKES objective and a like action. In the facebook power manager there is a "Results" column which gives, for each campaign, the user actions count that match the campaign objective ( 992 like obtained in the picture below ). It seems that there is no such things in the insights ( neither in

Facebook Ads API to update “Customer List: Value-based”

ε祈祈猫儿з 提交于 2019-12-02 23:23:53
问题 I created a Custom Audience of type "Customer List: Value-based". I then used that to create a "value-based Lookalike Audience". The documentation for "value-based Lookalike Audience" is here. But what I want to know is: How can I use the PHP SDK to update my Custom Audience of type "Customer List: Value-based" via the API? (Then, the changes will flow through to the lookalike audience, which is what I use in my ads targeting.) I cannot find documentation. P.S. Ding Zhang of Facebook

Not getting paused ads insights using Facebook Marketing API

女生的网名这么多〃 提交于 2019-12-02 13:51:39
问题 I wrote this script that returns a list of ads with their stats but apprently I'm getting only insights for active ads and not paused ones - For paused ones, I'm just getting the campaign name and its id ! I tried using filtering like below but it's not working: '' first = "https://graph.facebook.com/v3.2/act_105433210/campaigns?filtering=[{'field':'effective_status','operator':'IN','value':['PAUSED']}]&fields=created_time,name,effective_status,insights{spend,impressions,clicks}&access_token=