Appearance
TradPlus Mediation Integration
Supported Ad Formats
| Ad Format | Supported |
|---|---|
| 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
- Sign in to the TradPlus Console
- Navigate to Advanced settings → Custom Networks
- Click Add Networks
- 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:
- Navigate to App Management → Apps & Ad units
- Select your app and the target ad unit
- Click Add Ad source
- 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 Format | iOS Adapter Class Name |
|---|---|
| Banner | OpAdxTradPlusBannerAdapter |
| Interstitial | OpAdxTradPlusInterstitialAdapter |
| Rewarded | OpAdxTradPlusRewardedAdapter |
| Native | OpAdxTradPlusNativeAdapter |
| 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"
}| Key | Required | Description |
|---|---|---|
appId | Yes | Opera Ads Application ID (format: pub{}/ep{}/app{}) |
placementId | Yes | Opera Ads Placement ID (format: s{}) |
bundleId | Yes | Your iOS App Store ID (numeric, not the app's bundle identifier) |
Banner Size Configuration
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.12.0'
# Opera Ads TradPlus Adapter
pod 'TradPlusOperaSDKAdapter', '~> 2.12.0.0'
endThen run:
bash
pod installAdditional 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;
}
@endPrivacy 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.
