AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

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

API is returning 404 - method not found

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi,

 

I'm trying to connect in My Business Google API and it is returning me 404 - not found.

 

I'm using google/apiclient v2.1.2 and I already have the my business api enabled in my account.

 

Php code

 

        putenv('GOOGLE_APPLICATION_CREDENTIALS=/test/Vulco-my-business-ae76ce64d69b.json');

        $client = new Google_Client();
        $client->useApplicationDefaultCredentials();
        $client->addScope('https://www.googleapis.com/auth/plus.business.manage');
        $httpClient = $client->authorize();
        /** @var Response $response */
        $response = $httpClient->get('https://mybusiness.googleapis.com/v3/accounts');

 

Some idea about where is the error ?

 

Thanks

 

Marc

1 Expert replyverified_user

Re: API is returning 404 - method not found

Google Employee
# 2
Google Employee

Hi @Marc M,

 

The 404 Method not found error typically happens when you are using a different Project ID from the one we whitelisted for your company to access the Google My Business API.

 

We’ll reach out to you privately on a separate thread for more details.

 

Thanks,

The Google My Business API team

API is returning 404 - method not found

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

@Shalini S @Marc M Same Issue I am getting did you manage to solve.

Re: API is returning 404 - method not found

Google Employee
# 4
Google Employee

Hi @Nirantar Singh P,

 

The 404 Method not found error typically happens when you are using a different Project ID from the one we whitelisted for your company to access the Google My Business API.

 

We’ll reach out to you in a separate email thread for more details.

 

Thanks,

Shalini

The Google My Business API team

API is returning 404 - method not found

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭

Hi,

I have a same problem. @Shalini S Can you help me?

Re: API is returning 404 - method not found

Google Employee
# 6
Google Employee

Hi @Станислав К,

 

We’ll reach out to you on a separate thread for more details regarding project.

 

Thanks,

The Google My Business API team