Stencyl 3.4.0 is now out. Get it now!

[IOS/Android] UnityAds Video and Rewarded Video (0.1.0)

robinschaafsma

  • *
  • Posts: 627
UnityAds for iOS and Android
Works on iOS, Android

For Stencyl 3.4 and above

Stencyl extension for “UnityAds” (http://unityads.unity3d.com) for iOS and Android. This extension allows you to easily integrate UnityAds on your Stencyl game / application. (http://www.stencyl.com)

IMPORTANT
This Extension Required the Toolset Extension Manager http://byrobin.nl/store/product/byrobintoolsetextension/


How to download this extension
Go to: http://byrobin.nl/store/product/unityads-advertising-for-ios-android-stencylopenfl
Add the extension to the cart en proceed with checkout. After you successfully placed the order, you will get an e-mail with the download link or go to “My Account” section where you can also find the download link.

Install the zip file: Go to : http://community.stencyl.com/index.php/topic,30432.0.html

Main Features
- Video Support.
- Rewarded Video Support.

Version History
2016-03-28 (0.0.1) First release (iOS SDK 1.5.6 - android SDK 1.5.6)
2016-04-26 (0.0.2) Single touch after dismiss Ad is now working.
2016-04-27 (0.0.3) Create an extra block to check if Ads are available.
2016-05-02 (0.0.4) Show an Alert box before showing Rewarded ad that ask if player want to watch rewarded video or not. (show Video block and show Rewarded are now 2 seperated blocks)
2016-05-04 (0.0.5) Added canShowad block and set Placement id block.
2016-10-02 (0.0.6)
– Updated iOS and Android SDK to 2.0.4
– Removed Set Placement ID block, this is not required in SDK 2.0.4
– Added placementid in Can Show Ads block.
- Version 0.0.5 of "byRobin Extension Manager" is needed.
2016-10-06 (0.0.7) - Fix: Android export/publish game
2016-11-18 (0.0.8.) Updated to use with Heyzap extension 2.7
2017-03-19 (0.0.9) - Updated to use with Heyzap Extension 2.9, Update SDK to iOS: 2.0.8 Android: 2.0.8, Added Android Gradle support for openfl4. byRobin extension manager 0.1.2 is needed for iOS.
2017-05-16(0.1.0) Update SDK to iOS: 2.1.0 Android: 2.1.0, Tested for Stencyl 3.5, Required byRobin Toolset Extension Manager

Documentation and Block Examples

Step 1: If you don’t have an account, create one on http://unityads.unity3d.com

Step 2: Create an project and add your platfom (iOS/Andoid_

Step 3: Open Project and get your Game id of the Platform you work with.


Step 4: Use the initialize UniAds block in when created event of your first (loading)scene.

If your game is not live yet, use it in Test Mode, don't forget to set in in Release Mode when your uploading your game to the store.

Step 5: Open the Platform you work with (iOS or Android) and get your Integration Id the placements your added.
In this example i use iOS platform:
The Integration Id of Ad Placement Video is video
The Integration Id of Ad Placement Rewarded Video is <rewardedVideo, make sure you have enabled the Rewarded Video.


Step 6: Show Video with placement id (INTERGRATION ID).
Show Unityads Video with placement id block,


Step 7: Show Rewarded Video.
Show Unityads Rewarded Video with placement id block,
Create and Alert title and Message that ask the player if he wants to watch the Rewarded Video or not. If Alert title is empty no Alert box will show.


Step 8:Can Show Ads
Check if ads with placement id can be show , it return true when it can show and false if ads cannot be show.


Step 9:Callbacks

Use the callback blocks in an Updated event in an if statement.
- did show
- is completed
- is skipped (Video only, Rewarded cannot be skipped)

Button Example:
Video Ads:

Rewarded Ads:

« Last Edit: May 16, 2017, 03:42:50 pm by robinschaafsma »
byRobinGames.com


I'am not always on the forum, you can mail me if you have an question. info@byrobin.nl



robinschaafsma

  • *
  • Posts: 627
byRobinGames.com


I'am not always on the forum, you can mail me if you have an question. info@byrobin.nl



havana24

  • *
  • Posts: 468
Bought this Unity extension and Applovin + Vungle.
I'll let you know if I got problems! ;)

By the way I would like to recommend this guy and his extensions...
I have already worked with him and it is really good at programming!

Keep up the good work,
Alessandro
My Website: www.havana24.net

jaughnaugh

  • *
  • Posts: 23
Hey Rob, Can you please post some examples? I can't get it to work 100%, i can only see skipable videos once (in test mode), reward videos dont show up all the time (but the button that triggers it do, wich only appears when it is available) and when the video does show, the  callback for when rewardvideo is completed doesnt work and it does not reward me with ingame currency? :s

1. I am testing on iOS
2. I installed and enabled both of your extensions
3. I enabled and used multitouch

robinschaafsma

  • *
  • Posts: 627
I think you are not setting the Ad placements correct from the UnityAds Dashboard.

Give me moment to make some examples

« Last Edit: April 09, 2016, 06:20:23 am by robinschaafsma »
byRobinGames.com


I'am not always on the forum, you can mail me if you have an question. info@byrobin.nl



robinschaafsma

  • *
  • Posts: 627
See first post, if you still have problems please share some screenshot of your code..

And check your UnityAds Dashboard if you setup the rewarded video propperly

« Last Edit: April 09, 2016, 11:49:58 am by robinschaafsma »
byRobinGames.com


I'am not always on the forum, you can mail me if you have an question. info@byrobin.nl



sandsoftimer

  • Posts: 316

On iOS Multi Touch Event is required in you Game instead of single Mouse Click events.


Before purchasing i didn't notice this line.
I don't want to convert my whole game by Multi touch at any cost.
Would you please explain why this is happening for Unity Ad besides heyzap.
I know heyzap has confirmed about this problem in forum but why unity also not working for single touch.
And when will this problem will be solved.
Thanks.
iOS ->          

Android ->
iOS -> Bubble Tapping
 Android -> Bubble Tapping

robinschaafsma

  • *
  • Posts: 627
No sorry cannot explane it,  you can ask  Unity about it.
I only support iOS with multi touch for now.

I am working with on other solution, but that is not working properly yet.

So follow this tread for updates in future..
byRobinGames.com


I'am not always on the forum, you can mail me if you have an question. info@byrobin.nl



sandsoftimer

  • Posts: 316
But for one of my project i am using Unity Game Engine & Unity Ads package. It's working properly, no multi touch is needed. I am  working with that plugin peacefully, what would i ask to unity. I think it's from your side mate.

Please double check your extension if there any issue for that.
iOS ->          

Android ->
iOS -> Bubble Tapping
 Android -> Bubble Tapping

robinschaafsma

  • *
  • Posts: 627
I have triple  check it mate....  It is the combination with haxe/openfl that makes this issue with UIViewController when dismiss.
The Unity game engine is not haxe and for the Unity engine there is an different SDK, so yes that is working with single touch because it is an different program language. Do not compere it with Unity please..

I use the the iOS SDK and the Android SDK, there is no issue with the extension mate, it's all working.

As i said i am working on a Solution to solve the single touch with haxe/openfl  problem another way.

Hope this explane it a bit.

« Last Edit: April 26, 2016, 11:55:46 am by robinschaafsma »
byRobinGames.com


I'am not always on the forum, you can mail me if you have an question. info@byrobin.nl



sandsoftimer

  • Posts: 316
 :) :) :)
Yes.... now it is clear to me.
Thanks mate..... waiting for solution from you.
iOS ->          

Android ->
iOS -> Bubble Tapping
 Android -> Bubble Tapping

robinschaafsma

  • *
  • Posts: 627
You can download version 0.0.2 from your account on my website.
I have created a way to get single touch working again after dismiss ad.

Can you confirm if its working on your side..
byRobinGames.com


I'am not always on the forum, you can mail me if you have an question. info@byrobin.nl



havana24

  • *
  • Posts: 468
I also need this update too!
I tried downloading the new version on your website, imported into stencyl but I don't see in the extension list any difference.
I see anyway Unity v0.0.1 (byRobin).

Is that correct?

-Alessandro
My Website: www.havana24.net

robinschaafsma

  • *
  • Posts: 627
try download it again and install it, after install restart Stencyl. Then you will see v0.0.2.
byRobinGames.com


I'am not always on the forum, you can mail me if you have an question. info@byrobin.nl



havana24

  • *
  • Posts: 468
Ok, now I see Unity 0.0.2.

BTW I got a bug (I think it was already in the 0.0.1).
If I try to use the block Unity Ads Reward Video Ad IS AVAILABLE in a drawing block it never change to TRUE.
BUT, if I put this block in a normal event it become to TRUE only ONE time.
After I check this block one time it changes to FALSE and it will become TRUE never again.

Basically the  Unity Ads Reward Video Ad IS AVAILABLE doesn't work, because even if it was false if use "Show Unity Ads Reward Video wi placement..." I see correctly the test video.
(tested on iOS)

I hope you can fix this issue,
Alessandro

« Last Edit: April 27, 2016, 07:26:59 am by havana24 »
My Website: www.havana24.net