Android/広告組込/google/admob/基本のソースを表示
←
Android/広告組込/google/admob/基本
ナビゲーションに移動
検索に移動
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
==ポリシー違反警告== 以下のようなポリシー違反警告がくる場合 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を入れる。 <pre> List<String> testDeviceIds = Arrays.asList("E36A38A1F26D812D88FB97BF7D71234"); RequestConfiguration configuration = new RequestConfiguration.Builder().setTestDeviceIds(testDeviceIds).build(); MobileAds.setRequestConfiguration(configuration); </pre> もしくは、以下を入れると良いかも。 <pre> String androidId = Settings.Secure.getString(this.getContentResolver(), Settings.Secure.ANDROID_ID); Log.i(TAG, "testDeviceId=" + md5(androidId).toUpperCase()); // E36A38A1F26D812D88FB97BF7D71234 </pre> 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/ 以下の様なaddTestDeviceはv.19ぐらいからで非推奨となった。 <pre> new AdRequest.Builder() .addTestDevice("E36A38A1F26D812D88FB97BF12341234") .build()); </pre> ==androidの最小APIについて== admobプラグインのminimumについて 2020‑03‑02からでてるv.19.0.0 でAPI 16となる。 https://developers.google.com/admob/android/rel-notes <pre> This release is a MAJOR version update with the following breaking changes: Updated minimum Android SDK version to API 16 to align with the Google Play services distribution policy. Native Ads: Moved MediaContent to the com.google.android.gms.ads package. </pre> google-play-servicesについても2018/12/6にはAPI14,15について更新が停止されてます。 https://android-developers.googleblog.com/2018/12/google-play-services-discontinuing.html 他アドネットワークも最小APIは16 https://developers.google.com/admob/unity/mediate?hl=ja <pre> nend 16 tapjoy 16 unityads 16 vungle 16 AdColony 16 AppLovin 16 facdbook 16 ironsource 16 maio 16 mopub 16 </pre> ==onAdFailedToLoadの非推奨対応== admob-19.0.0?から非推奨? 修正前 <pre> mAdView.setAdListener(new AdListener() { @Override public void onAdFailedToLoad(int error) { // Code to be executed when an ad request fails. } } </pre> 修正後 <pre> mAdView.setAdListener(new AdListener() { @Override public void onAdFailedToLoad(LoadAdError adError) { // Code to be executed when an ad request fails. } } </pre>
Android/広告組込/google/admob/基本
に戻る。
ナビゲーション メニュー
個人用ツール
ログイン
名前空間
ページ
議論
日本語
表示
閲覧
ソースを閲覧
履歴表示
その他
検索
案内
プログラムメモ
php
flutter
java
android
kotlin
ios
unity
unrealengine
javascript
mysql
sqlite
postgresql
oracle
mroonga
mongodb
flash
electron
cocos2dx
titanium
cpp
ruby
perl
python
accessメモ
rss
html
monaca
cordova
golang
blender
セキュリティ
テストツール
サーバメモ
linux
dotnet
apacheメモ
htaccessメモ
subversion
git
仮想サーバ
ansible
sendgrid
xampp
cacti
mecab
faces
flashpolicyd
fcs
jenkins
運用
デザインメモ
css
ユーザビリティ
ux
サービスメモ
twitter
facebook
instagram
mixi
セカンドライフ
通信ログ横取り
google
ustream
aws
gcp
plesk
azure
vps
AI
その他サービス
便利系メモ
SEO
モバイル
抽象変数名
DDD
クライアント
firefox
chrome
pgp
windows
mac
jmetar
Thunderbird
excel
libreoffice
vpnclient
doxygen
VisualStudioCode
fastlane
metaquest
cmsメモ
mediawiki
pukiwiki
wordpress
その他
資格
IT用語
pvを稼ぐ方法
将棋プログラム
その他
ログイン
ページ内
メインページ
最近の更新
人気のページ
問い合わせ
ツール
リンク元
関連ページの更新状況
ページ情報