Reputation: 21
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
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.
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