Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ga_unsampled_list() and ga_unsampled_download() unable to get reports #430

Open
a-jakob opened this issue Aug 14, 2023 · 9 comments
Open
Assignees
Labels

Comments

@a-jakob
Copy link

a-jakob commented Aug 14, 2023

What goes wrong

Since 10.08.2023 the reports don't appear on ga_unsampled_list() anymore and can't be dowloaded through ga_unsampled_download()

Steps to reproduce the problem

Having unsampled reports scheduled, ga_unsampled_list(accountId = myAccount,webPropertyId = myWebProperty,profileId = myProfileId)

Expected output

New reports appear again on the list and can be downloaded

Actual output

"Error: Report title not found. Please enter a valid title.
Remember it is case-sensitive" (although the report exists)
Before you run your code, please run:

options(googleAuthR.verbose=2) and copy-paste the console output here.
Check it doesn't include any sensitive info like auth tokens or accountIds - you can usually just edit those out manually and replace with say XXX

'API Data failed to parse' diagnostics

If you have an error starting with:

API Data failed to parse.

  • Please install googleAuthR >v0.7.9000:
remotes::install_github("MarkEdmondson1234/googleAuthR")
  • Restart the R session and run your bugged code.
  • It should write a file called gar_parse_error.rds to your working directory.
  • Run the below to output some diagnostic information and paste the response here.
googleAuthR::gar_debug_parsing("gar_parse_error.rds")

Session Info

Please run sessionInfo() so we can check what versions of packages you have installed
googleAuthR_2.0.1 googleAnalyticsR_1.1.0

@MarkEdmondson1234
Copy link
Collaborator

Is this API active anymore anywhere? Can you call it via the online api explorer?

@a-jakob
Copy link
Author

a-jakob commented Aug 14, 2023 via email

@MarkEdmondson1234
Copy link
Collaborator

To be clear, available via API calls or via webUI? Can you link to a successful API call?

@a-jakob
Copy link
Author

a-jakob commented Aug 14, 2023

they're available via GA-webUI, but not via API, I can link successfully to the API and get older reports (for example daily reports before 10.08).

@MarkEdmondson1234
Copy link
Collaborator

It sounds like it's been turned off. Maybe someone else can confirm, I haven't any UA360 properties to test it with.

@a-jakob
Copy link
Author

a-jakob commented Aug 15, 2023

Ok, that sounds bad... but first of all thank you very much for your support and for the packet-administration. Would you have an idea of how automate the unsampled reports downloads otherwise?
If it's helpful to diagnose and you have the time and interest, I could arrange a call. Just write me at andre.jakob@transfermarkt.de if it's the case.

@a-jakob
Copy link
Author

a-jakob commented Aug 15, 2023

Another little piece of information: when I request a new unsampled report it appears on api as "pending". When it's complete, it doesn't appear anymore.

@MarkEdmondson1234
Copy link
Collaborator

If it's GA360 I suggest trying to replicate the report in BigQuery

@a-jakob
Copy link
Author

a-jakob commented Aug 17, 2023

For the records, if somebody has the same problem:

  • GA-Reports aren't available on GA-API anymore, but they're still being delivery on GDrive
  • I installed googledrive package and followed the instructions available on https://gargle.r-lib.org/articles/non-interactive-auth.html
  • Having the reports' names they can be downloaded automatically from a shiny server just as before.

Thanks Mark for trying to help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants