Customer Parameters When Showing an Ad

Introduction

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 FairBid SDK 3.11.0 the same SDK API has been added to the Interstitial ad format as a way to enrich the User Level Reporting.

This is how you can use it:

public class ShowOptions {
    public void setCustomParameters(Map<String, String> customParameters)
}
void show(@NonNull String placementId, final ShowOptions showOptions,
final Activity activity)

Interstitial

Map<String, String> customParams = customParams();
ShowOptions showOptions = new ShowOptions();
showOptions.setCustomParameters(customParams);
Interstitial.show(placementId, showOptions, activity);

Rewarded

Map<String, String> customParams = customParams();
ShowOptions showOptions = new ShowOptions();
showOptions.setCustomParameters(customParams);
Rewarded.show(placementId, showOptions, activity);