Firebase setting in Google Mobile Ads SDK in AdMob - Android studio

Everyone have question when user to generate a ads in AdMob. Why AdMob give me :

  1. ads-unit-id: e.g. ca-app-pub-3940256099942544/6300978111 ( a test)
  2. application-unit-id: e.g. ca-app-pub-xxxxxxxxxxxxxx~xxxxxxxxxx

Before user might not need to set application-unit-id in onCreate() in java code, but now if you want use Firebase, you should use and set in java.

Google Teaching:
https://firebase.google.com/docs/admob/android/quick-start#project-level_buildgradle_excerpt

留言

這個網誌中的熱門文章

7-ELEVEN 電子發票明細查詢方式

Java 使用 regular expression 正則表達,過濾特殊字元,反斜線處理重點

Ubuntu GUI中,無法啟動WIFI連結解決方法