facebook-ads-api

Offline_access and Api-Key confusion

巧了我就是萌 提交于 2019-12-24 09:26:54
问题 I've tried do develop automatic code that would fetch data from ads campaigns under account. My plan is to have server that would query every day to get data from impressions/clicks/costs of ads and save it for later use. I use https://developers.facebook.com/tools/explorer to get access_token for getting data (insights) from those campaign pages but when I log out to try offline_access it tells access_token is old, cause of password change or access_token getting outdated. Isn't the whole

Facebook ads API : Object with ID '*****************' does not exist, cannot be loaded due to missing permissions

有些话、适合烂在心里 提交于 2019-12-24 08:06:13
问题 I am working on the facebook ads API (3.2) But I am getting some weird errors. I am trying to get the campaigns And following is the method I am using for this according to the documentation Here public function getcampaigns() { $adaccount = new AdAccount('331*****10774'); $campaigns = $adaccount->getCampaigns(); print_r($campaigns); } But I am getting the error Then I try this with Explorer with the same access_token and it worked well. I am giving the following permissions in access_token

Facebook ads, add customer page to business manager

妖精的绣舞 提交于 2019-12-24 07:04:27
问题 What I want to do is to be able to create and publish FB ads from my fb account and publish it on other users fb pages using fb api. User can install my app which will ask for manage_pages+business_management permission along with some other needed permissions.(this part is done for test app and it's working) and then users can create fb ads on my platform and connect there pages to the ad they have created. I am able to create fb ads also from my platform but not able to connect users pages

Is there any relationship between the reach estimate in Ads Manager and in the Ads API?

a 夏天 提交于 2019-12-24 03:18:42
问题 I just noticed that the numbers given by Ads API and the Ads Manager are wildly different. For instance, when searching for the French speakers in the city of Anderlecht, Belgium, the Ads Manager shows 44,000 people and the Ads API gives me the number 12,000 . See the screenshot of the Ads Manager UI and of the curl script calling below: curl -G -q \ -d 'targeting_spec={"geo_locations":{"cities": [{"key":"171194"}]},"locales":[1003]}' \ -d 'access_token=XYZ' \ https://graph.facebook.com/v2.3

Facebook Ads API - Batch Requesting Targeting Search

守給你的承諾、 提交于 2019-12-24 00:55:17
问题 Question: I am having trouble with submitting batch requests for the Facebook Ads API, and I was wondering if anyone could provide insight on the below error. I am attempting to take a list of artists, just 50 in this simplified example, and then submit a TargetingSearch request for those artists. However, I'm having trouble getting the request to pass through correctly to Facebook. You could imagine a case where I'm passing thousands of artists into here. I've been using these two resources

How to get a listing of product catalogs from a business manager with development access?

≯℡__Kan透↙ 提交于 2019-12-23 23:31:23
问题 I have a developer account and have created an application in development mode, just for testing purposes. I have also created a business manager at business.facebook.com , and added my test app to it. I have an ad account as well, which is added into the business manager. I also added the ad account ID to my application under the Advanced --> Advertising Accounts --> Authorized accounts . However, when I use the Facebook Graph API Explorer, and set it to use the application I created, then

Identify users that registered via FB mobile install ad

可紊 提交于 2019-12-22 18:19:03
问题 We (the company I work for) run several Facebook mobile install ad campaigns. We integrated the FB iOS SDK with our iOS application. Based on this, Facebook gives us the total app installs in the ad campaign reports (those users that clicked on the ad, were redirected to the Apple App Store and finally installed the app). So far, so good. Now, I was asked (by our CEO) whether there's a chance that we not only get the total amount of app installs per campaign, but rather flag all users in our

Facebook Graph audience insights queries

被刻印的时光 ゝ 提交于 2019-12-22 12:14:13
问题 I found some intriguing Facebook Graph API documentation here: https://developers.facebook.com/docs/graph-api/reference/audience-insights-query https://developers.facebook.com/docs/graph-api/reference/audience-insights-lifestyle/ https://developers.facebook.com/docs/graph-api/reference/audience-insights-lifestyles/ (plural) https://developers.facebook.com/docs/marketing-api/audience-insights-api/v2.8 I think the results of those queries will be really powerful and could help my business. But

How to calculate Estimated Daily Reach using fb api

本秂侑毒 提交于 2019-12-22 08:19:15
问题 I want to show the daily estimated reach using fb api. I have tried below code :- $ch = curl_init(); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_USERAGENT, 'facebook'); $url_en = urlencode("{'geo_locations':{'countries': ['US'],},'age_min':20,'age_max':24}"); curl_setopt($ch, CURLOPT_URL, "https://graph.facebook.com/v2.2/act_1375199556085956/reachestimate?access_token=ACCESS TOKEN

Facebook Marketing API Rate Limit

随声附和 提交于 2019-12-22 05:43:31
问题 I know that fb have made available some documentation about the requests limits to the api https://developers.facebook.com/docs/marketing-api/api-rate-limiting, but it is not clear how each api call is calculated... i.e, If I want to get stats for ~10,000 adsets, how can I evenly space the time between the calls ? 回答1: The best answer i could find for this question from another SO thread - "After some testing and discussion with the Facebook platform team, there is no official limit I'm aware