Before creating new campaign, adset and ad I would like to check whether my campaing, adset and ad settings are correct - for example: if my ad can be shown on Messenger Inbox placement with all the other settings set up (objective, optimization goal, image etc.).
I was searching through the documentation looking for some endpoint and I have found only Ad Recommendation https://developers.facebook.com/docs/marketing-api/reference/ad-recommendation/ but it seems that it works only on already created ads. In my case, I would like to validate before creating campaign/adset/ad.
Have someone of you encountered such endpoint? Or found a smart way to do such validation?
Related
Previously, when I work with Facebook Marketing API v2.12, I used this method for adding my user to Ad Account https://developers.facebook.com/docs/marketing-api/aduser/v2.12 .
Something like in this article https://rdrr.io/cran/rfacebookstat/man/fbUpdateAdAccountUsers.html
Now, In API v3 and higher this method is not available.
As I understand I should change my code to make those methods work:
https://developers.facebook.com/docs/marketing-api/businessmanager/systemuser
https://developers.facebook.com/docs/marketing-api/reference/ad-account/assigned_users/v3.3
This is too complex.
Maybe someone knows an easier way to add my user to Ad Account ?
Is there a way to update ad URL Parameters with marketing api?
It is possible from FB Ads Manager, but we have more than 200 different ads and we want to automatically update their URL params from api instead of doing it manually.
I have checked FB marketing api refference, but couldn't find anything related.
Really need your help here.
UPDATE:
This is for those, who are searching for the same or similar thing.
The mechanics which ties Ad to Post or custom template is Ad Creative. You can find its API capabilities here - https://developers.facebook.com/docs/marketing-api/reference/ad-creative
Unfortunately for Ad Creative you can only update Name, Ad Labels and Status. You can still create new Ad Creative with all desired fields and then assign it to Ad, but there is no way to update its url_tags field.
Right, the creative is basically immutable except for the fields you mentioned. Changing the URL tags could lead to exploits.
Is there a reason to want to edit an existing creative rather than create a duplicate with the URL tags modified?
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.
What is the best way to get the Ad Groups using a Custom Audience in Facebook Ads Api?
Ads API provides a way to query connections for most objects. For example you could get all Ad Groups of an Ad Set by GET request to https://graph.facebook.com/{ad_set_id}/adgroups. I couldn't find something simular in documentation of Custom Audiences.
I could query all Ad Groups of Ad Accounts the Custom Audience belongs to and check the targeting field of Ad Groups. But this would generate a lot of requests to facebook API which isn't in my and facebooks interest. Isn't their a better way to get this information?
In particular I like to know which Custom Audiences aren't used in any Ad Groups anymore. I have to delete them to not getting problems with limit of 500 Custom Audiences per Ad Account.
I have a facebook application that requires user data (specifically location). I am trying to use the test user api but I can't figure out how to add additional info to my test users besides through logging into fb and changing it on the page. Is there a way to do this through the api either through initialization or by using an api call to update a user?
Someone posted this question here, but there is no answer yet.
Today I exactly ran into the same problem. I have an application that uses the location information of facebook users and now I'm searching for a way to automate the creation of these users for testing purpose.
You can now log in as a test user and update any profile information the same as a normal user within your app settings. However, you cannot interact with other users or 'like' pages, etc.
Section: Apps > Edit App > Developer Roles
URL: https://developers.facebook.com/apps/[APP_ID_HERE]/roles?ref=nav
Facebook doesn't have any graph api's to update profile information besides their current status. This includes test users. You can only set the name, password, and email when you create the user too unfortunately.