Difference between revisions of "IOS SDK Getting Start 4.1.0"
From AdLocus
(Created page with " == Getting Start with AdLocus == 以下將說明您怎麼整入 AdLocus SDK. == 取得您的 App Key == * 至 http://adlocus.com/ 申請帳號並登入。 * 在「應用程...") |
|||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 8: | Line 8: | ||
== 準備將 SDK 加入到您的專案 == | == 準備將 SDK 加入到您的專案 == | ||
| − | * [[iOS_AddSDK_4.1.0|加入SDK]] | + | * [[iOS_AddSDK_4.1.0|加入SDK Framework]] |
| + | * [[iOS_AddSDK_4.1.0_Cocoapods|加入SDK Cocoapods]] | ||
== InApp == | == InApp == | ||
| Line 17: | Line 18: | ||
== Interstitial == | == Interstitial == | ||
| − | * [[ | + | * [[iOS_Interstitial_4.1.0|詳細說明]] |
== Video == | == Video == | ||
| − | * [[ | + | * [[iOS_Video_4.1.0|詳細說明]] |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
== AdMob Mediation == | == AdMob Mediation == | ||
| − | * [[ | + | * [[iOS_AdMM_4.1.0|詳細說明]] |
| + | |||
== 測試模式與觀眾定向(Optional) == | == 測試模式與觀眾定向(Optional) == | ||
| Line 38: | Line 32: | ||
* 年齡: - (NSInteger)age; | * 年齡: - (NSInteger)age; | ||
* 性別: - (ALGender)gender; // ALGenderMALE, ALGenderFEMALE | * 性別: - (ALGender)gender; // ALGenderMALE, ALGenderFEMALE | ||
| + | * 地理位置: - (CLLocation*)location; // 透過 LocationManager 取得的位置 | ||
* 測試模式: - (BOOL)testMode; | * 測試模式: - (BOOL)testMode; | ||
| + | |||
| + | <syntaxhighlight lang="objc"> | ||
| + | ALTargeting *targeting = [ALTargeting new]; | ||
| + | targeting.age = 30 // 30 歲 | ||
| + | targeting.gender = ALGenderMALE; // 男性 | ||
| + | targeting.location = location; //透過 LocationManager 取得的位置 | ||
| + | targeting.testMode = NO; //測試模式關閉 | ||
| + | </syntaxhighlight> | ||
Latest revision as of 18:39, 20 September 2016
Contents
Getting Start with AdLocus
以下將說明您怎麼整入 AdLocus SDK.
取得您的 App Key
- 至 http://adlocus.com/ 申請帳號並登入。
- 在「應用程式」中「新增」您的應用程式並取得app key。
準備將 SDK 加入到您的專案
InApp
Promotion
Interstitial
Video
AdMob Mediation
測試模式與觀眾定向(Optional)
當您完成 SDK 整合後,您可透過設定下 ALTargeting 開啟測試模式(測試模式下的互動在平台上將不記錄).
- 年齡: - (NSInteger)age;
- 性別: - (ALGender)gender; // ALGenderMALE, ALGenderFEMALE
- 地理位置: - (CLLocation*)location; // 透過 LocationManager 取得的位置
- 測試模式: - (BOOL)testMode;
ALTargeting *targeting = [ALTargeting new]; targeting.age = 30 // 30 歲 targeting.gender = ALGenderMALE; // 男性 targeting.location = location; //透過 LocationManager 取得的位置 targeting.testMode = NO; //測試模式關閉