If you are using Server Side Rewarding you might already be familiar with custom parameters you can associate with a given Rewarded ad completion.
Starting from DT FairBid SDK 3.11.0, the same SDK API has been added to the Interstitial ad format as a way to enrich User Level Reporting.
This is how you can use it:
Java
public class ShowOptions {
public void setCustomParameters(Map<string, string="String"> customParameters);
}</string,>
void show(@NonNull String placementId, final ShowOptions showOptions, final Activity activity);
Swift
@interface FYBShowOptions : NSObject
@property (nonatomic, copy, nullable) NSDictionary *customParameters;
@end
This feature is not available for Unity.
Interstitial
Java
Map<String, String> customParams = customParams();
ShowOptions showOptions = new ShowOptions();
showOptions.setCustomParameters(customParams);
Interstitial.show(placementId, showOptions, activity);
Swift
let showOptions = FYBShowOptions()
showOptions.customParameters = ["myCustomKey": "myCustomValue", "anotherCustomKey": "anotherCustomValue"]
FYBInterstitial.show("placementID", options: showOptions)
C#
Dictionary<string, string> customParameters = new Dictionary<string, string>();
customParameters.Add("myCustomKey", "myCustomValue");
customParameters.Add("anotherCustomKey", "anotherCustomValue");
ShowOptions options = new ShowOptions(customParameters);
Interstitial.Show("placementID", options);
Rewarded
Java
Map<String, String> customParams = customParams();
ShowOptions showOptions = new ShowOptions();
showOptions.setCustomParameters(customParams);
Rewarded.show(placementId, showOptions, activity);
Swift
let showOptions = FYBShowOptions()
showOptions.customParameters = ["myCustomKey": "myCustomValue", "anotherCustomKey": "anotherCustomValue"]
FYBRewarded.show("placementID", options: showOptions)
C#
Dictionary<string, string> customParameters = new Dictionary<string, string>();
customParameters.Add("myCustomKey", "myCustomValue");
customParameters.Add("anotherCustomKey", "anotherCustomValue");
RewardedOptions rewardedOptions = new RewardedOptions(
customParameters);
Rewarded.Show("placementID", rewardedOptions);