Google Business Profile Performance API PERMISSION_DENIED

475 views Asked by At

I'm currently working on migrating from the Google My business V4.9 to the Business Profile Performance API .

For number of credentials the changes are working as expected but for others, there is a problem with making the request as I'm getting this error.

GET https://businessprofileperformance.googleapis.com/v1/locations/****:getDailyMetricsTimeSeries?dailyMetric=CALL_CLICKS&dailyRange.endDate.day=8&dailyRange.endDate.month=1&dailyRange.endDate.year=2023&dailyRange.startDate.day=31&dailyRange.startDate.month=12&dailyRange.startDate.year=2022
{
"code" : 403,
"errors" : [ {
"domain" : "global",
"message" : "The caller does not have permission",
"reason" : "forbidden"
} ],
"message" : "The caller does not have permission",
"status" : "PERMISSION_DENIED"
}

Worth to mention that for the same credentials and scope everything is working with the older endpoints.

I'm currently using https://www.googleapis.com/auth/plus.business.manage, can this be the problem as it has been deprecated(But you can still use it) and now there is https://www.googleapis.com/auth/business.manage instead?

UPDATE

It seems that before it simply returned an empty list of reports for this location, and now it's throwing an exception.

0

There are 0 answers