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

Google My Business Product Photos

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi there!

I'm using java v3 api for managing my locations.

I updated succesfully cover photo and many other photos such as team, at work, profile etc; but I can't patch product photos. Invalid argument reported.

Could you tell me whic field mask I have to use for product photos? I tried several ways, but none is correct.

 

Thank you

 

Google My Business Product Photos

Visitor ✭ ✭ ✭
# 2
Visitor ✭ ✭ ✭

I set headers to get more information about reported error.

I got this response:

 

com.google.api.client.googleapis.json.GoogleJsonResponseException:400Bad Request{
   "code":400,
   "message":"Request contains an invalid argument.",
   "status":"INVALID_ARGUMENT",
   "details":[
      {
         "@type":"type.googleapis.com/google.mybusiness.v3p1.ValidationError",
         "errorDetails":[
            {
               "code":3,
               "field":"photos.product_photo_urls",
               "message":"Photo tag 'product' does not apply to this location",
               "value":"product"
            }
         ]
      }
   ]
}

 

Can anyone help me about this error message?
Product photos can not be patched any more?

 

Thank you in advance!