NikhilG
NikhilG

Reputation: 21

How to get number of requests remaining from Quota of the day for my Profile-ID in Google Analytics

I am Fetching Data from Google Analytics For Metrics (Pageviews,Unique pageviews, TimeonPAge, Exits) as below

 DataResource.GaResource.GetRequest r = GAS.Data.Ga.Get(profileID,startdate.ToString("yyyy-MM-dd"),enddate.ToString("yyyy-MM-dd"),"ga:pageviews,ga:uniquePageviews,ga:timeOnPage,ga:exits");
 r.Dimensions = "ga:pagePath";
 r.Filters = "ga:pagePath=~ItemID=" + strPagePath + "*";
 r.MaxResults = 1000;
 GaData d = r.Fetch();`

I want to get a count of how many requests are remaining out of my current day's allocated quota for my ProfileID. Is there any method which gives count for the same??

Upvotes: 1

Views: 291

Answers (1)

Linda Lawton - DaImTo
Linda Lawton - DaImTo

Reputation: 116968

There is no way to programmatically check what the status of your quota is. You can check some of the quotas project based ones on the Google developer console but this is project based. This isn't going to be your view based quota.

enter image description here

The best option is to count them yourself locally. However note its not a perfect system Google sometimes lets you go over or under by a few hundred.

Upvotes: 0

Related Questions