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

Two locations: One of them updates the address but the other one doesn't

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

Hi, we've to GMB locations in our account.

 

Location 1 GET response:

{
"name": "accounts/110059924960230583930/locations/5483776514988023392",
"locationName": "EspañaDuero Banco",
"primaryPhone": "902 36 50 24",
"address": {
"addressLines": [
"Calle Iglesia, 0"
],
"locality": "Moralina",
"administrativeArea": "Zamora",
"country": "ES",
"postalCode": "49253"
},
"primaryCategory": {
"name": "Caja de ahorros",
"categoryId": "gcid:savings_bank"
},
"additionalCategories": [
{
"name": "Cajeros automáticos",
"categoryId": "gcid:atm"
}
],
"websiteUrl": "https://www.espanaduero.es/",
"locationKey": {
"plusPageId": "102405440580544612748",
"placeId": "ChIJT8x5B8VrOQ0RBEs-Ozj3-lY"
},
"photos": {
"profilePhotoUrl": "https://s3-eu-west-1.amazonaws.com/localistico-production/images/files/9f0/c6e/d7-/square_500px/logoespanya.png?1487672914",
"logoPhotoUrl": "https://s3-eu-west-1.amazonaws.com/localistico-production/images/files/9f0/c6e/d7-/square_500px/logoespanya.png?1487672914",
"exteriorPhotoUrls": [
"https://s3-eu-west-1.amazonaws.com/localistico-production/images/files/246/139/04-/original/4642-OSAC-MDS.jpg?1486499295"
]
},
"additionalPhones": [
"980 61 60 57",
"980 61 60 59"
],
"latlng": {
"latitude": 41.48949,
"longitude": -6.13517
},
"openInfo": {
"status": "OPEN",
"canReopen": true
},
"locationState": {
"canUpdate": true,
"canDelete": true,
"isVerified": true,
"isPublished": true
},
"attributes": [
{
"attributeId": "has_drive_through",
"valueType": "BOOL",
"values": [
false
]
}
],
"metadata": {
"mapsUrl": "https://maps.google.com/maps?cid=6267593652323633924"
},
"languageCode": "es"
}

 

Location 2 GET response: 

{
"name": "accounts/110059924960230583930/locations/12180190999279941582",
"storeCode": "4642-OSAC-MDS",
"locationName": "EspañaDuero Banco",
"primaryPhone": "980 61 60 57",
"address": {
"addressLines": [
"Carretera Torregamones"
],
"locality": "Moralina",
"administrativeArea": "Zamora",
"country": "ES",
"postalCode": "49253"
},
"primaryCategory": {
"name": "Banco",
"categoryId": "gcid:bank"
},
"websiteUrl": "https://www.españaduero.es",
"regularHours": {
"periods": [
{
"openDay": "MONDAY",
"openTime": "08:30",
"closeDay": "MONDAY",
"closeTime": "14:00"
},
{
"openDay": "THURSDAY",
"openTime": "08:30",
"closeDay": "THURSDAY",
"closeTime": "14:00"
}
]
},
"locationKey": {
"plusPageId": "106528041029643016148",
"placeId": "ChIJ-_j8x8VrOQ0R2pUzaGFrzas"
},
"photos": {
"profilePhotoUrl": "https://s3-eu-west-1.amazonaws.com/localistico-production/images/files/9f0/c6e/d7-/square_500px/logoespanya.png?1487672914",
"logoPhotoUrl": "https://s3-eu-west-1.amazonaws.com/localistico-production/images/files/9f0/c6e/d7-/square_500px/logoespanya.png?1487672914",
"exteriorPhotoUrls": [
"https://s3-eu-west-1.amazonaws.com/localistico-production/images/files/246/139/04-/original/4642-OSAC-MDS.jpg?1486499295"
]
},
"openInfo": {
"status": "OPEN",
"canReopen": true
},
"locationState": {
"canUpdate": true,
"canDelete": true,
"isVerified": true,
"isPublished": true
},
"metadata": {
"mapsUrl": "https://maps.google.com/maps?cid=12379669016815572442"
},
"languageCode": "es"
}

 

BTW, we've sent a PATH request to each one on the same URL and with exactly the same payload:

{"photos":{"logoPhotoUrl":"https://s3-eu-west-1.amazonaws.com/localistico-production/images/files/9f0/c6e/d7-/square_500px/logoespanya.png?1487672914", "profilePhotoUrl":"https://s3-eu-west-1.amazonaws.com/localistico-production/images/files/9f0/c6e/d7-/square_500px/logoespanya.png?1487672914", "exteriorPhotoUrls":["https://s3-eu-west-1.amazonaws.com/localistico-production/images/files/246/139/04-/original/4642-OSAC-MDS.jpg?1486499295"]}, "address":{"country":"ES", "locality":"Moralina", "postalCode":"49253", "addressLines":["Carretera Torregamones"], "administrativeArea":"Zamora"}, "openInfo":{"status":"OPEN"}, "storeCode":"4642-OSAC-MDS", "websiteUrl":"https://www.españaduero.es", "locationName":"EspañaDuero Banco", "primaryPhone":"+34980616057", "regularHours":{"periods":[{"openDay":"MONDAY", "closeDay":"MONDAY", "openTime":"08:30", "closeTime":"14:00"}, {"openDay":"THURSDAY", "closeDay":"THURSDAY", "openTime":"08:30", "closeTime":"14:00"}]}, "primaryCategory":{"categoryId":"gcid:bank"}}

 

The surprising response is that one of them (the first one) returns an error:

{ "error": { "code": 400, "message": "Request contains an invalid argument.", "status": "INVALID_ARGUMENT", "details": [ { "@type": "type.googleapis.com/google.mybusiness.v3p1.ValidationError", "errorDetails": [ { "code": 1100, "field": "address.country" } ] } ] } }

But the other one successfully updates the location address.

 

 

I would like to fix the one that is not working if possible, but I cannot find the failure reason.

 

Attached the debugging process to write this message:

 

1) Sent 2 GET requests to the GMB API to get each location details and copy the responses to try to find differences in the statutes (for example)

2) Sent 2 PATCH requests to the GMB API to try to update each location. One of them failed and the other one has worked.

 

Any idea? Thanks in advance!

1 Expert replyverified_user

Re: Two locations: One of them updates the address but the other one doesn't

Google Employee
# 2
Google Employee

Hi @David R,

 

We are looking into this issue. We’ll get back to you soon.

 

Thanks,

The Google My Business API team

Two locations: One of them updates the address but the other one doesn't

Follower ✭ ✭ ☆
# 3
Follower ✭ ✭ ☆

Hello! Any update on this? Thanks