Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown Error : Banner Ad #26

Closed
KChavda18 opened this issue Apr 23, 2017 · 1 comment
Closed

Unknown Error : Banner Ad #26

KChavda18 opened this issue Apr 23, 2017 · 1 comment

Comments

@KChavda18
Copy link

KChavda18 commented Apr 23, 2017

Code Implementation :
AdView adView = new AdView(this, "271995593270465_271996219937069", AdSize.BANNER_HEIGHT_50);//438544203147216_438545493147087
AdSettings.addTestDevice(hashKey());
adViewContainer.addView(adView);
adView.setAdListener(new AdListener() {
@OverRide
public void onError(Ad ad, AdError adError) {
Toast.makeText(MainActivity.this, "Error: " + adError.getErrorMessage(), Toast
.LENGTH_LONG).show();
}

        @Override
        public void onAdLoaded(Ad ad) {
            Toast.makeText(MainActivity.this, "Ad loaded!", Toast.LENGTH_LONG).show();
        }

        @Override
        public void onAdClicked(Ad ad) {
            Toast.makeText(MainActivity.this, "Ad clicked!", Toast.LENGTH_LONG).show();
        }

        @Override
        public void onLoggingImpression(Ad ad) {
            Toast.makeText(MainActivity.this, "onLogging", Toast.LENGTH_LONG).show();
        }
    });
    adView.loadAd();

But, it's toast Unknown error

Help me to short out this issue....

@L33tcodex0r
Copy link
Contributor

271995593270465_271996219937069 is not valid, it doesn't belong to a valid app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants