displayInterstital

319 views
Skip to first unread message

klr kili

unread,
Nov 5, 2013, 7:00:40 AM11/5/13
to google-adm...@googlegroups.com
   hi i'am on unity i try prime31 AdMobAndroid.displayInterstital();
 
and when's happen my apps reboot
 
i see that's in logcat
 
W/AdsProvider(13898): No active account or specified account could not be found; aborting
I/Ads     (14354): To get test ads on this device, call adRequest.addTestDevice("7BBFCAA106C4911666DD90C4D5FA9D0D");

William Ferguson

unread,
Nov 6, 2013, 12:54:03 AM11/6/13
to google-adm...@googlegroups.com
It sounds like you are not providing a valid adUnitId.

William

Eric Leichtenschlag

unread,
Nov 6, 2013, 9:09:11 PM11/6/13
to google-adm...@googlegroups.com
The AdsProvider log is not related to the SDK, and the second line means you are requesting live ads, not test ads. As for the reboot, there must be some more useful logs, but my guess is it's an issue with Unity and/or the plugin you're using not playing well with the Google Mobile Ads SDK.

Thanks,
Eric

klr kili

unread,
Nov 17, 2013, 6:34:17 AM11/17/13
to google-adm...@googlegroups.com

yes it's look like that's how it's possible to know why my  adUnitId is not valid ? plz 

Eric Leichtenschlag

unread,
Nov 19, 2013, 12:54:54 AM11/19/13
to google-adm...@googlegroups.com
This log:


I/Ads     (14354): To get test ads on this device, call adRequest.addTestDevice("7BBFCAA106C4911666DD90C4D5FA9D0D");

means that you are requesting live ads, not test ads. It doesn't provide any indication that your ad unit is incorrect. There should be additional logs which would provide more insight into the problem. Do you have any additional logging with the "Ads" tag?

klr kili

unread,
Nov 19, 2013, 5:33:31 AM11/19/13
to google-adm...@googlegroups.com
full log
thank's for help
logcat.txt

Eric Leichtenschlag

unread,
Nov 19, 2013, 8:18:12 PM11/19/13
to google-adm...@googlegroups.com
Hmm, I would ask the prime31 support team why this may be happening. It was tough to read the logs, but everthing looked fine from an AdMob perspective through the onPresentScreen() call. This is just a theory, but maybe Unity just doesn't like the AdMob activity presenting over it, and it thinks that because it isn't active it just shuts down. I haven't tried interstitials on Unity, but the prime31 team may have run across this issue before and would have a better idea on how to work around it.

Thanks,
Eric

klr kili

unread,
Nov 26, 2013, 9:42:58 AM11/26/13
to google-adm...@googlegroups.com
admob reply me 

It seems like you are not setting the ad unit ID correctly when integrating the SDK. Unfortunately, at the moment, the AdMob support team is not able to assist publisher with SDK integration issues.

app id ? is not the same of requestInterstital ? 

Eric Leichtenschlag

unread,
Nov 26, 2013, 2:10:15 PM11/26/13
to google-adm...@googlegroups.com
You are setting the ad unit ID correctly. I can see that from the logs. If you weren't, you wouldn't even get an ad back and would never have the opportunity to present the interstitial.

I still think that the problem is related to Unity. And the prime31 team whose plugin you're using would have the most knowledge on what's going on here.

Thanks,
Eric

klr kili

unread,
Dec 4, 2013, 7:24:42 AM12/4/13
to google-adm...@googlegroups.com
It's look working now but only one time i must resquest another intertitial for this work always ?
 
 i got maninesft trouble for this working with admob and chartboost at same time !? 
i got somethinks like this
 
<?xml version="1.0" encoding="utf-8"?>
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.unity3d.player"
 android:installLocation="preferExternal"
 android:theme="@android:style/Theme.NoTitleBar"
    android:versionCode="1"
    android:versionName="1.0">
    <supports-screens
        android:smallScreens="true"
        android:normalScreens="true"
        android:largeScreens="true"
        android:xlargeScreens="true"
        android:anyDensity="true"/>
    <application
  android:icon="@drawable/app_icon"
        android:label="@string/app_name"
        android:debuggable="true">
        <activity android:name="com.prime31.UnityPlayerProxyActivity" android:screenOrientation="landscape"
                  android:launchMode="singleTask"
                  android:label="@string/app_name"
                  android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name="com.prime31.UnityPlayerActivity" android:screenOrientation="landscape"
                  android:launchMode="singleTask"
                  android:label="@string/app_name"
                  android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
        </activity>
        <activity android:name="com.prime31.UnityPlayerNativeActivity" android:screenOrientation="landscape"
                  android:launchMode="singleTask"
                  android:label="@string/app_name"
                  android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
            <meta-data android:name="android.app.lib_name" android:value="unity" />
            <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" />
        </activity>
   
      <activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
   <receiver android:name="com.google.ads.InstallReceiver" android:exported="true">
    <intent-filter>
     <action android:name="com.android.vending.INSTALL_REFERRER" /> 
    </intent-filter>
   </receiver>
   <activity android:name="com.chartboost.sdk.CBDialogActivity"
    android:configChanges="orientation|keyboard|keyboardHidden"
    android:windowSoftInputMode="adjustResize"
    android:theme="@android:style/Theme.Translucent"
    android:launchMode="singleTop">
   </activity>
   <activity android:name="com.chartboost.sdk.CBImpressionActivity" android:excludeFromRecents="true" android:theme="@android:style/Theme.Translucent.NoTitleBar"/>
      <activity android:name="com.prime31.EtceteraProxyActivity" android:configChanges="orientation|screenLayout|screenSize|smallestScreenSize"></activity>
   <activity android:name="com.prime31.WebViewActivity" android:configChanges="keyboardHidden|orientation|screenSize"></activity>
   <activity android:name="com.prime31.P31VideoPlayerActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenSize"></activity>
   <receiver android:name="com.prime31.AlarmManagerReceiver"></receiver>
  <meta-data android:name="com.prime31.ChartboostPlugin" android:value="UnityPlayerActivityProxy"/>
</application>
     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
   <uses-permission android:name="android.permission.WAKE_LOCK" />
  <uses-permission  android:name="android.permission.INTERNET"/>
     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
  <uses-permission android:name="android.permission.GET_TASKS"/>
</manifest>

Eric Leichtenschlag

unread,
Dec 4, 2013, 8:51:09 PM12/4/13
to google-adm...@googlegroups.com
Looks ok to me from an AdMob perspective. My only recommendation would be adding <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" /> inside the UnityPlayerProxyActivity, since Unity required this tag inside the UnityPlayerProxyActivity instead of the UnityPlayerNativeActivity starting in Unity 4.3 in order for banner ads to be clickable. I'm not sure if that affects interstitials or not, but is worth adding anyways.

Thanks,
Eric

Abdul Ahad

unread,
Jan 6, 2014, 7:29:47 AM1/6/14
to google-adm...@googlegroups.com

Hi,

Can u post an example code on how u implemented interstitial on android using admob...
i have been sick of implementing it and got zero output.... Though i got banner ads to work... but got stuck in interstitial ads...

Will u please guide..?

Thanks in advance...

Eric Leichtenschlag

unread,
Jan 7, 2014, 2:31:47 PM1/7/14
to google-adm...@googlegroups.com
Hi Abdul,

I'm assuming you're talking about Unity. kir kill was using the Prime31 plugin whose documentation is http://prime31.com/docs#androidAdmob.

Thanks,
Eric
Reply all
Reply to author
Forward
0 new messages