16
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

AdMobのエラーコード覚書き

Last updated at Posted at 2019-03-30

はじめに

AdListener#onAdFailedToLoad()のエラーコードがint値でいつも調べてしまう自分用メモです。

エラーコード表

code name
0 ERROR_CODE_INTERNAL_ERROR
1 ERROR_CODE_INVALID_REQUEST
2 ERROR_CODE_NETWORK_ERROR
3 ERROR_CODE_NO_FILL

エラー詳細

ERROR_CODE_INTERNAL_ERROR

(原文)Something happened internally; for instance, an invalid response was received from the ad server.

下記の細かいエラー以前の根深い何かが起こっているときに発生する。
お支払い情報が登録されておらずそもそも広告の配信がされていないときなど。

ERROR_CODE_INVALID_REQUEST

(原文)The ad request was invalid; for instance, the ad unit ID was incorrect.

広告のUnitIDが間違っている場合など、設定値が間違っている場合に発生する。

ERROR_CODE_NETWORK_ERROR

(原文)The ad request was unsuccessful due to network connectivity.

ネットワーク接続エラー、オフライン状態のときなどに発生する。
機内モードにすると再現できました(Pixel3, Android9)

ERROR_CODE_NO_FILL

(原文)The ad request was successful, but no ad was returned due to lack of ad inventory.

リクエスト自体は成功しているが、配信される広告がない場合に発生する。
設定やネットワークに問題がないにも関わらず広告が表示されないときはだいたいコイツ。
特にアプリの開発初期段階などで起こるイメージ、明確な理由は分かりませんが広告ネットワークが最適化されていないのかなと想像しています。

16
8
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?