facebook-ads-api

FB Ads API status , effective_status and the ads actual status

自闭症网瘾萝莉.ら 提交于 2019-12-21 06:48:25
问题 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

Facebook iOS SDK- Mobile App Install Tracking not working

久未见 提交于 2019-12-20 21:29:21
问题 I'm using Facebook SDK version 4.5.1 in my application. The APP ID, URL scheme, App display name etc have been incorporated into the info.plist correctly. We have Authentication as well as Share features inside the app all of which are working perfectly as expected. For Event tracking we have; - (void)applicationDidBecomeActive:(UIApplication *)application{ [FBSDKAppEvents activateApp]; } I can confirm that analytics is working seeing the Dashboard, i.e Installs and App events are getting

How to fix Duplicate Facebook pixel ID error?

梦想与她 提交于 2019-12-20 10:00:02
问题 Added facebook pixel like they showed here here Now getting an error: fbevents.js:9 Facebook Pixel Error: Duplicate Pixel ID: some-pixel-id Cannot understand what causes this error. Even when I run the code from their example with removed pixel code from html in the console I get the same result. Anyone knows what that means and how to solve this error ? 回答1: I found the solution on this page actually. https://productforums.google.com/d/msg/tag-manager/GIaDNascpYw/TNfoJApXBgAJ Not sure why

Is there any way to get a list of users for a custom audience?

对着背影说爱祢 提交于 2019-12-18 09:03:32
问题 Getting other details is easy, but there doesn't seem to be any API accessible way to get a list of users (or even approximate users) for the audience. You can add them, and delete them (?!) but not enumerate all the users in the list. Is that truly the case, or am I missing something? 回答1: According to the documentation here: https://developers.facebook.com/docs/reference/ads-api/custom-audience-targeting/ you should be able to see an approximate count. There is no way to get the users back

Facebook Ad insight GRAPH API edge for a date range

删除回忆录丶 提交于 2019-12-13 16:08:52
问题 I am trying to get Facebook Ad stats for a given date range using Facebook Graph API. It doesn't seem to work. https://graph.facebook.com/v2.5/6039003162091/insights?since=2016-03-14&until=2016-03-15&access_token=<> Any idea how I should go about with this? 回答1: The answer is in the comments above and adding it here so it is clear. The issue was in the format of the time_range parameter as it needs to be time_range={"since":"2016‌​-03-15","until":"2016-03-15"} 回答2: https://graph.facebook.com

Not Ready: File Not Uploaded when adding to Facebook Custom Audience

℡╲_俬逩灬. 提交于 2019-12-12 16:25:06
问题 I am attempting to add users to a Facebook Custom Audience using version 2.1 of their API. I'm using this Python script to create a new audience, and add users to it. import json, requests # set up params account_id = 'an ads account ID' audience_name = 'a new name' token = 'a valid access token' # create a new audience ID for posterity url = "https://graph.facebook.com/act_" + account_id + "/customaudiences" response = requests.post(url, {"name": audience_name, "access_token": token}) resp

Facebook Ads Sdk doesn't allow to post ad via API. Subcode: 1487930

我是研究僧i 提交于 2019-12-12 10:36:37
问题 I've read a lot about facebook ads and stuff, using GUI it allow to do what I'm doing and for some reason on sdk it doesn't. I get this suberror code on Facebook ads sdk subcode 1487930 . The message says: You Must Select an Object to Promote, the user message says: Your campaign must > include an ad set with a selected object to promote related to your objective > > (ex: Page, URL, event). Please update your ad set to continue. Response returns no fields to blame and error happens when

Retrieve Facebook Insights for all active ads within an account?

我只是一个虾纸丫 提交于 2019-12-12 03:56:00
问题 My code allows me to retrieve all ads that between certain dates, but this includes ads that are no longer active. I want to show insights only for ACTIVE ads. How can I retrieve Facebook Insights for all active ads within an account? public function getInsights($levelType, $id, $aggLevel, $start, $end) { if ($levelType) { if ($id == null) { abort(400, 'You must provide the ID for the object you want to retrieve.'); } } else { $levelType = \AdAccount::class; $id = ACT_PREPEND . $this-

Create Facebook Custom Audience for website Traffic

这一生的挚爱 提交于 2019-12-11 11:52:28
问题 I'm trying to create custom audience for web-traffic using the marketing API (Facebook Ads SDK 2.5). This is what I tried. $audience = new CustomAudience(null, 'act_'.$account_id); $aud_data = array( CustomAudienceFields::NAME => $name, CustomAudienceFields::SUBTYPE => CustomAudienceSubtypes::CUSTOM, CustomAudienceFields::RULE => array('event' => array('i_contains' => 'ViewContent','i_contains' => $name ) ), CustomAudienceFields::PIXEL_ID => $pixelId, CustomAUdienceFields::DESCRIPTION => '',

Can't access Facebook campaigns

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 15:55:19
问题 I'm unable to get a list of my campaigns using Facebook Graph API Response for /me/adaccounts { "data": [ { "account_id": "123456789000001234", "id": "act_123456789000001234" } ], "paging": { "cursors": { "before": "AAAAaaaBBBBcccc", "after": "AAAAaaaBBBBdddd" } } } /123456789000001234/campaigns returns { "error": { "message": "Unsupported get request. Object with ID '123456789000001234' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please