Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Daily save quota exceeded" after a while using Google Play Android Developer API

After discovering that the Google team upgraded the Android Developer API, I made a script to automatically update all my apps data in multiple languages at once.

However, I've noticed that, when you follow a workflow of:

  1. Ask for Edit ID,
  2. Do all your changes
  3. Commit all your changes

At some point, you get a SocketTimeoutException when you try to update changes. Well, this may be due to a problem in my connection.

So, to solve that, I changed my workflow:

  1. Ask for Edit ID,
  2. Do one change
  3. Commit one change
  4. Repeat from 1 until changes finished

However, following this process, it ends with this when I try to commit after some changes:

{
  "code" : 403,
  "errors" : [ {
    "domain" : "androidpublisher",
    "message" : "Daily save quota exceeded.",
    "reason" : "publishingDailySaveQuotaExceeded"
  } ],
  "message" : "Daily save quota exceeded."
}

Looks weird to me, as there is no explanation about save quotas for this API.

Also, after an intense use, the current quota limit keeps frozen at 0/200k, as if I didn't do anything. I didn't use the v1 of this API, so I don't know anything about this.

Do you know if that's the correct behavior?

like image 634
Sergi Juanola Avatar asked Aug 22 '14 13:08

Sergi Juanola


1 Answers

Unfortunately it looks like their "recommendation" in their API's usage page is the rule.

Do not publish alpha or beta updates more frequently than once a day. (Production apps should be updated even less frequently than that.) Every update costs your users time and possibly money. If you update too frequently, users will start ignoring updates, or even uninstall the product.

Seems odd to me that they hard limit it like this though. It should be explicit at the very least.


Update

To follow up, I'm actually able to publish more than once a day as long as attempted uploads aren't rejected for some reason (such as 401 unauthorized). Haven't tested to see what the upper limit is, but it does make testing this a nuisance if it does heavily rate limit after one bad attempt.

like image 98
Zac Sweers Avatar answered Oct 31 '22 09:10

Zac Sweers