SDKBox - 2.3.17

SDKBox - 2.3.17
0

#21

IAP, Appodeal, Review 2.3.17.6 release node 20171218

  1. Fix [IAP payload is empty when restore on](iOS http://www.sdkbox.com/answers/question/iap-restore-receiptcipheredpayload-is-empty-ios/)
  2. Appodeal upgrade Android SDK to 2.1.7
  3. Fix review no callback when click Android BACK button or click outside of review UI

#22

I’m using v2.3.17.5 with cocos 3.15.1 (c++).
SDKBoxAds with UnityAds didn’t call back to listener, please help.

//sdkbox_config:
"SdkboxAds": {
  "units": [
    "UnityAds"
  ],
  "placements": [{
    "units": [{
      "name": "rewardedVideo",
      "unit": "UnityAds"
    }],
    "id": "rewarded",
    "strategy": "round-robin"
  }, {
    "units": [{
      "name": "video",
      "unit": "UnityAds"
    }],
    "id": "video",
    "strategy": "round-robin"
  }]
},


// what I called:
sdkbox::PluginSdkboxAds::placement("video");

What did I do wrong? Video showed up but no callback.


#23

Can you post the logs?


#24

This is the log on Android, using code from https://github.com/sdkbox/sdkbox-sample-sdkboxads/blob/master/cpp/Classes/HelloWorldScene.cpp

12-26 09:54:10.090: I/fplay2 JAVA:(24338): super
12-26 09:54:10.644: D/JniHelper(24338): JniHelper::setJavaVM(0xb42b2000), pthread_self() = -1225403084
12-26 09:54:10.644: D/main(24338): cocos_android_app_init
12-26 09:54:10.648: I/SDKBOX_CORE(24338): Sdkbox Droid starting.
12-26 09:54:10.649: I/SDKBOX_CORE(24338): Sdkbox got VM.
12-26 09:54:10.649: I/SDKBOX_CORE(24338): Sdkbox jni initialized.
12-26 09:54:10.662: D/SDKBOX_CORE(24338): Loaded 0 tracking info _elements.
12-26 09:54:11.816: I/Chartboost(24338): Trying to find unknown ad: Default.
12-26 09:54:11.897: I/SdkboxAds(24338): Initialization request for AdUnit: 'UnityAds'
12-26 09:54:11.898: D/UnityAds(24338): UnityAds configure
12-26 09:54:11.898: I/SdkboxAds(24338): Initialization request for AdUnit: 'Chartboost'
12-26 09:54:12.224: W/System.err(24338): java.net.ConnectException: Connection refused
12-26 09:54:12.231: W/System.err(24338): 	at java.net.PlainSocketImpl.socketConnect(Native Method)
12-26 09:54:12.231: W/System.err(24338): 	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:334)
12-26 09:54:12.231: W/System.err(24338): 	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:196)
12-26 09:54:12.231: W/System.err(24338): 	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
12-26 09:54:12.231: W/System.err(24338): 	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:356)
12-26 09:54:12.231: W/System.err(24338): 	at java.net.Socket.connect(Socket.java:605)
12-26 09:54:12.231: W/System.err(24338): 	at com.android.okhttp.internal.Platform.connectSocket(Platform.java:113)
12-26 09:54:12.231: W/System.err(24338): 	at com.android.okhttp.Connection.connectSocket(Connection.java:196)
12-26 09:54:12.231: W/System.err(24338): 	at com.android.okhttp.Connection.connect(Connection.java:172)
12-26 09:54:12.231: W/System.err(24338): 	at com.android.okhttp.Connection.connectAndSetOwner(Connection.java:367)
12-26 09:54:12.231: W/System.err(24338): 	at com.android.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:130)
12-26 09:54:12.231: W/System.err(24338): 	at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:330)
12-26 09:54:12.231: W/System.err(24338): 	at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:247)
12-26 09:54:12.232: W/System.err(24338): 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:457)
12-26 09:54:12.232: W/System.err(24338): 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:126)
12-26 09:54:12.232: W/System.err(24338): 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:257)
12-26 09:54:12.232: W/System.err(24338): 	at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218)
12-26 09:54:12.232: W/System.err(24338): 	at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java)
12-26 09:54:12.232: W/System.err(24338): 	at com.sdkbox.services.XMLHttpRequest.open(XMLHttpRequest.java:170)
12-26 09:54:12.232: W/System.err(24338): 	at com.sdkbox.services.XMLHttpRequest.open(XMLHttpRequest.java:101)
12-26 09:54:12.232: W/System.err(24338): 	at com.sdkbox.services.XMLHttpRequest.open(XMLHttpRequest.java:96)
12-26 09:54:12.232: W/System.err(24338): 	at com.sdkbox.services.XMLHttpRequest$1.run(XMLHttpRequest.java:514)
12-26 09:54:12.232: W/System.err(24338): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
12-26 09:54:12.232: W/System.err(24338): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
12-26 09:54:12.232: W/System.err(24338): 	at java.lang.Thread.run(Thread.java:761)
12-26 09:54:12.234: W/System.err(24338): java.net.ConnectException: Connection refused
12-26 09:54:12.235: W/System.err(24338): 	at java.net.PlainSocketImpl.socketConnect(Native Method)
12-26 09:54:12.235: W/System.err(24338): 	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:334)
12-26 09:54:12.235: W/System.err(24338): 	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:196)
12-26 09:54:12.235: W/System.err(24338): 	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
12-26 09:54:12.235: W/System.err(24338): 	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:356)
12-26 09:54:12.235: W/System.err(24338): 	at java.net.Socket.connect(Socket.java:605)
12-26 09:54:12.235: W/System.err(24338): 	at com.android.okhttp.internal.Platform.connectSocket(Platform.java:113)
12-26 09:54:12.235: W/System.err(24338): 	at com.android.okhttp.Connection.connectSocket(Connection.java:196)
12-26 09:54:12.235: W/System.err(24338): 	at com.android.okhttp.Connection.connect(Connection.java:172)
12-26 09:54:12.235: W/System.err(24338): 	at com.android.okhttp.Connection.connectAndSetOwner(Connection.java:367)
12-26 09:54:12.235: W/System.err(24338): 	at com.android.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:130)
12-26 09:54:12.236: W/System.err(24338): 	at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:330)
12-26 09:54:12.236: W/System.err(24338): 	at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:247)
12-26 09:54:12.236: W/System.err(24338): 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:457)
12-26 09:54:12.236: W/System.err(24338): 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:126)
12-26 09:54:12.236: W/System.err(24338): 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:257)
12-26 09:54:12.236: W/System.err(24338): 	at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218)
12-26 09:54:12.236: W/System.err(24338): 	at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java)
12-26 09:54:12.236: W/System.err(24338): 	at com.sdkbox.services.XMLHttpRequest.open(XMLHttpRequest.java:170)
12-26 09:54:12.236: W/System.err(24338): 	at com.sdkbox.services.XMLHttpRequest.open(XMLHttpRequest.java:101)
12-26 09:54:12.236: W/System.err(24338): 	at com.sdkbox.services.XMLHttpRequest.open(XMLHttpRequest.java:96)
12-26 09:54:12.236: W/System.err(24338): 	at com.sdkbox.services.XMLHttpRequest$1.run(XMLHttpRequest.java:514)
12-26 09:54:12.236: W/System.err(24338): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
12-26 09:54:12.236: W/System.err(24338): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
12-26 09:54:12.236: W/System.err(24338): 	at java.lang.Thread.run(Thread.java:761)
12-26 09:54:14.221: D/UnityAds(24338): Unity Init>>>>>>>>>>>>>>
12-26 09:54:14.230: D/UnityAds(24338): com.unity3d.ads.UnityAds.initialize() (line:106) :: ENTERED METHOD
12-26 09:54:14.231: I/UnityAds(24338): com.unity3d.ads.UnityAds.initialize() (line:143) :: Initializing Unity Ads 2.1.0 (2100) with game id 1074399 in test mode
12-26 09:54:14.250: I/UnityAds(24338): com.unity3d.ads.UnityAds.initialize() (line:157) :: Unity Ads environment check OK
12-26 09:54:14.252: D/UnityAds(24338): Unity Init>>>>>>>>>>>>>>
12-26 09:54:14.256: I/Chartboost(24338): Chartboost as AdUnit. Auto caching ads:
12-26 09:54:14.257: I/Chartboost(24338):    DBOAndroidVideo
12-26 09:54:14.257: I/Chartboost(24338):    DBOAndroidReward
12-26 09:54:14.293: I/SdkboxAds(24338): Registered AdUnits
12-26 09:54:14.293: I/SdkboxAds(24338):    UnityAds  = Unit 1.0
12-26 09:54:14.293: I/SdkboxAds(24338):    Chartboost  = Unit 1.0.0
12-26 09:54:14.472: I/UnityAds(24338): com.unity3d.ads.configuration.InitializeThread$InitializeStateConfig.execute() (line:205) :: Unity Ads init: load configuration from https://config.unityads.unity3d.com/webview/2.1.0/release/config.json
12-26 09:54:14.626: I/UnityAds(24338): com.unity3d.ads.configuration.InitializeThread$InitializeStateLoadCache.execute() (line:258) :: Unity Ads init: webapp loaded from local cache
12-26 09:54:15.723: E/SdkboxAds(24338): Placement video has no units with ads.    12-26 09:54:16.095: E/chromium(24338): [ERROR:interface_registry.cc(104)] Failed to locate a binder for interface: autofill::mojom::PasswordManagerDriver
12-26 09:54:17.395: E/UnityAds(24338): com.unity3d.ads.device.Device.isAppInstalled() (line:189) :: Couldn't find package: com.xiaomi.gamecenter: com.xiaomi.gamecenter
12-26 09:54:17.540: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Requesting configuration from https://adserver.unityads.unity3d.com/games/1074399/configuration?bundleId=com.teamdptd.zplay&encrypted=false&rooted=false&platform=android&sdkVersion=2100&osVersion=7.1.1&deviceModel=One&language=en_US&test=true&deviceMake=HTC&advertisingTrackingId=10d90820-3660-4ab0-95e3-4d7a5c430151&limitAdTracking=false
12-26 09:54:17.609: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Unity Ads cache: Keeping 4 cached files (2041.482421875kB)
12-26 09:54:18.867: D/bm(24338): Chartboost Webview:mraid.addEventListener ready,function (){mraid.isViewable()?initialize_template():mraid.addEventListener("viewableChange",function(t){t&&initialize_template()})} -- From line 3 of file:///storage/emulated/0/.chartboost/
12-26 09:54:19.556: D/bm(24338): Chartboost Webview:mraid.fireStateChangeEvent default -- From line 3 of file:///storage/emulated/0/.chartboost/
12-26 09:54:19.560: D/bm(24338): Chartboost Webview:mraid.triggerEventListeners [object Arguments] -- From line 3 of file:///storage/emulated/0/.chartboost/
12-26 09:54:19.561: D/bm(24338): Chartboost Webview:No listeners found -- From line 3 of file:///storage/emulated/0/.chartboost/
12-26 09:54:19.562: D/bm(24338): Chartboost Webview:mraid.fireReadyEvent -- From line 3 of file:///storage/emulated/0/.chartboost/
12-26 09:54:19.562: D/bm(24338): Chartboost Webview:mraid.triggerEventListeners [object Arguments] -- From line 3 of file:///storage/emulated/0/.chartboost/
12-26 09:54:19.563: D/bm(24338): Chartboost Webview:Calling event listeners for ready -- From line 3 of file:///storage/emulated/0/.chartboost/
12-26 09:54:19.567: D/bm(24338): Chartboost Webview:mraid.isViewable: false -- From line 3 of file:///storage/emulated/0/.chartboost/
12-26 09:54:19.567: D/bm(24338): Chartboost Webview:mraid.addEventListener viewableChange,function (t){t&&initialize_template()} -- From line 3 of file:///storage/emulated/0/.chartboost/
12-26 09:54:19.569: D/bm(24338): Chartboost Webview:mraid.fireViewableChangeEvent true -- From line 3 of file:///storage/emulated/0/.chartboost/
12-26 09:54:19.569: D/bm(24338): Chartboost Webview:mraid.triggerEventListeners [object Arguments] -- From line 3 of file:///storage/emulated/0/.chartboost/
12-26 09:54:19.570: D/bm(24338): Chartboost Webview:Calling event listeners for viewableChange -- From line 3 of file:///storage/emulated/0/.chartboost/
12-26 09:54:19.636: D/bm(24338): Chartboost Webview:Chartboost.Utils.show -- From line 1 of file:///storage/emulated/0/.chartboost/
12-26 09:54:19.689: D/cocos2d-x debug info(24338): onAdAction, ad_unit_id: Chartboost, zone_location_place_you_name_it: DBOAndroidVideo, action_type: AD_STARTED
12-26 09:54:19.709: D/bm(24338): Chartboost Webview:mraid.useCustomClose true -- From line 3 of file:///storage/emulated/0/.chartboost/
12-26 09:54:19.735: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Received configuration with 2 placements for gamer 50507b163822f20000000001 (A/B group 1)
12-26 09:54:20.231: D/cocos2d-x debug info(24338): onAdAction, ad_unit_id: Chartboost, zone_location_place_you_name_it: DBOAndroidReward, action_type: LOADED
12-26 09:54:20.645: D/cocos2d-x debug info(24338): onAdAction, ad_unit_id: Chartboost, zone_location_place_you_name_it: DBOAndroidVideo, action_type: LOADED
12-26 09:54:20.658: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Requesting ad plan from https://auction.unityads.unity3d.com/v4/games/1074399/requests?advertisingTrackingId=10d90820-3660-4ab0-95e3-4d7a5c430151&limitAdTracking=false&auctionId=623260fa-27f0-4e27-b3a6-4bc63fbf4b2d&deviceMake=HTC&deviceModel=One&platform=android&screenDensity=384&sdkVersion=2100&screenSize=268435810&stores=google&apiLevel=25&test=true&screenWidth=1920&screenHeight=1080&connectionType=wifi&networkType=8&gamerId=50507b163822f20000000001
12-26 09:54:22.255: D/bm(24338): Chartboost Webview:mraid.close -- From line 3 of file:///storage/emulated/0/.chartboost/
12-26 09:54:22.257: D/bm(24338): Chartboost Webview:mraid.fireStateChangeEvent hidden -- From line 3 of file:///storage/emulated/0/.chartboost/
12-26 09:54:22.257: D/bm(24338): Chartboost Webview:mraid.triggerEventListeners [object Arguments] -- From line 3 of file:///storage/emulated/0/.chartboost/
12-26 09:54:22.259: D/bm(24338): Chartboost Webview:No listeners found -- From line 3 of file:///storage/emulated/0/.chartboost/
12-26 09:54:22.525: D/cocos2d-x debug info(24338): onAdAction, ad_unit_id: Chartboost, zone_location_place_you_name_it: DBOAndroidVideo, action_type: AD_ENDED
12-26 09:54:23.442: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Unity Ads placement video status set to READY
12-26 09:54:23.450: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Unity Ads placement rewardedVideo status set to READY
12-26 09:55:20.658: I/UnityAds(24338): com.unity3d.ads.UnityAds.show() (line:301) :: Unity Ads opening new ad unit for placement rewardedVideo
12-26 09:55:20.985: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Opening performance ad unit with orientation LANDSCAPE, hardware acceleration enabled
12-26 09:55:21.658: E/MediaPlayer-JNI(24338): JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0
12-26 09:55:21.658: E/MediaPlayer-JNI(24338): JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0
12-26 09:55:21.824: D/MediaPlayer(24338): getMetadata
12-26 09:55:21.888: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Requesting ad plan from https://auction.unityads.unity3d.com/v4/games/1074399/requests?advertisingTrackingId=10d90820-3660-4ab0-95e3-4d7a5c430151&limitAdTracking=false&auctionId=e464c368-ff5d-4bf4-bba7-5920a9941433&deviceMake=HTC&deviceModel=One&platform=android&screenDensity=384&sdkVersion=2100&screenSize=268435810&stores=google&apiLevel=25&test=true&screenWidth=1920&screenHeight=1080&connectionType=wifi&networkType=8&gamerId=50507b163822f20000000001
12-26 09:55:22.354: W/MediaPlayer(24338): info/warning (3, 0)
12-26 09:55:22.574: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Unity Ads third party event: sending play event to https://sb.scorecardresearch.com/p?c1=19&c2=23027898&ns_type=hidden&ns_st_ct=va00&ns_ap_sv=2.1602.11&ns_st_it=a&ns_st_sv=4.0.0&ns_st_ad=1&ns_st_sq=1&c12=76da541317b54024b2459938e3d303c5e4a9c6b6&ns_ap_pn=android&ns_ap_device=One&ns_st_id=1514256920754&ns_st_ec=1&ns_st_ev=play&ns_st_cn=1&ns_st_ci=0&ns_st_cl=8235&ns_st_pt=40&c3=*null&ns_st_ge=&ns_ts=1514256922527 with headers  (session 623260fa-27f0-4e27-b3a6-4bc63fbf4b2d)
12-26 09:55:22.809: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Unity Ads event: sending start event to https://impact.applifier.com/mobile/gamers/50507b163822f20000000001/video/video_start/000000000000000000000000/1074399
12-26 09:55:25.437: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Unity Ads event: sending first_quartile event to https://impact.applifier.com/mobile/gamers/50507b163822f20000000001/video/first_quartile/000000000000000000000000/1074399
12-26 09:55:27.678: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Unity Ads event: sending midpoint event to https://impact.applifier.com/mobile/gamers/50507b163822f20000000001/video/midpoint/000000000000000000000000/1074399
12-26 09:55:29.699: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Unity Ads event: sending third_quartile event to https://impact.applifier.com/mobile/gamers/50507b163822f20000000001/video/third_quartile/000000000000000000000000/1074399
12-26 09:55:31.436: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Unity Ads third party event: sending end event to https://sb.scorecardresearch.com/p?c1=19&c2=23027898&ns_type=hidden&ns_st_ct=va00&ns_ap_sv=2.1602.11&ns_st_it=a&ns_st_sv=4.0.0&ns_st_ad=1&ns_st_sq=1&c12=76da541317b54024b2459938e3d303c5e4a9c6b6&ns_ap_pn=android&ns_ap_device=One&ns_st_id=1514256920754&ns_st_ec=1&ns_st_ev=end&ns_st_cn=1&ns_st_ci=0&ns_st_cl=8235&ns_st_pt=8064&c3=*null&ns_st_ge=&ns_ts=1514256931388 with headers  (session 623260fa-27f0-4e27-b3a6-4bc63fbf4b2d)
12-26 09:55:31.614: W/MediaPlayer(24338): mediaplayer went away with unhandled events
12-26 09:55:31.686: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Unity Ads event: sending view event to https://impact.applifier.com/mobile/gamers/50507b163822f20000000001/video/video_end/000000000000000000000000/1074399
12-26 09:55:33.039: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Closing Unity Ads ad unit
12-26 09:55:33.040: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Unity Ads placement video status set to READY
12-26 09:55:33.041: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Unity Ads placement rewardedVideo status set to READY
12-26 09:55:54.160: I/UnityAds(24338): com.unity3d.ads.UnityAds.show() (line:301) :: Unity Ads opening new ad unit for placement rewardedVideo
12-26 09:55:54.302: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Opening performance ad unit with orientation LANDSCAPE, hardware acceleration enabled
12-26 09:55:54.628: E/MediaPlayer-JNI(24338): JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0
12-26 09:55:54.628: E/MediaPlayer-JNI(24338): JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0
12-26 09:55:54.676: D/MediaPlayer(24338): getMetadata
12-26 09:55:54.767: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Requesting ad plan from https://auction.unityads.unity3d.com/v4/games/1074399/requests?advertisingTrackingId=10d90820-3660-4ab0-95e3-4d7a5c430151&limitAdTracking=false&auctionId=d436a32a-ef17-464c-b93b-3e86b5db59a7&deviceMake=HTC&deviceModel=One&platform=android&screenDensity=384&sdkVersion=2100&screenSize=268435810&stores=google&apiLevel=25&test=true&screenWidth=1920&screenHeight=1080&connectionType=wifi&networkType=8&gamerId=50507b163822f20000000001
12-26 09:55:55.142: W/MediaPlayer(24338): info/warning (3, 0)
12-26 09:55:55.184: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Unity Ads third party event: sending play event to https://sb.scorecardresearch.com/p?c1=19&c2=23027898&ns_type=hidden&ns_st_ct=va00&ns_ap_sv=2.1602.11&ns_st_it=a&ns_st_sv=4.0.0&ns_st_ad=1&ns_st_sq=1&c12=76da541317b54024b2459938e3d303c5e4a9c6b6&ns_ap_pn=android&ns_ap_device=One&ns_st_id=1514256954227&ns_st_ec=1&ns_st_ev=play&ns_st_cn=1&ns_st_ci=0&ns_st_cl=8235&ns_st_pt=8&c3=*null&ns_st_ge=&ns_ts=1514256955133 with headers  (session e464c368-ff5d-4bf4-bba7-5920a9941433)
12-26 09:55:55.424: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Unity Ads event: sending start event to https://impact.applifier.com/mobile/gamers/50507b163822f20000000001/video/video_start/000000000000000000000000/1074399
12-26 09:55:57.297: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Unity Ads event: sending first_quartile event to https://impact.applifier.com/mobile/gamers/50507b163822f20000000001/video/first_quartile/000000000000000000000000/1074399
12-26 09:55:59.296: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Unity Ads event: sending midpoint event to https://impact.applifier.com/mobile/gamers/50507b163822f20000000001/video/midpoint/000000000000000000000000/1074399
12-26 09:56:01.545: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Unity Ads event: sending third_quartile event to https://impact.applifier.com/mobile/gamers/50507b163822f20000000001/video/third_quartile/000000000000000000000000/1074399
12-26 09:56:03.258: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Unity Ads third party event: sending end event to https://sb.scorecardresearch.com/p?c1=19&c2=23027898&ns_type=hidden&ns_st_ct=va00&ns_ap_sv=2.1602.11&ns_st_it=a&ns_st_sv=4.0.0&ns_st_ad=1&ns_st_sq=1&c12=76da541317b54024b2459938e3d303c5e4a9c6b6&ns_ap_pn=android&ns_ap_device=One&ns_st_id=1514256954227&ns_st_ec=1&ns_st_ev=end&ns_st_cn=1&ns_st_ci=0&ns_st_cl=8235&ns_st_pt=8064&c3=*null&ns_st_ge=&ns_ts=1514256963206 with headers  (session e464c368-ff5d-4bf4-bba7-5920a9941433)
12-26 09:56:03.405: W/MediaPlayer(24338): mediaplayer went away with unhandled events
12-26 09:56:03.506: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Unity Ads event: sending view event to https://impact.applifier.com/mobile/gamers/50507b163822f20000000001/video/video_end/000000000000000000000000/1074399
12-26 09:56:03.931: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Unity Ads event: sending click event to https://impact.applifier.com/mobile/campaigns/000000000000000000000000/click/50507b163822f20000000001?gameId=1074399&redirect=false
12-26 09:56:10.183: I/Choreographer(24338): Skipped 88 frames!  The application may be doing too much work on its main thread.
12-26 09:56:10.203: W/ViewRootImpl[AdUnitActivity](24338): Dropping event due to no window focus: KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x8, repeatCount=0, eventTime=77905609, downTime=77905609, deviceId=-1, source=0x8000001 }
12-26 09:56:10.206: W/ViewRootImpl[AdUnitActivity](24338): Cancelling event due to no window focus: KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x28, repeatCount=0, eventTime=77905609, downTime=77905609, deviceId=-1, source=0x8000001 }
12-26 09:56:10.206: W/ViewRootImpl[AdUnitActivity](24338): Cancelling event due to no window focus: KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x28, repeatCount=0, eventTime=77905609, downTime=77905609, deviceId=-1, source=0x8000001 }
12-26 09:56:10.206: W/ViewRootImpl[AdUnitActivity](24338): Cancelling event due to no window focus: KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x28, repeatCount=0, eventTime=77905609, downTime=77905609, deviceId=-1, source=0x8000001 }
12-26 09:56:10.206: W/ViewRootImpl[AdUnitActivity](24338): Cancelling event due to no window focus: KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x28, repeatCount=0, eventTime=77905609, downTime=77905609, deviceId=-1, source=0x8000001 }
12-26 09:56:10.206: W/ViewRootImpl[AdUnitActivity](24338): Cancelling event due to no window focus: KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x28, repeatCount=0, eventTime=77905609, downTime=77905609, deviceId=-1, source=0x8000001 }
12-26 09:56:10.206: W/ViewRootImpl[AdUnitActivity](24338): Cancelling event due to no window focus: KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x28, repeatCount=0, eventTime=77905609, downTime=77905609, deviceId=-1, source=0x8000001 }
12-26 09:56:10.208: W/ViewRootImpl[AdUnitActivity](24338): Cancelling event due to no window focus: KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x28, repeatCount=0, eventTime=77905609, downTime=77905609, deviceId=-1, source=0x8000001 }
12-26 09:56:10.208: W/ViewRootImpl[AdUnitActivity](24338): Cancelling event due to no window focus: KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x28, repeatCount=0, eventTime=77905609, downTime=77905609, deviceId=-1, source=0x8000001 }
12-26 09:56:10.208: W/ViewRootImpl[AdUnitActivity](24338): Cancelling event due to no window focus: KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x28, repeatCount=0, eventTime=77905609, downTime=77905609, deviceId=-1, source=0x8000001 }
12-26 09:56:14.309: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Closing Unity Ads ad unit
12-26 09:56:14.310: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Unity Ads placement video status set to READY
12-26 09:56:14.312: I/UnityAds(24338): com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Unity Ads placement rewardedVideo status set to READY

And this is the sdkbox_config:

"SdkboxAds": {
    "units": [
        "UnityAds",
        "Chartboost"
    ],
    "placements": [
        {
            "units": [
                {
                    "name": "rewardedVideo",
                    "unit": "UnityAds",
                    "weight": 30
                },
                {
                    "name": "video",
                    "unit": "UnityAds",
                    "weight": 20
                },
                {
                    "name": "DBOAndroidReward",
                    "unit": "Chartboost",
                    "weight": 30
                },
                {
                    "name": "DBOAndroidVideo",
                    "unit": "Chartboost",
                    "weight": 20
                }
            ],
            "id": "video",
            "strategy": "weight"
        }
    ]
}

In the log, you can see:

onAdAction, ad_unit_id: Chartboost

But not:

onAdAction, ad_unit_id: UnityAds

SDKBoxAds worked fine with Chartboost but did not work with UnityAds even though ad still showed.


#25

Hello @peerobo, plz remove in AppDelegate.cpp :

#ifdef SDKBOX_ENABLED
    sdkbox::PluginUnityAds::init();
#endif

ref to https://github.com/sdkbox/sdkbox-sample-sdkboxads/commit/bfdb03586c48a221553eeb3dbc3050bb3f2d5ce6


#27

Hi Great and thanks! Any Update or guide for Facebook Instant Games Ads and Other things like Leaderboard etc. Please help
in Cocos Creator 1.9 Above


#28

SDKBox does not support Instant Game , but cocos creator does.

http://docs.cocos2d-x.org/creator/manual/en/publish/publish-fb-instant-games.html


#29

thanks for replying, yeah basically i wanted to know about Ads and leader board guide for Facebook Instant Games in Cocos Creator. If any help please guide.


#30

Hello, I am getting an issue with admob mediation for unity ads. (Only happens on android) If I show an ad with admob but a unity ads shows up, ads won’t show anymore afterwards if I try to show one.

But if I remove this line sdkbox::PluginUnityAds::init();

the issue is not there even after a unity ad is played through admob.

The issue with removing the init is that now I can’t setGdpr anymore. You are suppose to do that after initializing unity ads. Unless it’s okay to do it before init? @yinjimmy Then that would solve my issue.
I do see here: https://unityads.unity3d.com/help/legal/gdpr that you can call the gdpr consent code before init, but I am not sure if we have the same code.

Wondering if we cloud upgrade unity ads? Maybe that would solve the issue, we are on 2.2.1 but they now have 2.3.0 and 3.0.0.

Thanks!


#31

if you set UnityAds as AdMob’s mediation, you do not need to call sdkbox::PluginUnityAds::init;

invoke sdkbox::PluginUnityAds::setGDPR(true); without sdkbox::PluginUnityAds::init();.

we’re update the UnityAds lib, but find some issue with banner.