AdMob Ads not show with Test App Id & Unit Id ERROR_CODE_NO_FILL Got

138 views
Skip to first unread message

Hasib Akter

unread,
Oct 8, 2018, 9:01:40 AM10/8/18
to Google Mobile Ads SDK Developers
Now fisrt time I'm try to use AdMob ads on my Android App.

I follow All documentation of google and try to Implement Admob Banner and InterstitialAd.

I use Test app id & unit id but every time onAdFailedToLoad(ERROR_CODE_NO_FILL) listener call.

I follow all google documentation but then also for both Admob Banner and InterstitialAd why return ERROR_CODE_NO_FILL error?

Please Look my Code:


//  -----------------------------  Main Activity  -----------------------------------
MobileAds.initialize(this, "ca-app-pub-3940256099942544~3347511713");

AdView adView = findViewById(R.id.adView2);
AdRequest adRequest = new AdRequest.Builder().build();
adView.loadAd(adRequest);

adView.setAdListener(new AdListener(){
@Override
public void onAdLoaded() {
Toast.makeText(MainActivity.this, "Ad Load", Toast.LENGTH_SHORT).show();
super.onAdLoaded();
}

@Override
public void onAdFailedToLoad(int i) {
super.onAdFailedToLoad(i);
Toast.makeText(MainActivity.this, "Ad Failed "+ i, Toast.LENGTH_SHORT).show();
}
});


// --------------------------------- Xml --------------------------------

<com.google.android.gms.ads.AdView
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:id="@+id/adView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
ads:adSize="BANNER"
ads:adUnitId="ca-app-pub-3940256099942544/6300978111"/>

// --------------------------------- Meta Data ---------------------------

<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-3940256099942544~3347511713"/>

// -------------------------------- Permission -------------------------

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>

mobileadssdk-a...@google.com

unread,
Oct 8, 2018, 3:53:07 PM10/8/18
to Hasib Akter, Google Mobile Ads SDK Developers
Hi there,

Thanks for reaching out to us. This is a known issue and it was reported by few users yesterday and our team is looking into it. We will update you via this thread as soon as possible.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/39abfb49-8907-4300-b937-0861a7277bd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

428...@gmail.com

unread,
Oct 23, 2018, 4:36:54 AM10/23/18
to google-adm...@googlegroups.com
I have the same problem as you, and I never get an advertisement.

mobileadssdk-a...@google.com

unread,
Oct 23, 2018, 3:46:53 PM10/23/18
to 428...@gmail.com, Google Mobile Ads SDK Developers
Hi there,

Can you please elaborate your issue for us to assist you further? The issue on this thread is about loading sample Ad Unit Ids for Android. Are you having trouble loading a test Ad or your own Ad unit Id? Can you please send your Ad unit Id for us to test it on our end? You can use "Reply Privately To Author" option to send the details privately.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 10/23/18 04:36:53 428...@gmail.com wrote:


Hasib Akter于2018年10月8日星期一UTC+8下午9时01分40秒写道:
现在,我尝试在我的Android应用上使用AdMob广告。

我按照谷歌的所有文档,尝试实施Admob Banner和InterstitialAd

我使用Test app id和unit id但每次都在onAdFailedToLoad(ERROR_CODE_NO_FILL收听电话。

我遵循所有谷歌文档,但随后也为Admob Banner和InterstitialAd返回 ERROR_CODE_NO_FILL error?

Please Look my Code:


// - - - - - - - - - - - - - - - 主要活动 - - - - - - - - - ------------- -----
MobileAds.initialize(this“ca-app-pub-3940256099942544~ 3347511713); 

AdView adView = findViewById(R.id.adView2);
AdRequest adRequest = new AdRequest.Builder()。build();
adView.loadAd(AdRequest中);

adView.setAdListener(new AdListener(){
@
Override public void onAdLoaded(){ Toast.makeText(MainActivity.The th is“Ad Load”Toast.LENGTH_SHORT).show(); super .onAdLoaded(); } @Override public void onAdFailedToLoad(int





i){
super .onAdFailedToLoad(i);
Toast.makeText(MainActivity 就是“广告失败” + 1,吐司。LENGTH_SHORT).show();
}
};


// ------------------------------ --- Xml -------------- ---------------- -

< com.google.android.gms.ads。AdView中
的xmlns:广告= HTTP://模式android.com/apk/res-auto机器人:ID = “@ + ID / adView2” 的android :layout_width = “wrap_ 内容” 机器人:layout_height = “wrap_ 内容” 机器人:layout_marginStart = 8dp” android :layout_marginEnd = “8dp” android :layout_marginBottom = 8dp” app :layout_constraintBottom_ toBottomOf = “parent” app







toEndOf = “parent”
app :layout_constraintStart_ toStartOf = “parent” ads :adSize = “BANNER” ads :adUnitId =
Reply all
Reply to author
Forward
0 new messages