There was a problem getting an ad response. ErrorCode: 0

1,117 views
Skip to first unread message

Rahul Kumawat

unread,
Jan 8, 2018, 6:16:52 AM1/8/18
to Google Mobile Ads SDK Developers
My code : 

Ad Unit Id : -->  ca-app-pub-6238033164794295~5567477524

MobileAds.initialize(this, "ca-app-pub-6238033164794295~5567477524");

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



Error Response :

There was a problem getting an ad response. ErrorCode: 0
01-08 16:43:40.250 29018-29018/com.codecanyon.hidephotovideo W/Ads: Failed to load ad: 0
01-08 16:43:40.286 29018-29031/com.codecanyon.hidephotovideo W/Ads: There was a problem getting an ad response. ErrorCode: 0
01-08 16:43:40.286 29018-29018/com.codecanyon.hidephotovideo W/Ads: Failed to load ad: 0

Deepika Uragayala- MobileAds SDK team

unread,
Jan 8, 2018, 3:14:52 PM1/8/18
to Google Mobile Ads SDK Developers
Hi Rahul,

Thanks for sending your App Id. Looks like you are trying to load ad with your App Id. You would have to make an Ad request with your Ad unit Id. You can read the difference between Ad Unit Id and App Id in this page. Try to load ad again with your Ad Unit Id and let us know if you still continue to have issues. We will be happy to help you.

Regards,
Deepika Uragayala
Mobile Ads SDK Team

Message has been deleted

Deepika Uragayala- MobileAds SDK team

unread,
Jan 9, 2018, 3:25:50 PM1/9/18
to Google Mobile Ads SDK Developers
Hi Rahul,

I have to re-post your concern as it contains your Ad Unit Id which is considered confidential information. Please avoid posting confidential information in the public forum.

That said, below is the copy of your original post with the masked information.
Hello Deepika

i am getting same issue again.

i am share all detail and code with you. please help me out to resolve.

<string name="admob_app_id">ca-app-pub-XXXXXXXX~XXXXXXXX</string>
<string name="banner_home_footer">ca-app-pub-XXXXXXXX/XXXXXXXX</string>
<string name="interstitial_full_screen">ca-app-pub-XXXXXXXX/XXXXXXXX</string>

<com.google.android.gms.ads.AdView
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"
ads:adSize="BANNER"
ads:adUnitId="@string/banner_ad_id"></com.google.android.gms.ads.AdView>

AdView mAdView = (AdView) findViewById(R.id.adView);

AdRequest adRequest = new AdRequest.Builder().build();
mAdView.loadAd(adRequest);

Thanks & Regards,
Rahul Kumawat

Deepika Uragayala- MobileAds SDK team

unread,
Jan 9, 2018, 3:28:08 PM1/9/18
to Google Mobile Ads SDK Developers
Hi Rahul,

I was able to load live ads with the Ad Unit Ids which you have shared without any issues using our sample app. Could you test your Ad Unit Id with the sample app as well and see if the issue is reproducible on your end? Also, can you try changing your Package name and see If you were able to load ads on a different network and on a different device? If you are not able to load ads with your package name, I would suggest that you contact our AdMob Product Support Team by sending your Package name and affected Ad unit Ids and they will assist you further. If that is not the case, please send us complete device logs and Charles logs for us to debug further.

Regards,
Deepika Uragayala
Mobile Ads SDK Team


Rahul Kumawat

unread,
Jan 9, 2018, 11:26:19 PM1/9/18
to Deepika Uragayala- MobileAds SDK team, Google Mobile Ads SDK Developers
Hello Deepika

Now Issue has resolved. Thanks for your support.

Thanks & Regards,
Rahul Kumawat

--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/7T_KSO5lbZY/unsubscribe.
To unsubscribe from this group and all its topics, 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/8ddcc0be-7e45-4885-ac9d-3b246fdd168b%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages