iOS

Example App


  1. Adrop์„ Importํ•˜์„ธ์š”.

  2. App delegate์˜ application(_:didFinishLaunchingWithOptions:) ๋ฉ”์†Œ๋“œ์—์„œ Adrop ๊ณต์œ ๋œ ์ธ์Šคํ„ด์Šค๋ฅผ ์ดˆ๊ธฐํ™”ํ•ฉ๋‹ˆ๋‹ค.

import UIKit
import AdropAds

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
  var window: UIWindow?

  func application(_ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions:
      [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
    
    // production ๋ฐฐํฌ ์‹œ, 'true'๋ฅผ ์‚ฌ์šฉํ•˜์„ธ์š”.
    // ํŠน์ • ๊ตญ๊ฐ€์—์„œ ์ด SDK๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋‹ค๋ฉด, 
    // ISO 3166 alpha-2 ๊ตญ๊ฐ€ ์ฝ”๋“œ array๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
    Adrop.initialize(production: false, targetCountries: [])
    return true
  }
}

production ํŒŒ๋ผ๋ฏธํ„ฐ๋ฅผ false๋กœ ์ „๋‹ฌํ•  ๊ฒฝ์šฐ, SDK๋‚ด์—์„œ ๋ฐœ์ƒํ•˜๋Š” ๋กœ๊ทธ๊ฐ€ ์ถœ๋ ฅ๋ฉ๋‹ˆ๋‹ค.

๊ด‘๊ณ  ์œ ๋‹› ๋…ธ์ถœํ•˜๊ธฐ

Last updated