Search code examples
rgoogle-analyticsgoogle-analytics-api

profileId ga:XXXXXXXX has exceeded the daily request limit


Hi I am trying to extract the ga data from rga package.

 id <- XXXXXXXX 
 start_index <- 1 
 device_visits <- ga$getData(id, start.date= start_date, end.date=end_date, metrics = "ga:sessions", dimensions="ga:deviceCategory",batch=TRUE, start=start_index)

I was doing this successfully until I had an error

 Error in ga$getData(id, start.date = start_date, end.date = end_date,  : 
 error in fetching data: Quota Error: profileId ga:XXXXXXXXX has exceeded the daily request limit.

How can I fix it?


Solution

  • The Google Analytics API quota for a view is 10000 requests per day. This is not project based this is total. Any usage of this view will count against the 10000.

    • Using the website
    • Using the mobile app
    • requests by your application

    Everything counts against this quota. It is also not User based so if you have coworkers with access to this view they are also using this quota.

    I haven't run a single query today! successfully but it pops up this error !

    The quota will reset at midnight west cost USA time. When you posted this it was still yesterday. Until then you will not be able to access this view.

    Your only recourse is to reduces the number of requests you are making tomorrow / today / ...