Skip to main content

Getting Started

Supported Versions

  • iOS 13.0 or later
  • Xcode 12.0 or later
danger

Starting from NAMSDK 4.3.0, Xcode 12.0 or later is required. (iOS 14 support)

danger

When using external ads, using the latest version of Xcode is recommended.

  • Starting from NAMSDK 6.0.0, Xcode 14.1 or later is required when using DFP.
  • Starting from NAMSDK 7.0.0, Xcode 15 or later is required when using Unity or IronSource.
  • Starting from NAMSDK 8.0.0, Xcode 16 or later is required.

Integrating the Ad SDK

Adding CocoaPods Dependencies

Add NAMSDK to the Podfile generated after running pod init. Add Mediation Pods for the ad providers you want to integrate alongside the NAMSDK Pod.

target 'MyApplication' do
pod 'NAMSDK' # SDK core
pod 'NAMSDK/MediationNDA' # Naver Banner/Native ads
pod 'NAMSDK/MediationNDAVideo' # Naver Video ads
pod 'NAMSDK/MediationNDARich' # Naver Premium ads (since 7.2.0)

pod 'NAMSDKMediationDFP' # Google DFP (since 8.0.0)
pod 'NAMSDKMediationFAN' # Facebook FAN (since 8.0.0)
pod 'NAMSDKMediationInMobi' # InMobi (since 8.0.0)
pod 'NAMSDKMediationUnity' # Unity (since 8.0.0)
pod 'NAMSDKMediationAppLovin' # AppLovin (since 8.0.0)
pod 'NAMSDKMediationVungle' # Vungle (since 8.0.0)
pod 'NAMSDKMediationDT' # Digital Turbine (since 8.0.0)
pod 'NAMSDKMediationIronSource' # Iron Source (since 8.0.0)
pod 'NAMSDKMediationAPS' # APS (since 8.0.0)
pod 'NAMSDKMediationLAN' # LAN (since 8.0.0)
pod 'NAMSDKMediationChartBoost' # ChartBoost (since 8.4.0)
pod 'NAMSDKMediationBidMachine' # BidMachine (since 8.4.0)
pod 'NAMSDKMediationPangle' # Pangle (since 8.13.0)
end

Adding Swift Package Manager Dependencies

info

SPM is available starting from NAMSDK version 8.10.0 and above.

danger

SPM cannot be used when using external mediation. If you are using external mediation, it is recommended to integrate via CocoaPods.

Add the NAMSDK package dependency to your project.

  1. In Xcode, click File > Add Package Dependencies.
  2. In the Search or Enter Package URL field at the top right, search for the NAMSDK Swift package GitHub repository.
https://github.com/naver/nam-sdk-ios
  1. Select the Swift package version you want to use.
  2. In Xcode, go to App Target > Build Settings > Other Linker Flags and add the -ObjC option.

List of Supported Ad Providers

When Using CocoaPods

Internal Ad Providers

Ad Provider NameSupported Ad TypesCocoaPods Setting
NaverBanner, Native (NS, NN)pod NAMSDK/MediationNDA
NaverVideopod NAMSDK/MediationNDAVideo
NaverNative Rich Rewardpod NAMSDK/MediationNDARich

External Ad Providers

danger

Please verify version compatibility between NAMSDK and NAMSDKMediation on the Mediation Network Version page before applying.

Ad Provider NameSupported Ad TypesCocoaPods Setting
Google DFPBanner, Native, Interstitial, Rewardpod NAMSDKMediationDFP
FacebookBanner, Native, Interstitial, Rewardpod NAMSDKMediationFAN
InMobiBanner, Nativepod NAMSDKMediationInMobi
UnityBanner, Interstitial, Rewardpod NAMSDKMediationUnity
AppLovinBanner, Native, Interstitial, Rewardpod NAMSDKMediationAppLovin
VungleInterstitial, Rewardpod NAMSDKMediationVungle
DigitalTurbineBanner, Interstitial, Rewardpod NAMSDKMediationDT
IronSourceInterstitial, Rewardpod NAMSDKMediationIronSource
APSRewardpod NAMSDKMediationAPS
LANNative (NS, NN), Interstitial, Rewardpod NAMSDKMediationLAN
ChartBoostBanner, Interstitial, Rewardpod NAMSDKMediationChartBoost
BidMachineBanner, Interstitial, Rewardpod NAMSDKMediationBidMachine
PangleBanner, Native, Interstitial, Rewardpod NAMSDKMediationPangle

When Using SPM

Ad Provider NameSupported Ad Types
NaverBanner, Native (NS, NN)
NaverVideo
NaverNative Rich Reward

ATS (App Transport Security) Settings

App Transport Security (ATS), introduced in iOS 9, configures apps to make network requests only over HTTPS by default. To allow ads from ad partners that use HTTP, add the following to your Info.plist file.

<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>

Notes When Integrating Google DFP

When integrating Google DFP, you must additionally add the following to your Info.plist file. Otherwise, the operation will halt with a message such as "The Google Mobile Ads SDK was initialized incorrectly."

<key>GADIsAdManagerApp</key>
<true/>

Starting from Google DFP version 10, additional configuration is required as follows.

danger

Deprecated

Adding CocoaPods Dependencies (~v7)

Add NAMSDK to the Podfile generated after running pod init. Add Mediation Pods for the ad providers you want to integrate alongside the NAMSDK Pod.

target 'MyApplication' do
pod 'NAMSDK' # SDK core
pod 'NAMSDK/MediationNDA' # Naver Banner/Native ads
pod 'NAMSDK/MediationNDAVideo' # Naver Video ads
pod 'NAMSDK/MediationNDARich' # Naver Premium ads (since 7.2.0)
pod 'NAMSDK/MediationDFP' # Google DFP
pod 'NAMSDK/MediationFAN' # Facebook FAN
pod 'NAMSDK/MediationInMobi' # InMobi
pod 'NAMSDK/MediationUnity' # Unity
pod 'NAMSDK/MediationAppLovin' # AppLovin (since 5.0.0)
pod 'NAMSDK/MediationVungle' # Vungle (since 6.0.0)
pod 'NAMSDK/MediationDT' # Digital Turbine (since 6.5.0)
pod 'NAMSDK/MediationIronSource' # Iron Source (since 7.2.0)
pod 'NAMSDK/MediationAPS' # APS (since 7.2.0)
pod 'NAMSDK/MediationLAN' # LAN (since 7.7.0)
end

List of Supported Ad Providers (~v7)

Ad Provider NameSupported Ad TypesCocoaPods Setting
NaverBanner, Native (NS, NN)pod NAMSDK/MediationNDA
NaverVideopod NAMSDK/MediationNDAVideo
NaverNative Rich Rewardpod NAMSDK/MediationNDARich
Google DFPBanner, Native, Interstitial, Rewardpod NAMSDK/MediationDFP
FacebookBanner, Native, Interstitial, Rewardpod NAMSDK/MediationFAN
InMobiBanner, Nativepod NAMSDK/MediationInMobi
UnityBanner, Interstitial, Rewardpod NAMSDK/MediationUnity
AppLovinBanner, Native, Interstitial, Rewardpod NAMSDK/MediationAppLovin
VungleBanner, Native, Interstitial, Rewardpod NAMSDK/MediationVungle
DigitalTurbineBanner, Interstitial, Rewardpod NAMSDK/MediationDT
IronSourceInterstitial, Rewardpod NAMSDK/MediationIronSource
APSRewardpod NAMSDK/MediationAPS
LANNative (NS, NN), Interstitial, Rewardpod NAMSDK/MediationLAN

Developers DA.SSP.SDK개발