How to integrate unityads with android studio(ads 2.0)

28
HOW TO INTEGRATE UNITYADS WITH ANDROIDSTUDIO (SDK 2.0) 이이이 MANAGER October. 05. 2016 Version 1.1

Transcript of How to integrate unityads with android studio(ads 2.0)

Page 1: How to integrate unityads with android studio(ads 2.0)

HOW TO INTEGRATE UNITYADS WITH ANDROIDSTUDIO (SDK 2.0)

이아린 MANAGER

October. 05. 2016Version 1.1

Page 2: How to integrate unityads with android studio(ads 2.0)

Copyright © 2014 Unity Technologies 2

HTTPS://UNITY3D.COM/KR/SERVICES/ADS 접속

Page 3: How to integrate unityads with android studio(ads 2.0)

Copyright © 2014 Unity Technologies 3

접속시 하기와 같은 매체사용 대쉬보드가 나옵니다 .

Page 4: How to integrate unityads with android studio(ads 2.0)

Copyright © 2014 Unity Technologies 4

클릭

Page 5: How to integrate unityads with android studio(ads 2.0)

Copyright © 2014 Unity Technologies 5

프로젝트명 입력만약 출시되지 않은 앱이라면 , 출시 되지 않은 앱으로 클릭출시되었다면 google play

store 주소 입력

Page 6: How to integrate unityads with android studio(ads 2.0)

Copyright © 2014 Unity Technologies 6

사용할 GameId 가 생성되었습니다 .

Page 7: How to integrate unityads with android studio(ads 2.0)

Copyright © 2014 Unity Technologies 7

최신버전의 unity-ads.aar 을 다운 받습니다 .

https://github.com/Unity-Technologies/unity-ads-android/releases 에서 최신버전의 unity-ads.aar. 을 다운로드 합니다 .

Page 8: How to integrate unityads with android studio(ads 2.0)

Copyright © 2014 Unity Technologies 8

이제 , Android Studio Project 내 UnityADS 를 import 하려고 합니다 .

Page 9: How to integrate unityads with android studio(ads 2.0)

Copyright © 2014 Unity Technologies 9

Page 10: How to integrate unityads with android studio(ads 2.0)

Copyright © 2014 Unity Technologies 10

Page 11: How to integrate unityads with android studio(ads 2.0)

Copyright © 2014 Unity Technologies 11

다운 받은 Unity-ads.aar 을 선택해주세요 .

Page 12: How to integrate unityads with android studio(ads 2.0)

Copyright © 2014 Unity Technologies 12

Unity-ads.aar 이 추가 되었음을 확인 할 수 있습니다 .

Page 13: How to integrate unityads with android studio(ads 2.0)

Copyright © 2014 Unity Technologies 13

해당 프로젝트 선택 후 오른쪽 마우스 버튼 클릭 하여 Open Module Settings 선택

Page 14: How to integrate unityads with android studio(ads 2.0)

Copyright © 2014 Unity Technologies 14

Dependencies 탭 선택

Page 15: How to integrate unityads with android studio(ads 2.0)

Copyright © 2014 Unity Technologies 15

+ 버튼 선택 후 3 Module Dependency 선택

Page 16: How to integrate unityads with android studio(ads 2.0)

Copyright © 2014 Unity Technologies 16

UnityAds 및 IUnityAdsListener를 import 합니다 .

Page 17: How to integrate unityads with android studio(ads 2.0)

Copyright © 2014 Unity Technologies 17

UnityAdsListener class 를 implements 하고 ,반드시 필요한 함수들을 추가합니다(win : Alt + enter

mac : option + enter 누르면 자동 추가됨 )

Page 18: How to integrate unityads with android studio(ads 2.0)

Copyright © 2014 Unity Technologies 18

UnityAdsListener 생성

Page 19: How to integrate unityads with android studio(ads 2.0)

Copyright © 2014 Unity Technologies 19

이 예제에서는 , 버튼 클릭시 UnityAds 를 init 시켰으나 ,실제 적용시에는 , 게임 시작 하자마자 unityAds init호출하여 광고를 보여줄 준비가 바로 되게끔 코딩 하는 것을 추천드립니다 .

대쉬보드에서 발급받은 게임아이디인 “ 1159239” 를 삽입 하였습니다 . 귀사가 발급 받은 게임아이디를 적용 하면 됩니다 .

False 시 실제 광고가 , true 시 테스트 광고가 나옵니다 .

UnityAds initialize 가 완료되면 onUnityAdsReady 가 자동으로 불려집니다 .

Page 20: How to integrate unityads with android studio(ads 2.0)

Copyright © 2014 Unity Technologies 20

UnityAds.isReady() 를 통해 보여줄수 있는 광고 상태인지 확인 후 UnityAds.show() 를 통해 광고를 보여줍니다 . “rewardedVideo” 의 경우 스킵불가한 광고가 보여지고 “ video” 의 경우 스킵가능한 광고가 보여집니다 . 스킵 불가 광고를 할것을 추천 드립니다 .

Page 21: How to integrate unityads with android studio(ads 2.0)

Copyright © 2014 Unity Technologies 21

광고를 끝까지 보았을때만 사용자에게 보상을 주도록 합니다 .사용자에게 보상을 주는 부분은 귀사에서 알아서 구현하시면 됩니다 .

Page 22: How to integrate unityads with android studio(ads 2.0)

Copyright © 2014 Unity Technologies 22

< 참고 >

Default 로 생성된 Integration ID(=Placement ID) 는 video( 스킵 가능 ) 과 rewardedVideo( 스킵 불가 ) 입니다 .

Page 23: How to integrate unityads with android studio(ads 2.0)

Copyright © 2014 Unity Technologies 23

< 참고 >

만약 광고를 보여주는 위치마다 integration id 를 다르게 하면 , 추후 integration id 별 광고 성과를 확인 하실수 있습니다 .

Page 24: How to integrate unityads with android studio(ads 2.0)

Copyright © 2014 Unity Technologies 24

< 참고 >

스킵 불가형스킵가능형

Page 25: How to integrate unityads with android studio(ads 2.0)

Copyright © 2014 Unity Technologies 25

< 참고 >

원하는 이름 설정

Page 26: How to integrate unityads with android studio(ads 2.0)

Copyright © 2014 Unity Technologies 26

< 참고 >

코딩시 , 하기와 같이 추가한 INTEGRATION ID 를 사용하게 되면 ,추후 INTEGRATION ID 별 광고 성과를 확인 할 수 있습니다 .

IF(UNITYADS.ISREADY(“EVENTZONE1”)){ UNITYADS.SHOW(THIS, “EVENTZONE1”);}

Page 27: How to integrate unityads with android studio(ads 2.0)

Copyright © 2014 Unity Technologies 27

Korean webpage : https://www.unityads.co.krGlobal webpage : https://unityads.unity3d.com

기술지원 / 이아린 매니저 : [email protected]매체사 담당 / 강신덕 과장 : [email protected]유니티 애즈 총괄 / 함영호 이사 : [email protected]

Page 28: How to integrate unityads with android studio(ads 2.0)