The CSV is downloaded to Google Drive but when I query the unsampled report ID with get unsampled report no download type appears in the response...
This is the resource that's supposed to appear. But I get a partial response as:
{
"id": string,
"kind": "analytics#unsampledReport",
"selfLink": string,
"title": string,
"accountId": string,
"webPropertyId": string,
"profileId": string,
"start-date": string,
"end-date": string,
"status": string,
"created": datetime,
"updated": datetime
}
I have a service account with the following API's enabled:
- Google Analytics API
- Google Analytics Reporting API
- Google Drive API
I have all the permissions for my service account in Google Analytics.
I'm using python client to make the request:
accountId = self._ga_property.account_id
web_property_id = self._ga_property.web_property_id
unsampled_report = self._auth_service.management().unsampledReports().get(
accountId=accountId,
webPropertyId=web_property_id,
profileId=self._profileId,
unsampledReportId=id
).execute()
return unsampled_report
If you need any extra information I'm happy to provide.
I've already tried Stack Overflow answer but download link is not inside my response.
The problem isn't getting a response, the problem is getting a partial response