GameMaker (2.0 - 2.2.x)
Icon

UnityAds

Hanul

You must be logged in to obtain assets

Description

안드로이드와 아이폰용 앱 만들 때 유니티 광고를 달 수 있도록 하는 익스텐션입니다.

위 스크린샷을 보시고 https://dashboard.unityads.unity3d.com 으로 들어가셔서, Integration IdrewardedVideo인 Ad placement를 만들어줍니다. 그 외에 따로 설정할건 없어요.

아래는 함수 목록이에요.

  • unity_ads_init(game_id, is_test_mode) Unity Ads를 초기화합니다. 테스트 모드로 실행하려면 is_test_modetrue로 설정합니다. 출시 할 때는 false로 설정합니다.
  • unity_ads_check_is_can_show() Unity Ads가 현재 사용 가능한지 확인합니다.
  • unity_ads_show() 광고를 출력합니다.

함수 목록만 봐선 알기가 힘들 수 있어, 예제 코드를 준비했습니다.

  • Unity Ads 초기화 - https://gist.github.com/Hanul/20c0ae084b23ffb58035cc0970d21d1e
  • 광고! 광고를 보자! - https://gist.github.com/Hanul/64f992a52c8eeccdd79f08e043133b92
  • 다 봤다면 이벤트를 받아오자! - https://gist.github.com/Hanul/728c0c8a201b3c371ec64c4de920be15

iOS에서는 빌드 오류가 발생합니다. 그때는 스크린샷을 참고하여 직접 SDK를 넣어줘야 합니다.

아래 경로에서 SDK를 다운로드 하시고 UnityAds.framework를 넣어주시면 됩니다.

https://github.com/Unity-Technologies/unity-ads-ios/releases

참고로 아이폰에서는 광고 볼 때 터치 이벤트가 뒤로 넘어가 뒤에 있는 버튼이 눌려지곤 하니, 터치 이벤트를 방지할 오브젝트를 만드시고 unity_ads_video_completed 이벤트 발생시 그 오브젝트를 지워주세요~!

감사합니다.

  • 2016. 5. 19. 추가 - UnityAds를 오픈소스로 공개하였습니다.
  • 2018. 5. 13. 추가 - 신버전 UnityAds SDK로 교체하였습니다.
  • 2019. 5. 18. 추가 - Game Maker Studio 2를 정식 지원하게 되었습니다.

End User Licence Agreement (EULA).

Age Rating: 4+

Version

GMS2 - Version 2.0.1. Published May 17, 2019

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait