My Business
1.6K members online now
1.6K 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 for China country

[ Edited ]
Follower ✭ ☆ ☆
# 1
Follower ✭ ☆ ☆

Hi,

 

I could manage to create new locations using my c# code, but some how I could not able to create a new China location.

As detailed error is not available for C# code, I could not get much information on what exactly the issue is. 

 

Please let me know what is the issue

 

Below are the details:

Location locData = new Location();
Address addrDetails = new Address();

IList<string> aLines = new List<string>();
aLines.Add("259 青年路");

addrDetails.AddressLines = aLines;
addrDetails.Country = "CN";
addrDetails.Locality = "昆明市";
addrDetails.AdministrativeArea = "云南府";
addrDetails.PostalCode = "650011";

locData.Address = addrDetails;

locData.LocationName = "test china store";
locData.StoreCode = "TEST999";
locData.PrimaryPhone = "+8615329307818";

Category catDetails = new Category();
catDetails.Name = "Shoe Shop";

locData.PrimaryCategory = catDetails;

locData.Latlng = new LatLng();
locData.Latlng.Latitude = 25.042773;
locData.Latlng.Longitude = 102.715911;

CreateLocationRequest createLocationRequest = new CreateLocationRequest();

createLocationRequest.Location = locData;
createLocationRequest.LanguageCode = "en-GB";
createLocationRequest.RequestId = Guid.NewGuid().ToString();
createLocationRequest.ValidateOnly = false;

Location newDetails = gmbService.Accounts.Locations.Create(locationRequest, acct).Execute()

 

 

Please do let know in case of any additional details.

 

 

Thanks and Regards,

bharath

 

 

 

2 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author anumula b
May 2016

Re: Unable to create location for China country

Top Contributor
# 2
Top Contributor

@anumula b

 

unfortunately the Peoples Republic of China

(and 昆明市 = Kunming belongs to this country) isn't yet supported at all in GoogleMyBusiness.

Regardless using the standard GoogleMyBusiness or its API.

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

View solution in original post

Marked as Best Answer.
Solution
Accepted by topic author anumula b
May 2016

Re: Unable to create location for China country

Top Contributor
# 2
Top Contributor

@anumula b

 

unfortunately the Peoples Republic of China

(and 昆明市 = Kunming belongs to this country) isn't yet supported at all in GoogleMyBusiness.

Regardless using the standard GoogleMyBusiness or its API.

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

Re: Unable to create location for China country

[ Edited ]
Google Employee
# 3
Google Employee

Hi @anumula b,

 

The Google My Business product and its API are not currently available for China. Therefore, the business information from the source code you provided in the post is prompting the following error:

{

 "error": {

   "status": "INVALID_ARGUMENT",

   "message": "Request contains an invalid argument.",

   "code": 400,

   "details": [

     {

       "errorDetails": [

         {

           "field": "primary_category.CATEGORY_ID",

           "message": "primary_category.CATEGORY_ID is required",

           "code": 2

         },

         {

           "field": "address.country",

           "message": "This country code is not currently supported.",

           "code": 14,

           "value": "CN"

         }

       ],

       "@type": "type.googleapis.com/google.mybusiness.v3.ValidationError"

     }

   ]

 }

}

 

You can try to add a place to Google Maps to suggest the creation of a business listing on Maps.

 

Thanks, 

Terry

Re: Unable to create location for China country

Top Contributor
# 4
Top Contributor

@Terry W

 

Hey Terry

 

have you ever tried following your advice adding through GMaps a place in China  (Peoples  Republic of China)?

 

I have done it several times.

 

But what should I tell you:

It gets auto denied instandly

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

Re: Unable to create location for China country

Google Employee
# 5
Google Employee

Hi @Helmut Geissler,

 

I was able to follow the instructions on this page to add a missing business to Maps for a business location in China (see attached screenshot). I also received an email confirmation from the Google Maps team for it.

Screen Shot 2016-05-13 at 10.27.42 AM.pngAdd a missing business to the map

You should enter accurate business information for the application to go through.

 

Thanks, 

Terry

Re: Unable to create location for China country

Top Contributor
# 6
Top Contributor

OMG @Terry W

 

I could have provided the almost same screenshot for my try adding a place to China (its a Italian Restaurant "star").

And indeed I also got a confirmation message like you got it as on top of your screenshot.

More:

I few minutes later got an other message by mail from GMaps about my add would reviewed with the link pointing to my "supposed" edit in MapMaker: "Google Map Maker."

 

screencapture.png

 

Unfortunately and clicking the above copied link of "Google Map Maker" it then gave me this view of MapMaker (not that surprisingly)

 

Screenshot 2016-05-14 at 10.10.35.png

Means: there is nothings mapped - not even linkes as "pending" or similar.

Would you please do me the favor and provide from your confirmation mail (sent by GMaps to you the link inside this mail linking you to the Mapmaker entry created by your edit.)

I promise being convinced your advice to the user in this thread would be ok and working if the link "Google Map Maker" as in the GMaps-Mail you should also gotten will point to your  added place in Shanghai / China.

 

But frankly I doubt it will ;-)

 

 

 

 

 

 

 

 

 

 

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

Re: Unable to create location for China country

Google Employee
# 7
Google Employee

Hi @Helmut Geissler,

 

From the screenshot you posted, the business information you submitted through the “Add a missing business.” link from the instructions on this page doesn’t seem to be a valid, existing business. The Google Map Maker link I received in the email confirmation from the Google Maps team points to a valid business location in a “pending” status (see attached screenshot).

Screen Shot 2016-05-16 at 9.00.05 AM.pngAdded a missing business.

I checked that the Google Map Maker link you provided in the post also points to a valid business location in a “pending” status (see attached screenshot).

Screen Shot 2016-05-16 at 12.04.59 PM.pngGoogle Map Maker link provided.

Please note from the instructions on this page that your changes might take some time to be updated on the map. Google may email you about the status of your edits and may forward you questions from other people who review your edits.

 

Please find answers to your other questions for this topic that are not directly related to the Google My Business API in the Google Maps Help Center and find support on Google Maps Help Forum.

 

Thanks, 

Terry