ものづくりのブログ

うちのネコを題材にしたものづくりができたらいいなと思っていろいろ奮闘してます。

「Tag Manager API」 を使用したら「RateLimitError」がでたので対応を考える

Google の「Tag Manager API」を使用していたら以下のエラーが発生したので解決方法を調べてみました。

<Google::Apis::RateLimitError: rateLimitExceeded: Quota exceeded for quota metric 'Queries' and limit 'Queries per minute' of service 'tagmanager.googleapis.com' for consumer 'project_number:xxxxxxxxxxxxx'.>

原因

「Tag Manager API」の実行可能回数が100秒間あたり25回までに設定されて、上限を超えた場合に発生する。

対応

Google に英語で理由を明記して実行回数の上限を増やす。

方法

Google APIsページを開きます。Dashborad が開いたら、Used APIs の中から該当の API を検索してリンクを開きます。
プロジェクトに割り当てられている制限値を確認します。

編集ボタンをクリックします。

「割り当ての増加をお申し込みください。」をクリックします。


申請フォームが出てくるので記入します。

質問内容

Tag Manager API - Request More Quota

どうして必要か?

If you have a compelling use case for requiring additional Tag Manager API quota, we'd like to hear about it.  Please provide details on your use case, how much quota it would require, and why it deserves consideration.  
Queries Per Day needed?

1日あたりどれくらい必要か?

The standard limit is 10,000 queries per project per day. If you need an increase to this quota, specify how much you need. Please reasonably estimate the increase you need. Requests for massive or otherwise unjustified increases will not be granted.
Queries Per 100 Seconds needed?

100秒あたりどれくらい必要か?

The standard limit is 25 queries per 100 seconds (per project and per user). If you need an increase to this quota, specify how much you need. Please reasonably estimate the increase you need. Requests for massive or otherwise unjustified increases will not be granted.
Justification

追加のクォータが必要な理由/正当性について記載するみたいです。

Please provide details about how you are using the Tag Manager API, why you need additional quota, and why you need the limits specified in the above fields. Increases to these limits are not guaranteed. Requests without sufficient justification will not be granted.