Skip to content

Interstitial does't show #1

@mkaflowski

Description

@mkaflowski

Hello. Thank you for that library. I have a problem with interstitial. It doesn't show and I don't get any messages in logcat. My json:

{
"apps": [
{
"app_title": "App Name (Dialog)",
"app_desc": "Your App's description",
"app_icon": "https://lh3.googleusercontent.com/LNU3wSeIqCtYvvbcklHr4mAQbG4EAVZ_kamQZ_6ECmyYqudAX3FoZy42bIGnSj3pFE5n=s360-rw",
"app_header_image": "https://lh3.googleusercontent.com/jGNuhkp16zXN5njRuUcEEqeoEtxzyoo2V20r6-gPxRBd01kPDPpTqOEPy1gs33uef5w=w2880-h1438-rw",
"app_uri": "https://play.google.com/store/apps/details?id=fm.radio.sanity.radiofm",
"app_rating": "4.5",
"app_cta_text": "Install",
"app_price": "Free",
"app_adType": "dialog"
},
{
"app_title": "App Name (Dialog)",
"app_desc": "Your App's description",
"app_icon": "https://lh3.googleusercontent.com/LNU3wSeIqCtYvvbcklHr4mAQbG4EAVZ_kamQZ_6ECmyYqudAX3FoZy42bIGnSj3pFE5n=s360-rw",
"app_header_image": "https://lh3.googleusercontent.com/jGNuhkp16zXN5njRuUcEEqeoEtxzyoo2V20r6-gPxRBd01kPDPpTqOEPy1gs33uef5w=w2880-h1438-rw",
"app_uri": "https://play.google.com/store/apps/details?id=fm.radio.sanity.radiofm",
"app_rating": "4.5",
"app_cta_text": "Install",
"app_price": "Free",
"app_adType": "interstitial"
}
]
}
final HouseAdsInterstitial interstitial = new HouseAdsInterstitial(MainActivity.this);
        interstitial.setUrl("myURL"); //URL to Json File
        interstitial.loadAd();
        interstitial.setAdListener(new AdListener() {
            @Override
            public void onAdLoadFailed() {
                Log.w("xsa","onAdLoadFailed");

            }

            @Override
            public void onAdLoaded() {
                interstitial.show();
                Log.w("xsa","onAdLoaded");
            }

            @Override
            public void onAdClosed() {

            }

            @Override
            public void onAdShown() {

            }

            @Override
            public void onApplicationLeft() {
                Log.w("xsa","onAdLoadFailed");

            }
        });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions