Search Unity

unity ads Advertisement.IsReady(placementId) always false

Discussion in 'Unity Ads & User Acquisition' started by manlokw, Mar 27, 2019.

  1. manlokw

    manlokw

    Joined:
    Apr 11, 2018
    Posts:
    4
    I already work the Unity Ads before. When I export the Android project and use the gradle to build, I cannot show the ads. I make sure the gameID and placementID is correct. My game is launched on the play store. That version is work.

    Does anybody know why I get false?


    // GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN
    buildscript {
    repositories {
    jcenter()
    }

    dependencies {
    classpath 'com.android.tools.build:gradle:2.3.0'
    }
    }

    allprojects {
    repositories {
    flatDir {
    dirs 'libs'
    }
    }
    }

    apply plugin: 'com.android.application'

    dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:multidex:1.0.1'
    compile project(':fabric-init')
    compile project(':fabric')
    compile project(':crashlytics')
    compile project(':crashlytics-wrapper')
    compile project(':answers')
    compile project(':beta')
    compile project(':Firebase')
    compile project(':OneSignalConfig')
    compile project(':SuperAwesome_lib')
    compile project(':unity-android-resources')
    compile files('libs/unity-classes.jar')
    compile(name: 'common', ext: 'aar')
    compile(name: 'GoogleAIDL', ext: 'aar')
    compile(name: 'GooglePlay', ext: 'aar')
    compile(name: 'Helpshift', ext: 'aar')
    compile(name: 'com.android.support.animated-vector-drawable-27.1.1', ext: 'aar')
    compile(name: 'com.android.support.appcompat-v7-27.1.1', ext: 'aar')
    compile(name: 'com.android.support.cardview-v7-27.1.1', ext: 'aar')
    compile(name: 'com.android.support.customtabs-27.1.1', ext: 'aar')
    compile(name: 'com.android.support.design-27.1.1', ext: 'aar')
    compile(name: 'com.android.support.recyclerview-v7-27.1.1', ext: 'aar')
    compile(name: 'com.android.support.support-compat-27.1.1', ext: 'aar')
    compile(name: 'com.android.support.support-core-ui-27.1.1', ext: 'aar')
    compile(name: 'com.android.support.support-core-utils-27.1.1', ext: 'aar')
    compile(name: 'com.android.support.support-fragment-27.1.1', ext: 'aar')
    compile(name: 'com.android.support.support-media-compat-27.1.1', ext: 'aar')
    compile(name: 'com.android.support.support-v4-27.1.1', ext: 'aar')
    compile(name: 'com.android.support.support-vector-drawable-27.1.1', ext: 'aar')
    compile(name: 'com.android.support.transition-27.1.1', ext: 'aar')
    compile(name: 'android.arch.core.runtime-1.1.0', ext: 'aar')
    compile(name: 'android.arch.lifecycle.livedata-core-1.1.0', ext: 'aar')
    compile(name: 'android.arch.lifecycle.runtime-1.1.0', ext: 'aar')
    compile(name: 'android.arch.lifecycle.viewmodel-1.1.0', ext: 'aar')
    compile(name: 'UnityAds', ext: 'aar')
    compile(name: 'com.google.android.gms.play-services-base-12.0.1', ext: 'aar')
    compile(name: 'com.google.android.gms.play-services-base-license-12.0.1', ext: 'aar')
    compile(name: 'com.google.android.gms.play-services-basement-12.0.1', ext: 'aar')
    compile(name: 'com.google.android.gms.play-services-basement-license-12.0.1', ext: 'aar')
    compile(name: 'com.google.android.gms.play-services-location-12.0.1', ext: 'aar')
    compile(name: 'com.google.android.gms.play-services-location-license-12.0.1', ext: 'aar')
    compile(name: 'com.google.android.gms.play-services-tasks-12.0.1', ext: 'aar')
    compile(name: 'com.google.android.gms.play-services-tasks-license-12.0.1', ext: 'aar')
    compile(name: 'com.google.firebase.firebase-common-12.0.1', ext: 'aar')
    compile(name: 'com.google.firebase.firebase-common-license-12.0.1', ext: 'aar')
    compile(name: 'com.google.firebase.firebase-iid-12.0.1', ext: 'aar')
    compile(name: 'com.google.firebase.firebase-iid-license-12.0.1', ext: 'aar')
    compile(name: 'com.google.firebase.firebase-messaging-12.0.1', ext: 'aar')
    compile(name: 'com.google.firebase.firebase-messaging-license-12.0.1', ext: 'aar')
    compile(name: 'installreferrer-1.0', ext: 'aar')
    compile(name: 'onesignal-unity', ext: 'aar')
    compile(name: 'com.google.android.gms.play-services-iid-12.0.1', ext: 'aar')
    }

    android {
    compileSdkVersion 26
    buildToolsVersion '26.0.1'

    defaultConfig {
    targetSdkVersion 26
    applicationId 'com.animocabrands.google.beastquesttd'
    multiDexEnabled true
    }

    lintOptions {
    abortOnError false
    }

    aaptOptions {
    noCompress '.unity3d', '.ress', '.resource', '.obb'
    }

    signingConfigs {
    release {
    storeFile file("xxxx")
    storePassword 'xxxx'
    keyAlias 'xxx'
    keyPassword 'xxxx'
    }
    }

    buildTypes {
    debug {
    jniDebuggable true
    }
    release {
    // Set minifyEnabled to true if you want to run ProGuard on your project
    minifyEnabled true
    proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt'
    signingConfig signingConfigs.release
    }
    }
    }
     
    Last edited: Mar 27, 2019
  2. Unity-Boon

    Unity-Boon

    Unity Technologies

    Joined:
    Jan 18, 2017
    Posts:
    135
    Hi,

    Can you send the error logs to unityads-support@unity3d.com? We are happy to investigate further into the issue you are facing. Thanks.

    --
    Unity Services Support
     
  3. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446