14
【第6回】#potatotips (iOS/Android開発Tips共有会)

20140409 potatotips No6

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

Page 1: 20140409 potatotips No6

【第6回】#potatotips (iOS/Android開発Tips共有会)

Page 2: 20140409 potatotips No6

Admob 問題点

定期的なadmob SDKの更新

Page 3: 20140409 potatotips No6

Google Server Admob Server

MyApp (apk)

Admob lib(jar)

Page 4: 20140409 potatotips No6

Google Play Service

Page 5: 20140409 potatotips No6

Google Play Service

• Google PlayからDL可能 – https://play.google.com/store

/apps/details?id=com.google.android.gms

• Admob view – 自動的なadmob 機能の更新 – 位置情報に基づいた広告機能の提供

– 柔軟で強力なツール群の利用

Page 6: 20140409 potatotips No6

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

Page 7: 20140409 potatotips No6
Page 8: 20140409 potatotips No6

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)

Page 9: 20140409 potatotips No6

AndroidManifest.xml への meta-data の追加(*1)

<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"> </meta-data>

Page 10: 20140409 potatotips No6

AdView()の更新対応(*2)

AdView adView = new AdView(activity); adView.setAdUnitId("YOUR_AD_UNIT_ID"); adView.setAdSize(AdSize.BANNER);

Page 11: 20140409 potatotips No6

AdRequest()の更新対応(*3)

AdRequest adRequest = new AdRequest.Builder().build(); mAdView.loadAd(adRequest);

Page 12: 20140409 potatotips No6

Upload

Page 13: 20140409 potatotips No6

結論

SDK更新しても売上上がらず・・・

Page 14: 20140409 potatotips No6

ご清聴ありがとうござました