Google My Business Performance API error 404

Hi everyone,

I’m encountering a 404 error when using the Google Business Profile Performance API via the “Make an API call” module in Make. My other Google My Business modules work fine, so I know my connection and authentication are set up correctly.

I’ve verified that the location ID is correct and that I have access through 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

Is there anything I’m missing or another reason why I might be getting a 404 error?

Thanks in advance for any insights!


Can anyone help me? :slight_smile: I guess it’s the problem either with BODY or the URL

I changed the body dates and it still doesn’t work

Hi @Jakub_Kozakiewicz I see you’re using a POST request, instead of a GET.
Hope that helps

Hi, I changed to GET request and now I’m geting 400 error.

I also changed BODY dates.

If anyone has an idea how to solve this error, I would really appreciate it!

Hello @Jakub_Kozakiewicz, do you have the CURL for the api call?

Hi, @PathfinderAutomate :slight_smile: I think is this one:

GET https://businessprofileperformance.googleapis.com/v1/locations/12345:fetchMultiDailyMetricsTimeSeries?dailyMetrics=WEBSITE_CLICKS&dailyMetrics=CALL_CLICKS&dailyRange.start_date.year=2022&dailyRange.start_date.month=1&dailyRange.start_date.day=1&dailyRange.end_date.year=2022&dailyRange.end_date.month=3&dailyRange.end_date.day=31

Here you have link to the documentation: Method: locations.fetchMultiDailyMetricsTimeSeries  |  Google Business Profile APIs  |  Google for Developers

Okay great just paste the CURL to make.com ai at the right bottom it will setup the http module correctly for you and you can make the changes there

Okey, thanks but is there a way to use Google My Business API module? I don’t want to authorize the OAuth2 Client via HTTP module.

@Jakub_Kozakiewicz 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.

Thanks @Lauren_Moineau, You are right with the dates :sweat_smile:

I changed BODY to:

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

But I’m still geting error 400

1 Like

@Jakub_Kozakiewicz 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.

Could you give me an example of query parameters in the URL? I’m not sure what you mean :slight_smile:

Sure. Taking the example you shared before from the documentation, the URL would be:

v1/locations/12345:fetchMultiDailyMetricsTimeSeries?dailyMetrics=WEBSITE_CLICKS&dailyMetrics=CALL_CLICKS&dailyRange.start_date.year=2022&dailyRange.start_date.month=1&dailyRange.start_date.day=1&dailyRange.end_date.year=2022&dailyRange.end_date.month=3&dailyRange.end_date.day=31

Now it’s working! Thanks a lot :wink: and what’s the second way? Could you give me an example with key/value pairs under Query String?