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
0 answers

Facebook Ads /insights endpoint action_target_id breakdown

With the old /reportstats endpoint you could fetch actions grouped per target name by adding action_target_name to the group options. This would give you a list of targets and their actions. In the new API endpoint /insights, only action_target_id…
Nyveria
  • 168
  • 13
0
votes
2 answers

Facebook Marketing API - no app?

I want to pull ad data (campaigns, ad sets, & metrics like clicks/impressions/ctr) from Facebook using their API and put it into a database. Facebook's documentation says I need to create an app on their site in order to access the API, but that…
0
votes
2 answers

How can I implement the Facebook Ads API with C#?

I've been searching for an answer for a while, but I couldn't find any relevant libraries\documentation for C# implentation of the Facebook Ads API. I've checked Facebook's developers portal ofcourse, but they only offer PHP and Python code…
Maor Oz
  • 213
  • 3
  • 9
0
votes
1 answer

Manage facebook ads api

I have a task to integrate facebook marketing api with my web application. The ultimate aim of my web application is provide a capability for my clients to manage ads without login in facebook. So, I'm asking a question: is it possible to create the…
0
votes
1 answer

Verify in which adcampains, adcampain_groups, adset is used a CA custom audience

Is possible to know (from a customAudienceId) in which AdCampain, AdCampainGroup and AdSet is used (or not) this CA? Is also possible to select the graph /customaudiences specifying which ids I need to query? Many thanks at all, Alex.
0
votes
1 answer

Getting ad account data from Facebook PHP ads API

I am trying to set up an API in Lumen which fetches data from Facebooks Ads API and stores it in the database. I am having trouble understanding the Facebook API. I want to fetch data for ad accounts, ad campaigns, ad sets and ads. Correct me if I…
Stretch0
  • 8,362
  • 13
  • 71
  • 133
0
votes
1 answer

Creating CPC ads using Facebook API 2.4

According to Facebook's blog post, to create a CPC campaign using the new 2.4 API, we create the campaign with billing_event=LINK_CLICKS and…
0
votes
1 answer

Get all the unpublished page posts that are attached to a "live" Facebook ad

How can we get the list all the "active" and "live" Facebook ads for any given ad account and get the ID of unpublished posts attached to them? I am trying to retrieve all the comments on unpublished posts but using the graph API only gives you the…
0
votes
1 answer

Sending parameters with Pycurl to FB api

I'm trying to do this curl request with PyCurl from the documentation curl -G \ -d "date_preset=last_7_days" \ -d "access_token=" \ "https://graph.facebook.com///insights" With the following code: import…
Filipe Ferminiano
  • 8,373
  • 25
  • 104
  • 174
0
votes
1 answer

Facebook Ads API PHP: How to get the adaccounts of Custom Audience

Can any one tell me the correct way of getting the ids of account which are sharing one Custom Audience i.e. adaccounts Query in PHP using API v2.4 $account = new AdAccount($accountId); $fields = array( CustomAudienceFields::ID, …
0
votes
1 answer

Facebook Marketing API - Create ad without business page

is it possible to create an ad via the Facebook Marketing API without having or using a Facebook business page? I hadn't found any reference that confirms this guess. I'll appreciate any help, thanks!
dvircn
  • 357
  • 2
  • 5
0
votes
2 answers

In Facebook marketing API, where to set target URL of an Ad Campaign

I would like to create an Ad Campaign with the Marketing API but I don't know where I can set the target URL of this campaign. I can set the objective of the campaign to WEBSITE_CLICKS but where to set the URL it will goes to? If I use the Web Ads…
Julien Bachmann
  • 753
  • 8
  • 18
0
votes
1 answer

Get Ad Set schedule details

I am currently using: $output = $adset->read(array("campaign_schedule")); Which is similar to: curl -G \ -d "fields=campaign_schedule" \ -d "access_token=___" \ -d "method=get" \ 'https://graph.facebook.com/{adset_id}' This returns the…
0
votes
1 answer

Specifying a FB Page for a desktop/mobile news feed ad using Python SDK

I'm new to the Facebook Ads Python SDK and am trying to create an ad that will display on mobile and desktop news feeds. Reviewing the web flow to create an ad, to show up in a feed, the ad needs to be related to a Facebook page. I manage a Facebook…
JNoVa
  • 1
  • 1
0
votes
1 answer

Facebook Conversion shows in conversion tracking page but not in Campaigns page

I could see the facebook ads conversions in the conversion tracking page but, no conversion is reported in the campaign page or reports. Any idea why this happens ?
Ajeesh Joshy
  • 1,387
  • 2
  • 18
  • 32