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

Unable to Create Location in Accout

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

When we Creating Account Location at that time there is an error occurs "Request contains an invalid argument. [400]" although passing all Required Parameters in Creating Location.

 

 

Capture.PNGCapture1.PNG 

Please Review below error:

 

Google.Apis.Requests.RequestError

Request contains an invalid argument. [400]

Errors [

Message[Request contains an invalid argument.] Location[ - ] Reason[badRequest] Domain[global]

]

 

1 Expert replyverified_user
Marked as Best Answer.
Solution
Accepted by topic author Scout50 D
November 2016

Unable to Create Location in Accout

Visitor ✭ ✭ ✭
# 2
Visitor ✭ ✭ ✭

We have resolved this issue using below link

 

https://groups.google.com/forum/#!topic/my-business-api/xNQbJj9hB9o

 

Please use Primary category list as mention in below URL.

 

https://developers.google.com/my-business/content/categories

 

Thanks,

Re: Unable to Create Location in Accout

Google Employee
# 3
Google Employee

Hi @Scout50 D,

 

After troubleshooting your source code, I also found that the values for administrativeArea and locality fields of the Address object in your request are incorrect. I suggest you use “MI” instead of “ME” for the administrativeArea field and “Detroit” instead of “Michigan” for the locality field in your source code.

 

In addition, since the C# client library doesn’t currently support the display of detailed error messages, we suggest you follow the Make a simple HTTP request step-by-step guide on the Google Developers site to learn how to use the OAuth 2.0 Playground for troubleshooting errors with detailed error messages when sending requests with data via the Google My Business API.

 

Thanks,

Shalini