Search Unity

Unity Test ads not showing up after build and run to Android device

Discussion in 'Unity Ads' started by shadowhunterX21, Apr 16, 2019.

  1. shadowhunterX21

    shadowhunterX21

    Joined:
    Mar 3, 2019
    Posts:
    7
    Hi, first post to these forums. So I made a game in which the player can click on a button to display an ad so that they get an extra life. I don't know what's wrong, but when I build and run to my android phone, when I click on that button, nothing happens. The test ad does not show up. It works fine in the editor, but not on my phone.
     

    Attached Files:

  2. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    5,135
  3. shadowhunterX21

    shadowhunterX21

    Joined:
    Mar 3, 2019
    Posts:
    7
    Unity Ads initialized: True
    UnityEngine.DebugLogHandler:Internal_Log()
    UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    UnityEngine.Logger:Log(LogType, Object)
    UnityEngine.Debug:Log(Object)
    App_Initialize:Start() (at Assets\Scripts\App_Initialize.cs:42)
    (Filename: Assets/Scripts/App_Initialize.cs Line: 42)

    Unity Ads is supported: True
    UnityEngine.DebugLogHandler:Internal_Log()
    UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    UnityEngine.Logger:Log(LogType, Object)
    UnityEngine.Debug:Log(Object)
    App_Initialize:Start() (at Assets\Scripts\App_Initialize.cs:43)

    The first debug() statement is true though.
     
  4. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    5,135
    Ah I see, you have automatic initialization, understood.
     
  5. shadowhunterX21

    shadowhunterX21

    Joined:
    Mar 3, 2019
    Posts:
    7
    Thanks for the links, and yes I do have a placement called "test", but I still cannot get the test ads to show up on my android phone. Here is the logs from the command line when I run the app.

    04-17 12:25:29.147 2574 2605 I ActivityManager: Force finishing activity ActivityRecord{c7e84aa u0 com.Company.BalloonBeachRun/com.unity3d.player.UnityPlayerActivity t18453}
    04-17 12:25:30.968 2574 3820 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.Company.BalloonBeachRun/com.unity3d.player.UnityPlayerActivity} from uid 2000
    04-17 12:25:31.013 2574 12779 I ActivityManager: Start proc 8273:com.Company.BalloonBeachRun/u0a226 for activity com.Company.BalloonBeachRun/com.unity3d.player.UnityPlayerActivity
    04-17 12:25:31.155 2574 2644 I ActivityManager: Displayed com.Company.BalloonBeachRun/com.unity3d.player.UnityPlayerActivity: +150ms
    04-17 12:25:31.349 8273 8292 I Unity : SystemInfo CPU = ARMv7 VFPv3 NEON, Cores = 8, Memory = 7714mb
    04-17 12:25:31.349 8273 8292 I Unity : SystemInfo ARM big.LITTLE configuration: 4 big (mask: 0xf0), 4 little (mask: 0xf)
    04-17 12:25:31.349 8273 8292 I Unity : ApplicationInfo com.Company.BalloonBeachRun version 0.1 build 2b02c899-0fd8-4184-8e1c-baf05c4cab38
    04-17 12:25:31.349 8273 8292 I Unity : Built from '2018.3/release' branch, Version '2018.3.5f1 (76b3e37670a4)', Build type 'Release', Scripting Backend 'mono', CPU 'armeabi-v7a'
    04-17 12:25:31.497 8273 8292 D Unity : GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_vertex_half_float GL_OES_framebuffer_object GL_OES_rgb8_rgba8 GL_OES_compressed_ETC1_RGB8_texture GL_AMD_compressed_ATC_texture GL_KHR_texture_compression_astc_ldr GL_KHR_texture_compression_astc_hdr GL_OES_texture_compression_astc GL_OES_texture_npot GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_OES_texture_3D GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_QCOM_alpha_test GL_OES_depth24 GL_OES_packed_depth_stencil GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_EXT_sRGB GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_EXT_texture_type_2_10_10_10_REV GL_EXT_texture_sRGB_decode GL_OES_element_index_uint GL_EXT_copy_image GL_EXT_geometry_shader GL_EXT_tessellation_shader GL_OES_texture_stencil8 GL_EXT_shader_io_blocks GL_OES_shader_image_atomic GL_OES_sample_variables GL_EXT_texture_border_clamp GL_EXT_multisampled_render_to_texture GL_EXT_mul
    04-17 12:25:31.497 8273 8292 D Unity : tisampled_render_to_texture2 GL_OES_shader_multisample_interpolation GL_EXT_texture_cube_map_array GL_EXT_draw_buffers_indexed GL_EXT_gpu_shader5 GL_EXT_robustness GL_EXT_texture_buffer GL_EXT_shader_framebuffer_fetch GL_ARM_shader_framebuffer_fetch_depth_stencil GL_OES_texture_storage_multisample_2d_array GL_OES_sample_shading GL_OES_get_program_binary GL_EXT_debug_label GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_QCOM_tiled_rendering GL_ANDROID_extension_pack_es31a GL_EXT_primitive_bounding_box GL_OES_standard_derivatives GL_OES_vertex_array_object GL_EXT_disjoint_timer_query GL_KHR_debug GL_EXT_YUV_target GL_EXT_sRGB_write_control GL_EXT_texture_norm16 GL_EXT_discard_framebuffer GL_OES_surfaceless_context GL_OVR_multiview GL_OVR_multiview2 GL_EXT_texture_sRGB_R8 GL_KHR_no_error GL_EXT_debug_marker GL_OES_EGL_image_external_essl3 GL_OVR_multiview_multisampled_render_to_texture GL_EXT_buffer_storage GL_EXT_external_buffer GL_EXT_blit_framebuffer_params GL_EXT_clip_cull_distance
    04-17 12:25:31.497 8273 8292 D Unity : GL_EXT_protected_textures GL_EXT_shader_non_constant_global_initializers GL_QCOM_texture_foveated GL_QCOM_shader_framebuffer_fetch_noncoherent GL_EXT_memory_object GL_EXT_memory_object_fd GL_EXT_EGL_image_array GL_NV_shader_noperspective_interpolation
    04-17 12:25:31.445 8273 8292 I chatty : uid=10226(com.Company.BalloonBeachRun) UnityMain identical 14 lines
    04-17 12:25:34.337 8273 8292 D UnityAds: com.unity3d.services.core.misc.Utilities.writeFile() (line:127) :: Wrote file: /data/user/0/com.Company.BalloonBeachRun/files/UnityAdsStorage-public-data.json
    04-17 12:25:34.338 8273 8292 D UnityAds: com.unity3d.services.core.device.Storage.sendEvent() (line:81) :: Couldn't send storage event to WebApp
    04-17 12:25:34.340 8273 8292 D UnityAds: com.unity3d.services.core.misc.Utilities.writeFile() (line:127) :: Wrote file: /data/user/0/com.Company.BalloonBeachRun/files/UnityAdsStorage-public-data.json
    04-17 12:25:34.340 8273 8292 D UnityAds: com.unity3d.services.core.device.Storage.sendEvent() (line:81) :: Couldn't send storage event to WebApp
    04-17 12:25:34.341 8273 8292 D UnityAds: com.unity3d.services.ads.UnityAdsImplementation.initialize() (line:45) :: ENTERED METHOD
    04-17 12:25:34.341 8273 8292 D UnityAds: com.unity3d.services.UnityServices.initialize() (line:41) :: ENTERED METHOD
    04-17 12:25:34.342 8273 8292 I UnityAds: com.unity3d.services.UnityServices.initialize() (line:77) :: Initializing Unity Services 3.0.3 (3003) with game id 3064769 in test mode
    04-17 12:25:34.346 8273 8292 I UnityAds: com.unity3d.services.UnityServices.initialize() (line:90) :: Unity Services environment check OK
    04-17 12:25:34.356 8273 8292 I Unity : Unity Ads initialized: True
    04-17 12:25:34.356 8273 8292 I Unity :
    04-17 12:25:34.356 8273 8292 I Unity : (Filename: ./Runtime/Export/Debug.bindings.h Line: 45)
    04-17 12:25:34.356 8273 8292 I Unity :
    04-17 12:25:34.360 8273 8292 I Unity : Unity Ads is supported: True
    04-17 12:25:34.360 8273 8292 I Unity :
    04-17 12:25:34.360 8273 8292 I Unity : (Filename: ./Runtime/Export/Debug.bindings.h Line: 45)
    04-17 12:25:34.360 8273 8292 I Unity :
    04-17 12:25:34.419 8273 8352 I UnityAds: com.unity3d.services.core.configuration.InitializeThread$InitializeStateConfig.execute() (line:191) :: Unity Ads init: load configuration from https://config.unityads.unity3d.com/webview/3.0.3/release/config.json
    04-17 12:25:43.187 8273 8352 I UnityAds: com.unity3d.services.core.configuration.InitializeThread$InitializeStateLoadWeb.execute() (line:268) :: Unity Ads init: loading webapp from https://webview.unityads.unity3d.co...c706a8aec448a68a69bd8811fb/release/index.html
    04-17 12:25:50.062 8273 8524 I UnityAds: com.unity3d.services.core.api.Sdk.logInfo() (line:69) :: Requesting configuration from https://publisher-config.unityads.u....5f1&adapterName=Packman&adapterVersion=3.0.3
    04-17 12:25:50.293 8273 8524 I UnityAds: com.unity3d.services.core.api.Sdk.logInfo() (line:69) :: Received configuration for token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWMiOjE1OSwiY3BpIjo4OSwiaWFwIjo4NiwibHR2IjoxMzcsInBybyI6MTE5LCJ4cHIiOjEyMSwic3ViIjoiV2dXR1k1MXVUMFF0S3dqTTRjVGMrREhxaVF0Y3EzVGZMYXhWTDVkem9OUFJSVFVHY1dlS29wNHFTYlhzNmhSVTNzTE9jUT09IiwiaWF0IjoxNTU1NTI5MTUxLCJleHAiOjE1NTY3Mzg3NTEsImlzcyI6ImNvbWV0LnVuaXR5YWRzLnVuaXR5M2QuY29tIn0.ykEfdbntrSvPzx3oPuv56Siqw2zEExLsZjH1fODnnTs (A/B group 1)
    04-17 12:25:50.349 8273 8524 I UnityAds: com.unity3d.services.core.api.Sdk.logInfo() (line:69) :: TestMode delegate is set
    04-17 12:25:50.381 8273 8273 I chromium: [INFO:CONSOLE(4204)] "Uncaught (in promise) [object Array]", source: file:///storage/emulated/0/Android/data/com.Company.BalloonBeachRun/cache/UnityAdsCache/UnityAdsWebApp.html?platform=android&origin=https%3A%2F%2Fwebview.unityads.unity3d.com%2Fwebview%2F3.0.3%2F3e090e16fee5dac706a8aec448a68a69bd8811fb%2Frelease%2Findex.html&version=3e090e16fee5dac706a8aec448a68a69bd8811fb (4204)
    04-17 12:25:50.397 8273 8524 I UnityAds: com.unity3d.services.core.api.Sdk.logInfo() (line:69) :: Requesting ad plan from https://auction.unityads.unity3d.co...eight=2416&connectionType=wifi&networkType=13
    04-17 12:25:50.398 8273 8273 I chromium: [INFO:CONSOLE(0)] "Uncaught (in promise) [object Array]", source: file:///storage/emulated/0/Android/data/com.Company.BalloonBeachRun/cache/UnityAdsCache/UnityAdsWebApp.html?platform=android&origin=https%3A%2F%2Fwebview.unityads.unity3d.com%2Fwebview%2F3.0.3%2F3e090e16fee5dac706a8aec448a68a69bd8811fb%2Frelease%2Findex.html&version=3e090e16fee5dac706a8aec448a68a69bd8811fb (0)
    04-17 12:25:50.832 8273 8524 I UnityAds: com.unity3d.services.core.api.Sdk.logInfo() (line:69) :: AdPlan received with 2 campaigns and refreshDelay 3600
    04-17 12:25:50.859 2278 2278 I ExtendedUtils: printFileName fd(15) -> /storage/emulated/0/Android/data/com.Company.BalloonBeachRun/cache/UnityAdsCache/UnityAdsCache-d35290f6a7fa18743ebb3ccda4c1cc0dc200baa1cf271e212b410ff0d64d078a.mp4
    04-17 12:25:51.823 8273 8273 I chromium: [INFO:CONSOLE(4204)] "Uncaught (in promise) [object Array]", source: file:///storage/emulated/0/Android/data/com.Company.BalloonBeachRun/cache/UnityAdsCache/UnityAdsWebApp.html?platform=android&origin=https%3A%2F%2Fwebview.unityads.unity3d.com%2Fwebview%2F3.0.3%2F3e090e16fee5dac706a8aec448a68a69bd8811fb%2Frelease%2Findex.html&version=3e090e16fee5dac706a8aec448a68a69bd8811fb (4204)
    04-17 12:27:07.521 8273 8292 E Unity : NullReferenceException: Object reference not set to an instance of an object
    04-17 12:27:07.521 8273 8292 E Unity : at Player.OnTriggerEnter (UnityEngine.Collider other) [0x0001d] in <3865175858a445fb9f0b894506b9ee6a>:0
    04-17 12:27:07.521 8273 8292 E Unity :
    04-17 12:27:07.521 8273 8292 E Unity : (Filename: <3865175858a445fb9f0b894506b9ee6a> Line: 0)
    04-17 12:27:07.521 8273 8292 E Unity :
    04-17 12:27:12.507 2574 3440 W InputDispatcher: channel '2d8d582 com.Company.BalloonBeachRun/com.unity3d.player.UnityPlayerActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
    04-17 12:27:12.507 2574 3440 E InputDispatcher: channel '2d8d582 com.Company.BalloonBeachRun/com.unity3d.player.UnityPlayerActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
    04-17 12:27:12.509 2574 4340 I WindowManager: WIN DEATH: Window{2d8d582 u0 com.Company.BalloonBeachRun/com.unity3d.player.UnityPlayerActivity}
    04-17 12:27:12.509 2574 4340 W InputDispatcher: Attempted to unregister already unregistered input channel '2d8d582 com.Company.BalloonBeachRun/com.unity3d.player.UnityPlayerActivity (server)'