InMobi / sdk-sample-code-android

This repository contains InMobi Android SDK sample code for different ad-formats, which publishers can use to incorporate in their apps — Edit
Apache License 2.0
38 stars 43 forks source link

Ads are not getting served! in andriod #82

Open hackrx opened 3 years ago

hackrx commented 3 years ago

Hi there Inmobi team, I was trying to test the InMobi integration first, then I cloned this repo and tried interstitial ad example, but it is not working as expected, on clicking of Load AD button, onAdLoadSuceed should be called, which makes Show AD button visible, but it is showing below error: image

My placement ID is : 1622978368011 My account ID is: 49c9360f99c344d9bac1b52c44886479 Module app gradle file:

plugins {
    id 'com.android.application'
}

android {
    compileSdkVersion 30
    buildToolsVersion "30.0.3"

    defaultConfig {
        applicationId "com.example.testapp"
        minSdkVersion 16
        targetSdkVersion 30
        versionCode 1
        versionName "1.0"
        multiDexEnabled true

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {

    implementation 'androidx.appcompat:appcompat:1.2.0'
    implementation 'com.google.android.material:material:1.3.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
    testImplementation 'junit:junit:4.+'
    //for ads 3
    implementation 'com.inmobi.monetization:inmobi-ads:9.1.9'
    implementation 'com.google.android.gms:play-services-ads-identifier:17.0.0'
    implementation 'com.google.android.gms:play-services-location:17.1.0'//optional dependency for better targeting
//for browser
    implementation 'androidx.browser:browser:1.3.0'
    implementation 'com.squareup.picasso:picasso:2.71828'
//    implementation 'com.android.support:support-v4:28.0.0'
    implementation 'androidx.recyclerview:recyclerview:1.1.0'
    androidTestImplementation 'androidx.test.ext:junit:1.1.2'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}

Also Global test mode is on for my placement ads: image

I even tried waiting for few minutes and try again tapping on Load AD but this error again shows up, please look into this issue. Thanks

HNY11 commented 3 years ago

the same issue, I have been trying for 3 days even test ads are not being served.

RHMDHDYT commented 2 years ago

I'm facing the same issue with the Banner Ads, It's been a week, and still not showing any Test Ads. I have already setup the project in the new dashboard (InMobi SSP). Please help.

sunilkuna5-inmobi commented 2 years ago

@RHMDHDYT @HNY11 @hackrx

I hope the issue resolved as our backend has improved the delivery of test ads.

Incase the issue still persists. Can any of you mention the error received in onAdLoadFailed ?