Snap Audience Network

If you plan to use the MoPub SDK to load and display ads from Snap Audience Network via mediation, use this article for integration instructions and information unique to the ad network. To learn more about how MoPub mediation works, refer to our MoPub Network Mediation article.

Supported Ad Formats

Snap Audience Network currently supports the following ad formats. For support information, visit the Snap Ad Kit homepage.

MoPub Formats Snap Audience Network Ad Formats
Banner Banner (iOS only)
Medium Rectangle Medium Rectangle (iOS only)
Interstitial Interstitial
Rewarded Video Rewarded Video (iOS only)

Download and Integration

To download the Snap Audience Network adapters, navigate to the Mediation Integration Tool.

The Snap Audience Network SDK is not yet generally available. To get the Snap Audience Network SDK, navigate to Snap Ad Kit homepage or email adkit-support@snapchat.com to request access.

  • For Android apps (including those built from Unity), the Snap Audience Network SDK requires the com.google.android.gms:play-services-ads-identifier and Picasso dependencies. Ensure that you have those dependencies present in your app.

  • For iOS apps (including those built from Unity), the Snap Audience Network SDK requires its SKAdNetwork ID to be entered in your app’s info.plist. Otherwise, the SDK will crash on app launch. Check your Xcode console for instructions to add that ID.

Set up Snap Audience Network on the MoPub UI

  • appId and slotId are required.

Initialization

Snap Audience Network requires initialization in order to serve ads. To initialize, follow the steps below:

Android

import com.mopub.mobileads.SnapAdAdapterConfiguration;

// Declare your Snap Audience Network app ID and config bundle
final Map<String, String> snapConfigs = new HashMap<>();
snapConfigs.put("appId", "YOUR_SNAP_APP_ID");

final SdkConfiguration.Builder configBuilder = new SdkConfiguration.Builder("A_VALID_AD_UNIT_ID_FROM_YOUR_APP");

configBuilder.withAdditionalNetwork(SnapAdAdapterConfiguration.class.getName()); // only needed for MoPub 5.14.0 and earlier
configBuilder.withMediatedNetworkConfiguration(SnapAdAdapterConfiguration.class.getName(), snapConfigs);

// Initialize the MoPub SDK
MoPub.initializeSdk(this, configBuilder.build(), null);

iOS

// Declare your Snap Audience Network app ID and config bundle
NSMutableDictionary *snapConfigs = [NSMutableDictionary new];
[snapConfigs setObject:@"YOUR_SNAP_APP_ID" forKey:@"appId"];

MPMoPubConfiguration *sdkConfig = [[MPMoPubConfiguration alloc] initWithAdUnitIdForAppInitialization:@"AD_UNIT_ID"];

sdkConfig.additionalNetworks = @[SnapAdAdapterConfiguration.class]; // only needed for MoPub 5.7.0 and earlier
sdkConfig.mediatedNetworkConfigurations = [@{@"SnapAdAdapterConfiguration":snapConfigs} mutableCopy];
 
// Initialize the MoPub SDK
[[MoPub sharedInstance] initializeSdkWithConfiguration:sdkConfig completion:^{
}];

Unity

Use the MoPub Manager: Ensure you attach the Snap Network Configuration script to your MoPub Manager Prefab, enable the script, and populate the appId information. Please see the “Network Configuration (Mediation)” topic here for an example.

Initialize manually:

MoPub.InitializeSdk(new MoPub.SdkConfiguration {
  // Define the Snap Audience Network app ID you want to initialize with
  MediatedNetworks = new MoPub.MediatedNetwork[]
  {
    new MoPub.MediatedNetwork
    {
      // Specify the class name that implements the AdapterConfiguration interface.
      #if UNITY_ANDROID
        AdapterConfigurationClassName = "com.mopub.mobileads.SnapAdAdapterConfiguration", 
      #else // UNITY_IOS
        AdapterConfigurationClassName = "SnapAdAdapterConfiguration",
      #endif
      
      NetworkConfiguration = new Dictionary<string, string> {
          { "appId", "YOUR_SNAP_APP_ID"},
      },
    }
  },
});

Additional Support

For inquiries and support, please email Snap Audience Network at adkit-support@snapchat.com.

Last updated November 18, 2020

TWITTER, MOPUB, and the Bird logo are trademarks of Twitter, Inc. or its affiliates. All third party logos and trademarks included are the property of their respective owners.

© 2020 MoPub (a division of Twitter, Inc.)