facebook-ads-api

Facebook “Boost Post” through API?

佐手、 提交于 2019-12-10 13:06:16
问题 I've been crawling through the documentation and found out that it IS possible to achieve a "Boost Post" functionality through the Facebook Ad APIs. However, I have had some trouble finding what exactly the Boost Post does? i.e. Which part of the API corresponds the "Boost Post" functionality of the Facebook UI? https://developers.facebook.com/docs/marketing-api/adcreative/v2.4 This page outlines several types of ads. What are the types Facebook "Boost Post" button makes? Or is this wrong

FB Ads API (#17) User request limit reached

梦想与她 提交于 2019-12-10 11:26:00
问题 I am working on Facebook ads api to get the account Campaign data.What I am doing here is I get list of all campaigns and doing forloop of each campaign get Campaign stat $campaignSets = $account->getCampaigns(array( CampaignFields::ID, CampaignFields::NAME )); foreach ($campaignSets as $campaign) { $campaign = new Campaign($campaign->id); $fields = array( InsightsFields::CAMPAIGN_NAME, InsightsFields::IMPRESSIONS, InsightsFields::UNIQUE_CLICKS, InsightsFields::REACH, InsightsFields::SPEND,

Facebook Native Ads on iOS

女生的网名这么多〃 提交于 2019-12-10 08:54:08
问题 I'm trying to implement native ads from Facebook in my app. I put the code exactly like Facebook said, and it works. But only if the app was installed via xCode. If the app is installed via Test Flight the ads never appears. Any ideas? My Audience Network permission is enable, as well as my ad placement 回答1: I have facing this problem when using Testflight beta testing, I switch to Fabric beta testing and the facebook native ad shows. Just put the app on app store and will be fine. Remember

facebook_ads_api show“nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available, dumping backtrace”

十年热恋 提交于 2019-12-08 07:54:28
i m using Facebook Audience Network SDK, this is my code: -(void)loadInterstitialAd { FBInterstitialAd *interstitialAd = [[FBInterstitialAd alloc] initWithPlacementID:@"1783280735273073_1783280748606405"]; interstitialAd.delegate = self; [interstitialAd loadAd]; } but there is a problem: 2016-10-10 15:44:47.296707 facebookADTest[35670:2286565] [] nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available, dumping backtrace: [x86_64] libnetcore-856.1.8 0 libsystem_network.dylib 0x00000001064af80e __nw_create_backtrace_string + 123 1 libnetwork.dylib

Facebook conversion pixel with “server to server” option

时光怂恿深爱的人放手 提交于 2019-12-07 13:20:13
问题 I'm investigating usage of CPA ad types in our application and was reading about pixels for tracking conversions. It states that there are JS/HTML pixels available, but I'm wondering if there is a pixel that could be triggered on server side, (i.e. using file_open from our script). This would be a huge benefit for my app, since it would enable me to lower discrepancy and also allow more flexibility. Does anyone have an idea? 回答1: No, there is no ability to record conversion using a server-to

Facebook Ads Api Request fails with #273 requires user to be admin

梦想的初衷 提交于 2019-12-07 03:38:49
问题 I'm trying to query the Facebook Ads API with the Graph Api Explorer. I have two Ads Account connected to me (if i query /me/adaccounts/ I see both) one is my own and the other one I'm only admin on but not owner. The Problem is with the one I'm not the owner. If I query my Adaccount with /act_<ACT_ID/stats I get a normal response with the stats back if I query the other account i get: (#273) This Ads API call requires the user to be admin of the ad account. User <MY_USER_ID> not admin on ad

Possible to specify date_preset with insights edge in Facebook Ads API?

 ̄綄美尐妖づ 提交于 2019-12-07 02:15:34
问题 For the Marketing API, I know that I'm able to make one call to retrieve all of the adsets from a certain account along with their insights, but am I able to specify the date_preset for the insights edge in that same call? For example, the following gives me lifetime insights stats: /v2.4/{accountID}/adcampaigns?fields=insights To be clear - I know this is possible to retrieve by making separate calls for each adset id (where I know I can specify the date_preset); instead, I'd like to do this

Can't create Facebook Ad creative with a facebook app in a development mode

拥有回忆 提交于 2019-12-06 17:30:40
问题 I am working on a FB app for creating Facebook Ads. In the past I was able to debug the whole FB Ad creation process in a development mode but suddenly I started getting this error that I was not able to find documentation for. Request: https://graph.facebook.com/v2.2/act_foo/adcreatives?access_token=bar Response: {"error":{"message":"Invalid parameter","type":"FacebookApiException","code":100,"error_subcode":1885183,"is_transient":false,"error_user_title":"Ads creative post was created by an

Facebook conversion event callback

☆樱花仙子☆ 提交于 2019-12-06 16:39:06
问题 I cant find in the documentation if there is any callback functionality in the conversion tracking (https://developers.facebook.com/docs/ads-for-websites/tag-api) In order to track an event you just need to call: window._fbq = window._fbq || []; window._fbq.push(['track', 'FBCONVERSIONCODE', {'value':'0.00','currency':'USD'}]); That is very similar to google analytics conversion code, only though they allow you to call a function when the ajax call finish: ga('send', 'pageview', { 'page': '

Facebook Graph audience insights queries

半世苍凉 提交于 2019-12-06 15:54:56
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 all of their examples are unclear and nonfunctional, such as: $request = new FacebookRequest( $session,