「SDK8 Getting Started Guide」修訂間的差異

出自TAMedia
跳至導覽 跳至搜尋
imported>Wikiuser
imported>Wikiuser
行 38: 行 38:
接下來選擇想要串接的廣告類型,近一步了解廣告串接方式
接下來選擇想要串接的廣告類型,近一步了解廣告串接方式


==== [[Banner|橫幅廣告 Banner]] ====
==== [[SDK8 Banner|橫幅廣告 Banner]] ====


==== [[Interstitial|插頁式廣告 Interstitial]] ====
==== [[SDK8 Interstitial|插頁式廣告 Interstitial]] ====


==== [[iOS InRead Ads|內嵌式廣告 InRead]] ====
==== [[SDK8 InReadAnchor|內嵌式廣告 InRead]] ====


==== [[NativeAd|原生性廣告 Native Ads]] ====
==== [[SDK8 NativeAd|原生性廣告 Native Ads]] ====


[[SDK8 iOS SDK Developer Guide|回 SDK 8首頁]]
[[SDK8 iOS SDK Developer Guide|回 SDK 8首頁]]
<!-- [[IOS SDK 2.0 Developer Guide|回 iOS首頁]] -->
<!-- [[IOS SDK 2.0 Developer Guide|回 iOS首頁]] -->

於 2021年9月13日 (一) 03:22 的修訂

回 SDK 8首頁

系統需求

  • iOS 10.0 或以上的版本
  • Xcode 12 或以上的版本


整合至應用程式

  1. 將 SDK 加入 iOS Project 中, 包含以下檔案:
    • TAMediaAdsFramework.framework
  2. 確認 Frameworks, Libraries, Embedded Content 內有加入framework, 並設定為 Do not Embed
    • TAMediaAdsFramework.framework
    SDK8 turtorial iOS.png
  3. 在 Targets -> Build Setting 裡面設定 Other Linker Flags 為 -ObjC
    OtherLinkFlagSDK8.png
  4. Xcode Info.plist 內需加入 Privacy 權限描述
    • NSCalendarsUsageDescription 為提供更好的廣告體驗,App 將使用行事曆
    • NSMicrophoneUsageDescription 為提供更好的廣告體驗,App 將使用麥克風
    SDK8 Add privacy image.png

初始化行動廣告 SDK

在 AppDelegate didFinishLaunchingWithOptions 內 加入以下程式碼將 SDK 初始化

func application(_ application: UIApplication, didFinishLaunchingWithOptions 
                    launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    TADConfig.config()
    return true
}

TutorialConfigSDK8.png


注意事項

由 SDK 7 升級至 SDK 8 需移除以下檔案:

  • OMSDK_Taiwanmobile.framework


選擇廣告類型

接下來選擇想要串接的廣告類型,近一步了解廣告串接方式

橫幅廣告 Banner

插頁式廣告 Interstitial

內嵌式廣告 InRead

原生性廣告 Native Ads

回 SDK 8首頁