facebook-ads-api

Ads Insights API Website Conversions not Available

霸气de小男生 提交于 2020-05-14 07:45:05
问题 I am getting the Facebook Ads Insights data via Marketing API v2.11 API end points: https://graph.facebook.com/v2.11/act_XXXXXXX/insights Where XXXXXXX is an Ad Account Id But I am not able to fetch the "Website Conversions" data.Also I don't see this field available in the insights fields list https://developers.facebook.com/docs/marketing-api/insights/fields/v2.11 So how to get this data via api? Thanks! 回答1: The "Website Conversions" data available on the fields action_values and actions .

Facebook offline conversions without customer data associating with ad reporting

℡╲_俬逩灬. 提交于 2020-03-25 19:09:22
问题 I have ads on Facebook driving traffic to our site. I set this on land fbq('init', 'my_id', { external_id: "d1fd01cb777cdcdbf5161db889bf841e" }) and later if we have an actual purchase I send an offline purchase event using extern_id to match on. [{ :match_keys => { :extern_id => "d1fd01cb777cdcdbf5161db889bf841e" }, :event_time => 1579464000, :event_name => "Purchase", :value => 5.0, :currency => "USD", :order_id => "8431715", :custom_data => { :event_source => "affiliate" } }] however I am

Facebook offline conversions without customer data associating with ad reporting

北城余情 提交于 2020-03-25 19:08:51
问题 I have ads on Facebook driving traffic to our site. I set this on land fbq('init', 'my_id', { external_id: "d1fd01cb777cdcdbf5161db889bf841e" }) and later if we have an actual purchase I send an offline purchase event using extern_id to match on. [{ :match_keys => { :extern_id => "d1fd01cb777cdcdbf5161db889bf841e" }, :event_time => 1579464000, :event_name => "Purchase", :value => 5.0, :currency => "USD", :order_id => "8431715", :custom_data => { :event_source => "affiliate" } }] however I am

Facebook offline conversions without customer data associating with ad reporting

梦想与她 提交于 2020-03-25 19:07:18
问题 I have ads on Facebook driving traffic to our site. I set this on land fbq('init', 'my_id', { external_id: "d1fd01cb777cdcdbf5161db889bf841e" }) and later if we have an actual purchase I send an offline purchase event using extern_id to match on. [{ :match_keys => { :extern_id => "d1fd01cb777cdcdbf5161db889bf841e" }, :event_time => 1579464000, :event_name => "Purchase", :value => 5.0, :currency => "USD", :order_id => "8431715", :custom_data => { :event_source => "affiliate" } }] however I am

Facebook offline conversions without customer data associating with ad reporting

那年仲夏 提交于 2020-03-25 19:07:09
问题 I have ads on Facebook driving traffic to our site. I set this on land fbq('init', 'my_id', { external_id: "d1fd01cb777cdcdbf5161db889bf841e" }) and later if we have an actual purchase I send an offline purchase event using extern_id to match on. [{ :match_keys => { :extern_id => "d1fd01cb777cdcdbf5161db889bf841e" }, :event_time => 1579464000, :event_name => "Purchase", :value => 5.0, :currency => "USD", :order_id => "8431715", :custom_data => { :event_source => "affiliate" } }] however I am

Facebook Ads API Invalid OAuth access token

北慕城南 提交于 2020-01-15 04:59:26
问题 We are currently trying to setup an Ads API in Laravel. It has been days but the getAdAccounts() call always results in 'Invalid OAuth access token.' exception. However same access token when used in the Graph Explorer API works just as well for the adaccounts endpoint Here is the code - try { $fb = new Facebook([ env('FACEBOOK_APP_ID'), // App ID env('FACEBOOK_APP_SECRET'), env('FACEBOOK_GRAPH_VERSION') ]); $helper = $fb->getRedirectLoginHelper(); $accessToken = $helper->getAccessToken(); if

Facebook Ads API Error - Not enabled for usage

折月煮酒 提交于 2020-01-11 04:54:09
问题 So I have been trying to create an app that uses the Facebook Ads API to get ad costs and stats. I have created an app and added my ad account ids to the app settings but still get the error: "error":{"message":"(#274) The ad account is not enabled for usage in Ads API. Please add it in developer.facebook.com -> application -> settings -> advanced -> advertising accounts -> Ads API. Account XXXXXXXXXXXXX not enabled for application XXXXXXXXXXXXX.","type":"OAuthException","code":274}} Any

update creative in existing ad group

怎甘沉沦 提交于 2020-01-04 05:53:35
问题 We are trying to update\replace the creative of existing adgroup with no success. According to the documentation is supported: Updating and deleting ad groups * Using the ad group ID, you can update the following fields in an ad group: name max_bid adgroup_status bid_type targeting creative* We pass a new creative id to the adgroup using the graph api , but nothing happens. How can we update the creative of an existing adgroup? Found a solution, you can replace the creative but you can't edit

In the FB marketing api, there is an option to export_format: 'csv', how do I download the csv file?

末鹿安然 提交于 2020-01-03 18:43:12
问题 I'm looking to download a CSV from my api call to FB ads, I've set it in the parameters as per the code below, the call works fine but I only get a paginated JSON as a response. I'm not quite sure how to access the CSV report, the response doenst give me any report ID or download link. How can I download this CSV? Using nodejs facebook-nodejs-ads-sdk image showing the parameter information 'export_format' Documentation: https://developers.facebook.com/docs/marketing-api/reference/adgroup

Link page post layout is different for post created with the Graph API

青春壹個敷衍的年華 提交于 2020-01-03 05:58:08
问题 When creating unpublished (dark) link posts with Graph API, we are setting the "picture" parameter to override the thumbnail Facebook retrieves from the link url. The post we create this way has a thumbnail size of 90*90 on the old newsfeed design, while the posts created in Power Editor with the identical image has a thumbnail size of 400*210. In the new news feed design posts created both methods look the same. Any idea how to fix this issue in the old new feed design? 回答1: The minimum