5.8K members online now
5.8K members online now
For developers who are using the Google My Business API to manage locations
Guide Me
star_border
Reply
Highlighted

I can't search for SAB using my Google My Business API

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I've been authorized to use Google My Business API but my map can't find service area businesses, just those with precise location,

Please let me know the procedures of how to use my API key for SAB.

 

Thank you,

Sam.

2 Expert replyverified_user

I can't search for SAB using my Google My Business API

Top Contributor
# 2
Top Contributor

an other thread about the same matter - Just for the record

_________________________________________________________________________
Helmut Geissler, Google My Business Top Contributor   |  my G+ profile

Re: I can't search for SAB using my Google My Business API

[ Edited ]
Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

I know,

But based on the new information I found on - https://issuetracker.google.com/issues/35828187

It seems to me that I was in the wrong category.

Re: I can't search for SAB using my Google My Business API

Top Contributor
# 4
Top Contributor

I'm not sure you are in the wrong category as my example provided in this thread shows that even SAB listings get their placeID through an API key driven URL

And I bet you get it with your API key too.

 

 

https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=52.538334,13.655377&radius=10&...Your_API_Key

gives me this
screenshot-maps.googleapis.com 2017-12-05 23-32-41-087 (1).png

 

But as a old German king said about 300 years ago: "everyone should be happy in his façon" so you too.

_________________________________________________________________________
Helmut Geissler, Google My Business Top Contributor   |  my G+ profile

Re: I can't search for SAB using my Google My Business API

[ Edited ]
Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭

This is the results using my API:

{
   "error_message" : "API keys with referer restrictions cannot be used with this API.",
   "html_attributions" : [],
   "results" : [],
   "status" : "REQUEST_DENIED"
}

And is case you wondered, this is my API list:

 

gmb002.png

One more thing,

Regarding my previous example about SAB: "air supply heating and air conditioning" in Las Vegas city,

Here are two links:

https://google-developers.appspot.com/my-business/content/tools/placeid-lookup

https://app.brainer.io/map_test.html

If you try with the first one you will see the results,

Try with the second one and you won't find it,

Compare the two source codes and you will see the the only change is the API key.

Re: I can't search for SAB using my Google My Business API

Visitor ✭ ✭ ✭
# 6
Visitor ✭ ✭ ✭

@Helmut GeisslerCan you help me ?

I can't search for SAB using my Google My Business API

Top Contributor
# 7
Top Contributor

helping in what concrete matter @brainer T?

 

Getting your PlaceID with what ever method or how to use your API key to get the PlaceID for your bsuiness?

 

For thee second there is no answer from me as getting the placeID doesn't necassarly require an API as mentioned already and even using a API key will not always show for all  businesses the PlaceID.

There is a minority of listings where the PlaceID finder methods via PLaces API doesn't work - I'm afraid but  this is the reality - sorry for this bad news.

 

I can help you only providing you the placeID as I don't use for this minority of listings not being supported by googles PlacesAPI my hacking skill as described in

https://get-your-working-place-id.business.site

_________________________________________________________________________
Helmut Geissler, Google My Business Top Contributor   |  my G+ profile

Re: I can't search for SAB using my Google My Business API

Visitor ✭ ✭ ✭
# 8
Visitor ✭ ✭ ✭

I am looking for a solution for my web app,

One of my goals is to be able to get the places ID's by searching the map using my API key in my web app,

But I understand that it's not possible and for some businesses I'll have to do it manually,

Thank you anyway for your help.

I can't search for SAB using my Google My Business API

Google Employee
# 9
Google Employee

Hi @Brainer,

 

You can follow this link for complete reference on Service Area Business. For the Google My Business API  documentation, please refer this link for complete reference on BusinessType, PointRadius, Places  for ServiceAreaBusiness representation in your code.

https://developers.google.com/my-business/reference/rest/v4/accounts.locations?authuser=1#serviceare...

 

Best Regards,

The Google My Business API team

Re: I can't search for SAB using my Google My Business API

Visitor ✭ ✭ ✭
# 10
Visitor ✭ ✭ ✭

Hello @Deepa V,

I do understand what Service Area Business means,

All I'm trying to do is to implement a Google Map in my web application so my users can search and find their businesses,

Right now, you can find only businesses with a specific address and not service area businesses, my question is what need to be done so my users can search also for SAB,

The URL of my web application is: https://app.brainer.io/map_test.html

 

Your help would be appreciated,

Thank you,

Sam.