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

Administrative_level_1 rejected for Spain (API error)

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

"lastSubmissionFailureMessage" : "Google API returned an error message for update on poiId:NVDS103-16338ES0 400 Bad Request\n{\n  \"code\" : 400,\n  \"message\" : \"Request contains an invalid argument.\",\n  \"status\" : \"INVALID_ARGUMENT\",\n  \"details\" : [ {\n    \"@type\" : \"type.googleapis.com/google.mybusiness.v3p1.ValidationError\",\n    \"errorDetails\" : [ {\n      \"code\" : 3,\n      \"field\" : \"address.administrative_area\",\n      \"message\" : \"address.administrative_area is invalid\",\n      \"value\" : \"Andalucia\"\n    } ]\n  } ]\n}",

 

We've tried, Sevilla --> this is obviously a locality

We have corrected it to Andalucia --> same error

 

When I check your website, regarding geocoding, it reflects that admin level 1 should be Andalucia: 

Andalucia.PNG

1 Expert replyverified_user

Re: Administrative_level_1 rejected for Spain (API error)

Google Employee
# 2
Google Employee

Hi @Sinem T,

 

Please provide us with the full HTTP request message of the POST request including the URI, and the JSON payloads of request body as well as the response body for triggering this error so that we can help you troubleshoot this issue further.

 

Thanks,

The Google My Business API team

Administrative_level_1 rejected for Spain (API error)

[ Edited ]
Follower ✭ ✭ ✭
# 3
Follower ✭ ✭ ✭

Hi @Shalini S,

 

It took us a while to investigate, but we've found where the problem is here.

Geographically + geocoding, Andalusia is the autonomous communities of Spain --> which is administrative_level_area_1 (which Google confirms in the Google geocoding for developers).

 

When we look at your mapping towards the Google API, Andalusia is not mapped in your administrative area list, which will be confirmed via the GMB interface, if you want to select 'administrative areas' under Spain POIs, I see provinces, instead of regions.

 

So, you are mapping provinces as administrative_level_area_1, but it should be administrative_level_area_2.

 

Please confirm if mapping will be corrected or we should accept this error. Because we believe this should be corrected, or else our data intake is a mess for Spanish POIs.

 

Best,

Sinem

Re: Administrative_level_1 rejected for Spain (API error)

Google Employee
# 4
Google Employee

Hi @Sinem T,

 

Thank you for providing detailed information on this issue. We’ll look into this.

 

Thanks,

The Google My Business API team

Administrative_level_1 rejected for Spain (API error)

Follower ✭ ✭ ✭
# 5
Follower ✭ ✭ ✭

Hi Shalini,

 

Is there an update on topic?

 

Best,

Sinem

Administrative_level_1 rejected for Spain (API error)

Follower ✭ ✭ ✭
# 6
Follower ✭ ✭ ✭

Hi Shalini, we haven't received a resolution on the topic yet -

 
 

Re: Administrative_level_1 rejected for Spain (API error)

Google Employee
# 7
Google Employee

Hi @Sinem T,

 

I'm consulting a specialist regarding the issue you reported so I can better provide clarification! I'll let you know as soon as I have an update on this.

 

Thanks,

The Google My Business API team

Administrative_level_1 rejected for Spain (API error)

Follower ✭ ✭ ✭
# 8
Follower ✭ ✭ ✭

Hi Shalini,

 

We are still waiting since June...

 

Best,

Sinem

Re: Administrative_level_1 rejected for Spain (API error)

Follower ✭ ✭ ✭
# 9
Follower ✭ ✭ ✭

Hi @Shalini S,

 

We are still eager to solve this issue, as we are experiencing 1073 errors in this area.

 

Today, I've been analyzing, as the UI for Spanish POI's has changed recently.

 

E.G. administrative_level_1 are officially [ISO] the 'Autonomous Communities', which is defined by your geo-coding:

https://maps.googleapis.com/maps/api/geocode/json?&latlng=41.543224,1.886254

 

long_name: "Catalunya",

short_name: "CT",

types: [

"administrative_area_level_1",

"political"

 

long_name: "Barcelona",

short_name: "Barcelona",

types: [

"administrative_area_level_2",

"political"

 

But then, I look into your UI, you request administrative_level_2:

admin_google.PNG

 

It seems that there is a mapping error here.

 

 

Please provide us the correct mapping - so we are able to adapt.

 

Best,

Sinem

Administrative_level_1 rejected for Spain (API error)

Follower ✭ ✭ ✭
# 10
Follower ✭ ✭ ✭

Hi @Shalini S,

 

Is it possible that requirements in the API changed by making administrative_level_2 mandatory for Spanish POIs?

 

Best,

Sinem