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

Add photo to place - Server-side

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

Hello,

 

I'm using Google My Business API in a server-side way, using PHP and cURL, and 

Google_Service_Mybusiness

classes in PHP client library included in Google My Business.

 

I can create, patch and delete places, which works perfectly with a newly created account.

But when I try to add a photo to a place, I've that error message:

 

"error": {
    "code": 400,
    "message": "Request contains an invalid argument.",
    "status": "INVALID_ARGUMENT",
    "details": [
      {
        "@type": "type.googleapis.com/google.mybusiness.v3p1.ValidationError",
        "errorDetails": [
          {
            "code": 14,
            "field": "photos",
            "message": "The owner of this location is not verified. Photos are supported only with a Google+ page on a verified location."
          }
        ]
      }
    ]
  }

How can I verify my place, since my account does not appear in my Google My Business interface?

What am I missing here?

 

My account is the following:

{
  "accounts": [
    {
      "name": "accounts/116864997090909026300",
      "type": "PERSONAL",
      "state": {
        "status": "UNVERIFIED"
      }
    }
  ]
}
1 Expert replyverified_user

Re: Add photo to place - Server-side

Google Employee
# 2
Google Employee

Hi @Bill R,

 

Please make sure that the location you are uploading the photos to has an associated Google+ page, as indicated by a plusPageId in the LocationKey, since photos are supported only with a Google+ page, and the photos meet the specifications of the Photos object documented on our Google Developers site.

 

I suggest you verify your local business listing on Google via the Google My Business User Interface to manage your business information across Google, including Search and Maps. You need to create or claim a Google My Business listing before you can start the verification process.

 

Thanks,

Shalini