Unity-Plugin Guide
ONE AdMax for Unity-Plugin Guide
Last updated
ONE AdMax for Unity-Plugin Guide
Last updated
Unity 2022.3.11f1 ์ด์ ์ฌ์ฉ (Use Unity 2022.3.11f1 or higher.)
Android SDK version
Minimum API Level 16 ์ด์ ์ฌ์ฉ (Minimum API Level 16 or higher.)
Target API Level 31 ์ด์ ์ฌ์ฉ (Target API Level 31 or higher.)
Android API ๋ ๋ฒจ์ Project Settings > Player > Other Settings ์์ ์ค์ ํ ์ ์์ต๋๋ค. (Android API level can be set in Project Settings > Player > Other Settings.)
ONE AdMax for Unity ํ๋ฌ๊ทธ์ธ์ ์ฌ์ฉํ๋ฉด Unity ๊ฐ๋ฐ์๊ฐ ์์คํ ์ด ๊ด๊ณ ๋ฅผ ์ ๊ณตํ ์ ์์ต๋๋ค. (The ONE AdMax for Unity plugin allows Unity developers to serve ONE store advertising.)
Java ์ฝ๋๋ฅผ ์์ฑํ ํ์ ์์ด Android ์ฑ์์ ์ฌ์ฉํ ์ ์์ต๋๋ค. (You can use it in your Android app without having to write Java code.)
์ด ํ๋ฌ๊ทธ์ธ์ Unity์์ ๊ด๊ณ ๋ฅผ ์์ฒญํ๊ธฐ ์ํ C# ์ธํฐํ์ด์ค๋ฅผ ์ ๊ณตํฉ๋๋ค. (It provides a C# interface for requesting ads in Unity.)
ํ๋ฌ๊ทธ์ธ์ฉ Unity ํจํค์ง๋ (๋งํฌ)์์ ํ์ธํ์ค ์ ์์ต๋๋ค. (The Unity package for the plugin can be found at link.)
Unity ๋ฉ๋ด ๋ฐ์์ Assets > Import Package > Custom Package๋ฅผ ํด๋ฆญํฉ๋๋ค. (From the Unity menu bar, navigate to Assets > Import Package > Custom Package.)
Assets/OneStoreCorpPlugins/com.oneadmax.global
ํด๋๊ฐ ์์ฑ๋ฉ๋๋ค.
(This creates the Assets/OneStoreCorpPlugins/com.oneadmax.global folder.)
EDM4U(External Dependency Manager for Unity)๊ฐ ํ์๋ก ๊ฐ์ด ๋ฐฐํฌ๋ฉ๋๋ค. ๋ง์ฝ, ์ด๋ฏธ ์ฌ์ฉํ๊ณ ์๋ค๋ฉด
Import Package
๋จ๊ณ์์ExternalDependencyManager
๋ฅผ ์ฒดํฌํด์ง ํ๊ณ ์ ์ฉํ๋ฉด ๋ฉ๋๋ค. (EDM4U (External Dependency Manager for Unity is distributed during this process. If already in use, deselect ExternalDependencyManager during the Import Package step.)
ํ๋ก์ ํธ์ ๋ ํ์งํ ๋ฆฌ ๋ฐ ์ข ์์ฑ์ด ํฌํจ๋๋๋ก ํ๋ ค๋ฉด ๋ค์ ๋จ๊ณ๋ฅผ ๋ฐ๋ฆ ๋๋ค. (To include the repository and dependencies in your project, follow these steps:)
Project Settings > Player > Publishing Settings > Build
์๋์ ๋ ๊ฐ์ง๋ฅผ ์ฒดํฌํฉ๋๋ค. (Check the two items below:)
Custom Main Manifest
Custom Main Gradle Template
Assets > External Dependency Manager > Android Resolver > Force Resolve
๋ฅผ ์ ํํฉ๋๋ค.
(Select Assets > External Dependency Manager > Android Resolver > Force Resolve.)
mainTemplete.gradle
ํ์ผ์ ์๋์ ๊ฐ์ด ์ ์ฉ๋๋ ๊ฒ์ ํ์ธ ํ ์ ์์ต๋๋ค.
(This should apply to the mainTemplate.gradle file as seen below:)
ONEAdMax for Unity ํ๋ฌ๊ทธ์ธ ์ข ์์ฑ์ ๋ค์์ ๋์ด๋์ด ์์ต๋๋ค. (Dependencies for the ONE AdMax for Unity plugin are listed in)
Assets/OneStoreCorpPlugins/com.oneadmax.global/Editor/ONEAdMaxDependencies.xml
๋งค์ฒด ํค ๋ฐ๊ธ ๋ฐ๋ ๋ฐฉ๋ฒ(How to Issue a Media Key)
๋งค์ฒดํค๋ฅผ ๋ฐ๊ธ ๋ฐ์๋ค๋ฉด AndroidManifest.xml
์ <meta-data />
๋ฅผ ์ค์ ํด์ผ ํฉ๋๋ค.
(Once you have received your media key, you must configure it within your AndroidManifest.xml using the tag.)
(!) ์๋ ๋ด์ฉ ํ์ธํด ์ฃผ์ธ์. (Important: Please check the information below:)
๋งค์ฒดํค๋ฅผ AndroidManifest.xml ์ ๋ฃ์๋์ง ํ์ธํด์ฃผ์ธ์. (Ensure the media key is correctly placed within the AndroidManifest.xml.)
๋งค์ฒดํค๋ Unity Plugin ๊ณผ ์๊ด์์ด Java SDK ์์ ์ฝ๋ ๊ฐ์ด๊ธฐ ๋๋ฌธ์ ํด๋น meta-data ์ ์์น๊ฐ application element ๋ด๋ถ์ ์์ด์ผ ํฉ๋๋ค. (Since the media key is read by the Java SDK regardless of the Unity Plugin, it must be located inside the application element.)
๊ด๊ณ ๋ฅผ ๋ก๋ํ๊ธฐ ์ ์ ์ฑ์ด ONEAdMax๋ฅผ ์ด๊ธฐํํด์ผ ํฉ๋๋ค.
ONEAdMaxClient.Initialize()
์ด๊ธฐํ๋ ์ต์ด ํ ๋ฒ๋ง ์ํํด์ผ ํฉ๋๋ค.
(The app must reset ONE AdMax before loading ads.
Reset with ONEAdMaxClient.Initialize() should occur only once.)
๋ค์์ ONEAdMaxClient ๋ฅผ ์ด๊ธฐํํ๋ ๋ฐฉ๋ฒ์ ๋๋ค. (Hereโs how to reset ONE AdMaxClient.)
๊ฐ๋ฐ์ ์ํด ONEAdMax์ ์์ธํ ๋ก๊ทธ๋ฅผ ๋ ธ์ถํ ์ ์์ต๋๋ค. (๊ธฐ๋ณธ๊ฐ: false) (For development, you can expose detailed logs from ONE AdMax (default: false).)
EU์ GDPR (General Data protection Regulation) ๋ฒ์์ ๋์ํ๊ธฐ ์ํด ์๋ API๋ฅผ ์ถ๊ฐํฉ๋๋ค. GDPR ๋์๊ฐ ํ์ํ ์ ์ ์ ํ ํด ์๋ API๋ฅผ ํธ์ถํ์๊ธฐ ๋ฐ๋๋๋ค. (๊ธฐ๋ณธ๊ฐ: true) (To comply with the EUโs GDPR (General Data Protection Regulation), add the following API. Call this API only for users who require GDPR consent.(default: true))
COPPA(Children's Online Privacy Protection Rule)๋ฒ์์ ๋์ํ๊ธฐ ์ํด ์๋ API๋ฅผ ์ถ๊ฐ ํฉ๋๋ค. ํด๋น ๋๋ฐ์ด์ค์์๋ ๋ชจ๋ ๊ด๊ณ ํ์ ์ ๊ด๊ณ ์์ฒญ์ ๋ํด No ad ์ฒ๋ฆฌ ๋ฉ๋๋ค. (๊ธฐ๋ณธ๊ฐ: false) (To comply with the Children's Online Privacy Protection Rule (COPPA), we've added the following API. This API will ensure that no ads are served on devices where this setting is enabled. (Default: false))
์ ํ๋ฆฌ์ผ์ด์ ์ด ์ข ๋ฃ๋ ๋ ๋ฉ๋ชจ๋ฆฌ์ ํ ๋น๋ ๋ฆฌ์์ค(View, Memory)๋ฅผ ํด์ ํฉ๋๋ค. (Delete allocated resources (View, Memory) when the application closes.)
์ด์ ๊ด๊ณ ๋ฅผ ๊ตฌํํ ์ค๋น๊ฐ ๋์์ต๋๋ค. ONE AdMax ๋ ๋ค์ํ ๊ด๊ณ ํ์์ ์ ๊ณตํ๋ฏ๋ก ๋ง๋ค ์ ์๋ ๊ด๊ณ ํ์์ ์ ํํ ์ ์์ต๋๋ค. (Now you are ready to implement ads. ONE AdMax provides various ad types that you can choose from.)
๋ณด์์ ์ ๊ณตํ๋ ๋น๋์ค ๊ด๊ณ ์ ๋๋ค. ๋น๋์ค ๊ด๊ณ ์ข ๋ฃ ์ Complete event callback์ผ๋ก ๊ด๊ณ ์ฐธ์ฌ ์๋ฃ ์ ๋ณด๋ฅผ ์ ๋ฌํฉ๋๋ค. (These are reward video ads. When the video ad closes, information about the completion of ad participation is sent through Complete event callback.)
๋ฆฌ์๋ ๋น๋์ค ๊ด๊ณ ๊ตฌํํ๊ธฐ(Reward Video Ads for Unity)(Implementing Reward Video Ads)
์ ๋ฉด ๊ด๊ณ ๋ ์ฑ์ ํ๋ฉด ์ ์ฒด๋ฅผ ๋ฎ๋ ๊ด๊ณ ์ ๋๋ค. ์๋ฃ๋์๊ฑฐ๋ ์ ์ ์ ์ํด ์ค๋จ ๋์์ ๊ฒฝ์ฐ ์ฑ์ ํ๋ฉด์ผ๋ก ์ ํ๋ฉ๋๋ค. (Interstitial ads are a form of advertising that covers the entire screen. When advertisement is completed or stopped by the user, the screen will return to the app.)
์ ๋ฉด ๊ด๊ณ ๊ตฌํํ๊ธฐ(Interstitial Ads for Unity)(Implementing Interstitial Ads)
๋ฐฐ๋ ๊ด๊ณ ๋ ์ฑ์ ์ผ๋ถ๋ฅผ ์ฐจ์งํ๋ ์ง์ฌ๊ฐํ ๊ด๊ณ ๋ฅผ ํ์ํฉ๋๋ค. ์์น๋ฅผ ์ค์ ํ๊ณ ์๊ฐ์ ์ค์ ํ์ฌ ์๋์ผ๋ก ์๋ก๊ณ ์นจํ ์ ์์ต๋๋ค. (Banner ads expose rectangular ads that take up a portion of your app. You can set your location and set the time to automatically refresh.)
๋ฐฐ๋ ๊ด๊ณ ๊ตฌํํ๊ธฐ(Banner Ads for Unity)(Implementing Banner Ads)
์ ๋ฉด ๊ด๊ณ ์ ๋์ผํ์ง๋ง ์ด๋ฏธ์ง๊ฐ ์๋ ์์์ด ๋ ธ์ถ๋ฉ๋๋ค. ์์์ ๋ก๋ํ๋ ๊ณผ์ ์ด ์ ๋ฉด ๊ด๊ณ ๋ณด๋ค ์ค๋ ์์๋ ์ ์์ต๋๋ค. (It is the same as an interstitial ad, but a video is exposed instead of an image. The video loading process may take longer than an interstitial ad.)
์ ๋ฉด ๋น๋์ค ๊ด๊ณ ๊ตฌํํ๊ธฐ(Implementing Interstitial Video Ads)(Implementing Interstitial Video Ads)