Add the SDK

The Unity Publisher SDK is built as an an Unity Package in order to work together with the Android and iOS native SDKs so that you can harness the full power of native components, such as video based on AVFoundation / VideoView technology, proper WebViews and a better fullscreen experience.

To begin integrating the SDK:

Download the latest Unity Publisher SDK: SuperAwesomeSDK-7.0.1.Unity.full.unitypackage.

This version will contain everything you need in order to load and display banner, interstitial and video ads.

You can then import it into your Unity project as a custom assets package. You should see an image similar to this:

_images/IMG_02_Import.png

Select all the files, and click Import. If all goes well you should have a series of new folders and files in your Assets directory.

_images/IMG_03_Assets.png

Once you’ve integrated the SuperAwesome SDK, you can access it by:

using tv.superawesome.sdk.publisher;

Additional steps for Android builds

Warning

Please remember that for Android you also need to add Google Play Services and an App Compat library. These are needed for correct viewability metrics.

dependencies {
    implementation 'com.android.support:appcompat-v7:+'
    implementation 'com.google.android.gms:play-services-ads:+'
}

Warning

When exporting for Android as an Android Studio project you’ll need to set the unityplayer.ForwardNativeEventsToDalvik entry to true

<meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" />

Additional steps for iOS builds

Warning

When exporting for iOS as an XCode project, you’ll need to add the following flag to Other linker flags in Build Settings: -ObjC