1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Expo SDK 35にアップデートしたらAdMobがエラー出したのでメモ

Last updated at Posted at 2019-10-14

Interstitialのrequest時に黄色いエラー表示が出て、調べても情報が少なかったので対応策をメモ。

まずは公式ドキュメントの通り、app.jsonに以下を追記。

{
  "expo": {
    "ios": {
      "config": {
        "googleMobileAdsAppId": "ca-app-pub-XXXX~XXXX"
      }
    }
  }
}

Androidも同様。

・・・と、これでOKのはずが、何も変わらず。。。
しばらくハマったけど、どうやらexpo-ads-mobのVer.が~7.0.0になっていたのが原因だったみたい。

package.jsonを↓のように書き換えて、

{
  "dependencies": {
    "expo-ads-admob": "^7.0.0"
  }
}

npm i expo-ads-admobでアップデート。

これで無事に解決した。

1
2
0

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
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?