Skip to content

TradPlus Mediation Integration

Supported Ad Formats

TradPlus Ad FormatMinimum required version of Opera adapter
Banner1.0.0.0
Interstitial1.0.0.0
Rewarded1.0.0.0
Native1.0.0.0
Splash (App Open)1.0.0.0

Configure Custom Ad Network in TradPlus Console

Add Custom Ad Network

  1. Sign in to the TradPlus Console
  2. Navigate to Advanced settingsCustom 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 ManagementApps & 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

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

  • BANNER: 320x50
  • MREC: 300x250

C2S (Header Bidding) Configuration

Opera Ads supports C2S (Client-to-Server) bidding through TradPlus. To enable it:

  1. In the TradPlus console, navigate to your ad unit
  2. Add Opera Ads to the Header Bidding group

The adapter handles win/loss notifications automatically. No additional code is required.

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.9.1'

  # Opera Ads TradPlus Adapter
  pod 'OpAdxAdapterTradPlus', '~> 1.0.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.