<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.adlocus.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.adlocus.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kiddchen</id>
		<title>AdLocus - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.adlocus.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kiddchen"/>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=Special:Contributions/Kiddchen"/>
		<updated>2026-11-19T20:01:27Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.1</generator>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_SDK</id>
		<title>IOS SDK</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_SDK"/>
				<updated>2016-09-20T10:57:43Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
&lt;br /&gt;
== iOS SDK 4.1.3 ==&lt;br /&gt;
* 版本: 4.1.3&lt;br /&gt;
* [[Media:AdLocus_Freamework_4_1_3.zip|下載 SDK]]&lt;br /&gt;
* [[iOS_SDK_Getting_Start_4.1.0|SDK 整合說明]]&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=Android_SDK</id>
		<title>Android SDK</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=Android_SDK"/>
				<updated>2016-09-14T09:37:20Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
== 版本: 3.5.5 == &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
   compile 'com.adlocus:library:3.5.5@aar'&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [[Android_Changelog|更版記錄]]&lt;br /&gt;
* [[Android_SDK_Getting_Start|整合說明]]&lt;br /&gt;
&lt;br /&gt;
===AdMob Mediation===&lt;br /&gt;
* [[Media:AdLocusAdapter.java|AdMob Mediation Adapter JAVA 下載]]&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=Android_Changelog</id>
		<title>Android Changelog</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=Android_Changelog"/>
				<updated>2016-09-09T09:06:12Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: /* v3.5.5 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[Android_SDK|點我下載]]&lt;br /&gt;
&lt;br /&gt;
== v3.5.5 ==&lt;br /&gt;
*執行效能優化。&lt;br /&gt;
* 優惠通知會顯示應用程式名稱。&lt;br /&gt;
* targetSDK 支援到24。&lt;br /&gt;
* 提升穩定性。&lt;br /&gt;
* support v4 需更新到 24 版以上。(其餘support lib 皆需升級到同一版本 如下例:)&lt;br /&gt;
 compile 'com.android.support:support-v4:&amp;lt;span style=&amp;quot;color:#000000; background-color:#FFFF00&amp;quot;&amp;gt;24.2.0&amp;lt;/span&amp;gt;'&lt;br /&gt;
 compile 'com.android.support:appcompat-v7:&amp;lt;span style=&amp;quot;color:#000000; background-color:#FFFF00&amp;quot;&amp;gt;24.2.0&amp;lt;/span&amp;gt;'&lt;br /&gt;
* 此版加入adid需使用google play service，如果dependencies沒有compile任何google play servers 時 (若已使用，需將版本提升至9.X.X)&lt;br /&gt;
需加入play-services-base 如下:&lt;br /&gt;
 compile 'com.google.android.gms:play-services-base:9.4.0'&lt;br /&gt;
&lt;br /&gt;
== v3.5.2 ==&lt;br /&gt;
&lt;br /&gt;
* targetSDK 支援到23。&lt;br /&gt;
* 執行效能優化，穩定性加強。&lt;br /&gt;
* support v4 需更新到 23 版以上。&lt;br /&gt;
* 使用AdMob 使用者需更新AdLocusAdapter.java。&lt;br /&gt;
* 使用inner class 報錯修復，須將程式碼 $ 字號部分換成 . 。&lt;br /&gt;
* Proguard 需加入以下反黃部分：&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:#000000; background-color:#FFFF00&amp;quot;&amp;gt;-keepattributes InnerClasses&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:#000000; background-color:#FFFF00&amp;quot;&amp;gt;-keep class **.R&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:#000000; background-color:#FFFF00&amp;quot;&amp;gt;-keep class **.R$* {&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:#000000; background-color:#FFFF00&amp;quot;&amp;gt;    &amp;lt;fields&amp;gt;;&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:#000000; background-color:#FFFF00&amp;quot;&amp;gt;}&amp;lt;/span&amp;gt;&lt;br /&gt;
 -keep public class com.adlocus.** {*;}&lt;br /&gt;
 -keep class com.adlocus.adapters.AdLocusAdapter$MyJavaScriptInterface{&amp;lt;methods&amp;gt;;}&lt;br /&gt;
&lt;br /&gt;
=== Eclipse ===&lt;br /&gt;
* AndroidManifest 的 application 中需加入provider 如下，並將 &amp;lt;span style=&amp;quot;color:#000000; background-color:#FFFF00&amp;quot;&amp;gt;${applicationId}&amp;lt;/span&amp;gt; 替換成 package name:&lt;br /&gt;
        &amp;lt;provider&lt;br /&gt;
            android:name=&amp;quot;com.adlocus.util.MultiProcessPreferences&amp;quot;&lt;br /&gt;
            android:authorities=&amp;quot;&amp;lt;span style=&amp;quot;color:#000000; background-color:#FFFF00&amp;quot;&amp;gt;${applicationId}&amp;lt;/span&amp;gt;.ADLOCUS_CONTENT&amp;quot;&lt;br /&gt;
            android:exported=&amp;quot;false&amp;quot; /&amp;gt;&lt;br /&gt;
以 package name 為 com.adlocus.example 的範例如下：&lt;br /&gt;
        &amp;lt;provider&lt;br /&gt;
            android:name=&amp;quot;com.adlocus.util.MultiProcessPreferences&amp;quot;&lt;br /&gt;
            android:authorities=&amp;quot;com.adlocus.example.ADLOCUS_CONTENT&amp;quot;&lt;br /&gt;
            android:exported=&amp;quot;false&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== v3.4.2 ==&lt;br /&gt;
* 修正 Android 5.0 以上鎖屏點擊無效問題.&lt;br /&gt;
* 多項優化項目&lt;br /&gt;
===Android Studio===&lt;br /&gt;
* 使用 Gradle 權限簡化，只需在 AndroidManifest 中加入下面一行即可，舊版權限皆可移除。&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;uses-sdk android:targetSdkVersion=&amp;quot;23&amp;quot; android:minSdkVersion=&amp;quot;9&amp;quot;&lt;br /&gt;
    tools:overrideLibrary=&amp;quot;com.adlocus.AdLocusLib&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Eclipse===&lt;br /&gt;
* Library project 更新：請移除AdLocusLib 後加入3.4.2版library project。&lt;br /&gt;
* AndroidManifest 的 application 中需加入AdActivity：&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;activity android:name=&amp;quot;com.adlocus.AdActivity&amp;quot;&lt;br /&gt;
    android:theme=&amp;quot;@style/AdLocusDialogTheme&amp;quot;&lt;br /&gt;
    android:launchMode=&amp;quot;singleTask&amp;quot;&lt;br /&gt;
    android:excludeFromRecents=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/activity&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== v3.3.21 ==&lt;br /&gt;
* 修正低於 Android 5.0 上會崩潰的問題.&lt;br /&gt;
&lt;br /&gt;
== v3.3.16 ==&lt;br /&gt;
* 修正當 Target SDK 大於等於 Lolipop 時的ICON白圖, 底圖顏色問題.&lt;br /&gt;
* 修正無法清除過期DB問題&lt;br /&gt;
* 增加 InterstitialVideo 的 onNofill 與 onClose 監聽事件.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
private InterstitialVideoReq mInterstitialVideoReq;&lt;br /&gt;
&lt;br /&gt;
@Override&lt;br /&gt;
protected void onCreate(Bundle savedInstanceState) {&lt;br /&gt;
    super.onCreate(savedInstanceState);&lt;br /&gt;
    &lt;br /&gt;
    mInterstitialVideoReq = new InterstitialVideoReq(this, KEY, new VideoAdListener() {&lt;br /&gt;
        @Override&lt;br /&gt;
        public void onStart() {&lt;br /&gt;
            //we will start an activity and rotate screen to landscape,&lt;br /&gt;
            //make sure your code and your user are ready for a movie show!&lt;br /&gt;
            mInterstitialVideoReq.show();&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        @Override&lt;br /&gt;
        public void onNofill() {&lt;br /&gt;
            // 沒有廣告&lt;br /&gt;
            mInterstitialVideoReq.removeListener();&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        @Override&lt;br /&gt;
        public void onClose() {&lt;br /&gt;
            // 使用者關閉廣告&lt;br /&gt;
            mInterstitialVideoReq.removeListener();&lt;br /&gt;
&lt;br /&gt;
        }&lt;br /&gt;
    });&lt;br /&gt;
&lt;br /&gt;
    mInterstitialVideoReq.load();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
//透過 mInterstitialVideoReq 與 onActivityResult()實做監聽影音廣告結束事件&lt;br /&gt;
@Override&lt;br /&gt;
protected void onActivityResult(int requestCode, int resultCode, Intent data)&lt;br /&gt;
{&lt;br /&gt;
    if(requestCode == 7522335)&lt;br /&gt;
        mInterstitialVideoReq.onActivityResult(requestCode, resultCode, data);&lt;br /&gt;
&lt;br /&gt;
    super.onActivityResult(requestCode, resultCode, data);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* 增加 Admob 對 Interstitial 的 onClose 事件支援.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== v3.3.7 ==&lt;br /&gt;
* 修正在 Android 5.0 權限衝突的問題。&lt;br /&gt;
&lt;br /&gt;
更新至3.3.7需修改項目：&lt;br /&gt;
&lt;br /&gt;
1. 需將專案設定為 API Level 21 (5.0.1) 以上：&lt;br /&gt;
&lt;br /&gt;
eclipse 設定：專案上按右鍵 -&amp;gt; Properties -&amp;gt; Android -&amp;gt; Project Build Target -&amp;gt; 勾選API Level 21 以上 -&amp;gt; Apply -&amp;gt; OK&lt;br /&gt;
&lt;br /&gt;
2. 在 AndroidManifest 中移除以下三行權限：&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:#000000; background-color:#FFFF00&amp;quot;&amp;gt;&amp;lt;s&amp;gt;&amp;lt;uses-permission android:name=&amp;quot;com.adlocus.permission.SEND&amp;quot; /&amp;gt;&amp;lt;/s&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:#000000; background-color:#FFFF00&amp;quot;&amp;gt;&amp;lt;s&amp;gt;&amp;lt;permission android:name = &amp;quot;com.adlocus.permission.SEND&amp;quot; /&amp;gt;&amp;lt;/s&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;receiver &lt;br /&gt;
 	android:enabled=&amp;quot;true&amp;quot; &lt;br /&gt;
         android:process=&amp;quot;:adlocus&amp;quot;&lt;br /&gt;
 	android:name=&amp;quot;com.adlocus.push.PushReceive&amp;quot;&lt;br /&gt;
 	&amp;lt;span style=&amp;quot;color:#000000; background-color:#FFFF00&amp;quot;&amp;gt;&amp;lt;s&amp;gt;android:permission=&amp;quot;com.adlocus.permission.SEND&amp;quot;&amp;lt;/s&amp;gt;&amp;lt;/span&amp;gt;&amp;gt;&lt;br /&gt;
 	&amp;lt;intent-filter&amp;gt;&lt;br /&gt;
 		&amp;lt;action android:name=&amp;quot;android.intent.action.BOOT_COMPLETED&amp;quot; /&amp;gt;&lt;br /&gt;
 		&amp;lt;category android:name=&amp;quot;android.intent.category.DEFAULT&amp;quot; /&amp;gt;&lt;br /&gt;
 	&amp;lt;/intent-filter&amp;gt;&lt;br /&gt;
 	&amp;lt;intent-filter&amp;gt;&lt;br /&gt;
 		&amp;lt;action android:name=&amp;quot;com.adlocus.action.RECEIVE&amp;quot; /&amp;gt;&lt;br /&gt;
 	&amp;lt;/intent-filter&amp;gt;&lt;br /&gt;
 &amp;lt;/receiver&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== v3.3.6 ==&lt;br /&gt;
* 支援線上切換優惠訊息格式&lt;br /&gt;
&lt;br /&gt;
== v3.3.3 ==&lt;br /&gt;
* 新增[[Android_Video|全屏影音廣告]]&lt;br /&gt;
* 修復背景崩潰問題&lt;br /&gt;
* 修復初始化 InApp Ad 時, 未執行Listener 問題&lt;br /&gt;
* 修復全屏靜態廣告崩潰問題&lt;br /&gt;
&lt;br /&gt;
== v3.3.0 ==&lt;br /&gt;
* 新形態推播服務, 支援使用者自訂開關.&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=Android_Changelog</id>
		<title>Android Changelog</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=Android_Changelog"/>
				<updated>2016-09-09T09:02:54Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[Android_SDK|點我下載]]&lt;br /&gt;
&lt;br /&gt;
== v3.5.5 ==&lt;br /&gt;
*執行效能優化。&lt;br /&gt;
* 優惠通知會顯示應用程式名稱。&lt;br /&gt;
* targetSDK 支援到24。&lt;br /&gt;
* 提升穩定性。&lt;br /&gt;
* support v4 需更新到 24 版以上。(其餘support lib 皆需升級到同一版本 如下例:)&lt;br /&gt;
 compile 'com.android.support:support-v4:&amp;lt;span style=&amp;quot;color:#000000; background-color:#FFFF00&amp;quot;&amp;gt;24.1.0&amp;lt;/span&amp;gt;'&lt;br /&gt;
 compile 'com.android.support:appcompat-v7:&amp;lt;span style=&amp;quot;color:#000000; background-color:#FFFF00&amp;quot;&amp;gt;24.1.0&amp;lt;/span&amp;gt;'&lt;br /&gt;
* 此版加入adid需使用google play service，如果dependencies沒有compile任何google play servers 時 (若已使用，需將版本提升至9.X.X)&lt;br /&gt;
需加入play-services-base 如下:&lt;br /&gt;
 compile 'com.google.android.gms:play-services-base:9.2.1'&lt;br /&gt;
&lt;br /&gt;
== v3.5.2 ==&lt;br /&gt;
&lt;br /&gt;
* targetSDK 支援到23。&lt;br /&gt;
* 執行效能優化，穩定性加強。&lt;br /&gt;
* support v4 需更新到 23 版以上。&lt;br /&gt;
* 使用AdMob 使用者需更新AdLocusAdapter.java。&lt;br /&gt;
* 使用inner class 報錯修復，須將程式碼 $ 字號部分換成 . 。&lt;br /&gt;
* Proguard 需加入以下反黃部分：&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:#000000; background-color:#FFFF00&amp;quot;&amp;gt;-keepattributes InnerClasses&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:#000000; background-color:#FFFF00&amp;quot;&amp;gt;-keep class **.R&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:#000000; background-color:#FFFF00&amp;quot;&amp;gt;-keep class **.R$* {&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:#000000; background-color:#FFFF00&amp;quot;&amp;gt;    &amp;lt;fields&amp;gt;;&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:#000000; background-color:#FFFF00&amp;quot;&amp;gt;}&amp;lt;/span&amp;gt;&lt;br /&gt;
 -keep public class com.adlocus.** {*;}&lt;br /&gt;
 -keep class com.adlocus.adapters.AdLocusAdapter$MyJavaScriptInterface{&amp;lt;methods&amp;gt;;}&lt;br /&gt;
&lt;br /&gt;
=== Eclipse ===&lt;br /&gt;
* AndroidManifest 的 application 中需加入provider 如下，並將 &amp;lt;span style=&amp;quot;color:#000000; background-color:#FFFF00&amp;quot;&amp;gt;${applicationId}&amp;lt;/span&amp;gt; 替換成 package name:&lt;br /&gt;
        &amp;lt;provider&lt;br /&gt;
            android:name=&amp;quot;com.adlocus.util.MultiProcessPreferences&amp;quot;&lt;br /&gt;
            android:authorities=&amp;quot;&amp;lt;span style=&amp;quot;color:#000000; background-color:#FFFF00&amp;quot;&amp;gt;${applicationId}&amp;lt;/span&amp;gt;.ADLOCUS_CONTENT&amp;quot;&lt;br /&gt;
            android:exported=&amp;quot;false&amp;quot; /&amp;gt;&lt;br /&gt;
以 package name 為 com.adlocus.example 的範例如下：&lt;br /&gt;
        &amp;lt;provider&lt;br /&gt;
            android:name=&amp;quot;com.adlocus.util.MultiProcessPreferences&amp;quot;&lt;br /&gt;
            android:authorities=&amp;quot;com.adlocus.example.ADLOCUS_CONTENT&amp;quot;&lt;br /&gt;
            android:exported=&amp;quot;false&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== v3.4.2 ==&lt;br /&gt;
* 修正 Android 5.0 以上鎖屏點擊無效問題.&lt;br /&gt;
* 多項優化項目&lt;br /&gt;
===Android Studio===&lt;br /&gt;
* 使用 Gradle 權限簡化，只需在 AndroidManifest 中加入下面一行即可，舊版權限皆可移除。&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;uses-sdk android:targetSdkVersion=&amp;quot;23&amp;quot; android:minSdkVersion=&amp;quot;9&amp;quot;&lt;br /&gt;
    tools:overrideLibrary=&amp;quot;com.adlocus.AdLocusLib&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Eclipse===&lt;br /&gt;
* Library project 更新：請移除AdLocusLib 後加入3.4.2版library project。&lt;br /&gt;
* AndroidManifest 的 application 中需加入AdActivity：&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;activity android:name=&amp;quot;com.adlocus.AdActivity&amp;quot;&lt;br /&gt;
    android:theme=&amp;quot;@style/AdLocusDialogTheme&amp;quot;&lt;br /&gt;
    android:launchMode=&amp;quot;singleTask&amp;quot;&lt;br /&gt;
    android:excludeFromRecents=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/activity&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== v3.3.21 ==&lt;br /&gt;
* 修正低於 Android 5.0 上會崩潰的問題.&lt;br /&gt;
&lt;br /&gt;
== v3.3.16 ==&lt;br /&gt;
* 修正當 Target SDK 大於等於 Lolipop 時的ICON白圖, 底圖顏色問題.&lt;br /&gt;
* 修正無法清除過期DB問題&lt;br /&gt;
* 增加 InterstitialVideo 的 onNofill 與 onClose 監聽事件.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
private InterstitialVideoReq mInterstitialVideoReq;&lt;br /&gt;
&lt;br /&gt;
@Override&lt;br /&gt;
protected void onCreate(Bundle savedInstanceState) {&lt;br /&gt;
    super.onCreate(savedInstanceState);&lt;br /&gt;
    &lt;br /&gt;
    mInterstitialVideoReq = new InterstitialVideoReq(this, KEY, new VideoAdListener() {&lt;br /&gt;
        @Override&lt;br /&gt;
        public void onStart() {&lt;br /&gt;
            //we will start an activity and rotate screen to landscape,&lt;br /&gt;
            //make sure your code and your user are ready for a movie show!&lt;br /&gt;
            mInterstitialVideoReq.show();&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        @Override&lt;br /&gt;
        public void onNofill() {&lt;br /&gt;
            // 沒有廣告&lt;br /&gt;
            mInterstitialVideoReq.removeListener();&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        @Override&lt;br /&gt;
        public void onClose() {&lt;br /&gt;
            // 使用者關閉廣告&lt;br /&gt;
            mInterstitialVideoReq.removeListener();&lt;br /&gt;
&lt;br /&gt;
        }&lt;br /&gt;
    });&lt;br /&gt;
&lt;br /&gt;
    mInterstitialVideoReq.load();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
//透過 mInterstitialVideoReq 與 onActivityResult()實做監聽影音廣告結束事件&lt;br /&gt;
@Override&lt;br /&gt;
protected void onActivityResult(int requestCode, int resultCode, Intent data)&lt;br /&gt;
{&lt;br /&gt;
    if(requestCode == 7522335)&lt;br /&gt;
        mInterstitialVideoReq.onActivityResult(requestCode, resultCode, data);&lt;br /&gt;
&lt;br /&gt;
    super.onActivityResult(requestCode, resultCode, data);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* 增加 Admob 對 Interstitial 的 onClose 事件支援.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== v3.3.7 ==&lt;br /&gt;
* 修正在 Android 5.0 權限衝突的問題。&lt;br /&gt;
&lt;br /&gt;
更新至3.3.7需修改項目：&lt;br /&gt;
&lt;br /&gt;
1. 需將專案設定為 API Level 21 (5.0.1) 以上：&lt;br /&gt;
&lt;br /&gt;
eclipse 設定：專案上按右鍵 -&amp;gt; Properties -&amp;gt; Android -&amp;gt; Project Build Target -&amp;gt; 勾選API Level 21 以上 -&amp;gt; Apply -&amp;gt; OK&lt;br /&gt;
&lt;br /&gt;
2. 在 AndroidManifest 中移除以下三行權限：&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:#000000; background-color:#FFFF00&amp;quot;&amp;gt;&amp;lt;s&amp;gt;&amp;lt;uses-permission android:name=&amp;quot;com.adlocus.permission.SEND&amp;quot; /&amp;gt;&amp;lt;/s&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:#000000; background-color:#FFFF00&amp;quot;&amp;gt;&amp;lt;s&amp;gt;&amp;lt;permission android:name = &amp;quot;com.adlocus.permission.SEND&amp;quot; /&amp;gt;&amp;lt;/s&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;receiver &lt;br /&gt;
 	android:enabled=&amp;quot;true&amp;quot; &lt;br /&gt;
         android:process=&amp;quot;:adlocus&amp;quot;&lt;br /&gt;
 	android:name=&amp;quot;com.adlocus.push.PushReceive&amp;quot;&lt;br /&gt;
 	&amp;lt;span style=&amp;quot;color:#000000; background-color:#FFFF00&amp;quot;&amp;gt;&amp;lt;s&amp;gt;android:permission=&amp;quot;com.adlocus.permission.SEND&amp;quot;&amp;lt;/s&amp;gt;&amp;lt;/span&amp;gt;&amp;gt;&lt;br /&gt;
 	&amp;lt;intent-filter&amp;gt;&lt;br /&gt;
 		&amp;lt;action android:name=&amp;quot;android.intent.action.BOOT_COMPLETED&amp;quot; /&amp;gt;&lt;br /&gt;
 		&amp;lt;category android:name=&amp;quot;android.intent.category.DEFAULT&amp;quot; /&amp;gt;&lt;br /&gt;
 	&amp;lt;/intent-filter&amp;gt;&lt;br /&gt;
 	&amp;lt;intent-filter&amp;gt;&lt;br /&gt;
 		&amp;lt;action android:name=&amp;quot;com.adlocus.action.RECEIVE&amp;quot; /&amp;gt;&lt;br /&gt;
 	&amp;lt;/intent-filter&amp;gt;&lt;br /&gt;
 &amp;lt;/receiver&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== v3.3.6 ==&lt;br /&gt;
* 支援線上切換優惠訊息格式&lt;br /&gt;
&lt;br /&gt;
== v3.3.3 ==&lt;br /&gt;
* 新增[[Android_Video|全屏影音廣告]]&lt;br /&gt;
* 修復背景崩潰問題&lt;br /&gt;
* 修復初始化 InApp Ad 時, 未執行Listener 問題&lt;br /&gt;
* 修復全屏靜態廣告崩潰問題&lt;br /&gt;
&lt;br /&gt;
== v3.3.0 ==&lt;br /&gt;
* 新形態推播服務, 支援使用者自訂開關.&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=Main_Page</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=Main_Page"/>
				<updated>2016-09-09T09:02:11Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
這是由 AdLocus 提供的開發者 Wiki, 在這裡您可以即時取得 AdLocus 的最新 SDK, 文件, 與使用範例。&lt;br /&gt;
&lt;br /&gt;
若您有整合上的問題，我們期待您的來信。Email: support@adlocus.com&lt;br /&gt;
&lt;br /&gt;
== Release Note ==&lt;br /&gt;
* 2016/09/09 AdLocus Android SDK 3.5.5 釋出, [[Android_Changelog|更新內容]]&lt;br /&gt;
* 2016/06/2 AdLocus iOS SDK 4.1.1(Beta) 釋出, [[iOS_Changelog|更新內容]]&lt;br /&gt;
* 2016/02/25 AdLocus Android SDK 3.5.2 釋出, [[Android_Changelog|更新內容]]&lt;br /&gt;
* 2016/01/19 AdLocus Android SDK 3.4.2 釋出, [[Android_Changelog|更新內容]]&lt;br /&gt;
* 2015/07/15 AdLocus Android SDK 3.3.21 釋出, [[Android_Changelog|更新內容]]&lt;br /&gt;
* 2015/07/08 AdLocus Android SDK 3.3.16 釋出, [[Android_Changelog|更新內容]]&lt;br /&gt;
* 2015/02/25 AdLocus Android SDK 3.3.7 釋出, [[Android_Changelog|更新內容]]&lt;br /&gt;
* 2014/12/18 AdLocus iOS SDK 4.0.15 釋出, [[iOS_Changelog|更新內容]]&lt;br /&gt;
* 2014/11/26 AdLocus Android SDK 3.3.6 釋出, [[Android_Changelog|更新內容]]&lt;br /&gt;
* 2014/10/9 AdLocus iOS SDK 4.0.5 釋出, [[iOS_Changelog|更新內容]]&lt;br /&gt;
* 2014/10/2 AdLocus Android SDK 3.3.3 釋出, [[Android_Changelog|更新內容]]&lt;br /&gt;
&lt;br /&gt;
== 下載 SDK ==&lt;br /&gt;
* [[Android_SDK|Android]]&lt;br /&gt;
* [[iOS_SDK|iOS]]&lt;br /&gt;
* [[Web_SDK|Web]]&lt;br /&gt;
&lt;br /&gt;
== 開發者Q&amp;amp;A ==&lt;br /&gt;
* [[estimate_income|收入試算]]&lt;br /&gt;
* [[settlement_tax|出帳與稅務]]&lt;br /&gt;
&lt;br /&gt;
== 廣告體驗 ==&lt;br /&gt;
* 特定區域主動推播&lt;br /&gt;
* InApp展示&lt;br /&gt;
  &amp;lt;html5media&amp;gt;http://wiki.adlocus.com/images/2/2d/In_app.mp4&amp;lt;/html5media&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* 全屏&lt;br /&gt;
  &amp;lt;html5media&amp;gt;http://wiki.adlocus.com/images/4/4e/%E5%85%A8%E5%B1%8F.mp4&amp;lt;/html5media&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* 全屏影音&lt;br /&gt;
  &amp;lt;html5media&amp;gt;File:SCR_20141006_141437.mp4&amp;lt;/html5media&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
=== [[register_auth|註冊＆審核]] ===&lt;br /&gt;
=== [[back_panel|後台使用]] ===&lt;br /&gt;
=== [[advertisement_profit|支援廣告類型]] ===&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!-- === [[document|文件]] === --&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
=== [[trick|技巧]] (區域性判斷/使用特定廣告平台/推播服務提示對話框) === &lt;br /&gt;
 格式語法參考：&lt;br /&gt;
=== [[error_code|錯誤碼]] ===&lt;br /&gt;
&lt;br /&gt;
http://zh.wikipedia.org/wiki/Wikipedia:%E6%96%B0%E6%89%8B%E5%85%A5%E9%96%80/%E7%B6%AD%E5%9F%BA%E6%96%87%E6%9C%AC &lt;br /&gt;
http://zh.wikipedia.org/wiki/User:Auvaand/%E7%BB%B4%E5%9F%BA%E8%AF%AD%E6%B3%95&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=Android_SDK_Getting_Start</id>
		<title>Android SDK Getting Start</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=Android_SDK_Getting_Start"/>
				<updated>2016-08-18T10:15:58Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: /* Getting Start with AdLocus */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Getting Start with AdLocus ==&lt;br /&gt;
以下將說明您怎麼整入 AdLocus SDK.&lt;br /&gt;
&lt;br /&gt;
自我檢查&lt;br /&gt;
=== Android Studio ===&lt;br /&gt;
* Gradle 中加入AdLocus  (Y/N)&lt;br /&gt;
* Tool &amp;gt; Android &amp;gt; Sync Project With Gradle Files  (Y/N)&lt;br /&gt;
&lt;br /&gt;
若您已完成上述檢查卻無法正確啟用相關服務, 請來信 support@adlocus.com , 我們將有專人與您聯繫.&lt;br /&gt;
&lt;br /&gt;
== 取得您的 App Key ==&lt;br /&gt;
* 至 http://adlocus.com/ 申請帳號並登入。&lt;br /&gt;
* 在「應用程式」中「新增」您的應用程式並取得app key。&lt;br /&gt;
&lt;br /&gt;
== 準備將 SDK 加入到您的專案 ==&lt;br /&gt;
* [[Android_AddSDK|加入SDK]]&lt;br /&gt;
&lt;br /&gt;
== InApp ==&lt;br /&gt;
* [[Android_InApp|詳細說明]]&lt;br /&gt;
&lt;br /&gt;
== Promotion ==&lt;br /&gt;
* [[Android_Promotion|詳細說明]]&lt;br /&gt;
&lt;br /&gt;
== Interstitial ==&lt;br /&gt;
* [[Android_Interstitial|詳細說明]]&lt;br /&gt;
&lt;br /&gt;
== Video ==&lt;br /&gt;
* [[Android_Video|詳細說明]]&lt;br /&gt;
&lt;br /&gt;
== AdMob Mediation ==&lt;br /&gt;
* [[Android_AdMM|詳細說明]]&lt;br /&gt;
&lt;br /&gt;
== 測試模式與觀眾定向(Optional) ==&lt;br /&gt;
當您完成 SDK 整合後，您可透過設定下列參數開啟測試模式(測試模式下的互動在平台上將不記錄).&lt;br /&gt;
* 年齡&lt;br /&gt;
* 生日&lt;br /&gt;
* 性別&lt;br /&gt;
* 測試模式&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
// 設定使用者年齡 (也可使用 setBirthday())&lt;br /&gt;
void setAge(int age) &lt;br /&gt;
void setBirthDate(GregorianCalendar birthday))&lt;br /&gt;
void setGender(AdLocusTargeting$Gender gender)&lt;br /&gt;
void setTestMode(boolean isTesting)&lt;br /&gt;
&lt;br /&gt;
// 設置範例：&lt;br /&gt;
AdLocusTargeting targeting = new AdLocusTargeting();&lt;br /&gt;
targeting.setAge(23); &lt;br /&gt;
targeting.setBirthDate(new GregorianCalendar(1990, 12, 29));&lt;br /&gt;
targeting.setGender(AdLocusTargeting$Gender.MALE); &lt;br /&gt;
targeting.setTestMode(true);  //使用測試模式&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 開啟測試/定向 ===&lt;br /&gt;
&lt;br /&gt;
==== InApp ====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
AdLocusLayout adlocusLayout1 =  new AdLocusLayout(this,&lt;br /&gt;
				AdLocusLayout.AD_SIZE_IAB_MRECT,&lt;br /&gt;
				appKey, &lt;br /&gt;
				15,&lt;br /&gt;
				targeting);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Promotion ====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
PushAd.enablePush(this, &amp;quot;your app key&amp;quot;, promotionIntent, targeting);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=File:AdLocus_Freamework_4_1_2.zip</id>
		<title>File:AdLocus Freamework 4 1 2.zip</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=File:AdLocus_Freamework_4_1_2.zip"/>
				<updated>2016-07-05T10:24:44Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_Promotion_4.1.0</id>
		<title>IOS Promotion 4.1.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_Promotion_4.1.0"/>
				<updated>2016-07-05T09:21:32Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: /* AppDelegate.m */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 前言 == &lt;br /&gt;
適地性優惠通知服務是依據全區定向或特定地理位置定向，提供您的使用者最適合的主動式訊息，同時具有高額的分潤收益。&lt;br /&gt;
&lt;br /&gt;
啟動優惠通知服務，請將相關程式碼加在 AppDelegate 處。&lt;br /&gt;
&lt;br /&gt;
== 實作 ==&lt;br /&gt;
* -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions&lt;br /&gt;
* -(void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification&lt;br /&gt;
* -(void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler&lt;br /&gt;
&lt;br /&gt;
== AppDelegate.m ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
#import &amp;quot;AppDelegate.h&amp;quot;&lt;br /&gt;
#import &amp;lt;AdLocus/AdLocus.h&amp;gt;&lt;br /&gt;
@implementation AppDelegate&lt;br /&gt;
&lt;br /&gt;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {&lt;br /&gt;
&lt;br /&gt;
    ALPushService *push = [ALPushService sharedInstance];&lt;br /&gt;
    push.key = @&amp;quot;請填入您的APP KEY&amp;quot;;&lt;br /&gt;
    push.enable = YES;&lt;br /&gt;
//    [push test]; //五秒後會出現測試廣告，可測試是否整合成功，正式發佈前須關閉。&lt;br /&gt;
&lt;br /&gt;
    [application setMinimumBackgroundFetchInterval:60 * 60];&lt;br /&gt;
&lt;br /&gt;
    UILocalNotification *localNotification = [launchOptions objectForKey:UIApplicationLaunchOptionsLocalNotificationKey];&lt;br /&gt;
    if (localNotification) {&lt;br /&gt;
        [ALPushService didReceiveLocalNotification:localNotification];&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    return YES;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification {&lt;br /&gt;
    [ALPushService didReceiveLocalNotification:notification];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler {&lt;br /&gt;
    [ALPushService performFetchWithCompletionHandler:completionHandler];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_AddSDK_4.1.0</id>
		<title>IOS AddSDK 4.1.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_AddSDK_4.1.0"/>
				<updated>2016-06-30T08:41:39Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: /* 設定編譯相容性 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
== 加入 SDK Library ==&lt;br /&gt;
* 請將AdLocus.framework拖曳到您的專案中，並勾選下面兩個選項:&lt;br /&gt;
** &amp;quot;Copy items into destination group's folder (if needed)&amp;quot;&lt;br /&gt;
** &amp;quot;Create group for any added folders&amp;quot;&lt;br /&gt;
[[File:IOS_Add_File_2.jpg]]&lt;br /&gt;
* 在General 中 Embedded Binaries 中加入 AdLocus.framework&lt;br /&gt;
[[File:ios_embedded_binaries.jpg|1200px]]&lt;br /&gt;
[[File:ios_embedded_binaries2.jpg|1200px]]&lt;br /&gt;
&lt;br /&gt;
== 設定 Info.plist ==&lt;br /&gt;
* 在 Info.plist 中加入&lt;br /&gt;
** App Transport Security Settings&lt;br /&gt;
*** Allow Arbitrary Loads   =  YES&lt;br /&gt;
** NSLocationAlwaysUsageDescription&lt;br /&gt;
** NSLocationWhenInUseUsageDescription&lt;br /&gt;
[[File:ios_infoplist.jpg|1200px]]&lt;br /&gt;
&lt;br /&gt;
== 設定編譯相容性 ==&lt;br /&gt;
* 在 Build Setting 中 Embedded Content Contains Swift Code 設為 YES&lt;br /&gt;
[[File:ios_embedded_contents_swift.jpg|900px]]&lt;br /&gt;
&lt;br /&gt;
* Release 時移除模擬器用的 binary 檔：&lt;br /&gt;
** 在 Build Phases 中加入 Run Script &lt;br /&gt;
[[File:ios_run_script_0.jpg|900px]]&lt;br /&gt;
&lt;br /&gt;
** 並填入：&lt;br /&gt;
&amp;lt;syntaxhighlight lang='bash'&amp;gt;&lt;br /&gt;
APP_PATH=&amp;quot;${TARGET_BUILD_DIR}/${WRAPPER_NAME}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# This script loops through the frameworks embedded in the application and&lt;br /&gt;
# removes unused architectures.&lt;br /&gt;
find &amp;quot;$APP_PATH&amp;quot; -name 'AdLocus.framework' -type d | while read -r FRAMEWORK&lt;br /&gt;
do&lt;br /&gt;
FRAMEWORK_EXECUTABLE_NAME=$(defaults read &amp;quot;$FRAMEWORK/Info.plist&amp;quot; CFBundleExecutable)&lt;br /&gt;
FRAMEWORK_EXECUTABLE_PATH=&amp;quot;$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME&amp;quot;&lt;br /&gt;
echo &amp;quot;Executable is $FRAMEWORK_EXECUTABLE_PATH&amp;quot;&lt;br /&gt;
&lt;br /&gt;
EXTRACTED_ARCHS=()&lt;br /&gt;
&lt;br /&gt;
for ARCH in $ARCHS&lt;br /&gt;
do&lt;br /&gt;
echo &amp;quot;Extracting $ARCH from $FRAMEWORK_EXECUTABLE_NAME&amp;quot;&lt;br /&gt;
lipo -extract &amp;quot;$ARCH&amp;quot; &amp;quot;$FRAMEWORK_EXECUTABLE_PATH&amp;quot; -o &amp;quot;$FRAMEWORK_EXECUTABLE_PATH-$ARCH&amp;quot;&lt;br /&gt;
EXTRACTED_ARCHS+=(&amp;quot;$FRAMEWORK_EXECUTABLE_PATH-$ARCH&amp;quot;)&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Merging extracted architectures: ${ARCHS}&amp;quot;&lt;br /&gt;
lipo -o &amp;quot;$FRAMEWORK_EXECUTABLE_PATH-merged&amp;quot; -create &amp;quot;${EXTRACTED_ARCHS[@]}&amp;quot;&lt;br /&gt;
rm &amp;quot;${EXTRACTED_ARCHS[@]}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Replacing original executable with thinned version&amp;quot;&lt;br /&gt;
rm &amp;quot;$FRAMEWORK_EXECUTABLE_PATH&amp;quot;&lt;br /&gt;
mv &amp;quot;$FRAMEWORK_EXECUTABLE_PATH-merged&amp;quot; &amp;quot;$FRAMEWORK_EXECUTABLE_PATH&amp;quot;&lt;br /&gt;
&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:ios_run_script_1.jpg|900px]]&lt;br /&gt;
&lt;br /&gt;
== 開啟BACKGROUND MODE ==&lt;br /&gt;
* 在Capabilities 中開啟 Background Mode 並勾選Background fetch&lt;br /&gt;
[[File:ios_backgroundfetch.jpg|1200px]]&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_Changelog</id>
		<title>IOS Changelog</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_Changelog"/>
				<updated>2016-06-23T07:57:11Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: /* v4.1.0 Beta */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=== [[iOS_SDK|點我下載]] ===&lt;br /&gt;
== v4.1.1 Beta ==&lt;br /&gt;
* 優化資源使用，修正許多錯誤。&lt;br /&gt;
* 簡化SDK，改用framework。&lt;br /&gt;
* 須完整刪除舊版SDK，並重新整合根據[[iOS_SDK_Getting_Start_4.1.0|新版說明]]整合。&lt;br /&gt;
&lt;br /&gt;
== v4.0.15 ==&lt;br /&gt;
* 針對 iOS 8 調整相容性, 若您使用過舊版的SDK, 請見[[IOS_Promotion|此處維基]].&lt;br /&gt;
* 由此版開始, SDK將會自動要求LocalPush的權限, 此為正常狀況.&lt;br /&gt;
&lt;br /&gt;
== v4.0.5 ==&lt;br /&gt;
* 新增[[iOS_Video|全屏影音廣告]]&lt;br /&gt;
* 若您使用過舊版的SDK, 請作下述更正&lt;br /&gt;
** 單元名稱PREFIX (HyxenProMeAd) -&amp;gt; (AL)&lt;br /&gt;
** AppKey deleagte: (hyxenADAppkey -&amp;gt; (AdLocusAppKey)&lt;br /&gt;
** .h檔合併為 libAdLocus_SDK.h (請 import 此檔)&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=Main_Page</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=Main_Page"/>
				<updated>2016-06-23T07:56:11Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
這是由 AdLocus 提供的開發者 Wiki, 在這裡您可以即時取得 AdLocus 的最新 SDK, 文件, 與使用範例。&lt;br /&gt;
&lt;br /&gt;
若您有整合上的問題，我們期待您的來信。Email: support@adlocus.com&lt;br /&gt;
&lt;br /&gt;
== Release Note ==&lt;br /&gt;
* 2016/06/2 AdLocus iOS SDK 4.1.1(Beta) 釋出, [[iOS_Changelog|更新內容]]&lt;br /&gt;
* 2016/02/25 AdLocus Android SDK 3.5.2 釋出, [[Android_Changelog|更新內容]]&lt;br /&gt;
* 2016/01/19 AdLocus Android SDK 3.4.2 釋出, [[Android_Changelog|更新內容]]&lt;br /&gt;
* 2015/07/15 AdLocus Android SDK 3.3.21 釋出, [[Android_Changelog|更新內容]]&lt;br /&gt;
* 2015/07/08 AdLocus Android SDK 3.3.16 釋出, [[Android_Changelog|更新內容]]&lt;br /&gt;
* 2015/02/25 AdLocus Android SDK 3.3.7 釋出, [[Android_Changelog|更新內容]]&lt;br /&gt;
* 2014/12/18 AdLocus iOS SDK 4.0.15 釋出, [[iOS_Changelog|更新內容]]&lt;br /&gt;
* 2014/11/26 AdLocus Android SDK 3.3.6 釋出, [[Android_Changelog|更新內容]]&lt;br /&gt;
* 2014/10/9 AdLocus iOS SDK 4.0.5 釋出, [[iOS_Changelog|更新內容]]&lt;br /&gt;
* 2014/10/2 AdLocus Android SDK 3.3.3 釋出, [[Android_Changelog|更新內容]]&lt;br /&gt;
&lt;br /&gt;
== 下載 SDK ==&lt;br /&gt;
* [[Android_SDK|Android]]&lt;br /&gt;
* [[iOS_SDK|iOS]]&lt;br /&gt;
* [[Web_SDK|Web]]&lt;br /&gt;
&lt;br /&gt;
== 開發者Q&amp;amp;A ==&lt;br /&gt;
* [[estimate_income|收入試算]]&lt;br /&gt;
* [[settlement_tax|出帳與稅務]]&lt;br /&gt;
&lt;br /&gt;
== 廣告體驗 ==&lt;br /&gt;
* 特定區域主動推播&lt;br /&gt;
* InApp展示&lt;br /&gt;
  &amp;lt;html5media&amp;gt;http://wiki.adlocus.com/images/2/2d/In_app.mp4&amp;lt;/html5media&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* 全屏&lt;br /&gt;
  &amp;lt;html5media&amp;gt;http://wiki.adlocus.com/images/4/4e/%E5%85%A8%E5%B1%8F.mp4&amp;lt;/html5media&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* 全屏影音&lt;br /&gt;
  &amp;lt;html5media&amp;gt;File:SCR_20141006_141437.mp4&amp;lt;/html5media&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
=== [[register_auth|註冊＆審核]] ===&lt;br /&gt;
=== [[back_panel|後台使用]] ===&lt;br /&gt;
=== [[advertisement_profit|支援廣告類型]] ===&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!-- === [[document|文件]] === --&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
=== [[trick|技巧]] (區域性判斷/使用特定廣告平台/推播服務提示對話框) === &lt;br /&gt;
 格式語法參考：&lt;br /&gt;
=== [[error_code|錯誤碼]] ===&lt;br /&gt;
&lt;br /&gt;
http://zh.wikipedia.org/wiki/Wikipedia:%E6%96%B0%E6%89%8B%E5%85%A5%E9%96%80/%E7%B6%AD%E5%9F%BA%E6%96%87%E6%9C%AC &lt;br /&gt;
http://zh.wikipedia.org/wiki/User:Auvaand/%E7%BB%B4%E5%9F%BA%E8%AF%AD%E6%B3%95&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=File:AdLocus_Freamework_4_1_1.zip</id>
		<title>File:AdLocus Freamework 4 1 1.zip</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=File:AdLocus_Freamework_4_1_1.zip"/>
				<updated>2016-06-22T02:49:05Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: Kiddchen uploaded a new version of &amp;amp;quot;File:AdLocus Freamework 4 1 1.zip&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=File:AdLocus_Freamework_4_1_1.zip</id>
		<title>File:AdLocus Freamework 4 1 1.zip</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=File:AdLocus_Freamework_4_1_1.zip"/>
				<updated>2016-06-22T02:43:46Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: Kiddchen uploaded a new version of &amp;amp;quot;File:AdLocus Freamework 4 1 1.zip&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_AddSDK_4.1.0</id>
		<title>IOS AddSDK 4.1.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_AddSDK_4.1.0"/>
				<updated>2016-06-22T02:34:34Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
== 加入 SDK Library ==&lt;br /&gt;
* 請將AdLocus.framework拖曳到您的專案中，並勾選下面兩個選項:&lt;br /&gt;
** &amp;quot;Copy items into destination group's folder (if needed)&amp;quot;&lt;br /&gt;
** &amp;quot;Create group for any added folders&amp;quot;&lt;br /&gt;
[[File:IOS_Add_File_2.jpg]]&lt;br /&gt;
* 在General 中 Embedded Binaries 中加入 AdLocus.framework&lt;br /&gt;
[[File:ios_embedded_binaries.jpg|1200px]]&lt;br /&gt;
[[File:ios_embedded_binaries2.jpg|1200px]]&lt;br /&gt;
&lt;br /&gt;
== 設定 Info.plist ==&lt;br /&gt;
* 在 Info.plist 中加入&lt;br /&gt;
** App Transport Security Settings&lt;br /&gt;
*** Allow Arbitrary Loads   =  YES&lt;br /&gt;
** NSLocationAlwaysUsageDescription&lt;br /&gt;
** NSLocationWhenInUseUsageDescription&lt;br /&gt;
[[File:ios_infoplist.jpg|1200px]]&lt;br /&gt;
&lt;br /&gt;
== 設定編譯相容性 ==&lt;br /&gt;
* 在 Build Setting 中 Embedded Content Contains Swift Code 設為 YES&lt;br /&gt;
[[File:ios_embedded_contents_swift.jpg|900px]]&lt;br /&gt;
&lt;br /&gt;
* Release 時移除模擬器用的 binary 檔：&lt;br /&gt;
** 在 Build Phases 中加入 Run Script &lt;br /&gt;
[[File:ios_run_script_0.jpg|900px]]&lt;br /&gt;
&lt;br /&gt;
** 並填入：&lt;br /&gt;
&amp;lt;syntaxhighlight lang='bash'&amp;gt;&lt;br /&gt;
APP_PATH=&amp;quot;${TARGET_BUILD_DIR}/${WRAPPER_NAME}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# This script loops through the frameworks embedded in the application and&lt;br /&gt;
# removes unused architectures.&lt;br /&gt;
find &amp;quot;$APP_PATH&amp;quot; -name '*.framework' -type d | while read -r FRAMEWORK&lt;br /&gt;
do&lt;br /&gt;
FRAMEWORK_EXECUTABLE_NAME=$(defaults read &amp;quot;$FRAMEWORK/Info.plist&amp;quot; CFBundleExecutable)&lt;br /&gt;
FRAMEWORK_EXECUTABLE_PATH=&amp;quot;$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME&amp;quot;&lt;br /&gt;
echo &amp;quot;Executable is $FRAMEWORK_EXECUTABLE_PATH&amp;quot;&lt;br /&gt;
&lt;br /&gt;
EXTRACTED_ARCHS=()&lt;br /&gt;
&lt;br /&gt;
for ARCH in $ARCHS&lt;br /&gt;
do&lt;br /&gt;
echo &amp;quot;Extracting $ARCH from $FRAMEWORK_EXECUTABLE_NAME&amp;quot;&lt;br /&gt;
lipo -extract &amp;quot;$ARCH&amp;quot; &amp;quot;$FRAMEWORK_EXECUTABLE_PATH&amp;quot; -o &amp;quot;$FRAMEWORK_EXECUTABLE_PATH-$ARCH&amp;quot;&lt;br /&gt;
EXTRACTED_ARCHS+=(&amp;quot;$FRAMEWORK_EXECUTABLE_PATH-$ARCH&amp;quot;)&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Merging extracted architectures: ${ARCHS}&amp;quot;&lt;br /&gt;
lipo -o &amp;quot;$FRAMEWORK_EXECUTABLE_PATH-merged&amp;quot; -create &amp;quot;${EXTRACTED_ARCHS[@]}&amp;quot;&lt;br /&gt;
rm &amp;quot;${EXTRACTED_ARCHS[@]}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Replacing original executable with thinned version&amp;quot;&lt;br /&gt;
rm &amp;quot;$FRAMEWORK_EXECUTABLE_PATH&amp;quot;&lt;br /&gt;
mv &amp;quot;$FRAMEWORK_EXECUTABLE_PATH-merged&amp;quot; &amp;quot;$FRAMEWORK_EXECUTABLE_PATH&amp;quot;&lt;br /&gt;
&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:ios_run_script_1.jpg|900px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 開啟BACKGROUND MODE ==&lt;br /&gt;
* 在Capabilities 中開啟 Background Mode 並勾選Background fetch&lt;br /&gt;
[[File:ios_backgroundfetch.jpg|1200px]]&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=File:Ios_run_script_1.jpg</id>
		<title>File:Ios run script 1.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=File:Ios_run_script_1.jpg"/>
				<updated>2016-06-22T02:27:15Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=File:Ios_run_script_0.jpg</id>
		<title>File:Ios run script 0.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=File:Ios_run_script_0.jpg"/>
				<updated>2016-06-22T02:26:54Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_SDK</id>
		<title>IOS SDK</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_SDK"/>
				<updated>2016-06-22T02:06:29Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: /* Beta */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
* 版本: 4.0.15&lt;br /&gt;
* [[iOS_Changelog|更版記錄]]&lt;br /&gt;
* [[iOS_SDK_Getting_Start|整合說明]]&lt;br /&gt;
* [[Media:LibAdLocus_SDK_4_0_15.zip|SDK 下載]]&lt;br /&gt;
&amp;lt;!--* [[Media:IOSAdLocusAdapter.zip|AdMob Mediation Adapter 下載]]--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Beta ==&lt;br /&gt;
* 版本: 4.1.1&lt;br /&gt;
* [[Media:AdLocus_Freamework_4_1_1.zip|Beta SDK僅限受邀者使用]]&lt;br /&gt;
* [[iOS_SDK_Getting_Start_4.1.0|4.1.x 整合說明]]&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=File:AdLocus_Freamework_4_1_1.zip</id>
		<title>File:AdLocus Freamework 4 1 1.zip</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=File:AdLocus_Freamework_4_1_1.zip"/>
				<updated>2016-06-22T02:05:51Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_Promotion_4.1.0</id>
		<title>IOS Promotion 4.1.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_Promotion_4.1.0"/>
				<updated>2016-06-04T02:19:52Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 前言 == &lt;br /&gt;
適地性優惠通知服務是依據全區定向或特定地理位置定向，提供您的使用者最適合的主動式訊息，同時具有高額的分潤收益。&lt;br /&gt;
&lt;br /&gt;
啟動優惠通知服務，請將相關程式碼加在 AppDelegate 處。&lt;br /&gt;
&lt;br /&gt;
== 實作 ==&lt;br /&gt;
* -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions&lt;br /&gt;
* -(void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification&lt;br /&gt;
* -(void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler&lt;br /&gt;
&lt;br /&gt;
== AppDelegate.m ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
#import &amp;quot;AppDelegate.h&amp;quot;&lt;br /&gt;
#import &amp;lt;AdLocus/AdLocus.h&amp;gt;&lt;br /&gt;
@implementation AppDelegate&lt;br /&gt;
&lt;br /&gt;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {&lt;br /&gt;
&lt;br /&gt;
    ALPushService *push = [ALPushService sharedInstance];&lt;br /&gt;
    push.key = @&amp;quot;請填入您的APP KEY&amp;quot;;&lt;br /&gt;
    push.enable = YES;&lt;br /&gt;
//    [push test]; //五秒後會出現測試廣告，可測試是否整合成功，正式發佈前須關閉。&lt;br /&gt;
&lt;br /&gt;
    [application setMinimumBackgroundFetchInterval:60 * 60];&lt;br /&gt;
&lt;br /&gt;
    UILocalNotification *localNotification = [launchOptions objectForKey:UIApplicationLaunchOptionsLocalNotificationKey];&lt;br /&gt;
    if (localNotification) {&lt;br /&gt;
        [ALPushService didReceiveLocalNotification:localNotification];&lt;br /&gt;
        [[UIApplication sharedApplication] cancelLocalNotification:localNotification];&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    return YES;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification {&lt;br /&gt;
    [ALPushService didReceiveLocalNotification:notification];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler {&lt;br /&gt;
    [ALPushService performFetchWithCompletionHandler:completionHandler];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_Interstitial_4.1.0</id>
		<title>IOS Interstitial 4.1.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_Interstitial_4.1.0"/>
				<updated>2016-06-04T02:09:57Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 前言 == &lt;br /&gt;
插頁式版位將以曝光次數高分潤，是您提高收益的最好單元之一。&lt;br /&gt;
&lt;br /&gt;
== 實作 ==&lt;br /&gt;
* @interface ViewController : UIViewController &amp;lt;ALInterstitialDelegate&amp;gt;&lt;br /&gt;
* @property (nonatomic, strong) ALInterstitial *Interstitial;&lt;br /&gt;
&lt;br /&gt;
== 啟用插頁式版位 == &lt;br /&gt;
在您想啟用插頁式版位的流程中中加入下列程式碼&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
    self.interstitial = [[ALInterstitial alloc] init];&lt;br /&gt;
    self.interstitial.key = @&amp;quot;請填入 APP KEY&amp;quot;;&lt;br /&gt;
    self.interstitial.targeting = targeting; //(選擇性) 請參考 ALTargeting 設定&lt;br /&gt;
    [self.interstitial setInterstitialAnimationType:AdLocusInterstitialAnimationTypeFadeIn];&lt;br /&gt;
    [self.interstitial requestWithDelegate:self];&lt;br /&gt;
    [self.view addSubview:self.interstitial]; //放到 interstitialDidReceiveAd: ，當廣告載入後可立即展示。&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 若您需要監聽廣告互動結果 ==&lt;br /&gt;
透過實作 ALInterstitialDelegate 監測廣告運行結果&lt;br /&gt;
&lt;br /&gt;
* interstitialDidReceiveAd&lt;br /&gt;
* interstitialDidFailToReceiveAd&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
- (void)interstitialDidReceiveAd:(ALInterstitial *)interstitial&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Receive AdLocus interstitial Ad.&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void)interstitialDidFailToReceiveAd:(ALInterstitial *)interstitial error:(AdLocusError *)error&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Failed to receive AdLocus interstitial Ad : %@&amp;quot;, error);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_Changelog</id>
		<title>IOS Changelog</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_Changelog"/>
				<updated>2016-06-02T10:52:53Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=== [[iOS_SDK|點我下載]] ===&lt;br /&gt;
== v4.1.0 Beta ==&lt;br /&gt;
* 優化資源使用，修正許多錯誤。&lt;br /&gt;
* 簡化SDK，改用framework。&lt;br /&gt;
* 須完整刪除舊版SDK，並重新整合根據[[iOS_SDK_Getting_Start_4.1.0|新版說明]]整合。&lt;br /&gt;
&lt;br /&gt;
== v4.0.15 ==&lt;br /&gt;
* 針對 iOS 8 調整相容性, 若您使用過舊版的SDK, 請見[[IOS_Promotion|此處維基]].&lt;br /&gt;
* 由此版開始, SDK將會自動要求LocalPush的權限, 此為正常狀況.&lt;br /&gt;
&lt;br /&gt;
== v4.0.5 ==&lt;br /&gt;
* 新增[[iOS_Video|全屏影音廣告]]&lt;br /&gt;
* 若您使用過舊版的SDK, 請作下述更正&lt;br /&gt;
** 單元名稱PREFIX (HyxenProMeAd) -&amp;gt; (AL)&lt;br /&gt;
** AppKey deleagte: (hyxenADAppkey -&amp;gt; (AdLocusAppKey)&lt;br /&gt;
** .h檔合併為 libAdLocus_SDK.h (請 import 此檔)&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=Main_Page</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=Main_Page"/>
				<updated>2016-06-02T10:50:44Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
這是由 AdLocus 提供的開發者 Wiki, 在這裡您可以即時取得 AdLocus 的最新 SDK, 文件, 與使用範例。&lt;br /&gt;
&lt;br /&gt;
若您有整合上的問題，我們期待您的來信。Email: support@adlocus.com&lt;br /&gt;
&lt;br /&gt;
== Release Note ==&lt;br /&gt;
* 2016/06/2 AdLocus iOS SDK 4.1.0(Beta) 釋出, [[iOS_Changelog|更新內容]]&lt;br /&gt;
* 2016/02/25 AdLocus Android SDK 3.5.2 釋出, [[Android_Changelog|更新內容]]&lt;br /&gt;
* 2016/01/19 AdLocus Android SDK 3.4.2 釋出, [[Android_Changelog|更新內容]]&lt;br /&gt;
* 2015/07/15 AdLocus Android SDK 3.3.21 釋出, [[Android_Changelog|更新內容]]&lt;br /&gt;
* 2015/07/08 AdLocus Android SDK 3.3.16 釋出, [[Android_Changelog|更新內容]]&lt;br /&gt;
* 2015/02/25 AdLocus Android SDK 3.3.7 釋出, [[Android_Changelog|更新內容]]&lt;br /&gt;
* 2014/12/18 AdLocus iOS SDK 4.0.15 釋出, [[iOS_Changelog|更新內容]]&lt;br /&gt;
* 2014/11/26 AdLocus Android SDK 3.3.6 釋出, [[Android_Changelog|更新內容]]&lt;br /&gt;
* 2014/10/9 AdLocus iOS SDK 4.0.5 釋出, [[iOS_Changelog|更新內容]]&lt;br /&gt;
* 2014/10/2 AdLocus Android SDK 3.3.3 釋出, [[Android_Changelog|更新內容]]&lt;br /&gt;
&lt;br /&gt;
== 下載 SDK ==&lt;br /&gt;
* [[Android_SDK|Android]]&lt;br /&gt;
* [[iOS_SDK|iOS]]&lt;br /&gt;
* [[Web_SDK|Web]]&lt;br /&gt;
&lt;br /&gt;
== 開發者Q&amp;amp;A ==&lt;br /&gt;
* [[estimate_income|收入試算]]&lt;br /&gt;
* [[settlement_tax|出帳與稅務]]&lt;br /&gt;
&lt;br /&gt;
== 廣告體驗 ==&lt;br /&gt;
* 特定區域主動推播&lt;br /&gt;
* InApp展示&lt;br /&gt;
  &amp;lt;html5media&amp;gt;http://wiki.adlocus.com/images/2/2d/In_app.mp4&amp;lt;/html5media&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* 全屏&lt;br /&gt;
  &amp;lt;html5media&amp;gt;http://wiki.adlocus.com/images/4/4e/%E5%85%A8%E5%B1%8F.mp4&amp;lt;/html5media&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* 全屏影音&lt;br /&gt;
  &amp;lt;html5media&amp;gt;File:SCR_20141006_141437.mp4&amp;lt;/html5media&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
=== [[register_auth|註冊＆審核]] ===&lt;br /&gt;
=== [[back_panel|後台使用]] ===&lt;br /&gt;
=== [[advertisement_profit|支援廣告類型]] ===&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!-- === [[document|文件]] === --&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
=== [[trick|技巧]] (區域性判斷/使用特定廣告平台/推播服務提示對話框) === &lt;br /&gt;
 格式語法參考：&lt;br /&gt;
=== [[error_code|錯誤碼]] ===&lt;br /&gt;
&lt;br /&gt;
http://zh.wikipedia.org/wiki/Wikipedia:%E6%96%B0%E6%89%8B%E5%85%A5%E9%96%80/%E7%B6%AD%E5%9F%BA%E6%96%87%E6%9C%AC &lt;br /&gt;
http://zh.wikipedia.org/wiki/User:Auvaand/%E7%BB%B4%E5%9F%BA%E8%AF%AD%E6%B3%95&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=Main_Page</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=Main_Page"/>
				<updated>2016-06-02T10:49:48Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: /* Release Note */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
這是由 AdLocus 提供的開發者 Wiki, 在這裡您可以即時取得 AdLocus 的最新 SDK, 文件, 與使用範例。&lt;br /&gt;
&lt;br /&gt;
若您有整合上的問題，我們期待您的來信。Email: support@adlocus.com&lt;br /&gt;
&lt;br /&gt;
== Release Note ==&lt;br /&gt;
* 2014/12/18 AdLocus iOS SDK 4.1.0(Beta) 釋出, [[iOS_Changelog|更新內容]]&lt;br /&gt;
* 2016/02/25 AdLocus Android SDK 3.5.2 釋出, [[Android_Changelog|更新內容]]&lt;br /&gt;
* 2016/01/19 AdLocus Android SDK 3.4.2 釋出, [[Android_Changelog|更新內容]]&lt;br /&gt;
* 2015/07/15 AdLocus Android SDK 3.3.21 釋出, [[Android_Changelog|更新內容]]&lt;br /&gt;
* 2015/07/08 AdLocus Android SDK 3.3.16 釋出, [[Android_Changelog|更新內容]]&lt;br /&gt;
* 2015/02/25 AdLocus Android SDK 3.3.7 釋出, [[Android_Changelog|更新內容]]&lt;br /&gt;
* 2014/12/18 AdLocus iOS SDK 4.0.15 釋出, [[iOS_Changelog|更新內容]]&lt;br /&gt;
* 2014/11/26 AdLocus Android SDK 3.3.6 釋出, [[Android_Changelog|更新內容]]&lt;br /&gt;
* 2014/10/9 AdLocus iOS SDK 4.0.5 釋出, [[iOS_Changelog|更新內容]]&lt;br /&gt;
* 2014/10/2 AdLocus Android SDK 3.3.3 釋出, [[Android_Changelog|更新內容]]&lt;br /&gt;
&lt;br /&gt;
== 下載 SDK ==&lt;br /&gt;
* [[Android_SDK|Android]]&lt;br /&gt;
* [[iOS_SDK|iOS]]&lt;br /&gt;
* [[Web_SDK|Web]]&lt;br /&gt;
&lt;br /&gt;
== 開發者Q&amp;amp;A ==&lt;br /&gt;
* [[estimate_income|收入試算]]&lt;br /&gt;
* [[settlement_tax|出帳與稅務]]&lt;br /&gt;
&lt;br /&gt;
== 廣告體驗 ==&lt;br /&gt;
* 特定區域主動推播&lt;br /&gt;
* InApp展示&lt;br /&gt;
  &amp;lt;html5media&amp;gt;http://wiki.adlocus.com/images/2/2d/In_app.mp4&amp;lt;/html5media&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* 全屏&lt;br /&gt;
  &amp;lt;html5media&amp;gt;http://wiki.adlocus.com/images/4/4e/%E5%85%A8%E5%B1%8F.mp4&amp;lt;/html5media&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* 全屏影音&lt;br /&gt;
  &amp;lt;html5media&amp;gt;File:SCR_20141006_141437.mp4&amp;lt;/html5media&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
=== [[register_auth|註冊＆審核]] ===&lt;br /&gt;
=== [[back_panel|後台使用]] ===&lt;br /&gt;
=== [[advertisement_profit|支援廣告類型]] ===&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!-- === [[document|文件]] === --&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
=== [[trick|技巧]] (區域性判斷/使用特定廣告平台/推播服務提示對話框) === &lt;br /&gt;
 格式語法參考：&lt;br /&gt;
=== [[error_code|錯誤碼]] ===&lt;br /&gt;
&lt;br /&gt;
http://zh.wikipedia.org/wiki/Wikipedia:%E6%96%B0%E6%89%8B%E5%85%A5%E9%96%80/%E7%B6%AD%E5%9F%BA%E6%96%87%E6%9C%AC &lt;br /&gt;
http://zh.wikipedia.org/wiki/User:Auvaand/%E7%BB%B4%E5%9F%BA%E8%AF%AD%E6%B3%95&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=File:AdLocus_Freamework_4_1_0.zip</id>
		<title>File:AdLocus Freamework 4 1 0.zip</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=File:AdLocus_Freamework_4_1_0.zip"/>
				<updated>2016-06-02T10:41:01Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_InApp_4.1.0</id>
		<title>IOS InApp 4.1.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_InApp_4.1.0"/>
				<updated>2016-06-02T10:21:57Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 前言 ==&lt;br /&gt;
InApp 版位為最常見的版位，AdLocus 提供您 320x50, 300x250, 728x90 三種不同尺寸的選擇。&lt;br /&gt;
&lt;br /&gt;
== 實作 ==&lt;br /&gt;
* #import &amp;lt;AdLocus/AdLocus.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 啟動版位 ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
    self.banner = [[ALBannerView alloc] initWithFrame:CGRectMake(0, 0, 320, 50)];&lt;br /&gt;
    self.banner.key = @&amp;quot;請填入您的APP KEY&amp;quot;;&lt;br /&gt;
    self.banner.targeting = targeting; //(選擇性) 請參考 ALTargeting 設定&lt;br /&gt;
    [self.banner setBannerAnimationType:AdLocusBannerAnimationTypeRandom];&lt;br /&gt;
    [self.banner setAutoRefreshWithTime:15];&lt;br /&gt;
    [self.banner requestAdViewWithDelegate:self];&lt;br /&gt;
    [self.view addSubview:self.banner];&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* 設定監聽&lt;br /&gt;
&lt;br /&gt;
=== 範例: ViewController.h ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
#import &amp;lt;UIKit/UIKit.h&amp;gt;&lt;br /&gt;
#import &amp;lt;AdLocus/AdLocus.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
@interface ViewController : UIViewController &amp;lt;ALBannerViewDelegate&amp;gt;&lt;br /&gt;
@property (nonatomic, strong) ALBannerView *banner;&lt;br /&gt;
@end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 範例: ViewController.m ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#import &amp;quot;ViewController.h&amp;quot;&lt;br /&gt;
&lt;br /&gt;
@implementation ViewController&lt;br /&gt;
&lt;br /&gt;
- (void)viewDidLoad&lt;br /&gt;
{&lt;br /&gt;
    [super viewDidLoad];&lt;br /&gt;
    [self initAdLocusBannerView];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void)initAdLocusBannerView&lt;br /&gt;
{&lt;br /&gt;
    self.banner = [[ALBannerView alloc] initWithFrame:CGRectMake(0, 0, 320, 50)];&lt;br /&gt;
    self.banner.key = @&amp;quot;請填入您的APP KEY&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
    ALTargeting *targeting = [ALTargeting new];&lt;br /&gt;
    targeting.age = 30 // 30 歲&lt;br /&gt;
    targeting.gender = ALGenderMALE; // 男性&lt;br /&gt;
//    targeting.location = location; //透過 LocationManager 取得的位置&lt;br /&gt;
    targeting.testMode = NO; //測試模式關閉&lt;br /&gt;
    self.banner.targeting = targeting; //(選擇性) 請參考 ALTargeting 設定&lt;br /&gt;
&lt;br /&gt;
    [self.banner setBannerAnimationType:AdLocusBannerAnimationTypeRandom];&lt;br /&gt;
    [self.banner setAutoRefreshWithTime:15];&lt;br /&gt;
    [self.banner requestAdViewWithDelegate:self];&lt;br /&gt;
&lt;br /&gt;
    [self.view addSubview:self.banner];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 若您需要監聽廣告互動結果 ==&lt;br /&gt;
透過實作 ALBannerViewDelegate 監測廣告運行結果&lt;br /&gt;
&lt;br /&gt;
* adViewDidReceiveAd&lt;br /&gt;
* adViewDidFailToReceiveAd&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
- (void)adViewDidReceiveAd:(ALBannerView *)view&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Receive AdLocus banner Ad.&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void)adViewDidFailToReceiveAd:(ALBannerView *)view error:(AdLocusError *)error&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Failed receive AdLocus banner Ad : %@&amp;quot;, error);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_Video_4.1.0</id>
		<title>IOS Video 4.1.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_Video_4.1.0"/>
				<updated>2016-06-02T10:19:28Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 前言 == &lt;br /&gt;
影音版位將以曝光次數高分潤，是您提高收益的最好單元之一。&lt;br /&gt;
&lt;br /&gt;
== 實作 ==&lt;br /&gt;
* @interface ViewController : UIViewController &amp;lt;ALVideoDelegate&amp;gt;&lt;br /&gt;
* @property (nonatomic, strong) ALVideo *video;&lt;br /&gt;
* - (void) videoDidReceive:(ALVideo *)video&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 啟用插頁式版位 == &lt;br /&gt;
在您想啟用影音版位的流程中, 加入下列程式碼&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
    ALTargeting *targeting = [ALTargeting new];&lt;br /&gt;
&lt;br /&gt;
    self.video = [[ALVideo alloc] initWithViewController:self&lt;br /&gt;
                                                delegate:self];&lt;br /&gt;
    self.video.key = @&amp;quot;請填入APP KEY&amp;quot;;&lt;br /&gt;
    self.video.targeting = targeting; //(選擇性) 請參考 ALTargeting 設定&lt;br /&gt;
    [video load];&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
並透過監聽結果啟用影音插屏&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
- (void) videoDidReceive:(ALVideo *)video&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Receive AdLocus Video Ad.&amp;quot;);&lt;br /&gt;
    [video show];&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 若您需要監聽廣告互動結果 ==&lt;br /&gt;
透過實作 ALVideoDelegate 監測廣告運行結果&lt;br /&gt;
&lt;br /&gt;
* videoDidReceive&lt;br /&gt;
* videoDidEnd&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- (void) videoDidReceive:(ALVideo *)video&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Receive AdLocus Video Ad.&amp;quot;);&lt;br /&gt;
    [video show];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void) videoDidEnd:(ALVideo *)video&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;End AdLocus Video Ad.&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_Interstitial_4.1.0</id>
		<title>IOS Interstitial 4.1.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_Interstitial_4.1.0"/>
				<updated>2016-06-02T10:17:32Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: /* 啟用插頁式版位 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 前言 == &lt;br /&gt;
插頁式版位將以曝光次數高分潤，是您提高收益的最好單元之一。&lt;br /&gt;
&lt;br /&gt;
== 實作 ==&lt;br /&gt;
* @interface ViewController : UIViewController &amp;lt;ALInterstitialDelegate&amp;gt;&lt;br /&gt;
* @property (nonatomic, strong) ALInterstitial *Interstitial;&lt;br /&gt;
&lt;br /&gt;
== 啟用插頁式版位 == &lt;br /&gt;
在您想啟用插頁式版位的流程中中加入下列程式碼&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
    self.interstitial = [[ALInterstitial alloc] init];&lt;br /&gt;
    self.interstitial.key = @&amp;quot;請填入 APP KEY&amp;quot;;&lt;br /&gt;
    self.interstitial.targeting = targeting; //(選擇性) 請參考 ALTargeting 設定&lt;br /&gt;
    [self.interstitial setInterstitialAnimationType:AdLocusInterstitialAnimationTypeFadeIn];&lt;br /&gt;
    [self.interstitial requestAdViewWithDelegate:self];&lt;br /&gt;
    [self.view addSubview:self.interstitial]; //放到 interstitialDidReceiveAd: ，當廣告載入後可立即展示。&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 若您需要監聽廣告互動結果 ==&lt;br /&gt;
透過實作 ALInterstitialDelegate 監測廣告運行結果&lt;br /&gt;
&lt;br /&gt;
* interstitialDidReceiveAd&lt;br /&gt;
* interstitialDidFailToReceiveAd&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
- (void)interstitialDidReceiveAd:(ALInterstitial *)interstitial&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Receive AdLocus interstitial Ad.&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void)interstitialDidFailToReceiveAd:(ALInterstitial *)interstitial error:(AdLocusError *)error&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Failed to receive AdLocus interstitial Ad : %@&amp;quot;, error);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_Interstitial_4.1.0</id>
		<title>IOS Interstitial 4.1.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_Interstitial_4.1.0"/>
				<updated>2016-06-02T10:17:07Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: /* 啟用插頁式版位 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 前言 == &lt;br /&gt;
插頁式版位將以曝光次數高分潤，是您提高收益的最好單元之一。&lt;br /&gt;
&lt;br /&gt;
== 實作 ==&lt;br /&gt;
* @interface ViewController : UIViewController &amp;lt;ALInterstitialDelegate&amp;gt;&lt;br /&gt;
* @property (nonatomic, strong) ALInterstitial *Interstitial;&lt;br /&gt;
&lt;br /&gt;
== 啟用插頁式版位 == &lt;br /&gt;
在您想啟用插頁式版位的流程中中加入下列程式碼&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
    self.interstitial = [[ALInterstitial alloc] init];&lt;br /&gt;
    self.interstitial.key = @&amp;quot;請填入 APP KEY&amp;quot;;&lt;br /&gt;
    self.interstitial.targeting = targeting; //請參考 ALTargeting 設定&lt;br /&gt;
    [self.interstitial setInterstitialAnimationType:AdLocusInterstitialAnimationTypeFadeIn];&lt;br /&gt;
    [self.interstitial requestAdViewWithDelegate:self];&lt;br /&gt;
    [self.view addSubview:self.interstitial]; //放到 interstitialDidReceiveAd: ，當廣告載入後可立即展示。&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 若您需要監聽廣告互動結果 ==&lt;br /&gt;
透過實作 ALInterstitialDelegate 監測廣告運行結果&lt;br /&gt;
&lt;br /&gt;
* interstitialDidReceiveAd&lt;br /&gt;
* interstitialDidFailToReceiveAd&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
- (void)interstitialDidReceiveAd:(ALInterstitial *)interstitial&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Receive AdLocus interstitial Ad.&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void)interstitialDidFailToReceiveAd:(ALInterstitial *)interstitial error:(AdLocusError *)error&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Failed to receive AdLocus interstitial Ad : %@&amp;quot;, error);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_InApp_4.1.0</id>
		<title>IOS InApp 4.1.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_InApp_4.1.0"/>
				<updated>2016-06-02T10:15:55Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 前言 ==&lt;br /&gt;
InApp 版位為最常見的版位，AdLocus 提供您 320x50, 300x250, 728x90 三種不同尺寸的選擇。&lt;br /&gt;
&lt;br /&gt;
== 實作 ==&lt;br /&gt;
* #import &amp;lt;AdLocus/AdLocus.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 啟動版位 ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
    self.banner = [[ALBannerView alloc] initWithFrame:CGRectMake(0, 0, 320, 50)];&lt;br /&gt;
    self.banner.key = @&amp;quot;請填入您的APP KEY&amp;quot;;&lt;br /&gt;
    self.banner.targeting = targeting; //(選擇性) 請參考 ALTargeting 設定&lt;br /&gt;
    [self.banner setBannerAnimationType:AdLocusBannerAnimationTypeRandom];&lt;br /&gt;
    [self.banner setAutoRefreshWithTime:15];&lt;br /&gt;
    [self.banner requestAdViewWithDelegate:self];&lt;br /&gt;
    [self.view addSubview:self.banner];&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* 設定監聽&lt;br /&gt;
&lt;br /&gt;
=== 範例: ViewController.h ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
#import &amp;lt;UIKit/UIKit.h&amp;gt;&lt;br /&gt;
#import &amp;lt;AdLocus/AdLocus.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
@interface ViewController : UIViewController &amp;lt;ALBannerViewDelegate&amp;gt;&lt;br /&gt;
@property (nonatomic, strong) ALBannerView *banner;&lt;br /&gt;
@end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 範例: ViewController.m ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#import &amp;quot;ViewController.h&amp;quot;&lt;br /&gt;
&lt;br /&gt;
@implementation ViewController&lt;br /&gt;
&lt;br /&gt;
- (void)viewDidLoad&lt;br /&gt;
{&lt;br /&gt;
    [super viewDidLoad];&lt;br /&gt;
    [self initAdLocusBannerView];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void)initAdLocusBannerView&lt;br /&gt;
{&lt;br /&gt;
    self.banner = [[ALBannerView alloc] initWithFrame:CGRectMake(0, 0, 320, 50)];&lt;br /&gt;
    [self.banner setBannerAnimationType:AdLocusBannerAnimationTypeRandom];&lt;br /&gt;
    [self.banner setAutoRefreshWithTime:15];&lt;br /&gt;
    [self.banner requestAdViewWithDelegate:self];&lt;br /&gt;
&lt;br /&gt;
    [self.view addSubview:self.banner];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 若您需要監聽廣告互動結果 ==&lt;br /&gt;
透過實作 ALBannerViewDelegate 監測廣告運行結果&lt;br /&gt;
&lt;br /&gt;
* adViewDidReceiveAd&lt;br /&gt;
* adViewDidFailToReceiveAd&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
- (void)adViewDidReceiveAd:(ALBannerView *)view&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Receive AdLocus banner Ad.&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void)adViewDidFailToReceiveAd:(ALBannerView *)view error:(AdLocusError *)error&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Failed receive AdLocus banner Ad : %@&amp;quot;, error);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_InApp_4.1.0</id>
		<title>IOS InApp 4.1.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_InApp_4.1.0"/>
				<updated>2016-06-02T10:14:43Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 前言 ==&lt;br /&gt;
InApp 版位為最常見的版位，AdLocus 提供您 320x50, 300x250, 728x90 三種不同尺寸的選擇。&lt;br /&gt;
&lt;br /&gt;
== 實作 ==&lt;br /&gt;
* #import &amp;lt;AdLocus/AdLocus.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 啟動版位 ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
    self.banner = [[ALBannerView alloc] initWithFrame:CGRectMake(0, 0, 320, 50)];&lt;br /&gt;
    self.banner.key = @&amp;quot;請填入您的APP KEY&amp;quot;;&lt;br /&gt;
    self.banner.targeting = targeting; //請參考 ALTargeting 設定&lt;br /&gt;
    [self.banner setBannerAnimationType:AdLocusBannerAnimationTypeRandom];&lt;br /&gt;
    [self.banner setAutoRefreshWithTime:15];&lt;br /&gt;
    [self.banner requestAdViewWithDelegate:self];&lt;br /&gt;
    [self.view addSubview:self.banner];&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* 設定監聽&lt;br /&gt;
&lt;br /&gt;
=== 範例: ViewController.h ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
#import &amp;lt;UIKit/UIKit.h&amp;gt;&lt;br /&gt;
#import &amp;lt;AdLocus/AdLocus.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
@interface ViewController : UIViewController &amp;lt;ALBannerViewDelegate&amp;gt;&lt;br /&gt;
@property (nonatomic, strong) ALBannerView *banner;&lt;br /&gt;
@end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 範例: ViewController.m ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#import &amp;quot;ViewController.h&amp;quot;&lt;br /&gt;
&lt;br /&gt;
@implementation ViewController&lt;br /&gt;
&lt;br /&gt;
- (void)viewDidLoad&lt;br /&gt;
{&lt;br /&gt;
    [super viewDidLoad];&lt;br /&gt;
    [self initAdLocusBannerView];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void)initAdLocusBannerView&lt;br /&gt;
{&lt;br /&gt;
    self.banner = [[ALBannerView alloc] initWithFrame:CGRectMake(0, 0, 320, 50)];&lt;br /&gt;
    [self.banner setBannerAnimationType:AdLocusBannerAnimationTypeRandom];&lt;br /&gt;
    [self.banner setAutoRefreshWithTime:15];&lt;br /&gt;
    [self.banner requestAdViewWithDelegate:self];&lt;br /&gt;
&lt;br /&gt;
    [self.view addSubview:self.banner];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 若您需要監聽廣告互動結果 ==&lt;br /&gt;
透過實作 ALBannerViewDelegate 監測廣告運行結果&lt;br /&gt;
&lt;br /&gt;
* adViewDidReceiveAd&lt;br /&gt;
* adViewDidFailToReceiveAd&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
- (void)adViewDidReceiveAd:(ALBannerView *)view&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Receive AdLocus banner Ad.&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void)adViewDidFailToReceiveAd:(ALBannerView *)view andError:(HyxenAdLocusError *)error&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Failed receive AdLocus banner Ad : %@&amp;quot;, error);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_Interstitial_4.1.0</id>
		<title>IOS Interstitial 4.1.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_Interstitial_4.1.0"/>
				<updated>2016-06-02T10:13:42Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 前言 == &lt;br /&gt;
插頁式版位將以曝光次數高分潤，是您提高收益的最好單元之一。&lt;br /&gt;
&lt;br /&gt;
== 實作 ==&lt;br /&gt;
* @interface ViewController : UIViewController &amp;lt;ALInterstitialDelegate&amp;gt;&lt;br /&gt;
* @property (nonatomic, strong) ALInterstitial *Interstitial;&lt;br /&gt;
&lt;br /&gt;
== 啟用插頁式版位 == &lt;br /&gt;
在您想啟用插頁式版位的流程中中加入下列程式碼&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
    self.interstitial = [[ALInterstitial alloc] init];&lt;br /&gt;
    self.interstitial.key = @&amp;quot;請填入 APP KEY&amp;quot;;&lt;br /&gt;
    self.targeting = targeting; //請參考 ALTargeting 設定&lt;br /&gt;
    [self.interstitial setInterstitialAnimationType:AdLocusInterstitialAnimationTypeFadeIn];&lt;br /&gt;
    [self.interstitial requestAdViewWithDelegate:self];&lt;br /&gt;
    [self.view addSubview:self.interstitial]; //放到 interstitialDidReceiveAd: ，當廣告載入後可立即展示。&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 若您需要監聽廣告互動結果 ==&lt;br /&gt;
透過實作 ALInterstitialDelegate 監測廣告運行結果&lt;br /&gt;
&lt;br /&gt;
* interstitialDidReceiveAd&lt;br /&gt;
* interstitialDidFailToReceiveAd&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
- (void)interstitialDidReceiveAd:(ALInterstitial *)interstitial&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Receive AdLocus interstitial Ad.&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void)interstitialDidFailToReceiveAd:(ALInterstitial *)interstitial error:(AdLocusError *)error&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Failed to receive AdLocus interstitial Ad : %@&amp;quot;, error);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_Interstitial_4.1.0</id>
		<title>IOS Interstitial 4.1.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_Interstitial_4.1.0"/>
				<updated>2016-06-02T10:12:00Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 前言 == &lt;br /&gt;
插頁式版位將以曝光次數高分潤，是您提高收益的最好單元之一。&lt;br /&gt;
&lt;br /&gt;
== 實作 ==&lt;br /&gt;
* @interface ViewController : UIViewController &amp;lt;ALInterstitialDelegate&amp;gt;&lt;br /&gt;
* @property (nonatomic, strong) ALInterstitial *Interstitial;&lt;br /&gt;
&lt;br /&gt;
== 啟用插頁式版位 == &lt;br /&gt;
在您想啟用插頁式版位的流程中中加入下列程式碼&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
    self.interstitial = [[ALInterstitial alloc] init];&lt;br /&gt;
    [self.interstitial setInterstitialAnimationType:AdLocusInterstitialAnimationTypeFadeIn];&lt;br /&gt;
    [self.interstitial requestAdViewWithDelegate:self];&lt;br /&gt;
    [self.view addSubview:self.interstitial]; //放到 interstitialDidReceiveAd: ，當廣告載入後可立即展示。&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 若您需要監聽廣告互動結果 ==&lt;br /&gt;
透過實作 ALInterstitialDelegate 監測廣告運行結果&lt;br /&gt;
&lt;br /&gt;
* interstitialDidReceiveAd&lt;br /&gt;
* interstitialDidFailToReceiveAd&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
- (void)interstitialDidReceiveAd:(ALInterstitial *)interstitial&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Receive AdLocus interstitial Ad.&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void)interstitialDidFailToReceiveAd:(ALInterstitial *)interstitial error:(AdLocusError *)error&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Failed to receive AdLocus interstitial Ad : %@&amp;quot;, error);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_Interstitial_4.1.0</id>
		<title>IOS Interstitial 4.1.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_Interstitial_4.1.0"/>
				<updated>2016-06-02T10:09:56Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: /* 啟用插頁式版位 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 前言 == &lt;br /&gt;
插頁式版位將以曝光次數高分潤，是您提高收益的最好單元之一。&lt;br /&gt;
&lt;br /&gt;
== 實作 ==&lt;br /&gt;
* @interface ViewController : UIViewController &amp;lt;ALInterstitialDelegate&amp;gt;&lt;br /&gt;
* @property (nonatomic, strong) ALInterstitial *Interstitial;&lt;br /&gt;
&lt;br /&gt;
== 啟用插頁式版位 == &lt;br /&gt;
在您想啟用插頁式版位的流程中中加入下列程式碼&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
    self.interstitial = [[ALInterstitial alloc] init];&lt;br /&gt;
    [self.interstitial setInterstitialAnimationType:AdLocusInterstitialAnimationTypeFadeIn];&lt;br /&gt;
    [self.interstitial requestAdViewWithDelegate:self];&lt;br /&gt;
    [self.view addSubview:self.interstitial];&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 若您需要監聽廣告互動結果 ==&lt;br /&gt;
透過實作 ALInterstitialDelegate 監測廣告運行結果&lt;br /&gt;
&lt;br /&gt;
* interstitialDidReceiveAd&lt;br /&gt;
* interstitialDidFailToReceiveAd&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
- (void)interstitialDidReceiveAd:(ALInterstitial *)interstitial&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Receive AdLocus interstitial Ad.&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void)interstitialDidFailToReceiveAd:(ALInterstitial *)interstitial error:(AdLocusError *)error&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Failed to receive AdLocus interstitial Ad : %@&amp;quot;, error);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_SDK_Getting_Start_4.1.0</id>
		<title>IOS SDK Getting Start 4.1.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_SDK_Getting_Start_4.1.0"/>
				<updated>2016-06-02T10:02:13Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Getting Start with AdLocus ==&lt;br /&gt;
以下將說明您怎麼整入 AdLocus SDK.&lt;br /&gt;
&lt;br /&gt;
== 取得您的 App Key ==&lt;br /&gt;
* 至 http://adlocus.com/ 申請帳號並登入。&lt;br /&gt;
* 在「應用程式」中「新增」您的應用程式並取得app key。&lt;br /&gt;
&lt;br /&gt;
== 準備將 SDK 加入到您的專案 ==&lt;br /&gt;
* [[iOS_AddSDK_4.1.0|加入SDK]]&lt;br /&gt;
&lt;br /&gt;
== InApp ==&lt;br /&gt;
* [[iOS_InApp_4.1.0|詳細說明]]&lt;br /&gt;
&lt;br /&gt;
== Promotion ==&lt;br /&gt;
* [[iOS_Promotion_4.1.0|詳細說明]]&lt;br /&gt;
&lt;br /&gt;
== Interstitial ==&lt;br /&gt;
* [[iOS_Interstitial_4.1.0|詳細說明]]&lt;br /&gt;
&lt;br /&gt;
== Video ==&lt;br /&gt;
* [[iOS_Video_4.1.0|詳細說明]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== AdMob Mediation ==&lt;br /&gt;
* [[iOS_AdMM_4.1.0|詳細說明]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 測試模式與觀眾定向(Optional) ==&lt;br /&gt;
當您完成 SDK 整合後，您可透過設定下 ALTargeting 開啟測試模式(測試模式下的互動在平台上將不記錄).&lt;br /&gt;
* 年齡: - (NSInteger)age;  &lt;br /&gt;
* 性別: - (ALGender)gender; // ALGenderMALE, ALGenderFEMALE&lt;br /&gt;
* 地理位置: - (CLLocation*)location; // 透過 LocationManager 取得的位置&lt;br /&gt;
* 測試模式: - (BOOL)testMode;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
ALTargeting *targeting = [ALTargeting new];&lt;br /&gt;
targeting.age = 30 // 30 歲&lt;br /&gt;
targeting.gender = ALGenderMALE; // 男性&lt;br /&gt;
targeting.location = location; //透過 LocationManager 取得的位置&lt;br /&gt;
targeting.testMode = NO; //測試模式關閉&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_Video_4.1.0</id>
		<title>IOS Video 4.1.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_Video_4.1.0"/>
				<updated>2016-06-02T07:01:07Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 前言 == &lt;br /&gt;
影音版位將以曝光次數高分潤，是您提高收益的最好單元之一。&lt;br /&gt;
&lt;br /&gt;
== 實作 ==&lt;br /&gt;
* @interface ViewController : UIViewController &amp;lt;ALVideoDelegate&amp;gt;&lt;br /&gt;
* @property (nonatomic, strong) ALVideo *video;&lt;br /&gt;
* - (void) videoDidReceive:(ALVideo *)video&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 啟用插頁式版位 == &lt;br /&gt;
在您想啟用影音版位的流程中, 加入下列程式碼&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
    ALTargeting *targeting = [ALTargeting new];&lt;br /&gt;
    self.video = [[ALVideo alloc] initWithViewController:self&lt;br /&gt;
                                                     key:@&amp;quot;請填入APP KEY&amp;quot;&lt;br /&gt;
                                               targeting:targeting&lt;br /&gt;
                                                delegate:self];&lt;br /&gt;
    [video load];&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
並透過監聽結果啟用影音插屏&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
- (void) videoDidReceive:(ALVideo *)video&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Receive AdLocus Video Ad.&amp;quot;);&lt;br /&gt;
    [video show];&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 若您需要監聽廣告互動結果 ==&lt;br /&gt;
透過實作 ALVideoDelegate 監測廣告運行結果&lt;br /&gt;
&lt;br /&gt;
* videoDidReceive&lt;br /&gt;
* videoDidEnd&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- (void) videoDidReceive:(ALVideo *)video&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Receive AdLocus Video Ad.&amp;quot;);&lt;br /&gt;
    [video show];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void) videoDidEnd:(ALVideo *)video&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;End AdLocus Video Ad.&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_Video_4.1.0</id>
		<title>IOS Video 4.1.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_Video_4.1.0"/>
				<updated>2016-06-02T06:55:21Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 前言 == &lt;br /&gt;
影音版位將以曝光次數高分潤，是您提高收益的最好單元之一。&lt;br /&gt;
&lt;br /&gt;
== 實作 ==&lt;br /&gt;
* @interface ViewController : UIViewController &amp;lt;ALVideoDelegate&amp;gt;&lt;br /&gt;
* @property (nonatomic, strong) ALVideo *video;&lt;br /&gt;
* - (void) videoDidReceive:(ALVideo *)video&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 啟用插頁式版位 == &lt;br /&gt;
在您想啟用影音版位的流程中, 加入下列程式碼&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
    self.video = [[ALVideo alloc] initWithViewController:self delegate:self];&lt;br /&gt;
    [video load];&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
並透過監聽結果啟用影音插屏&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
- (void) videoDidReceive:(ALVideo *)video&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Receive AdLocus Video Ad.&amp;quot;);&lt;br /&gt;
    [video show];&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 若您需要監聽廣告互動結果 ==&lt;br /&gt;
透過實作 ALVideoDelegate 監測廣告運行結果&lt;br /&gt;
&lt;br /&gt;
* videoDidReceive&lt;br /&gt;
* videoDidEnd&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- (void) videoDidReceive:(ALVideo *)video&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Receive AdLocus Video Ad.&amp;quot;);&lt;br /&gt;
    [video show];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void) videoDidEnd:(ALVideo *)video&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;End AdLocus Video Ad.&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_Video_4.1.0</id>
		<title>IOS Video 4.1.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_Video_4.1.0"/>
				<updated>2016-06-02T06:54:05Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: Created page with &amp;quot;== 前言 ==  影音版位將以曝光次數高分潤，是您提高收益的最好單元之一。  == 實作 == * @interface ViewController : UIViewController &amp;lt;ALVideoDelegat...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 前言 == &lt;br /&gt;
影音版位將以曝光次數高分潤，是您提高收益的最好單元之一。&lt;br /&gt;
&lt;br /&gt;
== 實作 ==&lt;br /&gt;
* @interface ViewController : UIViewController &amp;lt;ALVideoDelegate&amp;gt;&lt;br /&gt;
* @property (nonatomic, strong) ALVideo *video;&lt;br /&gt;
* - (void) videoDidReceive:(ALVideo *)request&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 啟用插頁式版位 == &lt;br /&gt;
在您想啟用影音版位的流程中, 加入下列程式碼&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
    video= [[ALVideo alloc] initWithViewController:self delegate:self];&lt;br /&gt;
    [video load];&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
並透過監聽結果啟用影音插屏&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
- (void) videoDidReceive:(ALVideo *)video&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Receive AdLocus Video Ad.&amp;quot;);&lt;br /&gt;
    [video show];&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 若您需要監聽廣告互動結果 ==&lt;br /&gt;
透過實作 ALVideoDelegate 監測廣告運行結果&lt;br /&gt;
&lt;br /&gt;
* videoDidReceive&lt;br /&gt;
* videoDidEnd&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- (void) videoDidReceive:(ALVideo *)video&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Receive AdLocus Video Ad.&amp;quot;);&lt;br /&gt;
    [video show];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void) videoDidEnd:(ALVideo *)video&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;End AdLocus Video Ad.&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_Interstitial_4.1.0</id>
		<title>IOS Interstitial 4.1.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_Interstitial_4.1.0"/>
				<updated>2016-06-02T06:26:32Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: Created page with &amp;quot;== 前言 ==  插頁式版位將以曝光次數高分潤，是您提高收益的最好單元之一。  == 實作 == * @interface ViewController : UIViewController &amp;lt;ALInterstit...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 前言 == &lt;br /&gt;
插頁式版位將以曝光次數高分潤，是您提高收益的最好單元之一。&lt;br /&gt;
&lt;br /&gt;
== 實作 ==&lt;br /&gt;
* @interface ViewController : UIViewController &amp;lt;ALInterstitialDelegate&amp;gt;&lt;br /&gt;
* @property (nonatomic, strong) ALInterstitial *Interstitial;&lt;br /&gt;
&lt;br /&gt;
== 啟用插頁式版位 == &lt;br /&gt;
在您想啟用插頁式版位的流程中中加入下列程式碼&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
    self.Interstitial = [[ALInterstitial alloc] init];&lt;br /&gt;
    [self.Interstitial setInterstitialAnimationType:AdLocusInterstitialAnimationTypeFadeIn];&lt;br /&gt;
    [self.Interstitial requestAdViewWithDelegate:self];&lt;br /&gt;
    [self.view addSubview:self.Interstitial];&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 若您需要監聽廣告互動結果 ==&lt;br /&gt;
透過實作 ALInterstitialDelegate 監測廣告運行結果&lt;br /&gt;
&lt;br /&gt;
* interstitialDidReceiveAd&lt;br /&gt;
* interstitialDidFailToReceiveAd&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
- (void)interstitialDidReceiveAd:(ALInterstitial *)interstitial&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Receive AdLocus interstitial Ad.&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void)interstitialDidFailToReceiveAd:(ALInterstitial *)interstitial error:(AdLocusError *)error&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Failed to receive AdLocus interstitial Ad : %@&amp;quot;, error);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_Promotion_4.1.0</id>
		<title>IOS Promotion 4.1.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_Promotion_4.1.0"/>
				<updated>2016-06-01T07:11:03Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 前言 == &lt;br /&gt;
適地性優惠通知服務是依據全區定向或特定地理位置定向，提供您的使用者最適合的主動式訊息，同時具有高額的分潤收益。&lt;br /&gt;
&lt;br /&gt;
啟動優惠通知服務，請將相關程式碼加在 AppDelegate 處。&lt;br /&gt;
&lt;br /&gt;
== 實作 ==&lt;br /&gt;
* -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions&lt;br /&gt;
* -(void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification&lt;br /&gt;
* -(void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler&lt;br /&gt;
&lt;br /&gt;
== AppDelegate.m ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
#import &amp;quot;AppDelegate.h&amp;quot;&lt;br /&gt;
#import &amp;lt;AdLocus/AdLocus.h&amp;gt;&lt;br /&gt;
@implementation AppDelegate&lt;br /&gt;
&lt;br /&gt;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {&lt;br /&gt;
&lt;br /&gt;
    ALPushService *push = [ALPushService sharedInstance];&lt;br /&gt;
    push.key = @&amp;quot;請填入您的APP KEY&amp;quot;;&lt;br /&gt;
    push.enable = YES;&lt;br /&gt;
&lt;br /&gt;
    [application setMinimumBackgroundFetchInterval:60 * 60];&lt;br /&gt;
&lt;br /&gt;
    UILocalNotification *localNotification = [launchOptions objectForKey:UIApplicationLaunchOptionsLocalNotificationKey];&lt;br /&gt;
    if (localNotification) {&lt;br /&gt;
        [ALPushService didReceiveLocalNotification:localNotification];&lt;br /&gt;
        [[UIApplication sharedApplication] cancelLocalNotification:localNotification];&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    return YES;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification {&lt;br /&gt;
    [ALPushService didReceiveLocalNotification:notification];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler {&lt;br /&gt;
    [ALPushService performFetchWithCompletionHandler:completionHandler];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_InApp_4.1.0</id>
		<title>IOS InApp 4.1.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_InApp_4.1.0"/>
				<updated>2016-06-01T03:46:31Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 前言 ==&lt;br /&gt;
InApp 版位為最常見的版位，AdLocus 提供您 320x50, 300x250, 728x90 三種不同尺寸的選擇。&lt;br /&gt;
&lt;br /&gt;
== 實作 ==&lt;br /&gt;
* #import &amp;lt;AdLocus/AdLocus.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 啟動版位 ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
    self.banner = [[ALBannerView alloc] initWithFrame:CGRectMake(0, 0, 320, 50)];&lt;br /&gt;
    self.banner.delegate = self;&lt;br /&gt;
    self.banner.key = @&amp;quot;請填入您的APP KEY&amp;quot;;&lt;br /&gt;
    [self.banner setBannerAnimationType:AdLocusBannerAnimationTypeRandom];&lt;br /&gt;
    [self.banner setAutoRefreshWithTime:15];&lt;br /&gt;
    [self.banner requestAdViewWithDelegate:self];&lt;br /&gt;
    [self.view addSubview:self.banner];&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* 設定監聽&lt;br /&gt;
&lt;br /&gt;
=== 範例: ViewController.h ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
#import &amp;lt;UIKit/UIKit.h&amp;gt;&lt;br /&gt;
#import &amp;lt;AdLocus/AdLocus.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
@interface ViewController : UIViewController &amp;lt;ALBannerViewDelegate&amp;gt;&lt;br /&gt;
@property (nonatomic, strong) ALBannerView *banner;&lt;br /&gt;
@end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 範例: ViewController.m ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#import &amp;quot;ViewController.h&amp;quot;&lt;br /&gt;
&lt;br /&gt;
@implementation ViewController&lt;br /&gt;
&lt;br /&gt;
- (void)viewDidLoad&lt;br /&gt;
{&lt;br /&gt;
    [super viewDidLoad];&lt;br /&gt;
    [self initAdLocusBannerView];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void)initAdLocusBannerView&lt;br /&gt;
{&lt;br /&gt;
    self.banner = [[ALBannerView alloc] initWithFrame:CGRectMake(0, 0, 320, 50)];&lt;br /&gt;
    [self.banner setBannerAnimationType:AdLocusBannerAnimationTypeRandom];&lt;br /&gt;
    [self.banner setAutoRefreshWithTime:15];&lt;br /&gt;
    [self.banner requestAdViewWithDelegate:self];&lt;br /&gt;
&lt;br /&gt;
    [self.view addSubview:self.banner];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 若您需要監聽廣告互動結果 ==&lt;br /&gt;
透過實作 ALBannerViewDelegate 監測廣告運行結果&lt;br /&gt;
&lt;br /&gt;
* adViewDidReceiveAd&lt;br /&gt;
* adViewDidFailToReceiveAd&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
- (void)adViewDidReceiveAd:(ALBannerView *)view&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Receive AdLocus banner Ad.&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void)adViewDidFailToReceiveAd:(ALBannerView *)view andError:(HyxenAdLocusError *)error&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Failed receive AdLocus banner Ad : %@&amp;quot;, error);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_Promotion_4.1.0</id>
		<title>IOS Promotion 4.1.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_Promotion_4.1.0"/>
				<updated>2016-06-01T03:39:26Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 前言 == &lt;br /&gt;
適地性優惠通知服務是依據全區定向或特定地理位置定向，提供您的使用者最適合的主動式訊息，同時具有高額的分潤收益。&lt;br /&gt;
&lt;br /&gt;
啟動優惠通知服務，請將相關程式碼加在 AppDelegate 處。&lt;br /&gt;
&lt;br /&gt;
== 實作 ==&lt;br /&gt;
* -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions&lt;br /&gt;
* -(void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification&lt;br /&gt;
* -(void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler&lt;br /&gt;
&lt;br /&gt;
== AppDelegate.m ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
#import &amp;quot;AppDelegate.h&amp;quot;&lt;br /&gt;
#import &amp;lt;AdLocus/AdLocus.h&amp;gt;&lt;br /&gt;
@implementation AppDelegate&lt;br /&gt;
&lt;br /&gt;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {&lt;br /&gt;
&lt;br /&gt;
    ALPushService *push = [ALPushService sharedInstance];&lt;br /&gt;
    push.delegate = self;&lt;br /&gt;
    push.enable = YES;&lt;br /&gt;
&lt;br /&gt;
    [application setMinimumBackgroundFetchInterval:60 * 60];&lt;br /&gt;
&lt;br /&gt;
    UILocalNotification *localNotification = [launchOptions objectForKey:UIApplicationLaunchOptionsLocalNotificationKey];&lt;br /&gt;
    if (localNotification) {&lt;br /&gt;
        [ALPushService didReceiveLocalNotification:localNotification];&lt;br /&gt;
        [[UIApplication sharedApplication] cancelLocalNotification:localNotification];&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    return YES;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification {&lt;br /&gt;
    [ALPushService didReceiveLocalNotification:notification];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler {&lt;br /&gt;
    [ALPushService performFetchWithCompletionHandler:completionHandler];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_SDK</id>
		<title>IOS SDK</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_SDK"/>
				<updated>2016-06-01T03:11:34Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: /* Beta */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
* 版本: 4.0.15&lt;br /&gt;
* [[iOS_Changelog|更版記錄]]&lt;br /&gt;
* [[iOS_SDK_Getting_Start|整合說明]]&lt;br /&gt;
* [[Media:LibAdLocus_SDK_4_0_15.zip|SDK 下載]]&lt;br /&gt;
&amp;lt;!--* [[Media:IOSAdLocusAdapter.zip|AdMob Mediation Adapter 下載]]--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Beta ==&lt;br /&gt;
* 版本: 4.1.0&lt;br /&gt;
* [[Media:AdLocus_Freamework_4_1_0.zip|Beta SDK僅限受邀者使用]]&lt;br /&gt;
* [[iOS_SDK_Getting_Start_4.1.0|4.1.0 整合說明]]&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_SDK_Getting_Start_4.1.0</id>
		<title>IOS SDK Getting Start 4.1.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_SDK_Getting_Start_4.1.0"/>
				<updated>2016-06-01T03:11:25Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Getting Start with AdLocus ==&lt;br /&gt;
以下將說明您怎麼整入 AdLocus SDK.&lt;br /&gt;
&lt;br /&gt;
== 取得您的 App Key ==&lt;br /&gt;
* 至 http://adlocus.com/ 申請帳號並登入。&lt;br /&gt;
* 在「應用程式」中「新增」您的應用程式並取得app key。&lt;br /&gt;
&lt;br /&gt;
== 準備將 SDK 加入到您的專案 ==&lt;br /&gt;
* [[iOS_AddSDK_4.1.0|加入SDK]]&lt;br /&gt;
&lt;br /&gt;
== InApp ==&lt;br /&gt;
* [[iOS_InApp_4.1.0|詳細說明]]&lt;br /&gt;
&lt;br /&gt;
== Promotion ==&lt;br /&gt;
* [[iOS_Promotion_4.1.0|詳細說明]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 測試模式與觀眾定向(Optional) ==&lt;br /&gt;
當您完成 SDK 整合後，您可透過設定下 ALTargeting 開啟測試模式(測試模式下的互動在平台上將不記錄).&lt;br /&gt;
* 年齡: - (NSInteger)age;  &lt;br /&gt;
* 性別: - (ALGender)gender; // ALGenderMALE, ALGenderFEMALE&lt;br /&gt;
* 測試模式: - (BOOL)testMode;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_Promotion_4.1.0</id>
		<title>IOS Promotion 4.1.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_Promotion_4.1.0"/>
				<updated>2016-06-01T03:09:13Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: Created page with &amp;quot;== 前言 ==  適地性優惠通知服務是依據全區定向或特定地理位置定向，提供您的使用者最適合的主動式訊息，同時具有高額的分潤收...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 前言 == &lt;br /&gt;
適地性優惠通知服務是依據全區定向或特定地理位置定向，提供您的使用者最適合的主動式訊息，同時具有高額的分潤收益。&lt;br /&gt;
&lt;br /&gt;
啟動優惠通知服務，請將相關程式碼加在 AppDelegate 處。&lt;br /&gt;
&lt;br /&gt;
== 實作 ==&lt;br /&gt;
* - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions&lt;br /&gt;
* -(void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification&lt;br /&gt;
* -(void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler&lt;br /&gt;
&lt;br /&gt;
== AppDelegate.m ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
#import &amp;quot;AppDelegate.h&amp;quot;&lt;br /&gt;
#import &amp;lt;AdLocus/AdLocus.h&amp;gt;&lt;br /&gt;
@implementation AppDelegate&lt;br /&gt;
&lt;br /&gt;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {&lt;br /&gt;
&lt;br /&gt;
    ALPushService *push = [ALPushService sharedInstance];&lt;br /&gt;
    push.delegate = self;&lt;br /&gt;
    push.enable = YES;&lt;br /&gt;
&lt;br /&gt;
    [application setMinimumBackgroundFetchInterval:60 * 60];&lt;br /&gt;
&lt;br /&gt;
    UILocalNotification *localNotification = [launchOptions objectForKey:UIApplicationLaunchOptionsLocalNotificationKey];&lt;br /&gt;
    if (localNotification) {&lt;br /&gt;
        [ALPushService didReceiveLocalNotification:localNotification];&lt;br /&gt;
        [[UIApplication sharedApplication] cancelLocalNotification:localNotification];&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    return YES;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification {&lt;br /&gt;
    [ALPushService didReceiveLocalNotification:notification];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler {&lt;br /&gt;
    [ALPushService performFetchWithCompletionHandler:completionHandler];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_SDK_Getting_Start_4.1.0</id>
		<title>IOS SDK Getting Start 4.1.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_SDK_Getting_Start_4.1.0"/>
				<updated>2016-05-31T10:14:35Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: Created page with &amp;quot; == Getting Start with AdLocus == 以下將說明您怎麼整入 AdLocus SDK.  == 取得您的 App Key == * 至 http://adlocus.com/ 申請帳號並登入。 * 在「應用程...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Getting Start with AdLocus ==&lt;br /&gt;
以下將說明您怎麼整入 AdLocus SDK.&lt;br /&gt;
&lt;br /&gt;
== 取得您的 App Key ==&lt;br /&gt;
* 至 http://adlocus.com/ 申請帳號並登入。&lt;br /&gt;
* 在「應用程式」中「新增」您的應用程式並取得app key。&lt;br /&gt;
&lt;br /&gt;
== 準備將 SDK 加入到您的專案 ==&lt;br /&gt;
* [[iOS_AddSDK_4.1.0|加入SDK]]&lt;br /&gt;
&lt;br /&gt;
== InApp ==&lt;br /&gt;
* [[iOS_InApp_4.1.0|詳細說明]]&lt;br /&gt;
&lt;br /&gt;
== Promotion ==&lt;br /&gt;
* [[iOS_Promotion_4.1.0|詳細說明]]&lt;br /&gt;
&lt;br /&gt;
== Interstitial ==&lt;br /&gt;
* [[iOS_Interstitial|詳細說明]]&lt;br /&gt;
&lt;br /&gt;
== Video ==&lt;br /&gt;
* [[iOS_Video|詳細說明]]&lt;br /&gt;
&lt;br /&gt;
== Location based ==&lt;br /&gt;
* 當您的 App 有實作 Location Manager 時, 我們建議您透過實作下列 delegate 取得 Location-based Ad.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
-(CLLocation *)locationInfo&lt;br /&gt;
{&lt;br /&gt;
    return locationManager.location;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== AdMob Mediation ==&lt;br /&gt;
* [[iOS_AdMM|詳細說明]]&lt;br /&gt;
&lt;br /&gt;
== 測試模式與觀眾定向(Optional) ==&lt;br /&gt;
當您完成 SDK 整合後，您可透過設定下 ALTargeting 開啟測試模式(測試模式下的互動在平台上將不記錄).&lt;br /&gt;
* 年齡: - (NSInteger)age;  &lt;br /&gt;
* 性別: - (ALGender)gender; // ALGenderMALE, ALGenderFEMALE&lt;br /&gt;
* 測試模式: - (BOOL)testMode;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_InApp_4.1.0</id>
		<title>IOS InApp 4.1.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_InApp_4.1.0"/>
				<updated>2016-05-31T09:52:59Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: Created page with &amp;quot;== 前言 == InApp 版位為最常見的版位，AdLocus 提供您 320x50, 300x250, 728x90 三種不同尺寸的選擇。  == 實作 == * #import &amp;lt;AdLocus/AdLocus.h&amp;gt;  == 啟...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 前言 ==&lt;br /&gt;
InApp 版位為最常見的版位，AdLocus 提供您 320x50, 300x250, 728x90 三種不同尺寸的選擇。&lt;br /&gt;
&lt;br /&gt;
== 實作 ==&lt;br /&gt;
* #import &amp;lt;AdLocus/AdLocus.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 啟動版位 ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
    self.banner = [[ALBannerView alloc] initWithFrame:CGRectMake(0, 0, 320, 50)];&lt;br /&gt;
    self.banner.delegate = self;&lt;br /&gt;
    self.banner.key = @&amp;quot;請填入您的APP KEY&amp;quot;;&lt;br /&gt;
    [self.banner setBannerAnimationType:AdLocusBannerAnimationTypeRandom];&lt;br /&gt;
    [self.banner setAutoRefreshWithTime:15];&lt;br /&gt;
    [self.banner requestAdViewWithDelegate:self];&lt;br /&gt;
    [self.view addSubview:self.banner];&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* 設定監聽&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
-(UIViewController *)viewControllerForPresentingModalView{&lt;br /&gt;
   return self;&lt;br /&gt;
} &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 範例: ViewController.h ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
#import &amp;lt;UIKit/UIKit.h&amp;gt;&lt;br /&gt;
#import &amp;lt;AdLocus/AdLocus.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
@interface ViewController : UIViewController &amp;lt;ALBannerViewDelegate&amp;gt;&lt;br /&gt;
@property (nonatomic, strong) ALBannerView *banner;&lt;br /&gt;
@end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 範例: ViewController.m ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#import &amp;quot;ViewController.h&amp;quot;&lt;br /&gt;
&lt;br /&gt;
@implementation ViewController&lt;br /&gt;
&lt;br /&gt;
- (void)viewDidLoad&lt;br /&gt;
{&lt;br /&gt;
    [super viewDidLoad];&lt;br /&gt;
    [self initAdLocusBannerView];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void)initAdLocusBannerView&lt;br /&gt;
{&lt;br /&gt;
    self.banner = [[ALBannerView alloc] initWithFrame:CGRectMake(0, 0, 320, 50)];&lt;br /&gt;
    self.banner.delegate = self;&lt;br /&gt;
    [self.banner setBannerAnimationType:AdLocusBannerAnimationTypeRandom];&lt;br /&gt;
    [self.banner setAutoRefreshWithTime:15];&lt;br /&gt;
    [self.banner requestAdViewWithDelegate:self];&lt;br /&gt;
&lt;br /&gt;
    [self.view addSubview:self.banner];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 若您需要監聽廣告互動結果 ==&lt;br /&gt;
透過實作 ALBannerViewDelegate 監測廣告運行結果&lt;br /&gt;
&lt;br /&gt;
* adViewDidReceiveAd&lt;br /&gt;
* adViewDidFailToReceiveAd&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
- (void)adViewDidReceiveAd:(ALBannerView *)view&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Receive AdLocus banner Ad.&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- (void)adViewDidFailToReceiveAd:(ALBannerView *)view andError:(HyxenAdLocusError *)error&lt;br /&gt;
{&lt;br /&gt;
    NSLog(@&amp;quot;Failed receive AdLocus banner Ad : %@&amp;quot;, error);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_AddSDK_4.1.0</id>
		<title>IOS AddSDK 4.1.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_AddSDK_4.1.0"/>
				<updated>2016-05-31T09:34:16Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
== 加入 SDK Library ==&lt;br /&gt;
* 請將AdLocus.framework拖曳到您的專案中，並勾選下面兩個選項:&lt;br /&gt;
** &amp;quot;Copy items into destination group's folder (if needed)&amp;quot;&lt;br /&gt;
** &amp;quot;Create group for any added folders&amp;quot;&lt;br /&gt;
[[File:IOS_Add_File_2.jpg]]&lt;br /&gt;
* 在General 中 Embedded Binaries 中加入 AdLocus.framework&lt;br /&gt;
[[File:ios_embedded_binaries.jpg|1200px]]&lt;br /&gt;
[[File:ios_embedded_binaries2.jpg|1200px]]&lt;br /&gt;
&lt;br /&gt;
== 設定 Info.plist ==&lt;br /&gt;
* 在 Info.plist 中加入&lt;br /&gt;
** App Transport Security Settings&lt;br /&gt;
*** Allow Arbitrary Loads   =  YES&lt;br /&gt;
** NSLocationAlwaysUsageDescription&lt;br /&gt;
** NSLocationWhenInUseUsageDescription&lt;br /&gt;
[[File:ios_infoplist.jpg|1200px]]&lt;br /&gt;
&lt;br /&gt;
== 設定編譯相容性 ==&lt;br /&gt;
* 在 Build Setting 中 Embedded Content Contains Swift Code 設為 YES&lt;br /&gt;
[[File:ios_embedded_contents_swift.jpg|900px]]&lt;br /&gt;
&lt;br /&gt;
== 開啟BACKGROUND MODE ==&lt;br /&gt;
* 在Capabilities 中開啟 Background Mode 並勾選Background fetch&lt;br /&gt;
[[File:ios_backgroundfetch.jpg|1200px]]&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=File:Ios_embedded_binaries2.jpg</id>
		<title>File:Ios embedded binaries2.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=File:Ios_embedded_binaries2.jpg"/>
				<updated>2016-05-31T09:31:10Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=File:Ios_embedded_binaries.jpg</id>
		<title>File:Ios embedded binaries.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=File:Ios_embedded_binaries.jpg"/>
				<updated>2016-05-31T09:30:15Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	<entry>
		<id>https://wiki.adlocus.com/index.php?title=IOS_AddSDK_4.1.0</id>
		<title>IOS AddSDK 4.1.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.adlocus.com/index.php?title=IOS_AddSDK_4.1.0"/>
				<updated>2016-05-31T09:05:27Z</updated>
		
		<summary type="html">&lt;p&gt;Kiddchen: Created page with &amp;quot;__TOC__ == 加入 SDK Library == * 請將AdLocus.framework拖曳到您的專案中，並勾選下面兩個選項: ** &amp;quot;Copy items into destination group's folder (if needed)&amp;quot; *...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
== 加入 SDK Library ==&lt;br /&gt;
* 請將AdLocus.framework拖曳到您的專案中，並勾選下面兩個選項:&lt;br /&gt;
** &amp;quot;Copy items into destination group's folder (if needed)&amp;quot;&lt;br /&gt;
** &amp;quot;Create group for any added folders&amp;quot;&lt;br /&gt;
  [[File:IOS_Add_File_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
== 設定 Info.plist ==&lt;br /&gt;
* 在 Info.plist 中加入&lt;br /&gt;
** App Transport Security Settings&lt;br /&gt;
*** Allow Arbitrary Loads   =  YES&lt;br /&gt;
** NSLocationAlwaysUsageDescription&lt;br /&gt;
** NSLocationWhenInUseUsageDescription&lt;br /&gt;
[[File:ios_infoplist.jpg|1200px]]&lt;br /&gt;
&lt;br /&gt;
== 設定編譯相容性 ==&lt;br /&gt;
* 在 Build Setting 中 Embedded Content Contains Swift Code 設為 YES&lt;br /&gt;
[[File:ios_embedded_contents_swift.jpg|900px]]&lt;br /&gt;
&lt;br /&gt;
== 開啟BACKGROUND MODE ==&lt;br /&gt;
* 在Capabilities 中開啟 Background Mode 並勾選Background fetch&lt;br /&gt;
[[File:ios_backgroundfetch.jpg|1200px]]&lt;/div&gt;</summary>
		<author><name>Kiddchen</name></author>	</entry>

	</feed>