Keep getting error code: 0

660 views
Skip to first unread message

Pei-shiou Huang

unread,
Aug 27, 2017, 11:15:07 PM8/27/17
to Google Mobile Ads SDK Developers
I recently created 3 ad units, all have been created for over 48 hours, but I'm still getting error code 0.  I don't know whether they are still the same cases as https://groups.google.com/forum/#!category-topic/google-admob-ads-sdk/android/fBe3YL3ffpo

Could you help me clarify the problems? 

MobileAds.initialize(this, "ca-app-pub-4260727147522571~3548533282");
AdLoader adLoader = new AdLoader.Builder(itemView.getContext(), unitId).forAppInstallAd(new      NativeAppInstallAd.OnAppInstallAdLoadedListener() {
            @Override
            public void onAppInstallAdLoaded(NativeAppInstallAd appInstallAd) {
                Log.e("test", "onAppInstallAdLoaded");
            }
        })
                .forContentAd(new NativeContentAd.OnContentAdLoadedListener() {
                    @Override
                    public void onContentAdLoaded(NativeContentAd contentAd) {
                        Log.e("test", "onContentAdLoaded");
                    }
                })
                .withAdListener(new com.google.android.gms.ads.AdListener() {
                    @Override
                    public void onAdFailedToLoad(int errorCode) {
                        Log.e("test", "onAdFailedToLoad errorCode=" + errorCode);
                    }
                })
                .withNativeAdOptions(new NativeAdOptions.Builder()
                        // Methods in the NativeAdOptions.Builder class can be
                        // used here to specify individual options settings.
                        .build()).build();


        // Request an ad
        adLoader.loadAd(new AdRequest.Builder().build());



Unit ids
ca-app-pub-4260727147522571/1037593938 // native ad
ca-app-pub-9278043223227236/6470540559 // native ad
ca-app-pub-9278043223227236/6995130643 // banner

Btw, the test unit ids from the guide work fine.


Bharani Cherukuri (Mobile Ads SDK Team)

unread,
Aug 28, 2017, 1:00:41 PM8/28/17
to Google Mobile Ads SDK Developers
Hello,

Thank you for contacting us and providing the details. I was able to load ads with your Ad Unit IDs using our NativeExpress and Banner ads sample apps. Can you confirm if you're able to load ads with our sample apps on your end? Sometimes there might be an issue with the package name, can you try changing your package name and then load the ads again? Also, can you make sure you do not have any Ad Blocker installed on your device?

Let me know if this works for you.

Regards,
Bharani Cherukuri
Mobile Ads SDK Team. 

Pei-shiou Huang

unread,
Aug 28, 2017, 11:21:59 PM8/28/17
to Google Mobile Ads SDK Developers
Hi,

Thank you for getting back to me. I've tested the sample apps, NativeExpress and Banner, both of them could load the ads on my devices.
But I'm still getting error code 0 with NativeAdvanced unless requesting ads with addTestDevice("B52FCB340DCF7235B49B2A20E47B7158").

However, we want to customize the ad layout for our apps. Could you help us clarify this problem? Thanks.

Bharani Cherukuri (Mobile Ads SDK Team)

unread,
Aug 29, 2017, 1:54:03 PM8/29/17
to Google Mobile Ads SDK Developers
Hello, 

Thank you for providing the details. Native Ads Advanced is currently in a limited beta release. If you're interested in participating, you will have to reach out to your Technical Account Manager (TAM) to enroll to the beta program. If you've already enrolled to this program, do let us know and we can investigate the issue further. Also, can you make sure that you do not have any Ad Blocker installed on your device?

Can you explain in detail about your specific concerns on customizing the ad layout? If it is about displaying your own ads in your application, you can achieve this by using Campaign ads which lets you design and serve your own ads known as House Ads. This lets you advertise a specific website and/or a mobile application. 

Let me know if you have any other questions, I'll be happy to assist you.

Regards,
Bharani Cherukuri
Mobile Ads SDK Team

On Sunday, August 27, 2017 at 11:15:07 PM UTC-4, Pei-shiou Huang wrote:

Ccio Casts

unread,
Nov 10, 2017, 4:55:37 AM11/10/17
to Google Mobile Ads SDK Developers
Hi, sorry to interrupt but I am also having this issue for over a week now.
My app have been working fine for months and suddenly stopped serving ads, when I checked with log cat i see error code 0.
I didn't get any ads disablement emails or alert of any kind.

Can you be of any assistance?

Bharani Cherukuri (Mobile Ads SDK Team)

unread,
Nov 10, 2017, 2:45:02 PM11/10/17
to Google Mobile Ads SDK Developers
Hello, 

Thank you for contacting us. Can you provide us your Ad Unit ID and the device details used for testing, so we can take a look and assist you further? You can provide us your Ad Unit ID using the Reply privately to author option. 

Regards,
Bharani Cherukuri
Mobile Ads SDK Team

On Sunday, August 27, 2017 at 11:15:07 PM UTC-4, Pei-shiou Huang wrote:
Reply all
Reply to author
Forward
0 new messages