android - Ads Mob Sdk updation in eclipse -
i received email google on 17th oct on-wards stop displaying ads methods got deprecated.i studied on links follows :-
https://firebase.google.com/docs/admob/android/quick-start
https://github.com/googleads/googleads-mobile-android-examples
the above github link , sample provided google new sdk , android -studio , applications in market past 2 years. need migrate whole project android studio ? or there way updation in eclipse ?
i found link states if using google play services version higher 4 our ads not effected google
here link :- upgrade android google mobile ads sdk ensure ads keep serving
here google play service version detail :-
android:versioncode="5089000" android:versionname="5.0.89-000"
method using ads :-
private void getads() { try { adrequest adrequest = new adrequest.builder() .addtestdevice(adrequest.device_id_emulator) .addtestdevice("").build(); adview.loadad(adrequest); adview.setbackgroundcolor(color.black); } catch (exception e) { e.printstacktrace(); } }
in xml :-
<com.google.android.gms.ads.adview android:id="@+id/adview" android:layout_width="match_parent" android:layout_height="60dp" android:layout_gravity="bottom" ads:adsize="banner" ads:adunitid="your key" android:background="@drawable/container_ads_bg" />
please have @ link too :-
https://firebase.google.com/docs/admob/android/existing-app
this shows can done in eclipse too.
the thing my code pretty old 3 years old little afraid in migrating , if have no other option left me surely migrate it.
so need update sdk , configure firebase ?
please let me know ,as have less time left update sdk.
thanks.
i suggest migrate android studio , use inbuilt utility of admob , firebase
in case, please import project android studio, suggest, ways update project latest sdks.
Comments
Post a Comment