Search Unity

[SOLVED] UnityAds 2.0 not calling my callback

Discussion in 'Unity Ads' started by JoshuaMarkk, Aug 26, 2016.

  1. JoshuaMarkk

    JoshuaMarkk

    Joined:
    Oct 27, 2015
    Posts:
    13
    So I have something like this:

    Code (CSharp):
    1.  
    2. private void RewardAdCallback(ShowResult result)
    3. {
    4.     if (result == ShowResult.Finished)
    5.     {
    6.         // Give reward...
    7.     }
    8. }
    9.  
    10. private IEnumerator TryShowingReward()
    11. {
    12.     float startTime = Time.time;
    13.  
    14.     if (!Advertisement.isInitialized)
    15.     {
    16.         Advertisement.Initialize(gameId, true);
    17.     }
    18.  
    19.     while (!Advertisement.IsReady("rewardedVideoZone"))
    20.     {
    21.         float time = Time.time - startTime;
    22.         yield return new WaitForSeconds(0.5f);
    23.  
    24.         // if unable to load the ad before timeout, give up and give the player their reward anyway
    25.         if (time > loadTimeout)
    26.         {
    27.             RewardAdCallback(ShowResult.Finished);
    28.             yield break;
    29.         }
    30.     }
    31.  
    32.     ShowOptions options = new ShowOptions();
    33.     options.resultCallback = RewardAdCallback;
    34.     Advertisement.Show("rewardedVideoZone", options);
    35. }
    36.  
    37.  
    The ad runs just fine, but after it finishes, it doesn't call my callback, RewardAdCallback(). I'm pretty sure I'm using the ShowOptions object properly, and if I Debug.Log(options.resultCallback.Method) it prints out "void RewardAdCallback(ShowOptions)" or something similar, so I am registering it right, but it's still not getting called :/
     
  2. rasmus-unity

    rasmus-unity

    Unity Technologies

    Joined:
    Aug 15, 2014
    Posts:
    1,169
    Hi,

    Thanks for reporting this. We have (of course) intensively tested callbacks during development of SDK 2.0, and just verified it works here on both Android and iOS using Unity 5.4.0p2. Might be that your use of coroutines can make a difference here, we'll look into that.

    /Rasmus
     
  3. rasmus-unity

    rasmus-unity

    Unity Technologies

    Joined:
    Aug 15, 2014
    Posts:
    1,169
    @JoshuaMarkk, still cannot reproduce the issue with the code sample above. In my case calling your TryShowingReward() coroutine from a UI button, and the callback does get called. Tested on Unity 5.4.0p2 and Android. Which platforms/versions are you experiencing this on?

    Thanks,
    Rasmus
     
  4. rasmus-unity

    rasmus-unity

    Unity Technologies

    Joined:
    Aug 15, 2014
    Posts:
    1,169
    How are you calling TryShowingReward() in your case?
     
  5. JoshuaMarkk

    JoshuaMarkk

    Joined:
    Oct 27, 2015
    Posts:
    13
    @rasmus-unity thanks for the replies!

    The coroutine is called from another method which listens to the button, like this:
    Code (CSharp):
    1.  
    2. private void OnButtonClick()
    3. {
    4.     StopAllCoroutines();
    5.     StartCoroutine(TryShowingReward());
    6. }
    7.  
    I'm on Unity 5.4.0f3 with Unity Ads 2.0.2 running my game on (I think) a Galaxy Tab 4.8.0.
     
    Last edited: Aug 26, 2016
  6. JoshuaMarkk

    JoshuaMarkk

    Joined:
    Oct 27, 2015
    Posts:
    13
  7. JoshuaMarkk

    JoshuaMarkk

    Joined:
    Oct 27, 2015
    Posts:
    13
  8. JoshuaMarkk

    JoshuaMarkk

    Joined:
    Oct 27, 2015
    Posts:
    13
    Anything? :(
     
  9. rasmus-unity

    rasmus-unity

    Unity Technologies

    Joined:
    Aug 15, 2014
    Posts:
    1,169
    @JoshuaMarkk, sorry for delay.

    I've implemented same OnButtonClick method you have above, in my test project, and the callback is called just fine. Do you happen to have a simple project, where you can repro the issue? And does the class containing your OnButtonClick method inherit from MonoBehaviour?

    Otherwise I can share my test project repo tomorrow (just need some cleaning up to be used externally)

    /Rasmus
     
  10. BAIZOR

    BAIZOR

    Joined:
    Jul 4, 2013
    Posts:
    72
    @JoshuaMarkk I have absolutely the same UnityAds 2.0.2 behavior on Unity 5.4.0f3 on Android (emulator and real devices)
    And I don't use coroutine, call to Unity Ads directly from OnButtonClick.

    Do you still don't have any solution?

    Ads is playing then nothing... no callbacks.
    Code (CSharp):
    1.  
    2.         if (Advertisement.IsReady(ID(adType)))
    3.         {
    4.             ShowOptions options = new ShowOptions();
    5.             options.resultCallback = AdCallback;
    6.             Advertisement.Show(ID(adType), options);
    7.             return true;
    8.         }
     
  11. rasmus-unity

    rasmus-unity

    Unity Technologies

    Joined:
    Aug 15, 2014
    Posts:
    1,169
    @BAIZOR, can you post code for your AdCallback method as well?

    I had hoped to be able to send link to our test/reference project this weekend, but not fully ready yet.

    /Rasmus
     
  12. rasmus-unity

    rasmus-unity

    Unity Technologies

    Joined:
    Aug 15, 2014
    Posts:
    1,169
    @BAIZOR, @JoshuaMarkk: can you check out https://github.com/Unity-Technologies/unity-ads-assetstore-test? This is a simple reference implementation of Unity Ads SDK from asset store, and includes
    • Ads initialization
    • Showing default and rewarded ads
    • Showing ads using coroutine (based on code from @JoshuaMarkk above)
    I've tested on Editor (5.0 and 5.4), Android 4.4.2 (Samsung Galaxy S5) and iOS 9.3.5 (iPhone 6) here, and in all cases I get the client-side callback.

    My plan is that we can use this project as reference, so please see if you can reproduce on your side, either using this project or modifying it to match your implementation.

    Thanks,
    Rasmus
     
  13. BAIZOR

    BAIZOR

    Joined:
    Jul 4, 2013
    Posts:
    72
    @rasmus-unity, sure! There is my Callback code:
    Code (CSharp):
    1. protected void AdCallback(ShowResult result)
    2.     {
    3.         gameObject.Log(ANALYTICS_PREFIX + "Advertise callback result:" + result);
    4.  
    5.         if (ShowResult.Failed == result) SuperAnalytics.AnalyticsLogEvent(gameObject, SuperAnalytics.ADS_RESULT, ANALYTICS_PREFIX + ID(adType) + ":failed", 0);
    6.         if (ShowResult.Finished == result) SuperAnalytics.AnalyticsLogEvent(gameObject, SuperAnalytics.ADS_RESULT, ANALYTICS_PREFIX + ID(adType) + ":finished", 0);
    7.         if (ShowResult.Skipped == result) SuperAnalytics.AnalyticsLogEvent(gameObject, SuperAnalytics.ADS_RESULT, ANALYTICS_PREFIX + ID(adType) + ":skipped", 0);
    8.  
    9.         if (callback != null) callback(ShowResult.Finished == result);
    10.     }
    I did't change my code, I just updated UnityAds from 1.2 to 2.0.2 with Unity (from 5.2.4 to 5.4.0) then get this strange (like a bug) behavior. Anyway I checked the example, everything like in my code.
    It happens only after second success viewed ads. Then need to reinstall (on android) game. On android emulator a game can't reach audio focus in OS for playing sounds, it means that after first success viewed Unity Ads 2.0.2 game became silent. And will never callback on success viewed ads later.
     
  14. rasmus-unity

    rasmus-unity

    Unity Technologies

    Joined:
    Aug 15, 2014
    Posts:
    1,169
    @BAIZOR, can you report a bug report from Unity ("Help->Report a bug" menu item) including your project, and post the bug id (only id, not the full bug url) here?

    Thanks,
    Rasmus
     
  15. BAIZOR

    BAIZOR

    Joined:
    Jul 4, 2013
    Posts:
    72
    @rasmus-unity, does it make sense if I can't reproduce the bug in the Unity Ads Public Test project?
    I copied to the project my code, and everything works well... after that I begun to believe that it's my fail somewhere... I will check everything more careful and will write here my results.

    Thanks
     
  16. rasmus-unity

    rasmus-unity

    Unity Technologies

    Joined:
    Aug 15, 2014
    Posts:
    1,169
    As I understand, your project worked with the old 1.x SDK, but not with 2.x, which makes me think that somewhere there is a potential regression in our SDK. And since I haven't been able to reproduce it here with a simple test project, it would help us if you manage to figure out what the problem.

    In case you manage to fix it in your project, you are also welcome to send me the diff, so I can see what might have caused this.

    Thanks,
    Rasmus
     
  17. BAIZOR

    BAIZOR

    Joined:
    Jul 4, 2013
    Posts:
    72
    Correct.

    But with upgrading Unity Ads we were upgraded Unity (from 5.2.4 to 5.4.0) too. I guess it could be somewhere in our project migration maybe. We haven't check UnityAds 2.0.2 on Unity 5.2.4 just on 5.4.0, and we haven't test UnityAds 1.2.x on Unity 5.4.0 (great idea to do it right now!).

    I have some deals today, hope will have time tomorrow to check everything.

    Best
     
  18. BAIZOR

    BAIZOR

    Joined:
    Jul 4, 2013
    Posts:
    72
    Hello @rasmus-unity!
    There are my results. Please be careful with scrolling my post, cause there are a lot of information between long logs.
    Spoiler - the problem with Unity Ads 2.0.2 on Unity 5.4.0f3 exists :(

    Case 1 - Unity Ads 2.0.2 on Unity 5.4.0f3

    -----------------------------------------------------------------------------------------------------------------------------------------

    First viewing ads, starting:
    Code (CSharp):
    1. 09-06 14:01:29.174: I/UnityAds(3841): com.unity3d.ads.UnityAds.show() (line:287) :: Unity Ads opening new ad unit for placement bonusCoinsPerLevel
    2. 09-06 14:01:29.175: W/FlurryAgent(3841): Event count started: OnClick:Done:Ads:(Born)
    3. 09-06 14:01:29.175: I/Unity(3841): C# sendEvent OnClick:Done:Ads:(Born)
    4. 09-06 14:01:29.175: I/Unity(3841):
    5. 09-06 14:01:29.175: I/Unity(3841): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
    6. 09-06 14:01:29.321: I/UnityAds(3841): com.unity3d.ads.api.Sdk.logInfo() (line:68) :: Opening game ad with orientation 6, hardware acceleration enabled
    7. 09-06 14:01:29.321: I/ActivityManager(1046): START u0 {flg=0x10010000 cmp=com.evil.cogs.game/com.unity3d.ads.adunit.AdUnitActivity (has extras)} from uid 10099 on display 0
    8. 09-06 14:01:29.325: I/AdColony(3841): [ADC] AdColony pause called.
    9. 09-06 14:01:29.453: I/MediaFocusControl(1046):  AudioFocus  abandonAudioFocus() from android.media.AudioManager@84cf3ff<native proxy object>
    10. 09-06 14:01:29.460: W/FlurryAgent(3841): Flurry session resumed for context:com.unity3d.ads.adunit.AdUnitActivity@df0baed
    11. 09-06 14:01:29.460: I/AdColony(3841): [ADC] AdColony resume called.
    12. 09-06 14:01:29.523: W/EGL_emulation(3841): eglSurfaceAttrib not implemented
    13. 09-06 14:01:29.523: W/OpenGLRenderer(3841): Failed to set EGL_SWAP_BEHAVIOR on surface 0xf2c7ec40, error=EGL_SUCCESS
    14. 09-06 14:01:29.587: I/GameAnalytics(3841): Info/GameAnalytics: Add DESIGN event: {eventId:OnClick:Done:Ads:(Born), value:0.0}
    15. 09-06 14:01:29.602: I/GameAnalytics(3841): Info/GameAnalytics: Suspending session.
    16. 09-06 14:01:29.602: I/GameAnalytics(3841): Info/GameAnalytics: Suspending session.
    17. 09-06 14:01:29.714: E/eglCodecCommon(3841): **** ERROR unknown type 0x4e (glSizeof,80)
    18. 09-06 14:01:29.714: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    19. 09-06 14:01:29.784: E/eglCodecCommon(3841): **** ERROR unknown type 0x4e (glSizeof,80)
    20. 09-06 14:01:29.784: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    21. 09-06 14:01:29.820: D/(99): Socket deconnection
    22. 09-06 14:01:29.858: E/eglCodecCommon(3841): **** ERROR unknown type 0x4e (glSizeof,80)
    23. 09-06 14:01:29.858: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    24. 09-06 14:01:30.029: I/MediaFocusControl(1046):  AudioFocus  requestAudioFocus() from android.media.AudioManager@30ce09c req=1flags=0x0
    25. 09-06 14:01:30.033: D/NuPlayer(738): onSetVideoSurface(0xf1b14700, no video decoder)
    26. 09-06 14:01:30.039: V/FFmpegExtractor(738): SniffFFMPEG
    27. 09-06 14:01:30.039: I/FFmpegExtractor(738): android-source:0xf232d580
    28. 09-06 14:01:30.039: D/FFMPEG(738): android source begin open
    29. 09-06 14:01:30.039: D/FFMPEG(738): android open, url: android-source:0xf232d580
    30. 09-06 14:01:30.039: D/FFMPEG(738): ffmpeg open android data source success, source ptr: 0xf232d580
    31. 09-06 14:01:30.039: D/FFMPEG(738): android source open success
    32. 09-06 14:01:30.043: I/ActivityManager(1046): Displayed com.evil.cogs.game/com.unity3d.ads.adunit.AdUnitActivity: +589ms
    33. 09-06 14:01:30.091: E/eglCodecCommon(3841): **** ERROR unknown type 0x4e (glSizeof,80)
    34. 09-06 14:01:30.091: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    35. 09-06 14:01:30.146: I/FFMPEG(738): Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'android-source:0xf232d580':
    36. 09-06 14:01:30.146: I/FFMPEG(738):   Metadata:
    37. 09-06 14:01:30.146: I/FFMPEG(738):     major_brand     : isom
    38. 09-06 14:01:30.146: I/FFMPEG(738):     minor_version   : 1
    39. 09-06 14:01:30.146: I/FFMPEG(738):     compatible_brands: isomavc1mp42
    40. 09-06 14:01:30.146: I/FFMPEG(738):     creation_time   : 2016-06-27 16:59:58
    41. 09-06 14:01:30.146: I/FFMPEG(738):   Duration: 00:00:30.07, start: 0.000000, bitrate: 962 kb/s
    42. 09-06 14:01:30.146: I/FFMPEG(738):     Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 904 kb/s, 30 fps, 30 tbr, 30 tbn, 60 tbc (default)
    43. 09-06 14:01:30.146: I/FFMPEG(738):     Metadata:
    44. 09-06 14:01:30.146: I/FFMPEG(738):       creation_time   : 2016-06-27 16:59:47
    45. 09-06 14:01:30.146: I/FFMPEG(738):     Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 55 kb/s (default)
    46. 09-06 14:01:30.146: I/FFMPEG(738):     Metadata:
    47. 09-06 14:01:30.146: I/FFMPEG(738):       creation_time   : 2016-06-27 16:59:37
    48. 09-06 14:01:30.146: I/FFmpegExtractor(738): FFmpegExtrator, url: android-source:0xf232d580, format_name: mov,mp4,m4a,3gp,3g2,mj2, format_long_name: QuickTime / MOV
    49. 09-06 14:01:30.146: I/FFmpegExtractor(738): list the formats suppoted by ffmpeg:
    50. 09-06 14:01:30.146: I/FFmpegExtractor(738): ========================================
    51. 09-06 14:01:30.146: V/FFmpegExtractor(738): format_names[00]: mpeg
    52. 09-06 14:01:30.146: V/FFmpegExtractor(738): format_names[01]: mpegts
    53. 09-06 14:01:30.146: V/FFmpegExtractor(738): format_names[02]: mov,mp4,m4a,3gp,3g2,mj2
    54. 09-06 14:01:30.146: V/FFmpegExtractor(738): format_names[03]: matroska,webm
    55. 09-06 14:01:30.146: V/FFmpegExtractor(738): format_names[04]: asf
    56. 09-06 14:01:30.146: V/FFmpegExtractor(738): format_names[05]: rm
    57. 09-06 14:01:30.146: V/FFmpegExtractor(738): format_names[06]: flv
    58. 09-06 14:01:30.146: V/FFmpegExtractor(738): format_names[07]: swf
    59. 09-06 14:01:30.146: V/FFmpegExtractor(738): format_names[08]: avi
    60. 09-06 14:01:30.146: V/FFmpegExtractor(738): format_names[09]: ape
    61. 09-06 14:01:30.146: V/FFmpegExtractor(738): format_names[10]: dts
    62. 09-06 14:01:30.146: V/FFmpegExtractor(738): format_names[11]: flac
    63. 09-06 14:01:30.146: V/FFmpegExtractor(738): format_names[12]: ac3
    64. 09-06 14:01:30.146: V/FFmpegExtractor(738): format_names[13]: wav
    65. 09-06 14:01:30.146: V/FFmpegExtractor(738): format_names[14]: ogg
    66. 09-06 14:01:30.146: V/FFmpegExtractor(738): format_names[15]: vc1
    67. 09-06 14:01:30.146: V/FFmpegExtractor(738): format_names[16]: hevc
    68. 09-06 14:01:30.146: I/FFmpegExtractor(738): ========================================
    69. 09-06 14:01:30.146: V/FFmpegExtractor(738): major_brand tag is:isom
    70. 09-06 14:01:30.146: D/FFmpegExtractor(738): suppoted codec(h264) by official Stagefright
    71. 09-06 14:01:30.146: D/FFmpegExtractor(738): suppoted codec(aac) by official Stagefright
    72. 09-06 14:01:30.146: D/FFMPEG(738): android source close
    73. 09-06 14:01:30.146: I/FFmpegExtractor(738): sniff through BetterSniffFFMPEG success
    74. 09-06 14:01:30.146: D/FFmpegExtractor(738): ffmpeg detected media content as 'video/mp4' with confidence 0.08
    75. 09-06 14:01:30.149: D/NuPlayerDriver(738): notifyListener_l(0xf61d9de0), (5, 640, 360)
    76. 09-06 14:01:30.149: D/NuPlayerDriver(738): notifyListener_l(0xf61d9de0), (1, 0, 0)
    77. 09-06 14:01:30.193: E/Surface(3841): getSlotFromBufferLocked: unknown buffer: 0xf3d94c30
    78. 09-06 14:01:30.305: D/MediaPlayer(3841): getMetadata
    79. 09-06 14:01:30.354: W/FlurryAgent(3841): Flurry session paused for context:com.unity3d.player.UnityPlayerNativeActivity@27157eb
    80. 09-06 14:01:30.412: I/UnityAds(3841): com.unity3d.ads.api.Sdk.logInfo() (line:68) :: Unity Ads event: sending show event to https://adserver.unityads.unity3d.com/mobile/gamers/56f271af981b8509008460aa/show/55c9f5c5fc6029da00487d1d/30200
    81. 09-06 14:01:30.557: E/eglCodecCommon(3841): **** ERROR unknown type 0x4e (glSizeof,80)
    82. 09-06 14:01:30.557: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    83. 09-06 14:01:30.603: I/GameAnalytics(3841): Info/GameAnalytics: Ending session.
    84. 09-06 14:01:30.620: I/GameAnalytics(3841): Info/GameAnalytics: Add SESSION END event.
    85. 09-06 14:01:30.621: I/GameAnalytics(3841): Info/GameAnalytics: Event queue: Sending 2 events.
    86. 09-06 14:01:30.637: E/eglCodecCommon(3841): **** ERROR unknown type 0x4e (glSizeof,80)
    87. 09-06 14:01:30.637: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    88. 09-06 14:01:30.640: D/NuPlayerDriver(738): start(0xf61d9de0), state is 4, eos is 0
    89. 09-06 14:01:30.640: I/GenericSource(738): start
    90. 09-06 14:01:30.647: W/linker(738): /system/lib/libswscale.so has text relocations. This is wasting memory and prevents security hardening. Please fix.
    91. 09-06 14:01:30.647: D/SoftFFmpegVideo(738): SoftFFmpegVideo component: OMX.ffmpeg.h264.decoder mMode: 0 appData: 0xf08fc6c0
    92. 09-06 14:01:30.649: I/MediaCodec(738): [OMX.ffmpeg.h264.decoder] setting surface generation to 755713
    93. 09-06 14:01:30.649: E/OMXNodeInstance(738): setConfig(2a:google.aac.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)
    94. 09-06 14:01:30.649: I/ACodec(738): codec does not support config priority (err -2147483648)
    95. 09-06 14:01:30.650: I/MediaCodec(738): MediaCodec will operate in async mode
    96. 09-06 14:01:30.650: W/OMXNodeInstance(738): [29:ffmpeg.h264.decoder] component does not support metadata mode; using fallback
    97. 09-06 14:01:30.650: E/ACodec(738): [OMX.ffmpeg.h264.decoder] storeMetaDataInBuffers failed w/ err -1010
    98. 09-06 14:01:30.651: V/SoftFFmpegVideo(738): got OMX_IndexParamPortDefinition, width: 640, height: 360
    99. 09-06 14:01:30.651: E/OMXNodeInstance(738): setConfig(29:ffmpeg.h264.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)
    100. 09-06 14:01:30.651: I/ACodec(738): codec does not support config priority (err -2147483648)
    101. 09-06 14:01:30.651: E/OMXNodeInstance(738): setConfig(29:ffmpeg.h264.decoder, ConfigOperatingRate(0x6f800003)) ERROR: Undefined(0x80001001)
    102. 09-06 14:01:30.651: I/ACodec(738): codec does not support config operating rate (err -2147483648)
    103. 09-06 14:01:30.651: E/OMXNodeInstance(738): getConfig(29:ffmpeg.h264.decoder, ConfigCommonOutputCrop(0x700000f)) ERROR: Undefined(0x80001001)
    104. 09-06 14:01:30.651: I/SoftAAC2(738): limiting to stereo output
    105. 09-06 14:01:30.651: I/SoftAAC2(738): Reconfiguring decoder: 0->44100 Hz, 0->2 channels
    106. 09-06 14:01:30.652: I/MediaCodec(738): MediaCodec will operate in async mode
    107. 09-06 14:01:30.653: I/SoftFFmpegVideo(738): got extradata, ignore: 0, size: 29
    108. 09-06 14:01:30.653: I/SoftFFmpegVideo(738): got extradata, ignore: 0, size: 8
    109. 09-06 14:01:30.653: I/SoftFFmpegVideo(738): extradata is ready, size: 37
    110. 09-06 14:01:30.654: D/SoftFFmpegVideo(738): begin to open ffmpeg decoder(h264) now
    111. 09-06 14:01:30.654: D/SoftFFmpegVideo(738): open ffmpeg video decoder(h264) success
    112. 09-06 14:01:30.658: I/SoftFFmpegVideo(738): ffmpeg video port setting change event(320x240)->(640x360).
    113. 09-06 14:01:30.662: D/NuPlayerDriver(738): notifyListener_l(0xf61d9de0), (6, 0, 0)
    114. 09-06 14:01:30.706: E/OMXNodeInstance(738): getConfig(29:ffmpeg.h264.decoder, ConfigCommonOutputCrop(0x700000f)) ERROR: Undefined(0x80001001)
    115. 09-06 14:01:30.707: D/NuPlayerDriver(738): notifyListener_l(0xf61d9de0), (5, 640, 360)
    116. 09-06 14:01:30.707: D/NuPlayerDriver(738): notifyListener_l(0xf61d9de0), (200, 3, 0)
    117. 09-06 14:01:30.707: W/MediaPlayer(3841): info/warning (3, 0)
    118. 09-06 14:01:30.712: D/(738): HostConnection::get() New Host Connection established 0xf1b0cc10, tid 4033
    119. 09-06 14:01:30.714: D/AudioFlinger(738): mixer(0xf1e40000) throttle end: throttle time(2)
    120. 09-06 14:01:30.747: E/eglCodecCommon(3841): **** ERROR unknown type 0x4e (glSizeof,80)
    121. 09-06 14:01:30.747: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    122. 09-06 14:01:30.784: W/GameAnalytics(3841): Warning/GameAnalytics: Event queue: Failed to send events.
    123. 09-06 14:01:30.926: I/UnityAds(3841): com.unity3d.ads.api.Sdk.logInfo() (line:68) :: Unity Ads event: sending start event to https://adserver.unityads.unity3d.com/mobile/gamers/56f271af981b8509008460aa/video/video_start/55c9f5c5fc6029da00487d1d/30200
    124. 09-06 14:01:31.596: E/eglCodecCommon(3841): **** ERROR unknown type 0x4e (glSizeof,80)
    125. 09-06 14:01:31.596: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    126. 09-06 14:01:31.644: E/eglCodecCommon(3841): **** ERROR unknown type 0x4e (glSizeof,80)
    127. 09-06 14:01:31.644: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    128. 09-06 14:01:31.682: E/eglCodecCommon(3841): **** ERROR unknown type 0x4e (glSizeof,80)
    129. 09-06 14:01:31.683: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    130. 09-06 14:01:31.843: D/(99): Socket deconnection
    131. 09-06 14:01:32.587: E/eglCodecCommon(3841): **** ERROR unknown type 0x4e (glSizeof,80)
    132. 09-06 14:01:32.587: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    133. 09-06 14:01:32.628: E/eglCodecCommon(3841): **** ERROR unknown type 0x4e (glSizeof,80)
    134. 09-06 14:01:32.628: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    135. 09-06 14:01:32.683: E/eglCodecCommon(3841): **** ERROR unknown type 0x4e (glSizeof,80)
    136. 09-06 14:01:32.683: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    137. 09-06 14:01:33.575: E/eglCodecCommon(3841): **** ERROR unknown type 0x4e (glSizeof,80)
    138.  
    -----------------------------------------------------------------------------------------------------------------------------------------

    I got ton of errors in log while Unity Ads 2.0.2 is showing ads.
    Code (CSharp):
    1. 09-06 14:06:29.954: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    -----------------------------------------------------------------------------------------------------------------------------------------

    In the END of FIRST viewing ads I got these logs:
    Code (CSharp):
    1. 09-06 14:02:02.643: E/eglCodecCommon(3841): **** ERROR unknown type 0x4e (glSizeof,80)
    2. 09-06 14:02:02.643: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    3. 09-06 14:02:02.666: I/UnityAds(3841): com.unity3d.ads.api.Sdk.logInfo() (line:68) :: Requesting ad plan from https://adserver.unityads.unity3d.com/games/30200/fill?advertisingTrackingId=76f32982-910f-4479-9776-e6abda58eaff&limitAdTracking=false&deviceMake=Genymotion&deviceModel=Google%20Nexus%206%20-%206.0.0%20-%20API%2023%20-%201440x2560&platform=android&screenDensity=560&screenWidth=2413&screenHeight=1440&sdkVersion=2002&screenSize=268435794&webviewUa=Mozilla%252F5.0%2520(Linux%253B%2520Android%25206.0%253B%2520Google%2520Nexus%25206%2520-%25206.0.0%2520-%2520API%252023%2520-%25201440x2560%2520Build%252FMRA58K)%2520AppleWebKit%252F537.36%2520(KHTML%252C%2520like%2520Gecko)%2520Version%252F4.0%2520Chrome%252F40.0.0.0%2520Mobile%2520Safari%252F537.36&apiLevel=23&connectionType=wifi&networkType=3
    4. 09-06 14:02:02.720: I/UnityAds(3841): com.unity3d.ads.api.Sdk.logInfo() (line:68) :: Unity Ads event: sending view event to https://adserver.unityads.unity3d.com/mobile/gamers/56f271af981b8509008460aa/video/video_end/55c9f5c5fc6029da00487d1d/30200
    5. 09-06 14:02:03.378: I/UnityAds(3841): com.unity3d.ads.api.Sdk.logInfo() (line:68) :: Unity Ads server returned game advertisement
    6. 09-06 14:02:03.888: D/(99): Socket deconnection
    7. 09-06 14:02:04.392: I/AccountManagerService(1046): getTypesVisibleToCaller: isPermitted? true
    8. 09-06 14:02:04.405: I/agry(1842): Synchronizing file: 1ylc1Ba6TDFMtVvZd52Cm7DsRIoECOP63XxBjHmL4lpZmdww9wFyMJq5BKjmbkXkHjJNq
    9. 09-06 14:02:04.406: I/agsn(1842): Requesting catchup from revision 11 to head revision.
    10. 09-06 14:02:05.891: D/(99): Socket deconnection
    11. 09-06 14:02:07.536: I/Unity(3841): [Born]:Done:Ads:UnityAds:Advertise callback result:Finished
    12. 09-06 14:02:07.536: I/Unity(3841):
    13. 09-06 14:02:07.536: I/Unity(3841): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
    14. 09-06 14:02:07.536: W/FlurryAgent(3841): Event count started: AdsResult:Done:Ads:UnityAds:bonusCoinsPerLevel:finished:(Born)
    15. 09-06 14:02:07.536: I/Unity(3841): C# sendEvent AdsResult:Done:Ads:UnityAds:bonusCoinsPerLevel:finished:(Born)
    16. 09-06 14:02:07.536: I/Unity(3841):
    17. 09-06 14:02:07.536: I/Unity(3841): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
    18. 09-06 14:02:07.539: E/Unity(3841): Function SoundHandleAPI *SoundHandle::operator->() const may only be called from main thread!
    19. 09-06 14:02:07.539: E/Unity(3841):
    20. 09-06 14:02:07.539: E/Unity(3841): (Filename:  Line: 25)
    21. 09-06 14:02:07.564: E/eglCodecCommon(3841): **** ERROR unknown type 0x4e (glSizeof,80)
    22. 09-06 14:02:07.564: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    23. 09-06 14:02:07.626: E/chromium(3841): ### WebView Version 40 (1808730-x86) (code 400007)
    24. 09-06 14:02:07.640: I/Unity(3841): ExecutionEngineException: SIGILL
    25. 09-06 14:02:07.640: I/Unity(3841):   at (wrapper managed-to-native) UnityEngine.AudioSource:Play (ulong)
    26. 09-06 14:02:07.640: I/Unity(3841):   at UnityEngine.AudioSource.Play () [0x00000] in <filename unknown>:0
    27. 09-06 14:02:07.640: I/Unity(3841):   at UnityEngine.Events.InvokableCall.Invoke (System.Object[] args) [0x00000] in <filename unknown>:0
    28. 09-06 14:02:07.640: I/Unity(3841):   at UnityEngine.Events.InvokableCallList.Invoke (System.Object[] parameters) [0x00000] in <filename unknown>:0
    29. 09-06 14:02:07.640: I/Unity(3841):   at UnityEngine.Events.UnityEventBase.Invoke (System.Object[] parameters) [0x00000] in <filename unknown>:0
    30. 09-06 14:02:07.640: I/Unity(3841):   at UnityEngine.Events.UnityEvent.Invoke () [0x00000] in <filename unknown>:0
    31. 09-06 14:02:07.640: I/Unity(3841):   at Dialog.Open () [0x00000] in <filename unknown>:0
    32. 09-06 14:02:07.640: I/Unity(3841):   at UnityEngine.Events.InvokableCall.Invoke (System.Object[] args) [0x00000] in <filename unknown>:0
    33. 09-06 14:02:07.640: I/Unity(3841):   at UnityEngine.Events.InvokableCallList.Invoke (System.Object[] parameters) [0x00000] in <filename unknown>:0
    34. 09-06 14:02:07.640: I/Unity(3841):   at UnityEngine.Events.UnityEventBase.Invoke (System.Object[] parameters) [0x00000] in <filename unknown>:0
    35. 09-06 14:02:07.640: I/Unity(3841):   at UnityEngine.Events.UnityEvent.Invoke () [0x00000] in <fi
    36. 09-06 14:02:07.640: I/AdColony(3841): [ADC] AdColony pause called.
    37. 09-06 14:02:07.672: E/eglCodecCommon(3841): **** ERROR unknown type 0x4e (glSizeof,80)
    38. 09-06 14:02:07.672: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    39. 09-06 14:02:07.726: E/eglCodecCommon(3841): **** ERROR unknown type 0x4e (glSizeof,80)
    40. 09-06 14:02:07.726: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    41. 09-06 14:02:07.756: E/eglCodecCommon(3841): **** ERROR unknown type 0x4e (glSizeof,80)
    42. 09-06 14:02:07.756: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    43. 09-06 14:02:07.790: E/eglCodecCommon(3841): **** ERROR unknown type 0x4e (glSizeof,80)
    44. 09-06 14:02:07.790: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    45. 09-06 14:02:07.820: E/eglCodecCommon(3841): **** ERROR unknown type 0x4e (glSizeof,80)
    46. 09-06 14:02:07.820: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    47. 09-06 14:02:07.827: I/AdColony(3841): [ADC] AdColony resume called.
    48. 09-06 14:02:07.827: W/FlurryAgent(3841): Flurry session resumed for context:com.unity3d.player.UnityPlayerNativeActivity@27157eb
    49. 09-06 14:02:07.876: I/UnityAds(3841): com.unity3d.ads.api.Sdk.logInfo() (line:68) :: Closing Unity Ads ad unit
    50. 09-06 14:02:07.885: W/EGL_emulation(3841): eglSurfaceAttrib not implemented
    51. 09-06 14:02:07.885: W/OpenGLRenderer(3841): Failed to set EGL_SWAP_BEHAVIOR on surface 0xc98a3700, error=EGL_SUCCESS
    52. 09-06 14:02:07.886: D/(99): Socket deconnection
    53. 09-06 14:02:07.890: I/MediaFocusControl(1046):  AudioFocus  requestAudioFocus() from android.media.AudioManager@84cf3ff<native proxy object> req=1flags=0x0
    54. 09-06 14:02:07.890: E/Surface(3841): getSlotFromBufferLocked: unknown buffer: 0xdcdcc180
    55.  
    This is important string:
    09-06 14:02:07.536: I/Unity(3841): [Born]:Done:Ads:UnityAds:Advertise callback result:Finished
    It means that the callback come success.

    -----------------------------------------------------------------------------------------------------------------------------------------
    -----------------------------------------------------------------------------------------------------------------------------------------

    Second time launching ads:
    Code (CSharp):
    1. 09-06 14:03:31.238: I/UnityAds(3841): com.unity3d.ads.UnityAds.show() (line:287) :: Unity Ads opening new ad unit for placement bonusCoinsPerLevel
    2. 09-06 14:03:31.240: W/FlurryAgent(3841): Event count started: OnClick:Done:Ads:(Begin)
    3. 09-06 14:03:31.240: I/Unity(3841): C# sendEvent OnClick:Done:Ads:(Begin)
    4. 09-06 14:03:31.240: I/Unity(3841):
    5. 09-06 14:03:31.240: I/Unity(3841): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
    6. 09-06 14:03:31.352: I/UnityAds(3841): com.unity3d.ads.api.Sdk.logInfo() (line:68) :: Opening game ad with orientation 6, hardware acceleration enabled
    7. 09-06 14:03:31.353: I/ActivityManager(1046): START u0 {flg=0x10010000 cmp=com.evil.cogs.game/com.unity3d.ads.adunit.AdUnitActivity (has extras)} from uid 10099 on display 0
    8. 09-06 14:03:31.355: I/AdColony(3841): [ADC] AdColony pause called.
    9. 09-06 14:03:31.486: I/MediaFocusControl(1046):  AudioFocus  abandonAudioFocus() from android.media.AudioManager@84cf3ff<native proxy object>
    10. 09-06 14:03:31.495: W/FlurryAgent(3841): Flurry session resumed for context:com.unity3d.ads.adunit.AdUnitActivity@55c69ae
    11. 09-06 14:03:31.495: I/AdColony(3841): [ADC] AdColony resume called.
    12. 09-06 14:03:31.509: I/GameAnalytics(3841): Info/GameAnalytics: Add DESIGN event: {eventId:OnClick:Done:Ads:(Begin), value:0.0}
    13. 09-06 14:03:31.522: I/GameAnalytics(3841): Info/GameAnalytics: Suspending session.
    14. 09-06 14:03:31.608: W/EGL_emulation(3841): eglSurfaceAttrib not implemented
    15. 09-06 14:03:31.608: W/OpenGLRenderer(3841): Failed to set EGL_SWAP_BEHAVIOR on surface 0xc907aca0, error=EGL_SUCCESS
    16. 09-06 14:03:32.021: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    17. 09-06 14:03:32.046: D/(99): Socket deconnection
    18. 09-06 14:03:32.278: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    19. 09-06 14:03:32.623: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    20. 09-06 14:03:32.798: I/MediaFocusControl(1046):  AudioFocus  requestAudioFocus() from android.media.AudioManager@8eca7e5 req=1flags=0x0
    21. 09-06 14:03:32.801: D/NuPlayer(738): onSetVideoSurface(0xf1b15500, no video decoder)
    22. 09-06 14:03:32.806: V/FFmpegExtractor(738): SniffFFMPEG
    23. 09-06 14:03:32.806: I/FFmpegExtractor(738): android-source:0xf232d4c0
    24. 09-06 14:03:32.806: D/FFMPEG(738): android source begin open
    25. 09-06 14:03:32.806: D/FFMPEG(738): android open, url: android-source:0xf232d4c0
    26. 09-06 14:03:32.806: D/FFMPEG(738): ffmpeg open android data source success, source ptr: 0xf232d4c0
    27. 09-06 14:03:32.806: D/FFMPEG(738): android source open success
    28. 09-06 14:03:32.833: I/FFMPEG(738): Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'android-source:0xf232d4c0':
    29. 09-06 14:03:32.833: I/FFMPEG(738):   Metadata:
    30. 09-06 14:03:32.833: I/FFMPEG(738):     major_brand     : isom
    31. 09-06 14:03:32.833: I/FFMPEG(738):     minor_version   : 1
    32. 09-06 14:03:32.833: I/FFMPEG(738):     compatible_brands: isomavc1mp42
    33. 09-06 14:03:32.833: I/FFMPEG(738):     creation_time   : 2016-06-15 08:54:02
    34. 09-06 14:03:32.833: I/FFMPEG(738):   Duration: 00:00:25.03, start: 0.000000, bitrate: 970 kb/s
    35. 09-06 14:03:32.833: I/FFMPEG(738):     Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 912 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
    36. 09-06 14:03:32.833: I/FFMPEG(738):     Metadata:
    37. 09-06 14:03:32.833: I/FFMPEG(738):       creation_time   : 2016-06-15 08:53:58
    38. 09-06 14:03:32.833: I/FFMPEG(738):     Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 55 kb/s (default)
    39. 09-06 14:03:32.833: I/FFMPEG(738):     Metadata:
    40. 09-06 14:03:32.833: I/FFMPEG(738):       creation_time   : 2016-06-15 08:53:52
    41. 09-06 14:03:32.833: I/FFmpegExtractor(738): FFmpegExtrator, url: android-source:0xf232d4c0, format_name: mov,mp4,m4a,3gp,3g2,mj2, format_long_name: QuickTime / MOV
    42. 09-06 14:03:32.833: I/FFmpegExtractor(738): list the formats suppoted by ffmpeg:
    43. 09-06 14:03:32.833: I/FFmpegExtractor(738): ========================================
    44. 09-06 14:03:32.833: V/FFmpegExtractor(738): format_names[00]: mpeg
    45. 09-06 14:03:32.833: V/FFmpegExtractor(738): format_names[01]: mpegts
    46. 09-06 14:03:32.833: V/FFmpegExtractor(738): format_names[02]: mov,mp4,m4a,3gp,3g2,mj2
    47. 09-06 14:03:32.833: V/FFmpegExtractor(738): format_names[03]: matroska,webm
    48. 09-06 14:03:32.833: V/FFmpegExtractor(738): format_names[04]: asf
    49. 09-06 14:03:32.833: V/FFmpegExtractor(738): format_names[05]: rm
    50. 09-06 14:03:32.833: V/FFmpegExtractor(738): format_names[06]: flv
    51. 09-06 14:03:32.833: V/FFmpegExtractor(738): format_names[07]: swf
    52. 09-06 14:03:32.833: V/FFmpegExtractor(738): format_names[08]: avi
    53. 09-06 14:03:32.833: V/FFmpegExtractor(738): format_names[09]: ape
    54. 09-06 14:03:32.833: V/FFmpegExtractor(738): format_names[10]: dts
    55. 09-06 14:03:32.833: V/FFmpegExtractor(738): format_names[11]: flac
    56. 09-06 14:03:32.833: V/FFmpegExtractor(738): format_names[12]: ac3
    57. 09-06 14:03:32.833: V/FFmpegExtractor(738): format_names[13]: wav
    58. 09-06 14:03:32.833: V/FFmpegExtractor(738): format_names[14]: ogg
    59. 09-06 14:03:32.833: V/FFmpegExtractor(738): format_names[15]: vc1
    60. 09-06 14:03:32.833: V/FFmpegExtractor(738): format_names[16]: hevc
    61. 09-06 14:03:32.833: I/FFmpegExtractor(738): ========================================
    62. 09-06 14:03:32.833: V/FFmpegExtractor(738): major_brand tag is:isom
    63. 09-06 14:03:32.833: D/FFmpegExtractor(738): suppoted codec(h264) by official Stagefright
    64. 09-06 14:03:32.833: D/FFmpegExtractor(738): suppoted codec(aac) by official Stagefright
    65. 09-06 14:03:32.833: D/FFMPEG(738): android source close
    66. 09-06 14:03:32.833: I/FFmpegExtractor(738): sniff through BetterSniffFFMPEG success
    67. 09-06 14:03:32.833: D/FFmpegExtractor(738): ffmpeg detected media content as 'video/mp4' with confidence 0.08
    68. 09-06 14:03:32.837: D/NuPlayerDriver(738): notifyListener_l(0xf61d9de0), (5, 640, 360)
    69. 09-06 14:03:32.837: D/NuPlayerDriver(738): notifyListener_l(0xf61d9de0), (1, 0, 0)
    70. 09-06 14:03:32.876: I/ActivityManager(1046): Displayed com.evil.cogs.game/com.unity3d.ads.adunit.AdUnitActivity: +1s387ms
    71. 09-06 14:03:32.951: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    72. 09-06 14:03:33.033: E/Surface(3841): getSlotFromBufferLocked: unknown buffer: 0xf3d94d10
    73. 09-06 14:03:33.132: D/MediaPlayer(3841): getMetadata
    74. 09-06 14:03:33.157: W/FlurryAgent(3841): Flurry session paused for context:com.unity3d.player.UnityPlayerNativeActivity@27157eb
    75. 09-06 14:03:33.396: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    76. 09-06 14:03:33.470: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    77. 09-06 14:03:33.517: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    78. 09-06 14:03:33.522: I/GameAnalytics(3841): Info/GameAnalytics: Ending session.
    79. 09-06 14:03:33.523: I/UnityAds(3841): com.unity3d.ads.api.Sdk.logInfo() (line:68) :: Unity Ads event: sending show event to https://adserver.unityads.unity3d.com/mobile/gamers/56f271af981b8509008460aa/show/573d7b24f41d4036012763e0/30200
    80. 09-06 14:03:33.528: D/NuPlayerDriver(738): start(0xf61d9de0), state is 4, eos is 0
    81. 09-06 14:03:33.528: I/GenericSource(738): start
    82. 09-06 14:03:33.534: E/OMXNodeInstance(738): setConfig(2b:google.aac.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)
    83. 09-06 14:03:33.534: I/ACodec(738): codec does not support config priority (err -2147483648)
    84. 09-06 14:03:33.536: W/linker(738): /system/lib/libswscale.so has text relocations. This is wasting memory and prevents security hardening. Please fix.
    85. 09-06 14:03:33.537: D/SoftFFmpegVideo(738): SoftFFmpegVideo component: OMX.ffmpeg.h264.decoder mMode: 0 appData: 0xf08ebfc0
    86. 09-06 14:03:33.537: I/MediaCodec(738): MediaCodec will operate in async mode
    87. 09-06 14:03:33.539: I/SoftAAC2(738): limiting to stereo output
    88. 09-06 14:03:33.539: I/MediaCodec(738): [OMX.ffmpeg.h264.decoder] setting surface generation to 755714
    89. 09-06 14:03:33.540: I/SoftAAC2(738): Reconfiguring decoder: 0->44100 Hz, 0->2 channels
    90. 09-06 14:03:33.541: W/OMXNodeInstance(738): [2c:ffmpeg.h264.decoder] component does not support metadata mode; using fallback
    91. 09-06 14:03:33.541: E/ACodec(738): [OMX.ffmpeg.h264.decoder] storeMetaDataInBuffers failed w/ err -1010
    92. 09-06 14:03:33.541: V/SoftFFmpegVideo(738): got OMX_IndexParamPortDefinition, width: 640, height: 360
    93. 09-06 14:03:33.541: E/OMXNodeInstance(738): setConfig(2c:ffmpeg.h264.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)
    94. 09-06 14:03:33.541: I/ACodec(738): codec does not support config priority (err -2147483648)
    95. 09-06 14:03:33.541: E/OMXNodeInstance(738): setConfig(2c:ffmpeg.h264.decoder, ConfigOperatingRate(0x6f800003)) ERROR: Undefined(0x80001001)
    96. 09-06 14:03:33.541: I/ACodec(738): codec does not support config operating rate (err -2147483648)
    97. 09-06 14:03:33.541: E/OMXNodeInstance(738): getConfig(2c:ffmpeg.h264.decoder, ConfigCommonOutputCrop(0x700000f)) ERROR: Undefined(0x80001001)
    98. 09-06 14:03:33.542: I/MediaCodec(738): MediaCodec will operate in async mode
    99. 09-06 14:03:33.544: I/SoftFFmpegVideo(738): got extradata, ignore: 0, size: 27
    100. 09-06 14:03:33.544: I/SoftFFmpegVideo(738): got extradata, ignore: 0, size: 8
    101. 09-06 14:03:33.545: I/GameAnalytics(3841): Info/GameAnalytics: Add SESSION END event.
    102. 09-06 14:03:33.545: I/SoftFFmpegVideo(738): extradata is ready, size: 35
    103. 09-06 14:03:33.545: D/SoftFFmpegVideo(738): begin to open ffmpeg decoder(h264) now
    104. 09-06 14:03:33.545: D/SoftFFmpegVideo(738): open ffmpeg video decoder(h264) success
    105. 09-06 14:03:33.547: I/GameAnalytics(3841): Info/GameAnalytics: Event queue: Sending 3 events.
    106. 09-06 14:03:33.548: I/SoftFFmpegVideo(738): ffmpeg video port setting change event(320x240)->(640x360).
    107. 09-06 14:03:33.550: E/OMXNodeInstance(738): getConfig(2c:ffmpeg.h264.decoder, ConfigCommonOutputCrop(0x700000f)) ERROR: Undefined(0x80001001)
    108. 09-06 14:03:33.550: D/NuPlayerDriver(738): notifyListener_l(0xf61d9de0), (5, 640, 360)
    109. 09-06 14:03:33.713: D/NuPlayerDriver(738): notifyListener_l(0xf61d9de0), (200, 3, 0)
    110. 09-06 14:03:33.713: D/NuPlayerDriver(738): notifyListener_l(0xf61d9de0), (6, 0, 0)
    111. 09-06 14:03:33.713: W/MediaPlayer(3841): info/warning (3, 0)
    112. 09-06 14:03:33.717: D/(738): HostConnection::get() New Host Connection established 0xf1b0c9a0, tid 4071
    113. 09-06 14:03:33.743: I/UnityAds(3841): com.unity3d.ads.api.Sdk.logInfo() (line:68) :: Unity Ads event: sending start event to https://adserver.unityads.unity3d.com/mobile/gamers/56f271af981b8509008460aa/video/video_start/573d7b24f41d4036012763e0/30200
    114. 09-06 14:03:33.903: W/GameAnalytics(3841): Warning/GameAnalytics: Event queue: Failed to send events.
    115. 09-06 14:03:34.072: D/(99): Socket deconnection
    116. 09-06 14:03:34.181: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    117. 09-06 14:03:34.215: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    118. 09-06 14:03:34.246: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    119. 09-06 14:03:34.306: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    120. 09-06 14:03:34.335: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    121. 09-06 14:03:34.383: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    122. 09-06 14:03:34.414: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    123. 09-06 14:03:34.460: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    124. 09-06 14:03:34.489: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    125.  
    -----------------------------------------------------------------------------------------------------------------------------------------

    Ads is always in buffering and I get soooo massive slow-motion sound effect (there was no slow-motion before starting ads). The effect continue to be in a game.
    As you can see in the video:
    https://MrBAIZOR-gmail.tinytake.com/sf/OTU1NTEzXzQwMDYyNzA

    -----------------------------------------------------------------------------------------------------------------------------------------

    The end of viewing ads in second time:
    Code (CSharp):
    1. 09-06 14:06:28.154: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    2. 09-06 14:06:28.294: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    3. 09-06 14:06:28.357: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    4. 09-06 14:06:28.384: D/(99): Socket deconnection
    5. 09-06 14:06:28.485: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    6. 09-06 14:06:28.945: D/SoftFFmpegVideo(738): ffmpeg video decoder empty eos inbuf
    7. 09-06 14:06:28.945: I/SoftFFmpegVideo(738): ffmpeg video decoder failed to get frame.
    8. 09-06 14:06:28.945: D/SoftFFmpegVideo(738): ffmpeg video decoder fill eos outbuf
    9. 09-06 14:06:28.949: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    10. 09-06 14:06:28.970: I/NuPlayerDecoder(738): [video] saw output EOS
    11. 09-06 14:06:28.986: D/NuPlayerDriver(738): notifyListener_l(0xf61d9de0), (2, 0, 0)
    12. 09-06 14:06:28.991: I/Choreographer(3841): Skipped 35 frames!  The application may be doing too much work on its main thread.
    13. 09-06 14:06:29.127: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    14. 09-06 14:06:29.199: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    15. 09-06 14:06:29.278: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    16. 09-06 14:06:29.345: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    17. 09-06 14:06:29.377: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    18. 09-06 14:06:29.472: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    19. 09-06 14:06:29.525: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    20. 09-06 14:06:29.595: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    21. 09-06 14:06:29.626: D/NuPlayerDriver(738): reset(0xf61d9de0)
    22. 09-06 14:06:29.626: D/NuPlayerDriver(738): notifyListener_l(0xf61d9de0), (8, 0, 0)
    23. 09-06 14:06:29.628: V/SoftFFmpegVideo(738): ffmpeg video decoder flush port(0)
    24. 09-06 14:06:29.631: V/SoftFFmpegVideo(738): ffmpeg video decoder flush port(1)
    25. 09-06 14:06:29.632: V/SoftFFmpegVideo(738): ~SoftFFmpegVideo
    26. 09-06 14:06:29.647: W/AMessage(738): failed to post message as target looper for handler 0 is gone.
    27. 09-06 14:06:29.658: W/AMessage(738): failed to post message as target looper for handler 0 is gone.
    28. 09-06 14:06:29.662: D/NuPlayerDriver(738): notifyResetComplete(0xf61d9de0)
    29. 09-06 14:06:29.662: D/NuPlayerDriver(738): reset(0xf61d9de0)
    30. 09-06 14:06:29.663: I/MediaFocusControl(1046):  AudioFocus  abandonAudioFocus() from android.media.AudioManager@8eca7e5
    31. 09-06 14:06:29.895: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    32. 09-06 14:06:29.954: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    33. 09-06 14:06:30.076: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    34. 09-06 14:06:30.134: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    35. 09-06 14:06:30.167: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    36. 09-06 14:06:30.187: I/UnityAds(3841): com.unity3d.ads.api.Sdk.logInfo() (line:68) :: Requesting ad plan from https://adserver.unityads.unity3d.com/games/30200/fill?advertisingTrackingId=76f32982-910f-4479-9776-e6abda58eaff&limitAdTracking=false&deviceMake=Genymotion&deviceModel=Google%20Nexus%206%20-%206.0.0%20-%20API%2023%20-%201440x2560&platform=android&screenDensity=560&screenWidth=2413&screenHeight=1440&sdkVersion=2002&screenSize=268435794&webviewUa=Mozilla%252F5.0%2520(Linux%253B%2520Android%25206.0%253B%2520Google%2520Nexus%25206%2520-%25206.0.0%2520-%2520API%252023%2520-%25201440x2560%2520Build%252FMRA58K)%2520AppleWebKit%252F537.36%2520(KHTML%252C%2520like%2520Gecko)%2520Version%252F4.0%2520Chrome%252F40.0.0.0%2520Mobile%2520Safari%252F537.36&apiLevel=23&connectionType=wifi&networkType=3
    37. 09-06 14:06:30.189: E/NetlinkEvent(737): NetlinkEvent::FindParam(): Parameter 'UID' not found
    38. 09-06 14:06:30.241: I/UnityAds(3841): com.unity3d.ads.api.Sdk.logInfo() (line:68) :: Unity Ads event: sending view event to https://adserver.unityads.unity3d.com/mobile/gamers/56f271af981b8509008460aa/video/video_end/573d7b24f41d4036012763e0/30200
    39. 09-06 14:06:30.386: D/(99): Socket deconnection
    40. 09-06 14:06:31.879: I/UnityAds(3841): com.unity3d.ads.api.Sdk.logInfo() (line:68) :: Unity Ads server returned game advertisement
    41. 09-06 14:06:32.386: D/(99): Socket deconnection
    42. 09-06 14:06:34.390: D/(99): Socket deconnection
    43. 09-06 14:06:36.394: D/(99): Socket deconnection
    44. 09-06 14:06:38.388: D/(99): Socket deconnection
    45. 09-06 14:06:40.387: D/(99): Socket deconnection
    46. 09-06 14:06:42.385: D/(99): Socket deconnection
    47. 09-06 14:06:43.615: I/Unity(3841): NullReferenceException
    48. 09-06 14:06:43.615: I/Unity(3841):   at (wrapper managed-to-native) UnityEngine.Component:get_gameObject ()
    49. 09-06 14:06:43.615: I/Unity(3841):   at UnityAds.AdCallback (ShowResult result) [0x00000] in <filename unknown>:0
    50. 09-06 14:06:43.615: I/Unity(3841):   at UnityEngine.Advertisements.Advertisement+<Show>c__AnonStorey1.<>m__0 (System.Object sender, UnityEngine.Advertisements.FinishEventArgs e) [0x00000] in <filename unknown>:0
    51. 09-06 14:06:43.615: I/Unity(3841):   at (wrapper delegate-invoke) System.EventHandler`1<UnityEngine.Advertisements.FinishEventArgs>:invoke_void__this___object_FinishEventArgs (object,UnityEngine.Advertisements.FinishEventArgs)
    52. 09-06 14:06:43.615: I/Unity(3841):   at (wrapper delegate-invoke) System.EventHandler`1<UnityEngine.Advertisements.FinishEventArgs>:invoke_void__this___object_FinishEventArgs (object,UnityEngine.Advertisements.FinishEventArgs)
    53. 09-06 14:06:43.615: I/Unity(3841):   at UnityEngine.Advertisements.Android.Platform.onUnityAdsFinish (System.String placementId, UnityEngine.AndroidJavaObject rawShowResult) [0x00000] in <filename unknown>:0
    54. 09-06 14:06:43.615: I/Unity(3841):   at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&
    55. 09-06 14:06:43.617: I/AdColony(3841): [ADC] AdColony pause called.
    56. 09-06 14:06:43.656: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    57. 09-06 14:06:43.772: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    58. 09-06 14:06:43.833: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    59. 09-06 14:06:43.871: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    60. 09-06 14:06:43.909: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    61. 09-06 14:06:43.947: E/eglCodecCommon(3841): **** ERROR unknown type 0x73000f (glSizeof,80)
    62. 09-06 14:06:43.953: I/AdColony(3841): [ADC] AdColony resume called.
    63. 09-06 14:06:43.953: W/FlurryAgent(3841): Flurry session resumed for context:com.unity3d.player.UnityPlayerNativeActivity@27157eb
    64. 09-06 14:06:44.005: I/UnityAds(3841): com.unity3d.ads.api.Sdk.logInfo() (line:68) :: Closing Unity Ads ad unit
    65. 09-06 14:06:44.054: W/EGL_emulation(3841): eglSurfaceAttrib not implemented
    66. 09-06 14:06:44.054: W/OpenGLRenderer(3841): Failed to set EGL_SWAP_BEHAVIOR on surface 0xd007f740, error=EGL_SUCCESS
    67. 09-06 14:06:44.085: I/MediaFocusControl(1046):  AudioFocus  requestAudioFocus() from android.media.AudioManager@84cf3ff<native proxy object> req=1flags=0x0
    68. 09-06 14:06:44.087: E/Surface(3841): getSlotFromBufferLocked: unknown buffer: 0xc892eb40
    69.  
    No callback in the logs, but the NullReferenceException exists in UnityEngine.Advertisements.Advertisement+<Show> function. I guess that's why we with @JoshuaMarkk can't receive callback. Cause Unity Ads 2.0.2 is crashed inside.

    -----------------------------------------------------------------------------------------------------------------------------------------
    -----------------------------------------------------------------------------------------------------------------------------------------
    -----------------------------------------------------------------------------------------------------------------------------------------

    Case 2 - Unity Ads 1.2.x on Unity 5.4.0f3
    The First viewing Ads:
    Code (CSharp):
    1. 09-06 14:43:33.120: W/FlurryAgent(9118): Event count started: OnClick:Done:Ads:(Born)
    2. 09-06 14:43:33.120: I/Unity(9118): C# sendEvent OnClick:Done:Ads:(Born)
    3. 09-06 14:43:33.120: I/Unity(9118):
    4. 09-06 14:43:33.120: I/Unity(9118): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
    5. 09-06 14:43:33.312: I/MediaFocusControl(6031):  AudioFocus  abandonAudioFocus() from android.media.AudioManager@8be504<native proxy object>
    6. 09-06 14:43:33.321: W/FlurryAgent(9118): Flurry session resumed for context:com.unity3d.ads.android.view.UnityAdsFullscreenActivity@f26f70f
    7. 09-06 14:43:33.321: I/AdColony(9118): [ADC] AdColony resume called.
    8. 09-06 14:43:33.343: I/chromium(9118): [INFO:CONSOLE(8645)] "Hiding all views", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (8645)
    9. 09-06 14:43:33.343: I/chromium(9118): [INFO:CONSOLE(8643)] "Showing: none", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (8643)
    10. 09-06 14:43:33.396: W/EGL_emulation(9118): eglSurfaceAttrib not implemented
    11. 09-06 14:43:33.396: W/OpenGLRenderer(9118): Failed to set EGL_SWAP_BEHAVIOR on surface 0xe997fa40, error=EGL_SUCCESS
    12. 09-06 14:43:33.515: I/MediaFocusControl(6031):  AudioFocus  requestAudioFocus() from android.media.AudioManager@48f1dd2 req=1flags=0x0
    13. 09-06 14:43:33.517: W/MediaPlayer(9118): Couldn't open file on client side; trying server side: java.io.FileNotFoundException: No content provider: /storage/emulated/0/Android/data/com.evil.cogs.game/cache/UnityAdsVideoCache/UnityAds-57a3d57a4983f2b7073773ff-m31-1000.mp4
    14. 09-06 14:43:33.520: D/NuPlayer(5725): onSetVideoSurface(0xec81e700, no video decoder)
    15. 09-06 14:43:33.530: V/FFmpegExtractor(5725): SniffFFMPEG
    16. 09-06 14:43:33.530: I/FFmpegExtractor(5725): android-source:0xf232db00
    17. 09-06 14:43:33.530: D/FFMPEG(5725): android source begin open
    18. 09-06 14:43:33.530: D/FFMPEG(5725): android open, url: android-source:0xf232db00
    19. 09-06 14:43:33.530: D/FFMPEG(5725): ffmpeg open android data source success, source ptr: 0xf232db00
    20. 09-06 14:43:33.530: D/FFMPEG(5725): android source open success
    21. 09-06 14:43:33.566: I/FFMPEG(5725): Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'android-source:0xf232db00':
    22. 09-06 14:43:33.566: I/FFMPEG(5725):   Metadata:
    23. 09-06 14:43:33.566: I/FFMPEG(5725):     major_brand     : isom
    24. 09-06 14:43:33.566: I/FFMPEG(5725):     minor_version   : 1
    25. 09-06 14:43:33.566: I/FFMPEG(5725):     compatible_brands: isomavc1mp42
    26. 09-06 14:43:33.566: I/FFMPEG(5725):     creation_time   : 2016-06-13 17:33:32
    27. 09-06 14:43:33.566: I/FFMPEG(5725):   Duration: 00:00:28.24, start: 0.000000, bitrate: 951 kb/s
    28. 09-06 14:43:33.566: I/FFMPEG(5725):     Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709), 640x360 [SAR 1:1 DAR 16:9], 895 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
    29. 09-06 14:43:33.567: I/FFMPEG(5725):     Metadata:
    30. 09-06 14:43:33.567: I/FFMPEG(5725):       creation_time   : 2016-06-13 17:33:26
    31. 09-06 14:43:33.567: I/FFMPEG(5725):     Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 56 kb/s (default)
    32. 09-06 14:43:33.567: I/FFMPEG(5725):     Metadata:
    33. 09-06 14:43:33.567: I/FFMPEG(5725):       creation_time   : 2016-06-13 17:33:20
    34. 09-06 14:43:33.567: I/FFmpegExtractor(5725): FFmpegExtrator, url: android-source:0xf232db00, format_name: mov,mp4,m4a,3gp,3g2,mj2, format_long_name: QuickTime / MOV
    35. 09-06 14:43:33.567: I/FFmpegExtractor(5725): list the formats suppoted by ffmpeg:
    36. 09-06 14:43:33.567: I/FFmpegExtractor(5725): ========================================
    37. 09-06 14:43:33.567: V/FFmpegExtractor(5725): format_names[00]: mpeg
    38. 09-06 14:43:33.567: V/FFmpegExtractor(5725): format_names[01]: mpegts
    39. 09-06 14:43:33.567: V/FFmpegExtractor(5725): format_names[02]: mov,mp4,m4a,3gp,3g2,mj2
    40. 09-06 14:43:33.567: V/FFmpegExtractor(5725): format_names[03]: matroska,webm
    41. 09-06 14:43:33.567: V/FFmpegExtractor(5725): format_names[04]: asf
    42. 09-06 14:43:33.567: V/FFmpegExtractor(5725): format_names[05]: rm
    43. 09-06 14:43:33.567: V/FFmpegExtractor(5725): format_names[06]: flv
    44. 09-06 14:43:33.567: V/FFmpegExtractor(5725): format_names[07]: swf
    45. 09-06 14:43:33.567: V/FFmpegExtractor(5725): format_names[08]: avi
    46. 09-06 14:43:33.567: V/FFmpegExtractor(5725): format_names[09]: ape
    47. 09-06 14:43:33.567: V/FFmpegExtractor(5725): format_names[10]: dts
    48. 09-06 14:43:33.567: V/FFmpegExtractor(5725): format_names[11]: flac
    49. 09-06 14:43:33.567: V/FFmpegExtractor(5725): format_names[12]: ac3
    50. 09-06 14:43:33.567: V/FFmpegExtractor(5725): format_names[13]: wav
    51. 09-06 14:43:33.567: V/FFmpegExtractor(5725): format_names[14]: ogg
    52. 09-06 14:43:33.567: V/FFmpegExtractor(5725): format_names[15]: vc1
    53. 09-06 14:43:33.567: V/FFmpegExtractor(5725): format_names[16]: hevc
    54. 09-06 14:43:33.567: I/FFmpegExtractor(5725): ========================================
    55. 09-06 14:43:33.567: V/FFmpegExtractor(5725): major_brand tag is:isom
    56. 09-06 14:43:33.567: D/FFmpegExtractor(5725): suppoted codec(h264) by official Stagefright
    57. 09-06 14:43:33.567: D/FFmpegExtractor(5725): suppoted codec(aac) by official Stagefright
    58. 09-06 14:43:33.567: D/FFMPEG(5725): android source close
    59. 09-06 14:43:33.567: I/FFmpegExtractor(5725): sniff through BetterSniffFFMPEG success
    60. 09-06 14:43:33.567: D/FFmpegExtractor(5725): ffmpeg detected media content as 'video/mp4' with confidence 0.08
    61. 09-06 14:43:33.569: D/NuPlayerDriver(5725): notifyListener_l(0xf6199d80), (5, 640, 360)
    62. 09-06 14:43:33.570: D/NuPlayerDriver(5725): notifyListener_l(0xf6199d80), (1, 0, 0)
    63. 09-06 14:43:33.723: I/GameAnalytics(9118): Info/GameAnalytics: Suspending session.
    64. 09-06 14:43:33.723: I/GameAnalytics(9118): Info/GameAnalytics: Add DESIGN event: {eventId:OnClick:Done:Ads:(Born), value:0.0}
    65. 09-06 14:43:33.734: I/GameAnalytics(9118): Info/GameAnalytics: Suspending session.
    66. 09-06 14:43:33.738: I/GameAnalytics(9118): Info/GameAnalytics: 0 session(s) located with missing session_end event.
    67. 09-06 14:43:33.739: I/GameAnalytics(9118): Info/GameAnalytics: Event queue: Sending 2 events.
    68. 09-06 14:43:33.808: D/(98): Socket deconnection
    69. 09-06 14:43:33.905: W/GameAnalytics(9118): Warning/GameAnalytics: Event queue: Failed to send events.
    70. 09-06 14:43:33.907: D/MediaPlayer(9118): getMetadata
    71. 09-06 14:43:33.918: I/ActivityManager(6031): Displayed com.evil.cogs.game/com.unity3d.ads.android.view.UnityAdsFullscreenActivity: +603ms
    72. 09-06 14:43:33.937: D/NuPlayerDriver(5725): start(0xf6199d80), state is 4, eos is 0
    73. 09-06 14:43:33.937: I/GenericSource(5725): start
    74. 09-06 14:43:33.945: W/linker(5725): /system/lib/libswscale.so has text relocations. This is wasting memory and prevents security hardening. Please fix.
    75. 09-06 14:43:33.945: D/SoftFFmpegVideo(5725): SoftFFmpegVideo component: OMX.ffmpeg.h264.decoder mMode: 0 appData: 0xf1b1cfc0
    76. 09-06 14:43:33.947: I/MediaCodec(5725): [OMX.ffmpeg.h264.decoder] setting surface generation to 5862401
    77. 09-06 14:43:33.949: E/OMXNodeInstance(5725): setConfig(2a:google.aac.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)
    78. 09-06 14:43:33.949: I/ACodec(5725): codec does not support config priority (err -2147483648)
    79. 09-06 14:43:33.950: W/OMXNodeInstance(5725): [29:ffmpeg.h264.decoder] component does not support metadata mode; using fallback
    80. 09-06 14:43:33.950: E/ACodec(5725): [OMX.ffmpeg.h264.decoder] storeMetaDataInBuffers failed w/ err -1010
    81. 09-06 14:43:33.950: V/SoftFFmpegVideo(5725): got OMX_IndexParamPortDefinition, width: 640, height: 360
    82. 09-06 14:43:33.950: E/OMXNodeInstance(5725): setConfig(29:ffmpeg.h264.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)
    83. 09-06 14:43:33.950: I/ACodec(5725): codec does not support config priority (err -2147483648)
    84. 09-06 14:43:33.950: E/OMXNodeInstance(5725): setConfig(29:ffmpeg.h264.decoder, ConfigOperatingRate(0x6f800003)) ERROR: Undefined(0x80001001)
    85. 09-06 14:43:33.950: I/ACodec(5725): codec does not support config operating rate (err -2147483648)
    86. 09-06 14:43:33.950: E/OMXNodeInstance(5725): getConfig(29:ffmpeg.h264.decoder, ConfigCommonOutputCrop(0x700000f)) ERROR: Undefined(0x80001001)
    87. 09-06 14:43:33.951: I/MediaCodec(5725): MediaCodec will operate in async mode
    88. 09-06 14:43:33.951: I/MediaCodec(5725): MediaCodec will operate in async mode
    89. 09-06 14:43:33.952: I/SoftFFmpegVideo(5725): got extradata, ignore: 0, size: 30
    90. 09-06 14:43:33.952: I/SoftFFmpegVideo(5725): got extradata, ignore: 0, size: 8
    91. 09-06 14:43:33.952: I/SoftFFmpegVideo(5725): extradata is ready, size: 38
    92. 09-06 14:43:33.952: D/SoftFFmpegVideo(5725): begin to open ffmpeg decoder(h264) now
    93. 09-06 14:43:33.953: I/SoftAAC2(5725): limiting to stereo output
    94. 09-06 14:43:33.953: D/SoftFFmpegVideo(5725): open ffmpeg video decoder(h264) success
    95. 09-06 14:43:33.953: I/SoftAAC2(5725): Reconfiguring decoder: 0->44100 Hz, 0->2 channels
    96. 09-06 14:43:33.955: I/SoftFFmpegVideo(5725): ffmpeg video port setting change event(320x240)->(640x360).
    97. 09-06 14:43:33.962: E/OMXNodeInstance(5725): getConfig(29:ffmpeg.h264.decoder, ConfigCommonOutputCrop(0x700000f)) ERROR: Undefined(0x80001001)
    98. 09-06 14:43:33.962: D/NuPlayerDriver(5725): notifyListener_l(0xf6199d80), (5, 640, 360)
    99. 09-06 14:43:33.969: D/NuPlayerDriver(5725): notifyListener_l(0xf6199d80), (200, 3, 0)
    100. 09-06 14:43:33.969: D/NuPlayerDriver(5725): notifyListener_l(0xf6199d80), (6, 0, 0)
    101. 09-06 14:43:33.969: W/MediaPlayer(9118): info/warning (3, 0)
    102. 09-06 14:43:33.979: D/(5725): HostConnection::get() New Host Connection established 0xf1b2c5d0, tid 9326
    103. 09-06 14:43:34.029: D/AudioFlinger(5725): mixer(0xf1dc0000) throttle end: throttle time(7)
    104. 09-06 14:43:34.428: E/Surface(9118): getSlotFromBufferLocked: unknown buffer: 0xe80ce460
    105. 09-06 14:43:34.606: I/chromium(9118): [INFO:CONSOLE(8662)] "Resize handler called", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (8662)
    106. 09-06 14:43:34.606: I/chromium(9118): [INFO:CONSOLE(8664)] "Resize handler changing orientation to landscape", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (8664)
    107. 09-06 14:43:34.609: W/FlurryAgent(9118): Flurry session paused for context:com.unity3d.player.UnityPlayerNativeActivity@3d43c73
    108. 09-06 14:43:34.609: I/chromium(9118): [INFO:CONSOLE(8645)] "Hiding all views", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (8645)
    109. 09-06 14:43:34.612: I/chromium(9118): [INFO:CONSOLE(2697)] "GoogleAnalytics call:_setCustomVar,1,connectionType,wifi,2", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (2697)
    110. 09-06 14:43:34.915: I/GameAnalytics(9118): Info/GameAnalytics: Ending session.
    111. 09-06 14:43:35.133: I/GameAnalytics(9118): Info/GameAnalytics: Add SESSION END event.
    112. 09-06 14:43:35.135: I/GameAnalytics(9118): Info/GameAnalytics: Event queue: Sending 1 events.
    113. 09-06 14:43:35.188: I/chromium(9118): [INFO:CONSOLE(2697)] "GoogleAnalytics call:_setCustomVar,2,gameId,30200,2", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (2697)
    114. 09-06 14:43:35.188: I/chromium(9118): [INFO:CONSOLE(2697)] "GoogleAnalytics call:_setCustomVar,3,devicePixelRatio,3.5,2", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (2697)
    115. 09-06 14:43:35.188: I/chromium(9118): [INFO:CONSOLE(2697)] "GoogleAnalytics call:_setCustomVar,4,abGroup,6,2", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (2697)
    116. 09-06 14:43:35.188: I/chromium(9118): [INFO:CONSOLE(2697)] "GoogleAnalytics call:_trackPageview", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (2697)
    117. 09-06 14:43:35.188: I/Choreographer(9118): Skipped 32 frames!  The application may be doing too much work on its main thread.
    118. 09-06 14:43:35.189: I/chromium(9118): [INFO:CONSOLE(8632)] "Rendering: completed", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (8632)
    119. 09-06 14:43:35.189: I/chromium(9118): [INFO:CONSOLE(8643)] "Showing: completed", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (8643)
    120. 09-06 14:43:35.353: W/GameAnalytics(9118): Warning/GameAnalytics: Event queue: Failed to send events.
    121. 09-06 14:43:35.802: D/(98): Socket deconnection
    122. 09-06 14:43:37.799: D/(98): Socket deconnection
    123. 09-06 14:43:39.799: D/(98): Socket deconnection
    124. 09-06 14:43:41.802: D/(98): Socket deconnection
    125. 09-06 14:43:43.802: D/(98): Socket deconnection
    126. 09-06 14:43:45.806: D/(98): Socket deconnection
    127. 09-06 14:43:47.808: D/(98): Socket deconnection
    128. 09-06 14:43:49.814: D/(98): Socket deconnection
    129. 09-06 14:43:51.823: D/(98): Socket deconnection
    130. 09-06 14:43:53.846: D/(98): Socket deconnection
    131. 09-06 14:43:55.859: D/(98): Socket deconnection
    132. 09-06 14:43:57.864: D/(98): Socket deconnection
    133. 09-06 14:43:58.031: I/PlayCommon(8702): [331] com.google.android.play.a.l.e(787): Preparing logs for uploading
    134. 09-06 14:43:58.031: I/PlayCommon(8702): [331] com.google.android.play.a.l.e(789): No file ready to send
    135. 09-06 14:43:59.867: D/(98): Socket deconnection
    136. 09-06 14:44:01.872: D/(98): Socket deconnection
    137. 09-06 14:44:02.487: I/NuPlayerDecoder(5725): [audio] saw output EOS
    138. 09-06 14:44:02.838: D/SoftFFmpegVideo(5725): ffmpeg video decoder empty eos inbuf
    139. 09-06 14:44:02.839: I/SoftFFmpegVideo(5725): ffmpeg video decoder failed to get frame.
    140. 09-06 14:44:02.839: D/SoftFFmpegVideo(5725): ffmpeg video decoder fill eos outbuf
    141. 09-06 14:44:02.839: I/NuPlayerDecoder(5725): [video] saw output EOS
    142. 09-06 14:44:03.030: D/NuPlayerDriver(5725): notifyListener_l(0xf6199d80), (2, 0, 0)
    143. 09-06 14:44:03.104: D/NuPlayerDriver(5725): stop(0xf6199d80)
    144. 09-06 14:44:03.105: D/NuPlayerDriver(5725): notifyListener_l(0xf6199d80), (8, 0, 0)
    145. 09-06 14:44:03.105: D/NuPlayerDriver(5725): reset(0xf6199d80)
    146. 09-06 14:44:03.106: V/SoftFFmpegVideo(5725): ffmpeg video decoder flush port(0)
    147. 09-06 14:44:03.106: V/SoftFFmpegVideo(5725): ffmpeg video decoder flush port(1)
    148. 09-06 14:44:03.109: V/SoftFFmpegVideo(5725): ~SoftFFmpegVideo
    149. 09-06 14:44:03.112: W/AMessage(5725): failed to post message as target looper for handler 0 is gone.
    150. 09-06 14:44:03.116: W/AMessage(5725): failed to post message as target looper for handler 0 is gone.
    151. 09-06 14:44:03.118: D/NuPlayerDriver(5725): notifyResetComplete(0xf6199d80)
    152. 09-06 14:44:03.119: I/MediaFocusControl(6031):  AudioFocus  abandonAudioFocus() from android.media.AudioManager@48f1dd2
    153. 09-06 14:44:03.533: I/chromium(9118): [INFO:CONSOLE(8645)] "Hiding all views", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (8645)
    154. 09-06 14:44:03.533: I/chromium(9118): [INFO:CONSOLE(8643)] "Showing: completed", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (8643)
    155. 09-06 14:44:03.876: D/(98): Socket deconnection
    156. 09-06 14:44:04.453: I/chromium(9118): [INFO:CONSOLE(8662)] "Resize handler called", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (8662)
    157. 09-06 14:44:05.877: D/(98): Socket deconnection
    158. 09-06 14:44:07.879: D/(98): Socket deconnection
    159. 09-06 14:44:09.877: D/(98): Socket deconnection
    160. 09-06 14:44:11.878: D/(98): Socket deconnection
    161. 09-06 14:44:13.876: D/(98): Socket deconnection
    162. 09-06 14:44:15.878: D/(98): Socket deconnection
    163. 09-06 14:44:16.990: I/chromium(9118): [INFO:CONSOLE(8155)] "Sending close event for parameters: 30200, 56f271af981b8509008460aa, completed", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (8155)
    164. 09-06 14:44:16.995: I/chromium(9118): [INFO:CONSOLE(8077)] "true", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (8077)
    165. 09-06 14:44:17.282: I/AdColony(9118): [ADC] AdColony pause called.
    166. 09-06 14:44:17.296: W/FlurryAgent(9118): Flurry session resumed for context:com.unity3d.player.UnityPlayerNativeActivity@3d43c73
    167. 09-06 14:44:17.298: I/AdColony(9118): [ADC] AdColony resume called.
    168. 09-06 14:44:17.302: I/chromium(9118): [INFO:CONSOLE(8645)] "Hiding all views", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (8645)
    169. 09-06 14:44:17.302: I/chromium(9118): [INFO:CONSOLE(8643)] "Showing: none", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (8643)
    170. 09-06 14:44:17.330: W/EGL_emulation(9118): eglSurfaceAttrib not implemented
    171. 09-06 14:44:17.330: W/OpenGLRenderer(9118): Failed to set EGL_SWAP_BEHAVIOR on surface 0xca3c7880, error=EGL_SUCCESS
    172. 09-06 14:44:17.334: I/MediaFocusControl(6031):  AudioFocus  requestAudioFocus() from android.media.AudioManager@8be504<native proxy object> req=1flags=0x0
    173. 09-06 14:44:17.335: E/Surface(9118): getSlotFromBufferLocked: unknown buffer: 0xd93cda90
    174. 09-06 14:44:17.421: I/GameAnalytics(9118): Info/GameAnalytics: Resuming session.
    175. 09-06 14:44:17.421: I/GameAnalytics(9118): Info/GameAnalytics: Starting a new session.
    176. 09-06 14:44:17.470: I/Unity(9118): [Born]:Done:Ads:UnityAds:Advertise callback result:Finished
    177. 09-06 14:44:17.470: I/Unity(9118):
    178. 09-06 14:44:17.470: I/Unity(9118): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
    179. 09-06 14:44:17.470: W/FlurryAgent(9118): Event count started: AdsResult:Done:Ads:UnityAds:bonusCoinsPerLevel:finished:(Born)
    180. 09-06 14:44:17.471: I/Unity(9118): C# sendEvent AdsResult:Done:Ads:UnityAds:bonusCoinsPerLevel:finished:(Born)
    181. 09-06 14:44:17.471: I/Unity(9118):
    182. 09-06 14:44:17.471: I/Unity(9118): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
    183.  
    No errors while showing and everything is OK!
    The callback exists:
    09-06 14:44:17.470: I/Unity(9118): [Born]:Done:Ads:UnityAds:Advertise callback result:Finished

    -----------------------------------------------------------------------------------------------------------------------------------------
    -----------------------------------------------------------------------------------------------------------------------------------------

    Second
    viewing ads:
    Code (CSharp):
    1. 09-06 14:49:44.637: W/FlurryAgent(9118): Event count incremented: OnClick:Done:Ads:(Born)
    2. 09-06 14:49:44.637: I/Unity(9118): C# sendEvent OnClick:Done:Ads:(Born)
    3. 09-06 14:49:44.637: I/Unity(9118):
    4. 09-06 14:49:44.637: I/Unity(9118): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
    5. 09-06 14:49:44.821: I/MediaFocusControl(6031):  AudioFocus  abandonAudioFocus() from android.media.AudioManager@8be504<native proxy object>
    6. 09-06 14:49:44.827: I/AdColony(9118): [ADC] AdColony resume called.
    7. 09-06 14:49:44.827: W/FlurryAgent(9118): Flurry session resumed for context:com.unity3d.ads.android.view.UnityAdsFullscreenActivity@9330984
    8. 09-06 14:49:44.833: I/chromium(9118): [INFO:CONSOLE(8645)] "Hiding all views", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (8645)
    9. 09-06 14:49:44.833: I/chromium(9118): [INFO:CONSOLE(8643)] "Showing: none", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (8643)
    10. 09-06 14:49:44.877: W/EGL_emulation(9118): eglSurfaceAttrib not implemented
    11. 09-06 14:49:44.877: W/OpenGLRenderer(9118): Failed to set EGL_SWAP_BEHAVIOR on surface 0xca191380, error=EGL_SUCCESS
    12. 09-06 14:49:45.192: I/MediaFocusControl(6031):  AudioFocus  requestAudioFocus() from android.media.AudioManager@4f0051c req=1flags=0x0
    13. 09-06 14:49:45.193: W/MediaPlayer(9118): Couldn't open file on client side; trying server side: java.io.FileNotFoundException: No content provider: /storage/emulated/0/Android/data/com.evil.cogs.game/cache/UnityAdsVideoCache/UnityAds-57835149e421210901780406-m31-1000.mp4
    14. 09-06 14:49:45.194: D/NuPlayer(5725): onSetVideoSurface(0xec81f500, no video decoder)
    15. 09-06 14:49:45.201: V/FFmpegExtractor(5725): SniffFFMPEG
    16. 09-06 14:49:45.201: I/FFmpegExtractor(5725): android-source:0xf232d4c0
    17. 09-06 14:49:45.201: D/FFMPEG(5725): android source begin open
    18. 09-06 14:49:45.201: D/FFMPEG(5725): android open, url: android-source:0xf232d4c0
    19. 09-06 14:49:45.201: D/FFMPEG(5725): ffmpeg open android data source success, source ptr: 0xf232d4c0
    20. 09-06 14:49:45.201: D/FFMPEG(5725): android source open success
    21. 09-06 14:49:45.230: I/FFMPEG(5725): Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'android-source:0xf232d4c0':
    22. 09-06 14:49:45.230: I/FFMPEG(5725):   Metadata:
    23. 09-06 14:49:45.230: I/FFMPEG(5725):     major_brand     : isom
    24. 09-06 14:49:45.230: I/FFMPEG(5725):     minor_version   : 1
    25. 09-06 14:49:45.230: I/FFMPEG(5725):     compatible_brands: isomavc1mp42
    26. 09-06 14:49:45.230: I/FFMPEG(5725):     creation_time   : 2016-07-11 06:37:08
    27. 09-06 14:49:45.230: I/FFMPEG(5725):   Duration: 00:00:47.40, start: 0.000000, bitrate: 956 kb/s
    28. 09-06 14:49:45.230: I/FFMPEG(5725):     Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 900 kb/s, 30 fps, 30 tbr, 30 tbn, 60 tbc (default)
    29. 09-06 14:49:45.230: I/FFMPEG(5725):     Metadata:
    30. 09-06 14:49:45.230: I/FFMPEG(5725):       creation_time   : 2016-07-11 06:36:58
    31. 09-06 14:49:45.230: I/FFMPEG(5725):     Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 52 kb/s (default)
    32. 09-06 14:49:45.230: I/FFMPEG(5725):     Metadata:
    33. 09-06 14:49:45.231: I/FFMPEG(5725):       creation_time   : 2016-07-11 06:36:49
    34. 09-06 14:49:45.231: I/FFmpegExtractor(5725): FFmpegExtrator, url: android-source:0xf232d4c0, format_name: mov,mp4,m4a,3gp,3g2,mj2, format_long_name: QuickTime / MOV
    35. 09-06 14:49:45.231: I/FFmpegExtractor(5725): list the formats suppoted by ffmpeg:
    36. 09-06 14:49:45.231: I/FFmpegExtractor(5725): ========================================
    37. 09-06 14:49:45.231: V/FFmpegExtractor(5725): format_names[00]: mpeg
    38. 09-06 14:49:45.231: V/FFmpegExtractor(5725): format_names[01]: mpegts
    39. 09-06 14:49:45.231: V/FFmpegExtractor(5725): format_names[02]: mov,mp4,m4a,3gp,3g2,mj2
    40. 09-06 14:49:45.231: V/FFmpegExtractor(5725): format_names[03]: matroska,webm
    41. 09-06 14:49:45.231: V/FFmpegExtractor(5725): format_names[04]: asf
    42. 09-06 14:49:45.231: V/FFmpegExtractor(5725): format_names[05]: rm
    43. 09-06 14:49:45.231: V/FFmpegExtractor(5725): format_names[06]: flv
    44. 09-06 14:49:45.231: V/FFmpegExtractor(5725): format_names[07]: swf
    45. 09-06 14:49:45.231: V/FFmpegExtractor(5725): format_names[08]: avi
    46. 09-06 14:49:45.231: V/FFmpegExtractor(5725): format_names[09]: ape
    47. 09-06 14:49:45.231: V/FFmpegExtractor(5725): format_names[10]: dts
    48. 09-06 14:49:45.231: V/FFmpegExtractor(5725): format_names[11]: flac
    49. 09-06 14:49:45.231: V/FFmpegExtractor(5725): format_names[12]: ac3
    50. 09-06 14:49:45.231: V/FFmpegExtractor(5725): format_names[13]: wav
    51. 09-06 14:49:45.231: V/FFmpegExtractor(5725): format_names[14]: ogg
    52. 09-06 14:49:45.231: V/FFmpegExtractor(5725): format_names[15]: vc1
    53. 09-06 14:49:45.231: V/FFmpegExtractor(5725): format_names[16]: hevc
    54. 09-06 14:49:45.231: I/FFmpegExtractor(5725): ========================================
    55. 09-06 14:49:45.231: V/FFmpegExtractor(5725): major_brand tag is:isom
    56. 09-06 14:49:45.231: D/FFmpegExtractor(5725): suppoted codec(h264) by official Stagefright
    57. 09-06 14:49:45.231: D/FFmpegExtractor(5725): suppoted codec(aac) by official Stagefright
    58. 09-06 14:49:45.231: D/FFMPEG(5725): android source close
    59. 09-06 14:49:45.231: I/FFmpegExtractor(5725): sniff through BetterSniffFFMPEG success
    60. 09-06 14:49:45.231: D/FFmpegExtractor(5725): ffmpeg detected media content as 'video/mp4' with confidence 0.08
    61. 09-06 14:49:45.237: D/NuPlayerDriver(5725): notifyListener_l(0xf1b2d480), (5, 640, 360)
    62. 09-06 14:49:45.237: D/NuPlayerDriver(5725): notifyListener_l(0xf1b2d480), (1, 0, 0)
    63. 09-06 14:49:45.413: D/(98): Socket deconnection
    64. 09-06 14:49:45.435: I/GameAnalytics(9118): Info/GameAnalytics: Add DESIGN event: {eventId:OnClick:Done:Ads:(Born), value:0.0}
    65. 09-06 14:49:45.443: I/GameAnalytics(9118): Info/GameAnalytics: Suspending session.
    66. 09-06 14:49:45.749: D/MediaPlayer(9118): getMetadata
    67. 09-06 14:49:45.806: I/ActivityManager(6031): Displayed com.evil.cogs.game/com.unity3d.ads.android.view.UnityAdsFullscreenActivity: +984ms
    68. 09-06 14:49:45.838: D/NuPlayerDriver(5725): start(0xf1b2d480), state is 4, eos is 0
    69. 09-06 14:49:45.838: I/GenericSource(5725): start
    70. 09-06 14:49:45.844: W/linker(5725): /system/lib/libswscale.so has text relocations. This is wasting memory and prevents security hardening. Please fix.
    71. 09-06 14:49:45.844: D/SoftFFmpegVideo(5725): SoftFFmpegVideo component: OMX.ffmpeg.h264.decoder mMode: 0 appData: 0xf09d5480
    72. 09-06 14:49:45.846: I/MediaCodec(5725): [OMX.ffmpeg.h264.decoder] setting surface generation to 5862402
    73. 09-06 14:49:45.848: W/OMXNodeInstance(5725): [2b:ffmpeg.h264.decoder] component does not support metadata mode; using fallback
    74. 09-06 14:49:45.848: E/ACodec(5725): [OMX.ffmpeg.h264.decoder] storeMetaDataInBuffers failed w/ err -1010
    75. 09-06 14:49:45.848: E/OMXNodeInstance(5725): setConfig(2c:google.aac.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)
    76. 09-06 14:49:45.848: I/ACodec(5725): codec does not support config priority (err -2147483648)
    77. 09-06 14:49:45.848: V/SoftFFmpegVideo(5725): got OMX_IndexParamPortDefinition, width: 640, height: 360
    78. 09-06 14:49:45.848: E/OMXNodeInstance(5725): setConfig(2b:ffmpeg.h264.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)
    79. 09-06 14:49:45.848: I/ACodec(5725): codec does not support config priority (err -2147483648)
    80. 09-06 14:49:45.848: E/OMXNodeInstance(5725): setConfig(2b:ffmpeg.h264.decoder, ConfigOperatingRate(0x6f800003)) ERROR: Undefined(0x80001001)
    81. 09-06 14:49:45.848: I/ACodec(5725): codec does not support config operating rate (err -2147483648)
    82. 09-06 14:49:45.848: E/OMXNodeInstance(5725): getConfig(2b:ffmpeg.h264.decoder, ConfigCommonOutputCrop(0x700000f)) ERROR: Undefined(0x80001001)
    83. 09-06 14:49:45.848: I/MediaCodec(5725): MediaCodec will operate in async mode
    84. 09-06 14:49:45.849: I/MediaCodec(5725): MediaCodec will operate in async mode
    85. 09-06 14:49:45.850: I/SoftAAC2(5725): limiting to stereo output
    86. 09-06 14:49:45.850: I/SoftFFmpegVideo(5725): got extradata, ignore: 0, size: 29
    87. 09-06 14:49:45.850: I/SoftFFmpegVideo(5725): got extradata, ignore: 0, size: 8
    88. 09-06 14:49:45.851: I/SoftAAC2(5725): Reconfiguring decoder: 0->44100 Hz, 0->2 channels
    89. 09-06 14:49:45.851: I/SoftFFmpegVideo(5725): extradata is ready, size: 37
    90. 09-06 14:49:45.851: D/SoftFFmpegVideo(5725): begin to open ffmpeg decoder(h264) now
    91. 09-06 14:49:45.852: D/SoftFFmpegVideo(5725): open ffmpeg video decoder(h264) success
    92. 09-06 14:49:45.859: I/SoftFFmpegVideo(5725): ffmpeg video port setting change event(320x240)->(640x360).
    93. 09-06 14:49:45.862: E/OMXNodeInstance(5725): getConfig(2b:ffmpeg.h264.decoder, ConfigCommonOutputCrop(0x700000f)) ERROR: Undefined(0x80001001)
    94. 09-06 14:49:45.862: D/NuPlayerDriver(5725): notifyListener_l(0xf1b2d480), (5, 640, 360)
    95. 09-06 14:49:45.879: D/NuPlayerDriver(5725): notifyListener_l(0xf1b2d480), (200, 3, 0)
    96. 09-06 14:49:45.879: D/NuPlayerDriver(5725): notifyListener_l(0xf1b2d480), (6, 0, 0)
    97. 09-06 14:49:45.879: W/MediaPlayer(9118): info/warning (3, 0)
    98. 09-06 14:49:45.945: D/AudioFlinger(5725): mixer(0xf1dc0000) throttle end: throttle time(7)
    99. 09-06 14:49:45.957: D/(5725): HostConnection::get() New Host Connection established 0xf1b2cd70, tid 9373
    100. 09-06 14:49:47.408: D/(98): Socket deconnection
    101. 09-06 14:49:48.176: E/Surface(9118): getSlotFromBufferLocked: unknown buffer: 0xcfa0c5b0
    102. 09-06 14:49:48.367: I/Choreographer(9118): Skipped 72 frames!  The application may be doing too much work on its main thread.
    103. 09-06 14:49:48.991: I/chromium(9118): [INFO:CONSOLE(8645)] "Hiding all views", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (8645)
    104. 09-06 14:49:48.992: I/chromium(9118): [INFO:CONSOLE(8632)] "Rendering: completed", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (8632)
    105. 09-06 14:49:48.992: I/chromium(9118): [INFO:CONSOLE(8643)] "Showing: completed", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (8643)
    106. 09-06 14:49:49.425: D/(98): Socket deconnection
    107. 09-06 14:49:51.459: I/GameAnalytics(9118): Info/GameAnalytics: 0 session(s) located with missing session_end event.
    108. 09-06 14:49:51.460: I/GameAnalytics(9118): Info/GameAnalytics: Event queue: Sending 2 events.
    109. 09-06 14:49:51.462: D/(98): Socket deconnection
    110. 09-06 14:49:51.639: W/GameAnalytics(9118): Warning/GameAnalytics: Event queue: Failed to send events.
    111. 09-06 14:49:53.456: D/(98): Socket deconnection
    112. 09-06 14:49:54.639: W/ActivityManager(6031): Launch timeout has expired, giving up wake lock!
    113. 09-06 14:49:54.919: W/FlurryAgent(9118): Flurry session paused for context:com.unity3d.player.UnityPlayerNativeActivity@3d43c73
    114. 09-06 14:49:55.466: D/(98): Socket deconnection
    115. 09-06 14:49:55.683: I/GameAnalytics(9118): Info/GameAnalytics: Ending session.
    116. 09-06 14:49:55.700: I/GameAnalytics(9118): Info/GameAnalytics: Add SESSION END event.
    117. 09-06 14:49:55.701: I/GameAnalytics(9118): Info/GameAnalytics: Event queue: Sending 1 events.
    118. 09-06 14:49:55.884: W/GameAnalytics(9118): Warning/GameAnalytics: Event queue: Failed to send events.
    119. 09-06 14:49:57.473: D/(98): Socket deconnection
    120. 09-06 14:49:59.469: D/(98): Socket deconnection
    121. 09-06 14:50:01.486: D/(98): Socket deconnection
    122. 09-06 14:50:03.484: D/(98): Socket deconnection
    123. 09-06 14:50:05.490: D/(98): Socket deconnection
    124. 09-06 14:50:07.488: D/(98): Socket deconnection
    125. 09-06 14:50:09.506: D/(98): Socket deconnection
    126. 09-06 14:50:11.505: D/(98): Socket deconnection
    127. 09-06 14:50:13.501: D/(98): Socket deconnection
    128. 09-06 14:50:15.503: D/(98): Socket deconnection
    129. 09-06 14:50:17.513: D/(98): Socket deconnection
    130. 09-06 14:50:19.515: D/(98): Socket deconnection
    131. 09-06 14:50:21.518: D/(98): Socket deconnection
    132. 09-06 14:50:23.529: D/(98): Socket deconnection
    133. 09-06 14:50:25.533: D/(98): Socket deconnection
    134. 09-06 14:50:27.551: D/(98): Socket deconnection
    135. 09-06 14:50:29.548: D/(98): Socket deconnection
    136. 09-06 14:50:31.547: D/(98): Socket deconnection
    137. 09-06 14:50:33.557: D/(98): Socket deconnection
    138. 09-06 14:50:34.240: I/NuPlayerDecoder(5725): [audio] saw output EOS
    139. 09-06 14:50:34.606: D/SoftFFmpegVideo(5725): ffmpeg video decoder empty eos inbuf
    140. 09-06 14:50:34.606: I/SoftFFmpegVideo(5725): ffmpeg video decoder failed to get frame.
    141. 09-06 14:50:34.606: D/SoftFFmpegVideo(5725): ffmpeg video decoder fill eos outbuf
    142. 09-06 14:50:34.606: I/NuPlayerDecoder(5725): [video] saw output EOS
    143. 09-06 14:50:34.676: D/NuPlayerDriver(5725): notifyListener_l(0xf1b2d480), (2, 0, 0)
    144. 09-06 14:50:34.736: D/NuPlayerDriver(5725): stop(0xf1b2d480)
    145. 09-06 14:50:34.736: D/NuPlayerDriver(5725): notifyListener_l(0xf1b2d480), (8, 0, 0)
    146. 09-06 14:50:34.736: D/NuPlayerDriver(5725): reset(0xf1b2d480)
    147. 09-06 14:50:34.737: V/SoftFFmpegVideo(5725): ffmpeg video decoder flush port(0)
    148. 09-06 14:50:34.738: V/SoftFFmpegVideo(5725): ffmpeg video decoder flush port(1)
    149. 09-06 14:50:34.740: W/AMessage(5725): failed to post message as target looper for handler 0 is gone.
    150. 09-06 14:50:34.741: V/SoftFFmpegVideo(5725): ~SoftFFmpegVideo
    151. 09-06 14:50:34.791: W/AMessage(5725): failed to post message as target looper for handler 0 is gone.
    152. 09-06 14:50:34.793: D/NuPlayerDriver(5725): notifyResetComplete(0xf1b2d480)
    153. 09-06 14:50:34.794: I/MediaFocusControl(6031):  AudioFocus  abandonAudioFocus() from android.media.AudioManager@4f0051c
    154. 09-06 14:50:35.142: I/chromium(9118): [INFO:CONSOLE(8645)] "Hiding all views", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (8645)
    155. 09-06 14:50:35.143: I/chromium(9118): [INFO:CONSOLE(8643)] "Showing: completed", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (8643)
    156. 09-06 14:50:35.549: D/(98): Socket deconnection
    157. 09-06 14:50:36.171: I/chromium(9118): [INFO:CONSOLE(8662)] "Resize handler called", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (8662)
    158. 09-06 14:50:37.551: D/(98): Socket deconnection
    159. 09-06 14:50:38.019: I/chromium(9118): [INFO:CONSOLE(8155)] "Sending close event for parameters: 30200, 56f271af981b8509008460aa, completed", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (8155)
    160. 09-06 14:50:38.019: I/chromium(9118): [INFO:CONSOLE(8077)] "true", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (8077)
    161. 09-06 14:50:38.275: I/AdColony(9118): [ADC] AdColony pause called.
    162. 09-06 14:50:38.278: I/AdColony(9118): [ADC] AdColony resume called.
    163. 09-06 14:50:38.278: W/FlurryAgent(9118): Flurry session resumed for context:com.unity3d.player.UnityPlayerNativeActivity@3d43c73
    164. 09-06 14:50:38.279: I/chromium(9118): [INFO:CONSOLE(8645)] "Hiding all views", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (8645)
    165. 09-06 14:50:38.279: I/chromium(9118): [INFO:CONSOLE(8643)] "Showing: none", source: http://cdn.unityads.unity3d.com/impact/webview/production/impact/index.html?version=4d239a8ad4105f2ebb1d89d4aebcd9a0b7b8a563 (8643)
    166. 09-06 14:50:38.332: W/EGL_emulation(9118): eglSurfaceAttrib not implemented
    167. 09-06 14:50:38.332: W/OpenGLRenderer(9118): Failed to set EGL_SWAP_BEHAVIOR on surface 0xcda68420, error=EGL_SUCCESS
    168. 09-06 14:50:38.359: I/MediaFocusControl(6031):  AudioFocus  requestAudioFocus() from android.media.AudioManager@8be504<native proxy object> req=1flags=0x0
    169. 09-06 14:50:38.360: E/Surface(9118): getSlotFromBufferLocked: unknown buffer: 0xca536770
    170. 09-06 14:50:38.412: D/AudioFlinger(5725): mixer(0xf1dc0000) throttle end: throttle time(11)
    171. 09-06 14:50:38.463: I/Unity(9118): [Born]:Done:Ads:UnityAds:Advertise callback result:Finished
    172. 09-06 14:50:38.463: I/Unity(9118):
    173. 09-06 14:50:38.463: I/Unity(9118): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
    174. 09-06 14:50:38.466: W/FlurryAgent(9118): Event count incremented: AdsResult:Done:Ads:UnityAds:bonusCoinsPerLevel:finished:(Born)
    175. 09-06 14:50:38.467: I/Unity(9118): C# sendEvent AdsResult:Done:Ads:UnityAds:bonusCoinsPerLevel:finished:(Born)
    176. 09-06 14:50:38.467: I/Unity(9118):
    177. 09-06 14:50:38.467: I/Unity(9118): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
    178.  
    The same result - no errors and callback exists:
    09-06 14:50:38.463: I/Unity(9118): [Born]:Done:Ads:UnityAds:Advertise callback result:Finished

    -----------------------------------------------------------------------------------------------------------------------------------------

    So, yeah, I was right about a problem with Unity Ads 2.0.2 on Unity 5.4.0f3
    All these logs was got from Genymotion emulator, but the same behavior I saw on my Nexus 7 (2013) and Galaxy Nexus devices, but they play sounds and they don't always "buffering" video, anyway callback doesn't come.

    Hope I'm wrong somewhere... or hope it will be fixed soon.

    Best regards
     
  19. BAIZOR

    BAIZOR

    Joined:
    Jul 4, 2013
    Posts:
    72
    Looks like this is the core problem in Unity Ads 2.0.2

    Code (CSharp):
    1. 09-06 14:06:43.615: I/Unity(3841): NullReferenceException
    2. 09-06 14:06:43.615: I/Unity(3841):   at (wrapper managed-to-native) UnityEngine.Component:get_gameObject ()
    3. 09-06 14:06:43.615: I/Unity(3841):   at UnityAds.AdCallback (ShowResult result) [0x00000] in <filename unknown>:0
    4. 09-06 14:06:43.615: I/Unity(3841):   at UnityEngine.Advertisements.Advertisement+<Show>c__AnonStorey1.<>m__0 (System.Object sender, UnityEngine.Advertisements.FinishEventArgs e) [0x00000] in <filename unknown>:0
    5. 09-06 14:06:43.615: I/Unity(3841):   at (wrapper delegate-invoke) System.EventHandler`1<UnityEngine.Advertisements.FinishEventArgs>:invoke_void__this___object_FinishEventArgs (object,UnityEngine.Advertisements.FinishEventArgs)
    6. 09-06 14:06:43.615: I/Unity(3841):   at (wrapper delegate-invoke) System.EventHandler`1<UnityEngine.Advertisements.FinishEventArgs>:invoke_void__this___object_FinishEventArgs (object,UnityEngine.Advertisements.FinishEventArgs)
    7. 09-06 14:06:43.615: I/Unity(3841):   at UnityEngine.Advertisements.Android.Platform.onUnityAdsFinish (System.String placementId, UnityEngine.AndroidJavaObject rawShowResult) [0x00000] in <filename unknown>:0
    8. 09-06 14:06:43.615: I/Unity(3841):   at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&
    9.  
     
  20. rasmus-unity

    rasmus-unity

    Unity Technologies

    Joined:
    Aug 15, 2014
    Posts:
    1,169
    Hi @BAIZOR,

    Thanks for the detailed logs. However seems that the last part of your callstack, i.e.
    Code (CSharp):
    1.  
    2. NullReferenceException
    3. at (wrapper managed-to-native) UnityEngine.Component:get_gameObject ()
    4. at UnityAds.AdCallback (ShowResult result) [0x00000] in <filename unknown>:0
    5.  
    looks like the happens in your code, i.e. in UnityAds.AdCallback() while trying to get GameObject reference. Is that game object somehow undefined?

    /Rasmus
     
  21. BAIZOR

    BAIZOR

    Joined:
    Jul 4, 2013
    Posts:
    72
    Hm... Will try to find where is exactly. Will notify you later about results. For now I just can guess that the crash happens when I try to AudioSource.Play() in callback. And after Unity Ads 2.0.2 sounds work strange, and then no work at all (I didn't find 100% reproduced flow).
    Anyway, no difference between these 2 cases (Unity Ads 1.2.x and Unity Ads 2.0.2) exclude changing Unity Ads version.
    Does it mean, that Unity Ads 2.0.2 has regression problems?

    Best
     
  22. rasmus-unity

    rasmus-unity

    Unity Technologies

    Joined:
    Aug 15, 2014
    Posts:
    1,169
    Just to make sure, as you earlier mentioned you also upgraded Unity version at the same time.

    Is following correct?
    Unity 5.4 with Unity Ads 1.x works fine
    Unity 5.4 with Unity Ads 2.0 crashes

    /Rasmus
     
  23. BAIZOR

    BAIZOR

    Joined:
    Jul 4, 2013
    Posts:
    72
    With zero other changes in project*
    - absolutely correct.

    Anyway, I will try to find problem on my side, in the evening.
     
  24. JoshuaMarkk

    JoshuaMarkk

    Joined:
    Oct 27, 2015
    Posts:
    13
    Wow this blew up a bit, sorry I was gone for so long. I'm trying to implement UnityAds 2.0 in a different project to see if I can get it working, then go back to the other project (the one I made this forum post for originally) and figure out what the problem is. I feel like there's some things I don't understand properly about UnityAds 2.0 and I'd like to clear a few things up.

    If I'm using UnityAds 2.0, I want to disable UnityAds in the service panel, right?

    It seems like the autocompletes I'm getting in Visual Studio are all slightly different than the methods and classes referenced in the docs for UnityEngine.Advertisements. Is this because the docs are for the Services panel version of UnityAds and UnityAds 2.0 overwrites that namespace or something like that?

    The only way I've been able to make any headway with UnityAds 2.0 is thanks to Visual Studio autocompletes to browse the class members. Is there any good reference for implementing UnityAds 2.0 in Unity? Everything I've found was either for native Android/iOS or for the Services panel version.

    Thanks!
     
  25. rasmus-unity

    rasmus-unity

    Unity Technologies

    Joined:
    Aug 15, 2014
    Posts:
    1,169
    Hi and welcome back,

    Regarding disabling Unity Ads in Service panel, we have a new feature coming up on how to handle this in Unity 5.4, which basically allows you to have Ads enabled on project level, but disable the engine integration when using SDK 2.0 from asset store. This allows e.g. Unity Analytics to show ads revenue on their dashboard.

    As such SDK 2.0 should be backwards compatible with SDK 1.x, so examples on e.g. https://docs.unity3d.com/ScriptReference/Advertisements.Advertisement.Show.html should still work. Unity specific documentation for Ads SDK 2.0 can be found on http://unityads.unity3d.com/help/monetization/2.0-integration-guide-unity

    Does this help?

    /Rasmus
     
  26. JoshuaMarkk

    JoshuaMarkk

    Joined:
    Oct 27, 2015
    Posts:
    13
    Yes that answers all my questions! I'll be sure to get back to you if I figure out why it doesn't work in my other project. Thank you!
     
  27. JoshuaMarkk

    JoshuaMarkk

    Joined:
    Oct 27, 2015
    Posts:
    13
    I FIXED IT!

    Okay so the problem was that I was getting a NullReferenceException in my callback, but since the callback happens on a different thread, it never output that to the console. Or maybe the native code part of the callback system just gives up and doesn't bother outputting anything if there's an error.

    To anybody coming to this thread in the future, make sure you check for null everywhere in your callback, and also keep in mind that since your callback happens on a different thread, you can't do stuff like gameObject.SetActive() or access transform elements or pretty much do anything that deals with Unity. My hacky solution for now is to just have "giveReward = true;" in my callback, and my Update loop handles the actual giving of the reward if giveReward == true.

    Hope that maybe helps you @BAIZOR. Thanks again for all your help @rasmus-unity!
     
    Last edited: Sep 26, 2016
    edg12345 likes this.
  28. edg12345

    edg12345

    Joined:
    Feb 7, 2015
    Posts:
    22
    Just recently updated to ads 2.0 and had same issue on Android(worked fine in editor). Bool in options callback worked great.thanks
     
    JoshuaMarkk likes this.
  29. tessellation

    tessellation

    Joined:
    Aug 11, 2015
    Posts:
    102
    Also recently updated to UnityAds 2.0.5 from UnityAds v1 and when I run in the editor with the placeholder ad, the callback works fine. However on both Android and iOS devices, the callback never happens. I've connected the debugger and put a breakpoint in the callback and it never hits. I've also set booleans from the callback as suggested in this thread and they never become true. This is the same code in UnityAds v1 and it seems to be broken now.

    Oh and in case it matters, I'm running Unity 5.3.6p5
     
    Last edited: Oct 13, 2016
  30. tessellation

    tessellation

    Joined:
    Aug 11, 2015
    Posts:
    102
    @rasmus-unity Here's the Android log output from my app/UnityAds around when the ad finishes playing. The callback still never hits:

    Code (CSharp):
    1. 10-13 00:10:26.931: D/UnityAds(1767): com.unity3d.ads.webview.bridge.WebViewBridgeInterface.handleInvocation() (line:13) :: handleInvocation [["com.unity3d.ads.api.Listener","sendFinishEvent",["rewardedVideo","COMPLETED"],"225"],["com.unity3d.ads.api.AdUnit","close",[],"226"]]
    2. 10-13 00:10:27.181: D/UnityAds(1767): com.unity3d.ads.webview.WebViewApp.invokeJavascriptMethod() (line:88) :: Invoking javascript: javascript:window.nativebridge.handleCallback([["225","OK",[]],["226","OK",[]]]);
    3. 10-13 00:10:27.247: D/UnityAds(1767): com.unity3d.ads.webview.WebViewApp.invokeJavascriptMethod() (line:88) :: Invoking javascript: javascript:window.nativebridge.handleEvent(["ADUNIT","ON_PAUSE",true,1]);
    4. 10-13 00:10:27.363: I/Unity(1767): onResume
    5. 10-13 00:10:27.380: D/Unity(1767): [EGL] Attaching window :0x63e24010
    6. 10-13 00:10:27.380: D/Unity(1767): [EGL] Attaching window :0x63e24010
    7. 10-13 00:10:27.419: D/UnityAds(1767): com.unity3d.ads.webview.bridge.WebViewBridgeInterface.handleInvocation() (line:13) :: handleInvocation [["com.unity3d.ads.api.Sdk","logInfo",["Closing Unity Ads ad unit"],"227"],["com.unity3d.ads.api.DeviceInfo","getUniqueEventId",[],"228"],["com.unity3d.ads.api.Placement","setPlacementState",["video","READY"],"229"],["com.unity3d.ads.api.Listener","sendReadyEvent",["video"],"230"],["com.unity3d.ads.api.Placement","setPlacementState",["rewardedVideo","READY"],"231"],["com.unity3d.ads.api.Listener","sendReadyEvent",["rewardedVideo"],"232"]]
    8. 10-13 00:10:27.419: I/UnityAds(1767): com.unity3d.ads.api.Sdk.logInfo() (line:68) :: Closing Unity Ads ad unit
    9. 10-13 00:10:27.422: D/UnityAds(1767): com.unity3d.ads.webview.WebViewApp.invokeJavascriptMethod() (line:88) :: Invoking javascript: javascript:window.nativebridge.handleCallback([["227","OK",[]],["228","OK",["94428f45-77f6-4ab7-8374-c825f585d31b"]],["229","OK",[]],["230","OK",[]],["231","OK",[]],["232","OK",[]]]);
    10. 10-13 00:10:27.478: D/Unity(1767): [EGL] Attaching window :0x72075090
    11. 10-13 00:10:27.566: I/Unity(1767): windowFocusChanged: true
    12. 10-13 00:10:27.595: D/Unity(1767): Sensor :        Accelerometer ( 1) ; 0.003906 / 0.00s ; BMA250e 3-axis Accelerometer / Bosch
    13. 10-13 00:10:27.607: D/UnityAds(1767): com.unity3d.ads.webview.bridge.WebViewBridgeInterface.handleInvocation() (line:13) :: handleInvocation [["com.unity3d.ads.api.Storage","set",["PRIVATE","session.94428f45-77f6-4ab7-8374-c825f585d31b.ts",1476342627555],"233"],["com.unity3d.ads.api.Storage","write",["PRIVATE"],"234"]]
    14. 10-13 00:10:27.644: D/UnityAds(1767): com.unity3d.ads.misc.Utilities.writeFile() (line:101) :: Wrote file: /storage/emulated/0/Android/data/GameApp/cache/UnityAdsCache/UnityAdsStorage-private-data.json
    15. 10-13 00:10:27.646: D/UnityAds(1767): com.unity3d.ads.webview.WebViewApp.invokeJavascriptMethod() (line:88) :: Invoking javascript: javascript:window.nativebridge.handleCallback([["233","OK",["session.94428f45-77f6-4ab7-8374-c825f585d31b.ts",1476342627555]],["234","OK",["PRIVATE"]]]);
    16. 10-13 00:10:27.671: D/Unity(1767): ANativeWindow: (800/1280) RequestedResolution: (0/0) EGLSurface: (800/1280)
    17. 10-13 00:10:27.774: D/UnityAds(1767): com.unity3d.ads.webview.WebViewApp.invokeJavascriptMethod() (line:88) :: Invoking javascript: javascript:window.nativebridge.handleEvent(["ADUNIT","ON_STOP",1]);
    18. 10-13 00:10:27.774: D/UnityAds(1767): com.unity3d.ads.webview.WebViewApp.invokeJavascriptMethod() (line:88) :: Invoking javascript: javascript:window.nativebridge.handleEvent(["ADUNIT","ON_DESTROY",true,1]);
     
  31. tessellation

    tessellation

    Joined:
    Aug 11, 2015
    Posts:
    102
    Update: I tried to put together an example project with just my ad setup and playing code. The play code is being called by a UGUI button OnClick in the same way I'm doing it in my app. But when I ran it on Android the callback works. So I'm really at a loss for why it doesn't work within my app. I've tried uninstalling the app and reinstalling it and the callback is still never called!
     
  32. edg12345

    edg12345

    Joined:
    Feb 7, 2015
    Posts:
    22
    Post your code
     
  33. tessellation

    tessellation

    Joined:
    Aug 11, 2015
    Posts:
    102
    The core ad code is essentially the same as the documentation example. Like I said it works fine in a simple project with just a button to play the ad. I can't post my full game project here as there are 100's of custom scripts. I've tried the simple project with and without Unity Analytics and that's not causing the failed callback. Other libraries I use in the full game project include TextMesh Pro, Tazman Audio Fabric, Standard Asset Image Effects, and Cross-Platform Input. I can try adding those into the simple project and see if it breaks the post-ad callback.
     
  34. tessellation

    tessellation

    Joined:
    Aug 11, 2015
    Posts:
    102
    OK, so after much effort, I have tracked down the conditions that cause the "no callback" problem, but I do not currently have a work-around. I have a "loader" scene that asynchronously loads the main scene. The main scene is only a button that shows the ad and confirms that the callback happened. It doesn't matter if I initialize UnityAds in the loader scene or the main scene, the problem still happens. If I build without the loader scene (just the main scene), then the callback is called. This worked correctly in UnityAds 1.x. I am posting this as a bug with the example project attached.
     
  35. tessellation

    tessellation

    Joined:
    Aug 11, 2015
    Posts:
    102
    I'm still having this issue with no work-around. Perhaps @rasmus-unity can shed some more light on this problem. Soon I'm going to have to give up and revert back to UnityAds 1.x so I can release a build of my game that works correctly.

    Maybe @JoshuaMarkk could change the subject of this thread to remove the [SOLVED] part? ...or I can start a new thread for my particular issue.
     
  36. BAIZOR

    BAIZOR

    Joined:
    Jul 4, 2013
    Posts:
    72
    Hello guys!

    I reverted to UnityAds 1.x 'cause problem was unsolvable for me.

    But few days ago I implemented AdMob video mediation in a project. And this requires UnityAds 2.x only.
    I tried to download again UnityAds 2.x (but for now it's newer version - 2.0.5) with adapter for AdMob.
    And now, I call to AdMob API, than it calls to UnityAds and through AdMob API I always getting callback.

    So finally I fixed the problem with callback, sounds and looping video "Buffering..." on normal internet connection.
    One important point (maybe, maybe not) I implemented AdMob through Ultimate Mobile plugin.

    Good luck with your solutions!
    Cheers
     
  37. JoshuaMarkk

    JoshuaMarkk

    Joined:
    Oct 27, 2015
    Posts:
    13
    @tessellation, could you maybe post just the code for your callback?
     
  38. tessellation

    tessellation

    Joined:
    Aug 11, 2015
    Posts:
    102
    Sure, here's the class that plays the ads. When the bug occurs, HandleAdResult never gets called by UnityAds 2.0. Works fine in 1.0 and when not loading a second scene with a MonoBehavior that uses VideoAdPlayer.

    Code (CSharp):
    1. using UnityEngine;
    2. using UnityEngine.Advertisements;
    3.  
    4.  
    5. [System.Serializable]
    6. public class VideoAdPlayer
    7. {
    8.     public enum Provider { None, Unity }
    9.     public delegate void OnAdComplete( bool success );
    10.  
    11.     public string unityPlacementId = "rewardedVideo";
    12.  
    13.     [HideInInspector,System.NonSerialized]
    14.     public Provider nowPlaying = Provider.None;
    15.     OnAdComplete onDonePlaying = null;
    16.  
    17.     public bool isInventoryAvailable
    18.     {
    19.         get
    20.         {
    21.             // First check Unity Video Ads
    22.             return Advertisement.IsReady( string.IsNullOrEmpty(unityPlacementId) ? null : unityPlacementId );
    23.         }
    24.     }
    25.  
    26.     public bool readyToPlay { get { return nowPlaying == Provider.None && isInventoryAvailable; } }
    27.  
    28.     public void Play( OnAdComplete callback )
    29.     {
    30.         if (readyToPlay)
    31.         {
    32.             onDonePlaying = callback;
    33.             ShowOptions options = new ShowOptions { resultCallback = HandleAdResult };
    34.             Advertisement.Show(unityPlacementId, options);
    35.             nowPlaying = Provider.Unity;
    36.         }
    37.         else
    38.             callback(false);
    39.     }
    40.  
    41.     void HandleAdResult(ShowResult result)
    42.     {
    43.         nowPlaying = Provider.None;
    44.         switch (result)
    45.         {
    46.         case ShowResult.Finished:
    47.             if (Advertisement.debugMode)
    48.                 Debug.Log("The ad was successfully shown.");
    49.             onDonePlaying(true);
    50.             break;
    51.  
    52.         case ShowResult.Skipped:
    53.             if (Advertisement.debugMode)
    54.                 Debug.Log("The ad was skipped before reaching the end.");
    55.             onDonePlaying(false);
    56.             break;
    57.  
    58.         case ShowResult.Failed:
    59.             if (Advertisement.debugMode)
    60.                 Debug.LogError("The ad failed to be shown.");
    61.             onDonePlaying(false);
    62.             break;
    63.         }
    64.     }
    65.  
    66. }