facebook-marketing-api

Use time range in Ad Insights of Facebook Marketing API

╄→尐↘猪︶ㄣ 提交于 2019-12-06 00:33:54
问题 I'm trying to obtain impressions of my ads between two dates I'm using Graph API Explorer with this path: act_0123456789/ads?fields=insights{ad_id,ad_name,impressions} I want to use 'time_range' attribute that we can find it in Marketing API reference but I don't know the syntax. Anyone can help me? 回答1: I can't comment on the approach you're using as I have not used it myself. However, here is an alternative approach which I have used with success: https://graph.facebook.com/v2.5/act_xyz

How can I check Delivery Status of campaign on Facebook Marketing API

℡╲_俬逩灬. 提交于 2019-12-05 12:05:29
I'm doing a little app on Python about this. I was using the "effective_status" field but it shows just if it's paused or not, and I want to check if the campaign is running or not. Thanks. Effective_status gives you the effective status of this campaign. For Campaign object, effective_status value can be one of these ACTIVE, PAUSED, DELETED, PENDING_REVIEW, DISAPPROVED, PREAPPROVED, PENDING_BILLING_INFO, CAMPAIGN_PAUSED, ARCHIVED, ADSET_PAUSED If you read the effective_status field for adset level, it will tell you if the adset has CAMPAIGN_PAUSED or PAUSED. EDIT: You will need to combine

Possible to specify date_preset with insights edge in Facebook Ads API?

风格不统一 提交于 2019-12-05 08:39:01
For the Marketing API, I know that I'm able to make one call to retrieve all of the adsets from a certain account along with their insights, but am I able to specify the date_preset for the insights edge in that same call? For example, the following gives me lifetime insights stats: /v2.4/{accountID}/adcampaigns?fields=insights To be clear - I know this is possible to retrieve by making separate calls for each adset id (where I know I can specify the date_preset); instead, I'd like to do this via the call where I get a long list of the ad sets plus their insights details in one go. Yes this is

Request to promote iOS App in Facebook via Marketing API

僤鯓⒐⒋嵵緔 提交于 2019-12-05 07:20:03
I have the facebook application with approved ads_read, manage_pages ads_management, business_management and Ads Management Standard Access permissions . I can create Ad campaign , ad set and can upload asset to Facebook via Facebook Marketing API. I create ad set with such parameters: { name: 'adset_name', campaign_id: '<campaign_id>', lifetime_spend_cap: 11000, promoted_object: { application_id: '<fb_app_id>', object_store_url: 'https://itunes.apple.com/app/<my_app>', page_id: '<page_id>', }, billing_event: 'IMPRESSIONS', optimization_goal: 'APP_INSTALLS', bid_amount: 20000, targeting: { age

Facebook Marketing API get total reach of multiple Ad Sets

柔情痞子 提交于 2019-12-04 15:28:49
I am trying to use the Marketing API to get the summary data for multiple Ad Sets. I am able to get the data for each Ad Set with the following: insights/?ids=[**ad_set_ids**]&fields=impressions,clicks,reach,actions,total_actions I can add up the numbers for each Ad Set to get the total and it is fine except for "reach" because the total of reach doesn't just add up to the total (see image below). Is there any way to get the summary of data for the ad sets (the last row in the image "Results from 3 Ad Sets")? I also tried to add the param default_summary=true but it gives me the summary for

How to get Facebook ad permalink using Facebook APi

≡放荡痞女 提交于 2019-12-04 10:07:22
When using ads manager, you can preview ad. There is also a hyperlink which goes View post permalink with comments . Is there any way to get that link using API First you must get the creative that's targeted by the ad. $ad = new Ad($ad_id); $ad->read(array( AdFields::CREATIVE, )); Then get the info from the creative. $creative = new AdCreative($ad->creative['id']); $creative->read(array( AdCreativeFields::EFFECTIVE_OBJECT_STORY_ID, )); Then $creative->effective_object_story_id will contain an ID that would look like xxxxxxxxxxxxx_yyyyyyyyyyyyy, where x is the ID of the page, and y is the id

Use time range in Ad Insights of Facebook Marketing API

蓝咒 提交于 2019-12-04 05:22:31
I'm trying to obtain impressions of my ads between two dates I'm using Graph API Explorer with this path: act_0123456789/ads?fields=insights{ad_id,ad_name,impressions} I want to use 'time_range' attribute that we can find it in Marketing API reference but I don't know the syntax. Anyone can help me? Al Ducent I can't comment on the approach you're using as I have not used it myself. However, here is an alternative approach which I have used with success: https://graph.facebook.com/v2.5/act_xyz/insights?level=<yourLevel>&fields=ad_id,ad_name,impressions&time_range[since]=2016-02-15&time_range

How to aduser with admin access while creating ad account facebook marketing api

不问归期 提交于 2019-12-04 04:11:41
问题 I am trying to create ad account in Facebook business manager via Facebook marketing and graph API using following code. $attachment = array('access_token' => $this->accessToken, 'name' => $associative_arr['name'], 'currency' => $associative_arr['currency'], 'timezone_id' => $associative_arr['timezone_id'], 'end_advertiser' => $this->mybusinessId, 'media_agency' => 'NONE', 'partner' => 'NONE', 'access_type' => 'OWNER', 'permitted_roles' => 'ADMIN' //'user_role' => '1001' ); $ch = curl_init();

python requests can't find a folder with a certificate when converted to .exe

血红的双手。 提交于 2019-12-04 01:20:39
问题 I have a program that pools ad stats from different marketing systems. Everything works fine untill i convert it to the .exe format and run it. Exception in Tkinter callback Traceback (most recent call last): File "C:\Users\user\AppData\Local\Programs\Python\Python35\lib\tkinter\__init__.py", line 1549, in __call__ return self.func(*args) File "C:\Users\user\Desktop\alg\TSK_7. Marketing\report_gui.py", line 24, in <lambda> ok = tk.Button(root, text="DO NOT PRESS", bg="red", command=lambda:

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