2015-09-26 46 views
1

我已经安装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" /> 
+0

你的清单文件呢? – GmloMalo

+0

也许这可以是你的答案:https://groups.google.com/forum/#!topic/google-admob-ads-sdk/HI9zQ0dfGHc – GmloMalo

+0

@GmloMalo更新我的问题与清单鳕鱼 – Darshan

回答

1

Whats strange is it starts showing ads if i change the package name of my app

通常这意味着,由于某种原因,你的应用程序已经暂停了AdMob的。我首先建议检查您的AdMob帐户是否有良好信誉。

+0

我是新来的这个,我只有一个横幅广告和我的帐户看起来很好,我也没有得到任何警告,因为你说我的应用程序可能会被暂停,你可以告诉我在什么情况下我的应用程序可以被暂停?我已阅读所有说明和常见问题,但我无法弄清楚会导致我的应用程序暂停的原因。 – Darshan

+0

如果您的应用程序已被暂停,您必须收到一封包含原因的电子邮件。一个原因可能是您没有使用测试广告,而是使用真实广告在调试时进行测试 – GmloMalo