Hello,
I am seeking assistance with the Google Business Profile API.
I am currently trying to develop a Python program (using the google-api-python-client library) to upload photos (as byte data) from a local directory to the media library of a Google Business Profile listing.
Objective: To programmatically upload local image files to the media library of a specified business listing on a regular basis using a Python script.
What I've Tried and the Issues Encountered:
Questions:
Environment:
Thank you for your time and assistance. Any guidance you can provide would be greatly appreciated.
Hi @YUKI310,
Welcome to Google Cloud Community!
According to this documentation, you should ensure that the Google My Business API (v4) is enabled in your GCP project, as the media upload functionality is part of this API, not the My Business Business Information API. The correct service name for the Google My Business API is 'mybusiness'
, and the version should be 'v4'
. Then, just follow the 3-step upload process. This should help you upload photos to your Google Business Profile successfully.
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.