iOS

์‚ฌ์ „ ์ค€๋น„

Adrop์— iOS ์•ฑ ๋“ฑ๋ก์„ ๋งˆ์น˜์…จ๋‚˜์š”? ๋“ฑ๋ก์ด ์™„๋ฃŒ๋˜์—ˆ์„ ๊ฒฝ์šฐ ํ”„๋กœ์ ํŠธ์—์„œ Adrop Metrics๊ฐ€ ํ™œ์„ฑํ™”๋˜์–ด ์žˆ๋Š”์ง€ ํ™•์ธํ•˜์„ธ์š”.

Adrop ์ดˆ๊ธฐํ™”ํ•˜๊ธฐ

import AdropAds

// production์„ ์œ„ํ•ด 'true'๋ฅผ ์„ ํƒํ•˜์„ธ์š”.
// ํŠน์ • ๊ตญ๊ฐ€์—์„œ ์ด SDK๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋‹ค๋ฉด, 
// ISO 3166 alpha-2 ๊ตญ๊ฐ€ ์ฝ”๋“œ array๋ฅผ ์ „๋‹ฌํ•˜์„ธ์š”.
Adrop.initialize(production: false, targetCountries: [])

Log Events

์ปค์Šคํ…€ ์ด๋ฒคํŠธ๋ฅผ ๊ธฐ๋กํ•˜์—ฌ ์šด์˜ ์ค‘์ธ ์•ฑ์˜ ์‚ฌ์šฉ์ž๋ฅผ ์„ธ๊ทธ๋จผํŠธ๋กœ ์ •์˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

AdropMetrics์— ๋Œ€ํ•ด ๋” ์•Œ์•„๋ณด์„ธ์š”.

import AdropAds

let params = [
    "data_key_1": 1,
    "data_key_2": 1.1, 
    "data_key_3": true, 
    "data_key_4": "value_text"
]
AdropMetrics.logEvent(name: "MyEvent1", params: params)

Last updated