我已经安装AdMob添加我的应用程序正确,这是早期的工作,但现在它停止显示广告,并给出流动错误:AdMob广告停在一个应用中展示
09-25 23:39:26.919: I/Ads(22050): App index is not enabled
09-25 23:39:30.432: E/Ads(28874): JS: Uncaught ReferenceError: renderAd is not defined (https://googleads.g.doubleclick.net/mads/gma:1)
09-25 23:39:30.442: E/Ads(28874): JS: Uncaught ReferenceError: onLoad is not defined (https://googleads.g.doubleclick.net/mads/gma:1)
09-25 23:39:30.442: I/Ads(28874): Scheduling ad refresh 60000 milliseconds from now.
09-25 23:39:30.472: I/Ads(28874): Ad finished loading.
请告诉我奇怪的是,它开始显示,如果我的广告更改我的应用程序的软件包名称,有没有人面临同样的问题或我的问题的任何解决方案?
我用以下单位的广告ID:这是在说明中提供获得测试广告
继
<string name="banner_ad_unit_id">ca-app-pub-3940256099942544/6300978111</string>
是我mainActivity.java代码:
AdView mAdView = (AdView) findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder().build();
mAdView.loadAd(adRequest);
请给我的解决方案对此问题...
以下是Manifest.xml cod for admob:
<!-- Include required permissions for Google Mobile Ads to run-->
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<!--Include the AdActivity configChanges and theme. -->
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:theme="@android:style/Theme.Translucent" />
你的清单文件呢? – GmloMalo
也许这可以是你的答案:https://groups.google.com/forum/#!topic/google-admob-ads-sdk/HI9zQ0dfGHc – GmloMalo
@GmloMalo更新我的问题与清单鳕鱼 – Darshan