| @Override | |
| public void onAdFailedToLoad(int errorCode) { | |
| Toast.makeText(context, "code " + errorCode, Toast.LENGTH_SHORT).show(); | |
| } | |
Hi Zayn,
Hi Zayn,
Thank you for providing further details on your concern.
I checked out the code you've provided, and tried integrating it on a blank Android project. The project failed to build with the following error: "File google-services.json is missing. The Google Services Plugin cannot function without it."
With this in mind, could you kindly provide the details below (via Reply privately to author) in order for us to make any further progress in our investigation?
As an aside with regard to your concern on RecyclerView banner ads: while we do have an example code for this, I would strongly suggest reaching out to the AdMob Help Center instead for further inquiries on the policy behind it, as I'm afraid that we can only assist you on technical concerns with the AdMob SDK. The product specialists there should be able to provide better insights on such concerns.
Regards,
Ziv Yves Sanchez
Hi Zayn,
Thank you for providing a sample project.
I tested the sample project on my end, and can confirm that I was getting test ads from it (see attached video). There doesn't seem to be any issue with the code you've provided as well. Thus, implementation-wise, there should be not be any issues on the SDK side.
Going back to your mentions of the error code 3 message: this occurs when there are no ads that could be displayed for your app, due to limited ad inventory. You may want to double check if you've completed the setup of your AdMob account, particularly the billing and PIN verification sections. For this specific issue, I would recommend reaching out to the AdMob Help Center for further assistance, as they should be able to provide better insights on this.
Regards,
Ziv Yves Sanchez
Hi Zayn,
I'm sorry to hear about your experience with Firebase support; I hope that you get a response from them soon.
As for your question regarding the number of items in between ads in a RecyclerView: while there is no official guidance on this particular concern, I believe that five items for every ad shown does sound like a good starting point. You may want to reach out to the AdMob Help Center for this particular question, as the product specialists there might be able to offer better insights on this.
Regards,
Ziv Yves Sanchez
Mobile Ads SDK Team