Skip to content
Google My Business ...
 
Notifications
Clear all

Google My Business Performance API error 404

14 Posts
3 Users
0 Reactions
3 Views
Jakub_Kozakiewicz
(@jakub_kozakiewicz)
Posts: 8
Active Member
Topic starter
 

Hello everyone,

I'm running into a 404 error when attempting to use the Google Business Profile Performance API through the "Make an API call" module in callin.io. My other Google My Business modules are functioning correctly, which suggests my connection and authentication are properly configured.

I've confirmed that the location ID is accurate and that I have the necessary access via my connected account.

  • Body:
{
  "dailyMetrics": ["ALL_DIRECTIONS", "CALL_CLICKS", "WEBSITE_CLICKS"],
  "dailyRange": {
    "startDate": {
      "year": 2023,
      "month": 1,
      "day": 1
    },
    "endDate": {
      "year": 2023,
      "month": 1,
      "day": 31
    }
  }
}
  • Headers: Key: Content-Type, Value: application/json

Could there be something I'm overlooking, or another reason for this 404 error?

Thanks in advance for any assistance!

 
Posted : 20/12/2024 12:20 pm
Jakub_Kozakiewicz
(@jakub_kozakiewicz)
Posts: 8
Active Member
Topic starter
 

Can anyone assist me?

:slight_smile:

I suspect the issue lies with either the BODY or the URL.

I've modified the body dates, but it's still not functioning.

 
Posted : 02/01/2025 3:39 pm
Lauren_Moineau
(@lauren_moineau)
Posts: 6
Active Member
 

Hi there! I noticed you're using a POST request instead of a GET request.

Hope that helps!

 
Posted : 02/01/2025 5:48 pm
Jakub_Kozakiewicz
(@jakub_kozakiewicz)
Posts: 8
Active Member
Topic starter
 

Hi, I switched to a GET request and am now encountering a 400 error.

I also modified the BODY dates.

If anyone has any insights on how to resolve this error, I would greatly appreciate the help!

 
Posted : 04/01/2025 5:51 pm
Pathfinder_Automate
(@pathfinder_automate)
Posts: 88
Trusted Member
 

Hello, do you have the CURL for the API call?

 
Posted : 04/01/2025 6:36 pm
Jakub_Kozakiewicz
(@jakub_kozakiewicz)
Posts: 8
Active Member
Pathfinder_Automate
(@pathfinder_automate)
Posts: 88
Trusted Member
Jakub_Kozakiewicz
(@jakub_kozakiewicz)
Posts: 8
Active Member
Topic starter
 

Okay, thanks, but is there a way to utilize the Google My Business API module? I'd prefer not to authorize the OAuth2 Client through the HTTP module.

Could you please provide guidance on how to achieve this?

 
Posted : 04/01/2025 7:32 pm
Lauren_Moineau
(@lauren_moineau)
Posts: 6
Active Member
 

Could it be because there are only 30 days in November?

Edit: Also, looking at the official API documentation, ‘ALL_DIRECTIONS’ is not a valid enum value in the list of permitted dailyMetrics.

 
Posted : 04/01/2025 8:10 pm
Jakub_Kozakiewicz
(@jakub_kozakiewicz)
Posts: 8
Active Member
Topic starter
 

Thanks, you are correct about the dates.

:sweat_smile:

I've updated the BODY to:

{
  "dailyMetrics": ["WEBSITE_CLICKS", "CALL_CLICKS"],
  "dailyRange": {
    "startDate": {
      "year": 2024,
      "month": 11,
      "day": 1
    },
    "endDate": {
      "year": 2024,
      "month": 11,
      "day": 30
    }
  }
}

However, I'm still encountering an error 400.

Could you please assist with this?

 
Posted : 04/01/2025 8:46 pm
Lauren_Moineau
(@lauren_moineau)
Posts: 6
Active Member
 

As it’s a GET request, you need to enter the query parameters either in the URL itself, or as key/value pairs under Query String. I’d give it a go in the URL first to be sure it’s working.

 
Posted : 04/01/2025 9:07 pm
Jakub_Kozakiewicz
(@jakub_kozakiewicz)
Posts: 8
Active Member
Topic starter
 

Could you provide an example of query parameters within a URL? I'm not quite sure what you're referring to.

:slight_smile:

 
Posted : 04/01/2025 9:19 pm
Lauren_Moineau
(@lauren_moineau)
Posts: 6
Active Member
 

Certainly. Using the example you previously provided from the documentation, the URL would look like this:

v1/locations/12345:fetchMultiDailyMetricsTimeSeries?dailyMetrics=WEBSITECLICKS&dailyMetrics=CALLCLICKS&dailyRange.startdate.year=2022&dailyRange.startdate.month=1&dailyRange.startdate.day=1&dailyRange.enddate.year=2022&dailyRange.enddate.month=3&dailyRange.enddate.day=31

 
Posted : 04/01/2025 9:22 pm
Jakub_Kozakiewicz
(@jakub_kozakiewicz)
Posts: 8
Active Member
Topic starter
 

It's functioning now! Thank you very much

:wink:

And what is the alternative method? Could you provide an example using key/value pairs within the Query String?

 
Posted : 04/01/2025 9:37 pm
Share: