facebook twitter hatena line email

「Android/広告組込/google/admob/基本」の版間の差分

提供: 初心者エンジニアの簡易メモ
移動: 案内検索
(テストデバイスID)
(minimumのapi)
行24: 行24:
 
参考:https://www.it-swarm.dev/ja/android/admob%E3%81%AE%E3%83%87%E3%83%90%E3%82%A4%E3%82%B9id%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95/970162780/
 
参考:https://www.it-swarm.dev/ja/android/admob%E3%81%AE%E3%83%87%E3%83%90%E3%82%A4%E3%82%B9id%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95/970162780/
  
==minimumのapi==
+
==androidの最小APIについて==
 
admobプラグインのminimumについて
 
admobプラグインのminimumについて
 
2020‑03‑02からでてるv.19.0.0 でAPI 16となる。
 
2020‑03‑02からでてるv.19.0.0 でAPI 16となる。
  
 
https://developers.google.com/admob/android/rel-notes
 
https://developers.google.com/admob/android/rel-notes

2020年8月20日 (木) 18:18時点における版

ポリシー違反警告

以下のようなポリシー違反警告がくる場合

This email is to alert you that your app is currently in violation of the AdMob program policies. Importantly, this will require action on your part to ensure no disruption in ad serving. Please read below for more information on the actions you need to take. View in policy center

自分のアプリの場合は、バナー広告の上にリワード広告が被っていたので、修正した。

問題なければ以下のようなメッセージが来る

Regarding your Google AdMob Policy Violation Review
We’ve completed reviewing your app and no policy violations were found.

テストデバイスID

広告表示時に以下ログが出るので、そこに記載のidを入れる。

RequestConfiguration.Builder().setTestDeviceIds(Arrays.asList("E36A38A1F26D812D88FB97BF7D071234")

もしくは、以下を入れると良いかも。

String androidId =  Settings.Secure.getString(this.getContentResolver(), Settings.Secure.ANDROID_ID);
Log.i(TAG, "testDeviceId=" + md5(androidId).toUpperCase()); // E36A38A1F26D812D88FB97BF7D71234

md5のロジックは Android/hash/md5 [ショートカット]

生成したidとコンソールに出るtestDeviceIdは、一致したので使える。

参考:https://www.it-swarm.dev/ja/android/admob%E3%81%AE%E3%83%87%E3%83%90%E3%82%A4%E3%82%B9id%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95/970162780/

androidの最小APIについて

admobプラグインのminimumについて 2020‑03‑02からでてるv.19.0.0 でAPI 16となる。

https://developers.google.com/admob/android/rel-notes