Upload
tkawashita
View
164
Download
1
Embed Size (px)
DESCRIPTION
We have to change Android Admob SDK to Google Play Service. https://github.com/potatotips/potatotips/wiki/potatotips-6
Citation preview
【第6回】#potatotips (iOS/Android開発Tips共有会)
Admob 問題点
定期的なadmob SDKの更新
Google Server Admob Server
MyApp (apk)
Admob lib(jar)
Google Play Service
Google Play Service
• Google PlayからDL可能 – https://play.google.com/store
/apps/details?id=com.google.android.gms
• Admob view – 自動的なadmob 機能の更新 – 位置情報に基づいた広告機能の提供
– 柔軟で強力なツール群の利用
Google Play Service
Location API Fused location
provider Geofencing APIs
Activity recognition Google Play Games
Services Achievements Cloud Save Leaderboards
Multiplayer Google+ API Google Maps Google Cloud Messaging In-App Billing API Latest Update Address API Google TagManager Google Drive Android API
Google Play Serviceへの対応方法 1. 既存のadmob SDKの削除
– e.g : libs/GoogleAdMobAdsSdk-6.4.1.jar 2. Google Play Service SDK を追加
– /extras/google/google_play_services/libproject/google-play-services_lib
3. AndroidManifest.xml への meta-data の追加(*1) 4. import com.google.ads.* の削除 5. AdView adView = new AdView(activity, AdSize.BANNER,
“YOUR_AD_UNIT_ID”); の削除 6. import com.google.android.gms.ads.* の import 7. AdView()の更新対応(*2) 8. AdRequest()の更新対応(*3)
AndroidManifest.xml への meta-data の追加(*1)
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"> </meta-data>
AdView()の更新対応(*2)
AdView adView = new AdView(activity); adView.setAdUnitId("YOUR_AD_UNIT_ID"); adView.setAdSize(AdSize.BANNER);
AdRequest()の更新対応(*3)
AdRequest adRequest = new AdRequest.Builder().build(); mAdView.loadAd(adRequest);
Upload
結論
SDK更新しても売上上がらず・・・
ご清聴ありがとうござました