Appearance
TradPlus Mediation Integration
Supported Ad Formats
| TradPlus Ad Format | Minimum required version of Opera adapter |
|---|---|
| Banner | 1.0.0.0 |
| Interstitial | 1.0.0.0 |
| Rewarded | 1.0.0.0 |
| Native | 1.0.0.0 |
| Splash (App Open) | 1.0.0.0 |
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 |
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
C2S (Header Bidding) Configuration
Opera Ads supports C2S (Client-to-Server) bidding through TradPlus. To enable it:
- In the TradPlus console, navigate to your ad unit
- 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'
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.
