Not getting expected campaign IDs when using Facebook Ad Report Stats API - facebook

I created an access token with my personal account with additional ad_management permissions. I used curl to exchange this short-lived token for a permanent access token.
The roles page for my ads account says "You can manage campaigns, view reports, and view billing information."
I use this access_token with curl to get the offsite_conversions count from yesterday. The results contain data for a few campaigns. However these campaigns are nowhere to be found in the campaigns list in the ads manager. If I click a campaign and replace the ID in the url with one of the campaign ids int he response I get a "This content is currently unavailable" error page.
Additionally there are at least three campaigns shown in the ads manager's campaign list which do have a few offsite conversions recorded which are not showing up in the response of the Ad Report Stats API call.
How can I get more information to solve this problem?

I was confused by the relatively recent change in the ad campaign terminologies. The reporting api is still using the old terms where a campaign corresponds to what is now an ad set.

If you want to match the campaigns in the ads manager with the campaigns you can fetch with the marketing api I would recommend you add ?fields=name. If you don't recognise the names, then there is probably something wrong :-)

Related

Determine Custom Conversion Action for AdSet in Facebook Marketing API

I'm using the Facebook API Marketing API to get insight information about different ad campaigns. In the ad campaign insight results, there are a number of actions with values. When I look in the Facebook Ad Manager UI, I see the Result column for Campaigns where it shows me the value I'd like to extract from the API. The problem I'm running into is that I need to programmatically determine what action to pull the value from.
When I look in the AdSet settings in the UI, I see the Conversion Event which ties to a Custom Conversion but I don't know how to get that Custom Conversion ID for the ad set from the API.

How to get all the campaigns related to a page by using Facebook Marketing Api?

I used promote_pages endpoint (https://developers.facebook.com/docs/marketing-api/reference/ad-account/promote_pages/) to get all the promoted pages for an ads account.
To get more details for each page, I tried to put more parameters like (ad_campaign, engagement and category etc) but all the expected returned fields for ad_campaign is missing.
Sample request:
https://graph.facebook.com/v5.0/act_{{ads-account-id}}/promote_pages?fields=name,ad_campaign,engagement,category
(Also provided pagesAccessToken as BearerToken and pageAccessToken has 'public_profile', 'email','manage_pages', 'pages_messaging','publish_pages','ads_read','ads_management' permissions and already have business integration done).
I received all the fields properly except campaign data as there are several campaigns running for each page already.
Please let me know how to achieve the campaign data returned for each page under an ads account. Thank you so much in advance.

Facebook ad attribution report per-user

My company launched several Facebook ads campaign to drive page likes. Once the campaigns have run for several days, Facebook was able to generate a report of the result of the campaign, showing the number of users that are reached by the campaign aggregated by various dimensions (gender, age, etc).
Given that FB is able to show such aggregate value, I imagine internally FB ads attribution already associated the FB accounts that were reached by said campaign. But no matter what kind of report I try to create, there seems to be no way to download this list of individual accounts that were reached by a campaign, either via API nor GUI.
Is there a way to get this list? Or is it deliberately made not possible due to some regulations or privacy policy?
Facebook deliberately made it this way. You can access the performance data as granular as the ad level, but no further than that. I think attribution solution companies that collaborate with FB have access to the user level information, so the data are definitely collected and stored.

How to use the Facebook Ads API to get custom columns in Ads Manager?

I've been experimenting with the Facebook Marketing API to see what I can access in terms of the user's campaigns, ad sets and ads etc. One thing I'm curious by, through the API, is it possible to get the customised columns that the user has selected when viewing metrics for their campaigns, ad sets or ads?
For example, the user has selected to see only Delivery, Cost and Budget metrics for their ad sets. Can I somehow know they've picked these columns from the API alone?
You can't. The Ads manager on Facebook is just another app using the Marketing API (same goes for Power editor, Graph API explorer and others).
Settings of the Ads manager aren't part of ad account data and are private to the app.

Cannot retrieve a list of campaigns for some accounts

I'm experiencing troubles requesting list of campaigns for some accounts. I'm requesting data with C# SDK , and my query is pretty simple: /v2.2/act_<account id>/adcampaign_groups.
For some accounts this works fine, but for some it returns OAuthException #10 (You do not have sufficient permissions to perform this action).
The result is the same when using Graph Explorer, so it doesn't seem like SDK issue. I also get the same error when requesting /v2.2/act_<account id>. But I see this account with all its properties when requesting /v2.2/me/adaccounts.
I have administrator permissions in ads cabinet, and I can see campaigns for these faulty accounts in web UI, so I don't see any reason why it shouldn't work.
Any help?