I have implemented Unity Ads in my game and its showing test ads perfectly fine in many devices such as Xiaomi Mi 4 LTE(Android 6.0.1), Galaxy S2 (4.1.2) and Xiaomi Redmi 2 Prime (Android 5.1.1), Xiaomi Mi Pad 2 (Android 5.1) etc. But its not showing Ads in Nexus 5 (Android 6.0.1). The Unity Version I’m using is Unity 5.3.4f1.
Here is the code that I have used in my game:
public void ShowRewardedAd()
{
Debug.Log("Rewarded Ad 1 "+Advertisement.IsReady("rewardedVideo"));
if (Advertisement.IsReady("rewardedVideo"))
{
Debug.Log("Rewarded Ad");
var options = new ShowOptions { resultCallback = HandleShowResult };
Advertisement.Show("rewardedVideo", options);
}
}
private void HandleShowResult(ShowResult result)
{
switch (result)
{
case ShowResult.Finished:
Debug.Log("The ad was successfully shown.");
break;
case ShowResult.Skipped:
Debug.Log("The ad was skipped before reaching the end.");
break;
case ShowResult.Failed:
Debug.LogError("The ad failed to be shown.");
break;
}
}
public void showInterstitialAd()
{
Debug.Log("Called Unity Ad Function "+Advertisement.IsReady());
if (Advertisement.IsReady())
{
Advertisement.Show();
}
}
In Nexus 5, Advertisement.IsReady() is always giving false. So Advertisement is not showing in Nexus 5, where as in other tested devices mentioned above, it is always giving true for the same app apk. All the devices are connected to the same WiFI network. Still Ad is not loading in Nexus 5. I have checked the logcat and can’t find any particular error for the Unity Ads when running in Nexus 5. Can someone please help me in this issue. Is this any bug in the UnityAds?
Would expect device log (logcat) to have the relevant information. Can you post that?
/Rasmus
Here is the Logcat log from Nexus 5.
12-28 13:06:41.111: I/ActivityManager(777): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.csharks.highwaydriver3d/com.unity3d.player.UnityPlayerProxyActivity (has extras)} from uid 10021 on display 0
12-28 13:06:41.163: I/ActivityManager(777): Start proc 11436:com.csharks.highwaydriver3d/u0a140 for activity com.csharks.highwaydriver3d/com.unity3d.player.UnityPlayerProxyActivity
12-28 13:06:41.251: I/ActivityManager(777): START u0 {flg=0x10000 cmp=com.csharks.highwaydriver3d/com.unity3d.player.UnityPlayerActivity (has extras)} from uid 10140 on display 0
12-28 13:06:41.269: W/Binder_4(805): type=1400 audit(0.0:370): avc: denied { ioctl } for path=“socket:[50855]” dev=“sockfs” ino=50855 ioctlcmd=7704 scontext=u:r:surfaceflinger:s0 tcontext=u:r:surfaceflinger:s0 tclass=unix_stream_socket permissive=0
12-28 13:06:41.269: W/Binder_4(805): type=1400 audit(0.0:371): avc: denied { ioctl } for path=“socket:[50855]” dev=“sockfs” ino=50855 ioctlcmd=7704 scontext=u:r:surfaceflinger:s0 tcontext=u:r:surfaceflinger:s0 tclass=unix_stream_socket permissive=0
12-28 13:06:41.279: W/Binder_4(1088): type=1400 audit(0.0:372): avc: denied { ioctl } for path=“socket:[56199]” dev=“sockfs” ino=56199 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0
12-28 13:06:41.279: W/Binder_4(1088): type=1400 audit(0.0:373): avc: denied { ioctl } for path=“socket:[56199]” dev=“sockfs” ino=56199 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0
12-28 13:06:41.359: W/Binder_C(3174): type=1400 audit(0.0:374): avc: denied { ioctl } for path=“socket:[51851]” dev=“sockfs” ino=51851 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0
12-28 13:06:41.359: W/Binder_C(3174): type=1400 audit(0.0:375): avc: denied { ioctl } for path=“socket:[51851]” dev=“sockfs” ino=51851 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0
12-28 13:06:41.447: I/ActivityManager(777): Displayed com.csharks.highwaydriver3d/com.unity3d.player.UnityPlayerActivity: +163ms (total +294ms)
12-28 13:06:41.439: W/Binder_E(3217): type=1400 audit(0.0:376): avc: denied { ioctl } for path=“socket:[54084]” dev=“sockfs” ino=54084 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0
12-28 13:06:41.449: W/Binder_E(3217): type=1400 audit(0.0:377): avc: denied { ioctl } for path=“socket:[54084]” dev=“sockfs” ino=54084 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0
12-28 13:06:41.449: W/Binder_10(4870): type=1400 audit(0.0:378): avc: denied { ioctl } for path=“socket:[54083]” dev=“sockfs” ino=54083 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0
12-28 13:06:41.449: W/Binder_10(4870): type=1400 audit(0.0:379): avc: denied { ioctl } for path=“socket:[54083]” dev=“sockfs” ino=54083 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0
12-28 13:06:41.536: I/Adreno-EGL(11436): <qeglDrvAPI_eglInitialize:379>: QUALCOMM Build: 10/21/15, 369a2ea, I96aee987eb
12-28 13:06:41.543: W/Adreno-EGL(11436): <qeglDrvAPI_eglGetConfigAttrib:607>: EGL_BAD_ATTRIBUTE
12-28 13:06:41.543: W/Adreno-EGL(11436): <qeglDrvAPI_eglGetConfigAttrib:607>: EGL_BAD_ATTRIBUTE
12-28 13:06:41.564: D/Unity(11436): GL_AMD_compressed_ATC_texture GL_AMD_performance_monitor GL_AMD_program_binary_Z400 GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_robustness GL_EXT_texture_format_BGRA8888 GL_EXT_texture_type_2_10_10_10_REV GL_NV_fence GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth_texture GL_OES_depth24 GL_OES_EGL_image GL_OES_EGL_sync GL_OES_EGL_image_external GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_fragment_precision_high GL_OES_get_program_binary GL_OES_packed_depth_stencil GL_OES_depth_texture_cube_map GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_3D GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_half_float GL_OES_vertex_type_10_10_10_2 GL_OES_vertex_array_object GL_QCOM_alpha_test GL_QCOM_binning_control GL_QCOM_driver_control GL_QCOM_perfmon_global_mode GL_QCOM_extended_get GL_QCOM_extended_get2 GL_QCOM_tiled_rendering GL_QCOM_writeonly_rendering GL_EXT_sRGB GL_EXT_sRGB_write_control GL_EXT_
12-28 13:06:41.564: D/Unity(11436): texture_sRGB_decode GL_EXT_texture_filter_anisotropic GL_EXT_multisampled_render_to_texture GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_EXT_disjoint_timer_query
12-28 13:06:41.664: W/libc(11436): pthread_create sched_setscheduler call failed: Operation not permitted
12-28 13:06:41.676: W/GeofencerStateMachine(1662): Ignoring removeGeofence because network location is disabled.
12-28 13:06:41.677: W/GeofencerStateMachine(1662): Ignoring removeGeofence because network location is disabled.
12-28 13:06:41.679: D/audio_hw_primary(199): out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2
12-28 13:06:41.689: D/audio_hw_primary(199): select_devices: out_snd_device(2: speaker) in_snd_device(0: none)
12-28 13:06:41.689: D/msm8974_platform(199): platform_send_audio_calibration: sending audio calibration for snd_device(2) acdb_id(15)
12-28 13:06:41.689: D/audio_hw_primary(199): enable_snd_device: snd_device(2: speaker)
12-28 13:06:41.692: D/audio_hw_primary(199): enable_audio_route: apply and update mixer path: low-latency-playback
12-28 13:06:42.029: W/Binder_E(3217): type=1400 audit(0.0:380): avc: denied { ioctl } for path=“socket:[56211]” dev=“sockfs” ino=56211 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0
12-28 13:06:42.029: W/Binder_E(3217): type=1400 audit(0.0:381): avc: denied { ioctl } for path=“socket:[56211]” dev=“sockfs” ino=56211 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0
12-28 13:06:42.545: W/SensorService(777): sensor 00000000 already enabled in connection 0xab40e9a0 (ignoring)
12-28 13:06:42.732: I/Unity(11436): [Play Games Plugin DLL] 12/28/16 13:06:42 +05:30 DEBUG: Activating PlayGamesPlatform.
12-28 13:06:42.732: I/Unity(11436):
12-28 13:06:42.732: I/Unity(11436): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
12-28 13:06:42.734: I/Unity(11436): [Play Games Plugin DLL] 12/28/16 13:06:42 +05:30 DEBUG: PlayGamesPlatform activated: GooglePlayGames.PlayGamesPlatform
12-28 13:06:42.734: I/Unity(11436):
12-28 13:06:42.734: I/Unity(11436): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
12-28 13:06:42.735: I/Unity(11436): [Play Games Plugin DLL] 12/28/16 13:06:42 +05:30 DEBUG: Creating platform-specific Play Games client.
12-28 13:06:42.735: I/Unity(11436):
12-28 13:06:42.735: I/Unity(11436): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
12-28 13:06:42.736: I/Unity(11436): [Play Games Plugin DLL] 12/28/16 13:06:42 +05:30 DEBUG: Creating Android IPlayGamesClient Client
12-28 13:06:42.736: I/Unity(11436):
12-28 13:06:42.736: I/Unity(11436): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
12-28 13:06:42.763: D/GamesUnitySDK(11436): Performing Android initialization of the GPG SDK
12-28 13:06:42.842: I/Unity(11436): Building GPG services, implicitly attempts silent auth
12-28 13:06:42.842: I/Unity(11436):
12-28 13:06:42.842: I/Unity(11436): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
12-28 13:06:42.862: W/PopupManager(11436): You have not specified a View to use as content view for popups. Falling back to the Activity content view. Note that this may not work as expected in multi-screen environments
12-28 13:06:42.864: I/GamesNativeSDK(11436): Auth operation started: SIGN IN
12-28 13:06:42.864: I/GamesNativeSDK(11436): Connecting to Google Play…
12-28 13:06:42.900: W/GamesServiceBroker(1848): Client connected with SDK 8487000, Services 10084438, and Games 39080038
12-28 13:06:43.007: W/GamesServiceBroker(1848): Client connected with SDK 8487000, Services 10084438, and Games 39080038
12-28 13:06:43.035: V/com.facebook.unity.FB(11436): SetUserAgentSuffix(Unity.7.8.0)
12-28 13:06:43.121: V/com.facebook.unity.FB(11436): Init({“appId”:“455850217903283”})
12-28 13:06:43.152: I/Unity(11436): Using Facebook Unity SDK v7.8.0 with FBAndroidSDK/4.14.0
12-28 13:06:43.152: I/Unity(11436):
12-28 13:06:43.152: I/Unity(11436): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
12-28 13:06:43.154: D/com.facebook.unity.FB(11436): KeyHash: ChuwNSyClP//SAjq1t3/QWFZulg=
12-28 13:06:43.155: V/com.facebook.unity.FB(11436): sending to Unity OnInitComplete({“key_hash”:“ChuwNSyClP//SAjq1t3/QWFZulg=\n”})
12-28 13:06:43.202: I/Unity(11436): Success - Check log for details
12-28 13:06:43.202: I/Unity(11436): Success Response: OnInitComplete Called
12-28 13:06:43.202: I/Unity(11436):
12-28 13:06:43.202: I/Unity(11436): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
12-28 13:06:43.373: W/Conscrypt(1662): Could not set socket write timeout: null
12-28 13:06:43.373: W/Conscrypt(1662): Could not set socket write timeout: null
12-28 13:06:43.403: W/Conscrypt(1662): Could not set socket write timeout: null
12-28 13:06:43.486: W/Conscrypt(1662): Could not set socket write timeout: null
12-28 13:06:43.486: W/Conscrypt(1662): Could not set socket write timeout: null
12-28 13:06:43.495: W/Conscrypt(1662): Could not set socket write timeout: null
12-28 13:06:43.620: D/NetlinkSocketObserver(777): NeighborEvent{elapsedMs=6161737, 192.168.0.1, [30469A824FC4], RTM_NEWNEIGH, NUD_REACHABLE}
12-28 13:06:45.156: W/AppOps(777): Bad call: specified package com.google.android.play.games under uid 10140 but it is really 10060
12-28 13:06:45.255: W/GamesServiceBroker(1848): Client connected with SDK 8487000, Services 10084438, and Games 39080038
12-28 13:06:45.288: I/Unity(11436): Failed
12-28 13:06:45.288: I/Unity(11436):
12-28 13:06:45.288: I/Unity(11436): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
12-28 13:06:45.293: V/GamesNativeSDK(11436): Play Games callback indicates connection.
12-28 13:06:45.298: D/WifiService(777): acquireWifiLockLocked: WifiLock{MetadataSyncService type=1 binder=android.os.BinderProxy@55fe4a5}
12-28 13:06:45.300: I/GamesNativeSDK(11436): Successfully connected to Google Play.
12-28 13:06:45.387: I/Unity(11436): [Play Games Plugin DLL] 12/28/16 13:06:45 +05:30 DEBUG: Starting Auth Transition. Op: SIGN_IN status: VALID
12-28 13:06:45.387: I/Unity(11436):
12-28 13:06:45.387: I/Unity(11436): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
12-28 13:06:45.397: I/Unity(11436): [Play Games Plugin DLL] 12/28/16 13:06:45 +05:30 DEBUG: Entering internal callback for PlayerManager#InternalFetchSelfCallback
12-28 13:06:45.397: I/Unity(11436):
12-28 13:06:45.397: I/Unity(11436): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
12-28 13:06:45.400: I/Unity(11436): [Play Games Plugin DLL] 12/28/16 13:06:45 +05:30 DEBUG: Populating User
12-28 13:06:45.400: I/Unity(11436):
12-28 13:06:45.400: I/Unity(11436): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
12-28 13:06:45.408: I/Unity(11436): [Play Games Plugin DLL] 12/28/16 13:06:45 +05:30 DEBUG: Found User: [Player: ‘sharksguy’ (id g09085258601010557524)]
12-28 13:06:45.408: I/Unity(11436):
12-28 13:06:45.408: I/Unity(11436): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
12-28 13:06:45.408: I/Unity(11436): [Play Games Plugin DLL] 12/28/16 13:06:45 +05:30 DEBUG: Maybe finish for User
12-28 13:06:45.408: I/Unity(11436):
12-28 13:06:45.408: I/Unity(11436): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
12-28 13:06:45.409: I/Unity(11436): [Play Games Plugin DLL] 12/28/16 13:06:45 +05:30 DEBUG: Auth not finished. User=[Player: ‘sharksguy’ (id g09085258601010557524)] achievements=
12-28 13:06:45.409: I/Unity(11436):
12-28 13:06:45.409: I/Unity(11436): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
12-28 13:06:45.454: W/libc(11436): pthread_create sched_setscheduler call failed: Operation not permitted
12-28 13:06:45.595: W/Conscrypt(1662): Could not set socket write timeout: null
12-28 13:06:45.627: W/Conscrypt(1662): Could not set socket write timeout: null
12-28 13:06:45.659: I/Unity(11436): Game Level3
12-28 13:06:45.659: I/Unity(11436):
12-28 13:06:45.659: I/Unity(11436): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
12-28 13:06:45.958: W/AppOps(777): Bad call: specified package com.google.android.play.games under uid 10140 but it is really 10060
12-28 13:06:45.960: W/AppOps(777): Bad call: specified package com.google.android.play.games under uid 10140 but it is really 10060
12-28 13:06:47.747: W/AppOps(777): Bad call: specified package com.google.android.play.games under uid 10140 but it is really 10060
12-28 13:06:47.747: W/AppOps(777): Bad call: specified package com.google.android.play.games under uid 10140 but it is really 10060
12-28 13:06:47.752: W/AppOps(777): Bad call: specified package com.google.android.play.games under uid 10140 but it is really 10060
12-28 13:06:47.753: W/AppOps(777): Bad call: specified package com.google.android.play.games under uid 10140 but it is really 10060
12-28 13:06:47.761: W/AppOps(777): Bad call: specified package com.google.android.play.games under uid 10140 but it is really 10060
12-28 13:06:47.761: W/AppOps(777): Bad call: specified package com.google.android.play.games under uid 10140 but it is really 10060
12-28 13:06:47.763: I/Unity(11436): [Play Games Plugin DLL] 12/28/16 13:06:47 +05:30 DEBUG: Entering internal callback for AchievementManager#InternalFetchAllCallback
12-28 13:06:47.763: I/Unity(11436):
12-28 13:06:47.763: I/Unity(11436): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
12-28 13:06:47.771: I/Unity(11436): [Play Games Plugin DLL] 12/28/16 13:06:47 +05:30 DEBUG: Populating Achievements, status = VALID
12-28 13:06:47.771: I/Unity(11436):
12-28 13:06:47.771: I/Unity(11436): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
12-28 13:06:47.794: D/WifiService(777): releaseWifiLockLocked: WifiLock{MetadataSyncService type=1 binder=android.os.BinderProxy@55fe4a5}
12-28 13:06:47.803: I/Unity(11436): [Play Games Plugin DLL] 12/28/16 13:06:47 +05:30 DEBUG: Found 5 Achievements
12-28 13:06:47.803: I/Unity(11436):
12-28 13:06:47.803: I/Unity(11436): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
12-28 13:06:47.804: I/Unity(11436): [Play Games Plugin DLL] 12/28/16 13:06:47 +05:30 DEBUG: Maybe finish for Achievements
12-28 13:06:47.804: I/Unity(11436):
12-28 13:06:47.804: I/Unity(11436): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
12-28 13:06:47.804: I/Unity(11436): [Play Games Plugin DLL] 12/28/16 13:06:47 +05:30 DEBUG: Auth finished. Proceeding.
12-28 13:06:47.804: I/Unity(11436):
12-28 13:06:47.804: I/Unity(11436): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
12-28 13:06:47.804: I/Unity(11436): [Play Games Plugin DLL] 12/28/16 13:06:47 +05:30 DEBUG: Invoking Callbacks: System.Action`1[System.Boolean]
12-28 13:06:47.804: I/Unity(11436):
12-28 13:06:47.804: I/Unity(11436): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
12-28 13:06:47.815: I/Unity(11436): [Play Games Plugin DLL] 12/28/16 13:06:47 +05:30 DEBUG: Invoking user callback on game thread
12-28 13:06:47.815: I/Unity(11436):
12-28 13:06:47.815: I/Unity(11436): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
12-28 13:06:47.819: I/Unity(11436): Success Google Play Games
12-28 13:06:47.819: I/Unity(11436):
12-28 13:06:47.819: I/Unity(11436): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
12-28 13:06:48.407: I/Unity(11436): Sound: 1
12-28 13:06:48.407: I/Unity(11436):
12-28 13:06:48.407: I/Unity(11436): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
12-28 13:06:48.650: D/ConnectivityService(777): notifyType CAP_CHANGED for NetworkAgentInfo [WIFI () - 100]
12-28 13:06:50.396: W/art(11436): Native thread exiting without having called DetachCurrentThread (maybe it’s going to use a pthread_key_create destructor?): Thread[14,tid=11512,Native,Thread*=0xaee12100,peer=0x12e6f0a0,“main_dispatch”]
12-28 13:06:50.396: V/GamesNativeSDK(11436): Detaching from JVM on thread main_dispatch
12-28 13:06:51.672: D/ConnectivityService(777): notifyType CAP_CHANGED for NetworkAgentInfo [WIFI () - 100]
12-28 13:06:52.508: I/Unity(11436): LEngth of clip: 17.18855
12-28 13:06:52.508: I/Unity(11436):
12-28 13:06:52.508: I/Unity(11436): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
12-28 13:06:53.532: D/WifiStateMachine(777): starting scan for "GameNet-NetGear"WPA_PSK with 2437
12-28 13:06:55.490: D/NetlinkSocketObserver(777): NeighborEvent{elapsedMs=6173607, 192.168.0.1, [30469A824FC4], RTM_NEWNEIGH, NUD_STALE}
12-28 13:07:03.250: D/NetlinkSocketObserver(777): NeighborEvent{elapsedMs=6181367, 192.168.0.1, [30469A824FC4], RTM_NEWNEIGH, NUD_REACHABLE}
12-28 13:07:03.694: I/Unity(11436): Called Unity Ad Function False
12-28 13:07:03.694: I/Unity(11436):
12-28 13:07:03.694: I/Unity(11436): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
12-28 13:07:03.803: I/Unity(11436): LEngth of clip: 17.18855
12-28 13:07:03.803: I/Unity(11436):
12-28 13:07:03.803: I/Unity(11436): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
12-28 13:07:07.450: D/NetlinkSocketObserver(777): NeighborEvent{elapsedMs=6185567, 192.168.0.1, [30469A824FC4], RTM_NEWNEIGH, NUD_STALE}
12-28 13:07:03.694: I/Unity(11436): Called Unity Ad Function False.
Note that this is the line where Advertisement.IsReady() is giving false in Nexus 5.
Hi, I have posted the logcat log from the Nexus 5, after playing my game. Can you please check it.
Correct, not much useful information in that one.
I’m looking for something like following info in log:
You can filter Unity Ads relevant log message by using
/Rasmus
rasmus-unity:
Correct, not much useful information in that one.
I’m looking for something like following info in log:
You can filter Unity Ads relevant log message by using
/Rasmus
I’m using the automatic initialization of unity ads. So no separate initialization code is given in my game.
rasmus-unity:
Correct, not much useful information in that one.
I’m looking for something like following info in log:
You can filter Unity Ads relevant log message by using
/Rasmus
Its mentioned in this link that, Unity developer integration guides
. I have enabled Ads through the Services Window. So is it because of that, these logs given below are not showing in my game log in logcat?
rasmus-unity:
Correct, not much useful information in that one.
I’m looking for something like following info in log:
You can filter Unity Ads relevant log message by using
/Rasmus
I have also reported this issue via Unity and the link is given below. Hope it will be helpful for solving this issue.
https://fogbugz.unity3d.com/default.asp?865363
Thanks, I’ll take a look at the reported bug. However the posted log entries above was also from a project using engine Ads SDK integration.
And for future, when posting links to Fogbugz tickets, don’t include the part after the underscore, as this is an authentication token which gives anyone with that link access to e.g. files on the bug report. Perhaps we need to make this more clear than just “Note that sharing it will also share all your other cases and email conversations in them.” in the automated mail
/Rasmus
rasmus-unity:
Thanks, I’ll take a look at the reported bug. However the posted log entries above was also from a project using engine Ads SDK integration.
And for future, when posting links to Fogbugz tickets, don’t include the part after the underscore, as this is an authentication token which gives anyone with that link access to e.g. files on the bug report. Perhaps we need to make this more clear than just “Note that sharing it will also share all your other cases and email conversations in them.” in the automated mail
/Rasmus
Oops. Sorry. I didn’t think that it was an authentication token. I didn’t have experience in sharing the Fogbugz tickets. So that’s why it happened. Thanks for reminding me the consequences of it. Thanks for editing my reply too… Can you please check about this issue, as my game needs to be published soon.
Thanks.
Sorry, couldn’t find any relevant information in that Fogbugz ticket.
Could you please try to run
And verify that the log contains the “Initializing Unity Ads (…)” part. Alternatively somehow give us access to your project or apk file, so we can test here.
Thanks,
Rasmus
rasmus-unity:
Sorry, couldn’t find any relevant information in that Fogbugz ticket.
Could you please try to run
And verify that the log contains the “Initializing Unity Ads (…)” part. Alternatively somehow give us access to your project or apk file, so we can test here.
Thanks,
Rasmus
Hi,
I have uploaded the project to Google Drive and here is the link of it.
https://goo.gl/akvQAz
Can you please check it…
Its a test project created for demonstration. In that, in Nexus 5, the following screen is shown:
where as in other devices, this is shown.
Please note, that I have waited for more than 1 hour, still Ad is not ready in Nexus 5. where as in other devices, it usually takes less than 30 seconds to show that Ad is ready. So its not the issue of internet also. I hope this will help you.
Thanks
rasmus-unity:
Sorry, couldn’t find any relevant information in that Fogbugz ticket.
Could you please try to run
And verify that the log contains the “Initializing Unity Ads (…)” part. Alternatively somehow give us access to your project or apk file, so we can test here.
Thanks,
Rasmus
Also I got an error in the logcat like this:
This error was not seen in the original project.
Thanks for the updated logfile. In any case, since you are using older version of SDK (“sdkVersion=1506” = 1.5), I would recommend that you upgrade to SDK 2.0, in one of following ways:
Please let us know if upgrading to latest Unity/SDK version solves the issue.
/Rasmus
rasmus-unity:
Thanks for the updated logfile. In any case, since you are using older version of SDK (“sdkVersion=1506” = 1.5), I would recommend that you upgrade to SDK 2.0, in one of following ways:
Please let us know if upgrading to latest Unity/SDK version solves the issue.
/Rasmus
Thanks. It worked. I had integrated Unity Ads SDK 2.0 to my project having Unity 5.3.4 and Ads are now showing fine in Nexus 5. Thanks again for the help…
1 Like
Good. Thanks for the feedback.
/Rasmus
Mazyod
January 5, 2017, 11:57am
17
Thanks guys, was running into this issue today, and this saved me a lot of headache. I wish I can upgrade to 5.5, but still waiting on the 5.5.1 release to ensure some stability before publishing our game.
Mazyod
January 5, 2017, 12:11pm
18
After updating the project with the asset store package, it seems that that UNITY_ADS define is no longer available? What is the best approach to check if the current platform supports ads?
(NOTE: I’m using NGUI in my project, and it seems that NGUI overrides the project’s platform dependent defines and assigns the define NGUI there. Perhaps it is causing issues…?)
Mazyod
January 5, 2017, 12:57pm
19
For those scratching their heads like me on how to upgrade to Unity Ads 2.0 on previous Unity versions (pre-5.5.0), see the link below. Basically, you have to take a step back from the automatic initialization and follow the guide for a manual integration:
http://unityads.unity3d.com/help/monetization/2.0-upgrade-guide-unity
Is there any issue with the Unity Ads server? Today I’m not getting any test ads on my all devices. Ads are shown only once or twice when tested several times in many devices…