Google contacts API - Contact name not sync with goolge+ - google-contacts-api

I'm using google contact API v3 to get list of contacts but contact name always empty. (https://developers.google.com/google-apps/contacts/v3/reference#contacts-query-parameters-reference)
In Gmail, when i send email to a gmail address which linkage to google plus and wait for a few hours then i can search that address included name same as google+ but google contact api still response an empty name.
Anyone tell me how to search contacts as Gmail?

Related

How to get Google reviews for a business without specific address and placeId?

Right now, we have a flow, where we import Google reviews on sign up and then update them daily. We get the user's company name and location address:
$requestUri = 'https://maps.googleapis.com/maps/api/place/autocomplete/json?key={key}&input=A+Closer+Look+Residential+Inspections%2C+LLC%2C+9230+Fowler+Ln%2C+Lanham%2C+MD+20706%2C+United+States';
From autocomplete we can get placeId and search for reviews by placeId:
$requestUri = 'https://maps.googleapis.com/maps/api/place/details/json?key={key}&place_id=ChIJmyUG8bfBt4kRqqn8jPZYhDo';
And this worked fine.
Issue
We have a new user which dont have location address, so we can't get placeId. The user has reviews on Google if to search for them in the search bar.
Company name is: "Westside Home Inspections Inc.". Google Map shows that they works in whole LA (not address, but area). Then i tried to get a placeId here: https://developers.google.com/maps/documentation/places/web-service/place-id . But with no luck.
Question:
Is this possible to get Google reviews only by company name?
If company has no address, then it's SAB (service area business).
And looks like Google Places API excluded support for SABs from their Places Api:
The Places API team has reviewed this feature request and decided against including Service Area Businesses results in API responses. Places API mission is to enable developers to help users find relevant places to visit. Since Service Area Businesses are not places users can visit, and therefore do not belong in the Places API.
More details here: https://issuetracker.google.com/issues/35828187#comment20
And if to get reviews we need to use placeId, then its not possible to get reviews.
Answer: No, its not possible to get Google reviews for SAB, because Google removed support of SAB in Google Places Api.
PS: I think, it's possible that we can get reviews for SAB in the "Google Business Profile", but this is not our case and is a different story.
Thanks to #MrUpsidown for helpful link in comments.

Google Contacts API V3 not returning title for automatic contact entries

I have an app that fetches a user's contacts from the Google Contacts V3 API after the user authenticates via OAuth2 (the requests are made using JSON). While my code works great in most circumstances, I have noticed that the API returns an empty title hash for contacts that get created automatically through emailing an address for the first time, which is less than ideal.
When I view "Other Contacts" under Google Contacts (where Google assigns these automatic contacts), these contacts seem to have an accurate title attribute. Is there a way I could potentially get access to this value? The response body doesn't seem to return this value within a contact entry.
Thanks.

Is there any way that i can retrieve account_id from google contact api v3 to make a get request to google people api?

I have retrieved all my contacts using Google Contact API. Now, i want to get the google profile info of all those contacts using the get request as mentioned in this People API GET link. But i do not see any id in the response to make a request.
The Contacts API and People API are separate API's not meant to interop with each other.
That said, the reverse engineered way to do this is to take the Contacts API contact ID, parse that hexadecimal value, convert it to decimal, and add a 'c' prefix to it, and that becomes the People API person resource ID.
e.g. if the Contacts API contact ID was 100, then the People API person ID would be c256. When you fetch contacts from the People API in this fashion, it'll have the joined profile information, if present.

Approval process of a place added with Google Places API

I added places with the Google Places API (Web Service) some weeks ago.
How does the approval work and
how long does it take till a place has passed Google moderation and is approved?
How do I know if a place was declined?
I added an other place with the Google Maps Maker. This place was approved within a week. What's the difference?
There are some reasons why we are receiving 'REQUEST_DENIED'
* You have not activated the Google Places API Web Service in the Google Developers Console.
* The key parameter is missing from your request.
* The key parameter does not match the your API key in the Google Developers Console.
* Your API key has not been correctly set up in the Google Developers Console:
* The request was not sent as an HTTPS request, HTTPS is required for all Google Places API Web Service requests.
* The incorrect HTTP method was used to send the request:
Double check all listed above then try to execute your application.
The newly-added place is available to your app after a short time, and is added to a moderation queue for possible addition to Google's Places database and Google Maps. Places that pass moderation will be visible to all apps and on Google Maps.
When you add a place, you receive a place ID for the new place immediately. This place ID is scoped for your app only. The place then enters a moderation queue, awaiting approval for addition to the Google Places database. If approved, the place will receive a new place ID, available to all apps and on Google Maps.
Here are related stack overflow ticket: REQUEST_DENIED when using the Google Places API / Google Places API - REQUEST_DENIED

Google Contacts API V3, how to search

There are various examples provided in this link https://developers.google.com/admin-sdk/directory/v1/guides/search-users by Google. However, I can't seem to find what I am looking for. I want to pull all contacts that include phone numbers or city only. The search query doesn't seem to support something like addressStreet:isExists. Any inputs?
EDIT
When I view Contacts in my GMail, only those I created manually (have phone and address) are displayed. The ones automatically created by GMail (whenever an email is exchanged with someone GMail apparently creates a contact). When I pull contacts via Google Contacts API v3, I get thousands entries back, most of those are those automatically created ones.