facebook-ads-api

Facebook Mobile Ad App Installs not showing up in campaign reports

随声附和 提交于 2020-01-02 04:12:12
问题 I have successfully implemented the Facebook SDK and AppEvents to report installation of my Android app. I have verified that it registers the last install data in the dashboard, and I see thousands of fb_mobile_activate_app events in my App Events tab on Facebook. I have been running a paid campaign on the app, however, even after over 24 hours since adding the SDK, I am getting reports of 0 installs. Since I am basing my budget on how the ads perform, it seems odd to not have any data. Is

Why is my Facebook purchase tracking (via javascript) working inconsistently?

こ雲淡風輕ζ 提交于 2019-12-31 05:42:12
问题 Because I do not want Facebook to double-count purchases, I store in my database whether I've already triggered a purchase tracking event for a given customer of mine. And so my code below knows not to run more than once per customer (because my view leaves $('#facebookTrackingPurchaseValue').val() empty if it has already run before). $(document).ready(function () { var redirectUrl = decodeURIComponent(decodeURIComponent(handleParams.urlParams.url));//needs to be double-decoded; see

Upload image_file using Ads API

旧时模样 提交于 2019-12-31 02:03:08
问题 I'm trying to create a new Ad Creative for an event ad ( Post-Migration ), using the field image_file . Via the Graph API Explorer I send the following post request: URL: https://graph.facebook.com//act_xxxx/adcreatives object_id: xxxxx body: body here title: title here name: name here image_file: @C:\Art.jpg I get the following exception response: "The Adcreative Create Failed for the following reason: Invalid image file: The image_file field does not specify a POST file name." Apparently I

Post Job Offers through the Facebook API

为君一笑 提交于 2019-12-30 06:26:08
问题 Does anyone know if it is possible to post job offers through the FB API? I am asking in context of this article https://facebook.com/business/news/take-the-work-out-of-hiring I searched for something in the FB documentation, but couldn't find anything. 回答1: I have been exploring the same thing, and minus an official FB statement that they do not support this through Graph API or otherwise, I'd safely say that it is not currently possible/supported. 回答2: It looks like Facebook is rolling this

Get metrics from Facebook Ads API

别等时光非礼了梦想. 提交于 2019-12-30 05:20:07
问题 I am not able get the below metrics from Facebook API. How can I calculate the these metrics, which appear in Facebook's own ads interface, from the Facebook Ads API: Reach Social reach Frequency, CPC, CPM. 回答1: When you have the Ad group ID, you have to issue an API call: https://graph.facebook.com/<AD-GROUP_ID>/stats Then you get answer like this: { "id": "<AD-GROUP_ID>/stats/0/.....", "impressions": 31, "clicks": 0, "spent": 0, "social_impressions": 0, "social_clicks": 0, "social_spent": 0

Facebook Ads API Invalid Scopes: ads_management

谁说胖子不能爱 提交于 2019-12-25 07:49:49
问题 We're using an app that has access to the Marketing API (basic access). We've migrated everything to v2.2 a while ago. Today we noticed that when logging in or reauthorising the application we see the message: Invalid Scopes: ads_management. We've been using the permission for a while now and I can't find anything about changes to it in any of the latest upgrades. Are we missing something? 回答1: They admitted this was a bug on their side resulting in apps with Basic access only having read

I can't fetch stats for all my facebook campaigns using Python and Facebook Marketing API

↘锁芯ラ 提交于 2019-12-25 02:56:30
问题 I'm trying to retrieve the following metrics: date, campaign_name, impressions, clicks & spend , of all the campaigns in my facebook account but apparently the script I wrote returns only stats for some campaigns and not all of them. It returns only the campaign_name and its id for most of the campaigns. I'm having this doubt that it only returns the stats for active campaigns and not the inactive ones. Anyone knows how I can mention that I always want to fetch inactive/paused campaigns? Here

Unsupported get request using Ads Facebook SDK for PHP

☆樱花仙子☆ 提交于 2019-12-24 16:54:21
问题 I'm trying to access ads campaigns related data (such as country, cpm, spent ...) using Facebook php-ads-sdk The Facebook user is already added as admin in Facebook Bussiness Manager. The first thing I do is get the access token given the app_secret and app_id of the user: public function getAccessToken() { try { $response = $this->client->get( $this->accessTokenUrl, [ 'query' => [ 'client_id' => $this->appId, 'client_secret' => $this->appSecret, 'grant_type' => 'client_credentials', ],

Facebook API returns 'Unsupported post request' when adding users to Custom Audience

≡放荡痞女 提交于 2019-12-24 13:41:33
问题 When I try to add users to a Custom Audience (using a POST to endpoint /{custom_audience_id}/users , with parameters users and hash_type ), it gives me {'error': {'message': 'Unsupported post request.', 'code': 100, 'type': 'GraphMethodException'}} This message has popped up for other people on Stack Overflow when they try to do things for which they did not get the right Facebook permissions, but I do have ads_management permissions for the user (the user is actually my own account, so I

Facebook Marketing API some field are not shown

限于喜欢 提交于 2019-12-24 11:31:39
问题 I have a development level access to Marketing API and it looks like I cannot read some fields of specific objects. For example I try the following call: You can see that promoted_object, link_url and object_url are not displayed in the result. And I should have one of those three value as the Ads was ad to promote "web site click". Is it a bug or a limitation of the development acces or I am doing something wrong? 回答1: It is true that not all fields are readable by all apps, however in the