Questions tagged [facebook-ads-api]

The Facebook Ads API (aka Marketing API) is used by application developers to create, manage and measure ad campaigns that run on Facebook.

The Facebook Marketing API (previously referred to as Ads API) is an interface into Facebook to create ads, manage campaigns, and measure the performance of a campaign. The Facebook Marketing API has various levels of access, some of which may require an application and review process. See Facebook's Marketing APIs access documentation for more details.

The Facebook Marketing API is a subset of the Facebook Graph API where requests and responses are sent over HTTP and the responses are usually returned as JSON.

The Facebook hosted documentation is available here: Facebook Marketing API Documentation

867 questions
0
votes
1 answer

Link page post layout is different for post created with the Graph API

When creating unpublished (dark) link posts with Graph API, we are setting the "picture" parameter to override the thumbnail Facebook retrieves from the link url. The post we create this way has a thumbnail size of 90*90 on the old newsfeed design,…
strada
  • 942
  • 9
  • 18
0
votes
1 answer

Loading page post data from facebook

I'm trying to load a single page post data from Facebook. As you may know some posts have IDs like PAGE_ID + '_' + POST_ID and some have just POST_ID. When I have Page_ID and Post_ID available (I get these IDs from ad creatives), and want to get…
strada
  • 942
  • 9
  • 18
0
votes
1 answer

What is the best way to target users for which "Hometown " is different to "Location" on Facebook?

Facebook doesn't allow you to target hometown, only location. https://www.facebook.com/help/community/question/?id=10151621858082186 However, there must be a clever strategy to get around this. What are people doing to target users that live in…
David Bailey
  • 603
  • 2
  • 7
  • 19
0
votes
1 answer

Datetime and numbers localization in adreportstats async query

Is there any way to set datetime and numbers format based on locale info in adreportstats asynchronous queries? I've tried to fetch data with request parameter "locale" but it fails. UPD: There is no code for this issue. I just want to get in…
valv
  • 1
  • 2
0
votes
1 answer

facebook mobile ad display an error that "An unknown error occurred"

I want to use facebook's mobile ad. When I create facebook's APP INSTALL AD, I got the error which says "An unknown error occurred". I used power editor. My new android app which I want to advertise has been in google play for 2days. When I changed…
0
votes
1 answer

Can Facebook CPA ads be optimized based on pixel fires?

When ad type is set to "CPA", is it possible to use "offsite_conversion" with pixels, as we can do with "oCPM" ads? For example, why can't I use the following: $fbRequest['bid_info'] = array('ACTIONS' => $cData['creative_max_bid'] *…
dan
  • 136
  • 8
0
votes
1 answer

Target an ad using Facebook page ID

I have a question regarding the ads-api. I'm trying to find a way to target an ad to an audience that liked specific page(s). The only way I see is to work with keywords for precise interests which is not a very good practice due to duplicates and…
0
votes
0 answers

Post facebook ad using facebook api?

I am trying to post facebook ads using the developers API. Currently I am using the Power editor to enter the ad details and entering the details of the ad like so. I would like to automate the above process somewhat with the API. Currently I have…
david_adler
  • 9,690
  • 6
  • 57
  • 97
0
votes
1 answer

Retrieve Facebook App ID for another app from Facebook API?

We want to be able to retrieve the Facebook App ID for other apps (not our own), using the Facebook API or some other method. (Reason = we work with clients who sometimes don't know what a Facebook App ID is or how to find their own ;-) For…
0
votes
1 answer

What are the meaning of the extra values I'm getting from bid_info

For one of my ads, I'm getting the following bid_info: "bid_type": 6, "bid_info": { "1": 24, "37": 0, "38": 27, "44": 26, "45": 0, "46": 0, "48": 0, "55": 23 } I came to understand that "37" was also "impressions"…
0
votes
1 answer

Facebook CPM enum adgroup creation issues

I posted this as a bug on FB as well... Still, I'm asking here to see if I missed something. Basically, I'm able to create an adgroup using bid_type=CPC (as requested by October 2 breaking changes) and with bid_info={'clicks':121}. However, when I…
dan
  • 136
  • 8
0
votes
1 answer

Facebook Ads API query to pull the adgroup my campignId and the adstats that suprrort them at the same time

I am running the query below and it is returning all of the the adgroups associated with this campaign ID which is provided, I am wondering would it be possible for me to get the ad-statics using the same query for all of the adgroups provided. if…
0
votes
0 answers

Creating Homepage Ad Campaign On Facebook

When I try to create a homepage ad campaign I get this error: "You must only create marketplace ads in marketplace locations" I guess Facebook does not create campaign as homepage ad, therefore it puts me in a position where I am trying to create…
fiatux
  • 111
  • 8
0
votes
1 answer

Facebook Ads creative object returns story_id that throws a GraphMethodException 100 error

I am building a data warehouse that pulls data from both the OG Insights and Ads API. Issue: I am querying the creative object in the Ads API which returns the story_id field for type 27 ads. For most story_ids that are returned I am able to do a…
0
votes
1 answer

Get reports with campaign statistics by code

The problem is I don’t have an access to ads api so I can’t get information about campaigns like impressions or click through rate. However, I can make reports in ads manager. I am fine with amount of data in these reports. The question is how can I…