how to get campaigns and ad using Marketing API - facebook-ads-api

i am having trouble getting campaigns and ads using Marketing API.
can someone help me in getting it with details.
it just shows a blank array.

You can at first get AdAccounts:
/me/adaccounts
and then
/<act_123>/campaigns

Related

How can we access the Ads Action Stats list in the Facebook Marketing API, using the Python SDK?

I have been trying to access the list on the Facebook Ads API for a few days now but haven't been able to make any headway.
I need to pull the purchase_roas field which is part of the Ads Action Stats List. However, I'm not able to do so.
I'm using the Python SDK and have been looking all over the place for some examples but haven't been able to find any!
Any directions or sample code would really help here. Thanks so much in advance.
This is an example code of fetching the ROAS on an ad account:
insights = FBAdAccount(fbid=adaccount_fb_id).get_insights(
params={'date_preset':AdsInsights.DatePreset.lifetime},
fields=[AdsInsights.Field.actions,
AdsInsights.Field.website_purchase_roas,
AdsInsights.Field.mobile_app_purchase_roas,
])
Note that the website_purchase_roas returns a list rather than a number. In addition - if your ad account has no ROAS no list would be returned.

Error fetching Trustpilot reviews using api

I intend to fetch the reviews using the trustilot api as documented in the api link below:
API: https://developers.trustpilot.com/business-units-api#business-unit-private-reviews
However, I have been getting the following error.
{"message":"Access to resource is forbidden","errorCode":1014,"correlationId":"4e77ga75-5fb7-62ab-a71b-0d01acd5cf29"}
I couldn't find much help in google.
What am I missing?
this API endpoint is only available to the paid customers and you have to have the appropriate API key for your account. In case you are a paying Trustpilot customer, pleas

How to get Google API code for brand account?

I'm wondering whether there is a simple way to get an Google API key for a YouTube brand account It seems that you can only get an API code for the main account. Any help would be appreciated. Thanks!

Google+ API to get insights data of Google+ pages

For a project, I need to get following information from a Google+ brand page
count reviews
get rating
get reviews
get reviews time stamps
contact information
I have tried finding some API on developers.google.com but failed to get such API. Is there any other way around to get this data? It sounds like a dumb question, but unfortunately I stuck and getting no help from anywhere, that's why I am writing here.
Thanks
Saurabh
You can download a bunch of libraries here that make using these api's pretty simple.
https://developers.google.com/+/downloads/
Look around the pages they also have plenty of example.
https://developers.google.com/+/web/
https://developers.google.com/+/web/api/javascript

How to get "My Reviews" from Google

A want to query Google for the reviews I have made. I thought this could be done either through the Maps API or the Google+ API but I can't find the call to satisfy my need.
Is there any way this could be done?
We don't currently support returning reviews content in the Google+
API. However the top 5 reviews for any given place are available via
the Google Places API:
http://googlegeodevelopers.blogspot.com/2013/01/expanding-reviews-content-in-google.html
http://googlegeodevelopers.blogspot.com/2012/07/add-flexible-search-and-google-reviews.html
Source

Resources