Custom Parameters When Showing an Ad
Defining Custom Parameters
public class ShowOptions {
public void setCustomParameters(
Map<String, String> customParameters) {}
}
public void show(
@NonNull String placementId,
final ShowOptions showOptions,
final Activity activity) {}open class FYBShowOptions : NSObject {
open var customParameters: [String : String]?
}public ShowOptions(Dictionary<string, string> customParameters)
public static void Show(string placementId, ShowOptions options)Interstitial Ads
Map<String, String> customParams = customParams();
ShowOptions showOptions = new ShowOptions();
showOptions.setCustomParameters(customParams);
Interstitial.show(placementId, showOptions, activity);let showOptions = FYBShowOptions()
showOptions.customParameters = [\
"myCustomKey": "myCustomValue",\
"anotherCustomKey": "anotherCustomValue"]
FYWInterstitial.show(
"placementID",
options: showOptions)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 Ads
Last updated
