Getting facebook ads targeting country through api - location

I have a requirement where I want to extract the location targeting information for ads(country,region etc). Is it possible to get this information for each campaign?
I read about the Facebook Marketing Insights API(https://developers.facebook.com/docs/marketing-api/insights/v2.9) but could not found any field related to this.
Thanks in advance.

The targeting information is set at Ad Set level. You can find out more about the camping structure here:
https://developers.facebook.com/docs/marketing-api/buying-api
So you need the retrieve the Ad set ID and then retrieve the Targeting for that Ad set:
https://developers.facebook.com/docs/marketing-api/reference/ad-campaign

Related

Can I get working places for all users from organization using calendar API?

I wonder if I can get working places for all users from organization using calendar API. Coworkers from my organization uses google calendar to mark if they work from home or office. I attach screen to show what I am talking about.
I've searched many endpoints from calendar API but did not find suitable one. Is it possible to get those information from API?
It is not yet possible to retrieve those information from the API.
But Google already documented it (tutorial, API reference) and it should come at some point in the (hopefully) near future.
Here is the related issue in their tracker : https://issuetracker.google.com/issues/199918380

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.

How can I search apps by ProjectID or ClientID within Google?

I wonder if you could advise me? I have the ClientID of an application on Google, and I believe the first 12 characters refers to the projectID. My goal is to identify the name of the application.
Is there an API method that can be utilised to do this?
Thank you in advance.
Client id has no relation that I can see between the project id. It can be anything.
To answer your question you cant use client id and project Id to try and figure out what project a client id was generated for. I even checked ID Token to see if maybe that had information about the project it doesn't appear to either.
There is only one API that I am aware that allows you access to the projects on Google Developer console. It is called the Google Cloud Resource Manager API and it is extremely limited it doesn't list client id's associated with a project just the project. Google Developer console API is a post I did about that API not long after it was released.

How get use Google News API or extract information?

I'm working on a widget where we pull info from Google news.
I know how to get a publisher ID number, for example, CNN's ID is 669475. However, how do pull information about a specific publisher from their ID number? For example, how would I find their official name and their domain?
I can't find any documentation on this whatsoever. I don't need a ton of information, really just the name of the news station and their domain.
The Google News Search API has been officially deprecated as of May 26, 2011.[...]
From https://developers.google.com/news-search/

Add user review to Google map from my application(Android)

I am trying to create a location-based services Android application. I had successfully getting the user reviews from Google Places API by following the guidance from this link.
https://developers.google.com/places/documentation/details
I also found many posts regarding how to get user reviews from Google Places. But Now I want to create a function which user can insert reviews from my application. Is there anyway to do that?
Thanks.
No. There is no API for writing review. Also the Google+ mobile URL doesn't have the write review option from last year. Its a bug , but Google is not fixing this.
There is only one way to write review is through desktop URL. I have a similar location base app in play store where I have done some workaround to show desktop site to write review.

Resources