My requirement is to get total_video_views_unique, total_video_complete_views_paid_unique, total_video_10s_views_unique of ad videos under a specific campaign.
Is there a way to get all the ad videos under a campaign? There is a service that returns all the ad videos under the ad account.
Related
We are using this api https://developers.facebook.com/docs/marketing-api/reference/ad-account/advideos/
to upload a video to our ads manager on facebook.
the response from facebook is id.
now, if this video was selected to create an ads in facebook ads manager and there were campaign that is live or ends - we would like to get the video performance and metrics such as likes, impression, etc of that campaign.
So we are trying to get the ads performance by the videoAds Id.
we tried using video_insight api: https://developers.facebook.com/docs/graph-api/reference/video/video_insights/ (we have all the permissions) with no success.
even if we get the AdsCreative we can not connect it to the videoAds id we received when uploading the video to the facebook ads manager...
I would like to grab the URL of the ad image along with other information.
The ad ID generated from /ads or /adcreatives is not the same as the one generated from the /insights URL.
How can I link the ad image to its respective information?
I am doing a project for my company and I am stuck. I have to make this cost-effective.
In this link there are some methods to get comments and do comment but it gives me error: "(#10) Application does not have permission for this action" and when I try to query them with standard API it says that media_id is not valid(I got the media id with oembed code btw I am not putting there effective story id).
My question is:
Do I have any solution for getting and doing comments to ads other than switching to Business API? If I don't how should I progress with this? Should I just send my app to review with instagram_manage_comments?
Thanks
Ad comments are on Ad media - and Instagram ads are only created via facebook ad account.
You have to use facebook ad graph API. You can check detail info at this answer: Instagram dark posts, using api to read info and do operations
The link you gave in the question is correct starting point to fetch ad media and comments. However you don't need Instagram accounts to be converted to "business account" to be linked with FB page(more context for that here). But you do need to connect with FB ad account for ads media.
I want to get all the published ads in the facebook searched by keywords or URL's, I know that you can get your own ads by giving campaign ID but Is there any API that will get all the ads not for current user but all user's ads?
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.