蚀中的Ads Mob Sdk更新 [英] Ads Mob Sdk updation in eclipse
问题描述
我刚刚收到Google的电子邮件,通知他们从10月17日开始将停止展示广告。我还通过以下链接对此进行了研究:-
I just received email from Google that on 17th oct on-wards they will stop displaying ads as the methods got deprecated.I also studied about it on some links as follows :-
https://firebase.google.com/docs/admob/ android / quick-start
https://github.com/googleads/googleads-mobile-android-examples
上面是GitHub链接,示例由带有新SDK的Google(适用于android -studio),因为过去两年来我的应用程序已经投放市场。那么,我需要将整个项目迁移到Android Studio吗?还是有某种方法可以在Eclipse中进行更新?
The above is GitHub link , the sample provided by Google with new SDK , as that is for android -studio , as my applications are already in market from past 2 years. So Do I need to migrate my whole project to Android studio ? Or is there some way to do updation in eclipse ?
我还找到了一个链接,指出如果我们使用版本高于4的Google Play服务,我们的广告将会不会受到Google的影响
I also Found a link which states that if we are using Google Play services with version higher that 4 then our ads will not get effected by Google
以下是链接:-升级您的Android Google移动广告SDK,以确保广告继续投放
这是我的Google Play服务版本详细信息:-
Here is my Google Play Service version detail :-
android:versionCode="5089000"
android:versionName="5.0.89-000"
我用来获取广告的方法:-
Method i am using to get 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();
}
}
在我的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" />
请也查看此链接:-
https://firebase.google.com/docs/admob/android/existing-app
这表明可以在日食中完成
This shows that this can be done in eclipse too.
事情是我的代码是相当老,已经快三岁了,所以我不怕迁移,但是如果我没有其他选择,那么我一定会迁移。
The thing is my code is pretty old its almost 3 years old so i am little afraid in migrating it , but if i have no other option left with me then i will surely migrate it.
那我需要更新SDK并用FireBase配置它吗?
So do I need to update the SDK and Configure it with FireBase ?
请让我知道,因为我们剩下的时间很少,无法更新SDK。
Please let me know ,as we have very less time left to update the SDK.
谢谢。
推荐答案
我建议迁移到Android Studio并使用 adMob和Firebase的内置实用程序
I would suggest migrate to Android Studio and use inbuilt utility of adMob and Firebase
在您的情况下,请将您的项目导入Android Studio,它将建议使用最新SDK来更新项目的方法
In your case, please import your project into Android studio, it will suggest, ways to update project with latest SDKs.
这篇关于蚀中的Ads Mob Sdk更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!