Admob Native Ads Not Working!

177 views
Skip to first unread message

Zayn Javadd

unread,
May 15, 2020, 8:30:42 AM5/15/20
to Google Mobile Ads SDK Developers
hello I have created a topic before but it did not help at all. can please write to help me "knowledgeable someone "?

https://groups.google.com/forum/#!category-topic/google-admob-ads-sdk/android/593hqfcYX2A

I have run a different activity today. (not main activity) and again no ads were shown. I received the error code 3 error in logcat in the onAdFailedToLoad method. I really do not understand. please review it. everything you need is here .. https://github.com/theoyuncu8/nativetest  After then I have to add this into recyclerview. I also want to ask one more question Is it legal to add banner ads into recyclerview? I saw examples in github but this is said to be forbidden


I want to add native ads to my app but I couldn't (in recyclerview) then I created the test ad and tried it like that but it still didn't

Mobile Ads SDK Forum Advisor Prod

unread,
May 15, 2020, 10:39:51 AM5/15/20
to zaynja...@gmail.com, google-adm...@googlegroups.com
Hi Zayn,

Thank you for bringing this issue to our attention.

I was wondering if it would be possible for you to send us a sample of the implementation that you are using so that w can look over the code and help to give you the best advise. I would also suggest that you check out the Native Ads documentation that talks about this.

Also as a side not implementing Native Ads in a recyclerView tends to be a more complex implementation of the Native Ads for reasons of recursion and use of an arrayList usually.

Also here is our Github sample. Which is a banner implementation, but I would need to look further into that. 

Regards,
William Pescherine
Mobile Ads SDK Team

 

ref:_00D1U1174p._5004Q1zpXro:ref

Zayn Javadd

unread,
May 15, 2020, 2:50:50 PM5/15/20
to Google Mobile Ads SDK Developers
WTF! Are you a robot? I don't understand, you just want to keep me entertained. I've already sent you the code. HERE https://github.com/theoyuncu8/nativetest 

15 Mayıs 2020 Cuma 17:39:51 UTC+3 tarihinde mobileadssdkforumadvisor yazdı:

Mobile Ads SDK Forum Advisor Prod

unread,
May 15, 2020, 3:10:35 PM5/15/20
to zaynja...@gmail.com, google-adm...@googlegroups.com
Hi Zayn,

I was able to look over the previous code sample that you sent in. And I will need answers to a few questions.
  • You started by saying you saw error 3, this is an ad serving issue which has nothing to do with SDK. And is a back end issue that we are unable to help you with.
  • Now you are getting an error 0. This is an implementation issue which would say that your request are not being properly sent out.
  • So again having looked over the code snippet that you sent us. What IDE are you using? Android SDK? Some 3rd party universal IDE
  • Also here is a sample app from  our Github that shows you how to implement a Native ad.
  • Can you please also send us the full implementation so we can look over everything, XML, manifest, gradle included. 

Zayn Javadd

unread,
May 15, 2020, 5:26:39 PM5/15/20
to google-adm...@googlegroups.com
I don't send the entire application, sorry, I have special codes. The codes on this GitHub that I sent you are simple codes that work on a new activity. I am initializing Admob in MainActivity, pressing the button, switching to NativeTestActivity. Then the ad does not appear. I am looking through the help of the listener constantly falling onFailedLoad section. It says 3 in the Toast message. that is all.. Line https://github.com/theoyuncu8/nativetest/blob/master/NativeTest.java#L52

@Override
    public void onAdFailedToLoad(int errorCode) {
       Toast.makeText(context, "code " + errorCode, Toast.LENGTH_SHORT).show();
}




15 Mayıs 2020 Cuma 22:10:35 UTC+3 tarihinde mobileadssdkforumadvisor yazdı:
Message has been deleted

Zayn Javadd

unread,
May 16, 2020, 10:30:28 AM5/16/20
to Google Mobile Ads SDK Developers
hello?

15 Mayıs 2020 Cuma 22:10:35 UTC+3 tarihinde mobileadssdkforumadvisor yazdı:
Hi Zayn,

Mobile Ads SDK Forum Advisor Prod

unread,
May 17, 2020, 9:57:53 PM5/17/20
to zaynja...@gmail.com, google-adm...@googlegroups.com

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?

  • Ad unit ID/s affected
  • Copy of a sample project (replicating the issue; must be ready-to-run)
  • Steps to replicate the issue

 

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

Zayn Javadd

unread,
May 18, 2020, 12:49:11 PM5/18/20
to Google Mobile Ads SDK Developers
It is normal for such an error because there was no "google-services.json" file among the codes I sent you. The problem is that native ads normally work on your test project, but it isn't appearing when I add the google_services file to the project. I recommend you to convey this urgently

18 Mayıs 2020 Pazartesi 04:57:53 UTC+3 tarihinde mobileadssdkforumadvisor yazdı:

Mobile Ads SDK Forum Advisor Prod

unread,
May 18, 2020, 2:13:04 PM5/18/20
to zaynja...@gmail.com, google-adm...@googlegroups.com
Hi Zayn,

Kindly note that this forum can only support implementing the Mobile Ads SDK into apps. Error code 3 is an ad inventory issue that is supported in the AdMob Forum. With that being said I can tell you that I have heard that An AdMob account needs more setup to access Native Ads inventory. I have also heard that app publishers have experienced lack of ad inventory for Native Ads when using their own app bundle Id's with test ads while banner ads serving wasn't affected by this. To have a more set up account and to diagnose error code 3 issues I suggest that you head to the AdMob Forum which is the forum that deals with account setup and ad inventory.

If you are experiencing a problem with implementing the SDK into your app we would like a sample app replicating your problem. If you have confidentially concerns you can send an app via "Reply privately to author". Without a sample we can only suggest instead of fix.

Regards,
Aryeh Baker

Zayn Javadd

unread,
May 18, 2020, 8:53:46 PM5/18/20
to Google Mobile Ads SDK Developers
I created a simple project for you. please review https://github.com/theoyuncu8/ExampleNativeTest

18 Mayıs 2020 Pazartesi 21:13:04 UTC+3 tarihinde mobileadssdkforumadvisor yazdı:

Mobile Ads SDK Forum Advisor Prod

unread,
May 19, 2020, 2:13:01 AM5/19/20
to zaynja...@gmail.com, google-adm...@googlegroups.com

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

native_ads.mp4

Zayn Javadd

unread,
May 19, 2020, 7:35:09 AM5/19/20
to Google Mobile Ads SDK Developers
this is already correct and working. examine the codes, I have commented on native ads. they work but look at the build.gradle file (app and project)
// apply plugin: 'com.google.gms.google-services'
native ads do not appear when you enable this and add the project to firebase (with test ID). If you have a project registered in Firebase with google_service.json file, add it to it and try it

19 Mayıs 2020 Salı 09:13:01 UTC+3 tarihinde mobileadssdkforumadvisor yazdı:

Mobile Ads SDK Forum Advisor Prod

unread,
May 19, 2020, 1:30:52 PM5/19/20
to zaynja...@gmail.com, google-adm...@googlegroups.com
Hi Zayn,

Thank you for responding back and lettings know what is happening.

From what it sounds like is that you are having more of an issue with the Firebase then. Which is not a product that we are able to offer support on. I would suggest that you contact the Firebase Support Page , and see if they can better help you as they are more equipped to handle questions such as that. As well as checking out the links that Ziv gave you previously.

Also you can check out more of the Firebase documents to get a better understanding of that system.

Regards,
William Pescherine

Zayn Javadd

unread,
May 19, 2020, 8:55:42 PM5/19/20
to Google Mobile Ads SDK Developers
no one is helping there .. i want to ask one more thing i have added banner advertising into recyclerview. how many per items should I show these ads.? The size of the item is 164 dp

19 Mayıs 2020 Salı 20:30:52 UTC+3 tarihinde mobileadssdkforumadvisor yazdı:

Mobile Ads SDK Forum Advisor Prod

unread,
May 19, 2020, 10:47:51 PM5/19/20
to zaynja...@gmail.com, google-adm...@googlegroups.com

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



ref:_00D1U1174p._5004Q1zpXro:ref

Zayn Javadd

unread,
May 20, 2020, 2:17:04 PM5/20/20
to Google Mobile Ads SDK Developers
It is really bad that there is no exact information. I looked at the examples and since there is usually an ad impression per 8 items, I did so .. I hope there is a new update or notification for native ads. Thank you for your help

20 Mayıs 2020 Çarşamba 05:47:51 UTC+3 tarihinde mobileadssdkforumadvisor yazdı:

Mobile Ads SDK Forum Advisor Prod

unread,
May 20, 2020, 4:45:17 PM5/20/20
to zaynja...@gmail.com, google-adm...@googlegroups.com
Hi Zayn,

I would say to follow along with what you saw in the sample app. And just look at our release notes. As things are always changing and new stuff is always happening.

And if there is something that you wish we could talk about more or felt like was missing please let us know and we can pass it along to our team.

Regards,
William Pescherine
Reply all
Reply to author
Forward
0 new messages