How to use the sample

I will explain how to check the operation using samples.

1. Open the scene

  1. Double click Assets -> Sample -> Scenes -> Scene file and open the scene.
  2. Double-click Canvas under target Scene to edit Scene.
Function File name
Function selection screen MainScene.unity
Banner screen BannerScene.unity
Reward screen RewardScene.unity
Interstatial screen InterstitialScene.unity
  1. Double click Assets -> Sample -> Scripts -> Script file and open the script. You can edit the script of the target Scene.
Function File name
Function selection screen MainScript.cs
Banner screen BannerScript.cs
Reward screen RewardScript.cs
Interstatial screen InterstitialScript.cs

2. Selection of Platform

Select File -> Build Settings in the menu bar and open Build Settings.

Select Platform choice Android oriOS and press Switch Platform.

3. Change screen size

Change the screen size of Game view from Free Aspect.

For iPhone

Please change to the vertical size such as iPhone 5 Tall (9: 16).

Android case

Please change to vertical size such as 16:10 Portrait (10: 16).

4. Package Build

Please refer to the following.

5. Operation check

When confirming the operation, please check in the following environment. (* Operation check can not be performed on Unity's Game view.)

  • Android · · · actual machine or emulator
  • iOS · · · actual machine or simulator

Description of sample screen

scene

  • MainScene ・・・ Main screen of sample.
  • BannerScene ・・・ Banner screen of sample.
  • RewardScene ・・・ RewardVideo screen of sample.
  • InterstitialScene ・・・ Interstitial screen of sample.

UI

Main screen

UI Use case
BannerButton Move the banner screen
RewardButton Move the rewardvideo screen
InterstitialButton Move the interstitial screen
UI Use case
Unit IDtext Input unit ID
Customchecked box For the banner size to be displayed, select List or enter size.
Sizelist selection Select the size of the banner to display
・320x50
・300x250
・468x60
・728x90
・SmartBanner
Width sizetext Select the Width size of the banner to display
Height sizetext Select the Height size of the banner to be displayed
Positionlist selection Select the position to display the banner
・Top
・Center
・Bottom
・TopLeft
・TopRight
・BottomLeft
・BottomRight
Loadbutton Load banner
Logtext Operation log is displayed
Backbutton Move the main screen

Rewardvideo screen

UI Use case
Unit IDtext Input unit ID
Loadbutton Load rewardvideo
Showbutton Show rewardvideo
Logtext Operation log is displayed
Backbutton Move the main screen

Interstitial screen

UI Use case
Unit IDtext Input unit ID
Loadbutton Load interstitial
Showbutton Show interstitial
Logtext Operation log is displayed
Backbutton Move the main screen

example of use

  1. Enter UnitID.
  2. Select the size from the SizeList selection.
  3. Select the display position from the PositionList selection.
  4. Click the Load button to display the ad

Rewardvideo screen

  1. Enter UnitID.
  2. Click the Load button to load the ad.
  3. Click the Show button to display the ad

Interstitial screen

  1. Enter UnitID.
  2. Click the Load button to load the ad.
  3. Click the Show button to display the ad
Last Updated: 7/21/2020, 6:51:48 PM