facebook-ads-api

Facebook Ads API to update “Customer List: Value-based”

戏子无情 提交于 2019-12-02 10:37:04
I created a Custom Audience of type "Customer List: Value-based". I then used that to create a "value-based Lookalike Audience". The documentation for "value-based Lookalike Audience" is here . But what I want to know is: How can I use the PHP SDK to update my Custom Audience of type "Customer List: Value-based" via the API? (Then, the changes will flow through to the lookalike audience, which is what I use in my ads targeting.) I cannot find documentation. P.S. Ding Zhang of Facebook encouraged me to ask the question here since none of the people I reached at FB were willing to answer my

Not getting paused ads insights using Facebook Marketing API

匆匆过客 提交于 2019-12-02 06:40:46
I wrote this script that returns a list of ads with their stats but apprently I'm getting only insights for active ads and not paused ones - For paused ones, I'm just getting the campaign name and its id ! I tried using filtering like below but it's not working: '' first = "https://graph.facebook.com/v3.2/act_105433210/campaigns?filtering=[{'field':'effective_status','operator':'IN','value':['PAUSED']}]&fields=created_time,name,effective_status,insights{spend,impressions,clicks}&access_token=%s"% token Then I check using: result = requests.get(first) content_dict = json.loads(result.content)

Periods in the name of c# dynamic ExpandoObjects?

时光毁灭记忆、已成空白 提交于 2019-12-02 04:27:15
问题 Maybe this is a silly question, but I'm working on a project that wants me to generate some JSON that looks like this: {'action.type':'post', 'application':APP_ID} In C#, I'm trying to create this "action.type" attribute, with the value of "post". How would I do that? Here's how I've typlically been creating stuff like: dynamic ActionSpec = new ExpandoObject(); ActionSpec.SomeParam = "something"; ActionSpec.id = 12345; I can't go "ActionSpec.action.type", because that will not output the

Upload image_file using Ads API

試著忘記壹切 提交于 2019-12-01 21:18:26
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'm not using the image_file parameter right. How should I use it? Try uploading image only, and than use

Insufficient Installation History in facebook advert

ⅰ亾dé卋堺 提交于 2019-12-01 13:58:27
问题 We found 1 error. Insufficient Installation History: Your account does not have enough install history to start using billing event for mobile app install ads. Please visit https://developers.facebook.com/docs/reference/ads-api/cost-per-action-ads/ to learn more. I got above error in facebook advert page. I am new on this please help me. Thnxx 回答1: When your account/app is new, it is usually not allowed to use CPA bidding (optimization goal and billing event set to APP_INSTALLS ). You'll need

Facebook Ads API Error - Not enabled for usage

♀尐吖头ヾ 提交于 2019-12-01 03:48:19
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 idear why it would still be giving me this error? Or how I can get through this step. When using the Ads

How to resolve Error = 1001 “No Fill” using Facebook Audience Network in android

拈花ヽ惹草 提交于 2019-12-01 03:08:55
I have an Android version of my app and integrated FAN into my Application. It worked for some months but now it's displaying " NO FILL " Error Domain=com.facebook.ads.sdk Code=**1001 "No fill"** UserInfo={NSLocalizedDescription=**No fill**, FBAdErrorDetailKey={ msg = "**No fill**"}} And no FAN ad is shown. If I put a testing ID then it's displaying, but only on my device, not for another device. How to resolve this problem "No Fill"? compile 'com.facebook.android:audience-network-sdk:4.+' Mentioned in build.gradle I've seen many questions regarding this but unable to find an answer. I've

How to resolve Error = 1001 “No Fill” using Facebook Audience Network in android

Deadly 提交于 2019-11-30 22:25:11
问题 I have an Android version of my app and integrated FAN into my Application. It worked for some months but now it's displaying " NO FILL " Error Domain=com.facebook.ads.sdk Code=**1001 "No fill"** UserInfo={NSLocalizedDescription=**No fill**, FBAdErrorDetailKey={ msg = "**No fill**"}} And no FAN ad is shown. If I put a testing ID then it's displaying, but only on my device, not for another device. How to resolve this problem "No Fill"? compile 'com.facebook.android:audience-network-sdk:4.+'

Facebook API: Can't retrieve Facebook Lead Ads

泄露秘密 提交于 2019-11-30 21:58:41
问题 I have set up successfully a webhook to point to my callback URL and it receives the following example data: Array ( [object] => page [entry] => Array ( [0] => Array ( [id] => 297269987142139 [time] => 1454876106 [changes] => Array ( [0] => Array ( [field] => leadgen [value] => Array ( [ad_id] => 410908499427 [adgroup_id] => 238113717077 [created_time] => 1454847306 [form_id] => 577581087825 [leadgen_id] => 441393665441 [page_id] => 297269987142139 ) ) ) ) ) ) But if I try to retrieve the

Facebook's ads api exception 294 - Managing advertisements requires the extended permission ads_management, and a participating API key

依然范特西╮ 提交于 2019-11-30 18:46:31
My campaign is running on FB and I want to extract daily data with the help of Ads API. I'm using facebook ads api and I'm facing this problem every time { "error": { "message": "(#294) Managing advertisements requires the extended permission ads_management, and a participating API key", "type": "OAuthException", "code": 294 } } I have created one app XYZ and using this created I created an ad campaign. With Graph API Explorer I generated Access Token. and I give permissions also. You have to make sure you have an application white listed to use the Ads API. Also, you need to make sure you get