Skip to content

TradPlus Mediation Integration ​

Supported Ad Formats ​

Ad FormatSupported
Banner (320×50)✅
MREC (300×250)✅
Interstitial✅
Rewarded✅
Native✅
Splash (App Open)✅

Integration Mode ​

Opera Ads is integrated into TradPlus as a custom network and serves through the waterfall: Opera Ads competes with the manual eCPM you configure for the Opera ad source in the TradPlus console. Opera Ads is not currently available as an official bidding network on TradPlus.

Looking for bidding?

To run your own auction with Opera Ads, see Client Bidding or Server Bidding. Those are a separate integration and are independent of mediation.

Configure Custom Ad Network in TradPlus Console ​

Add Custom Ad Network ​

  1. Sign in to the TradPlus Console
  2. Navigate to Advanced settings → Custom Networks
  3. Click Add Networks
  4. Fill in the network name and configure the adapter class name for each ad format (see table below)

Attach Opera Ads to an Ad Unit ​

After adding the custom network, attach it to your ad unit:

  1. Navigate to App Management → Apps & Ad units
  2. Select your app and the target ad unit
  3. Click Add Ad source
  4. Select Opera Ads custom network and fill in the custom parameters (see below)

Configure Adapter Class Names for Different Ad Formats ​

TradPlus requires a separate adapter class name for each ad format:

Ad FormatiOS Adapter Class Name
BannerOpAdxTradPlusBannerAdapter
InterstitialOpAdxTradPlusInterstitialAdapter
RewardedOpAdxTradPlusRewardedAdapter
NativeOpAdxTradPlusNativeAdapter
Splash (App Open)OpAdxTradPlusSplashAdapter

Custom Parameters ​

For each ad unit, configure the following custom data as key-value pairs:

json
{
  "appId": "pub13423013211200/ep13423013211584/app14170937163904",
  "placementId": "s14170965187264",
  "bundleId": "1444253128"
}
KeyRequiredDescription
appIdYesOpera Ads Application ID (format: pub{}/ep{}/app{})
placementIdYesOpera Ads Placement ID (format: s{})
bundleIdYesYour iOS App Store ID (numeric, not the app's bundle identifier)

When adding an ad source for a Banner ad unit, set the correct size in the TradPlus console:

  • BANNER: 320x50
  • MREC: 300x250

Add Dependencies ​

Add to your Podfile:

ruby
platform :ios, '13.0'

target 'YourApp' do
  use_frameworks!

  # TradPlus SDK
  pod 'TradPlusAdSDK', '>= 15.1.1'
  pod 'TradPlusAdSDK/TPCrossAdapter', '>= 15.1.1'

  # Opera Ads SDK
  pod 'OpAdxSdk', '~> 2.14.0'

  # Opera Ads TradPlus Adapter
  pod 'TradPlusOperaSDKAdapter', '~> 2.14.0.0'
end

Then run:

bash
pod install

Additional Code Required ​

The TradPlus SDK automatically initializes the Opera Ads SDK through the adapter. No additional initialization code is required for Opera Ads.

Initialize TradPlus SDK ​

objective-c
#import <TradPlusAds/TradPlus.h>

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application
    didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    // Initialize TradPlus SDK
    [TradPlus initSDK:@"YOUR_TRADPLUS_APP_ID" completionBlock:^(NSError *error) {
        if (error) {
            NSLog(@"TradPlus initialization failed: %@", error);
        } else {
            NSLog(@"TradPlus SDK initialized");
        }
    }];

    // Opera Ads SDK will be auto-initialized by the adapter

    return YES;
}

@end

Privacy Compliance ​

GDPR ​

Please refer to GDPR. The Opera Ads SDK reads the application's consent string automatically.

COPPA ​

Please refer to COPPA. You can set COPPA status via the SDK init config's .coppa() builder method.

CCPA (US Privacy) ​

Please refer to US Privacy. You can set the CCPA status via the SDK init config's .usPrivacy() builder method.