Skip to main content

Vungle

When using Vungle Mediation, the Vungle SDK can be pre-initialized.

danger

If you implement Vungle SDK initialization, Vungle initialization must be called before the GFP SDK initialization.

Add Vungle Module

If NAMSDK/MediationVungle is listed in the Podfile, the VungleAdsSDK module with MediationVungle and its dependency can be imported.

pod 'NAMSDK/MediationVungle' # Vungle

Import the Vungle module to use the Vungle SDK.

import VungleAdsSDK

Initialize

An example of Vungle initialization is shown below.

VungleAds.initWithAppId("Your App ID") { error in
if let error = error {
//TODO: Error
} else {
//TODO: Success
}
}