Custom Parameters for Adobe Air

The ironSource SDK supports the ability for you to pass custom Parameters on the initialization of the Rewarded Video and Offerwall ad units. You will then receive this data upon user’s completion event.

Note:

  1. Custom parameters work only in conjunction with server-to-server completion callbacks. You will receive the parameter as part of the callback string.
  2. You may insert more than one custom parameter to the Init request.

Implementation Code

Rewarded Video

Note:

  • Custom Parameters can be added once per session for Rewarded Video.
  • Custom Parameters should be called before initiating the Rewarded Video.
IronSource.instance.setRewardedVideoServerParameters(YOUR_CUSTOM_PARAMETERS);

In addition, you can remove custom parameters for Rewarded Video by calling this function:

IronSource.instance.clearRewardedVideoServerParameters();

Offerwall

Note:

  • Custom Parameters can be added once per session for Offerwall.
  • Custom Parameters should be called before initiating the Offerwall.
IronSource.instance.setIronSourceOfferwallCustomParams(YOUR_CUSTOM_PARAMETERS);

Implementation Example

If you’d like to receive the IP of the user as an additional parameter in the Completion callback for users who engaged with the Rewarded Ad Unit, you should use:

IronSource.Instance.setIronSourceRewardedVideoCustomParams(YOUR_CUSTOM_PARAMETERS);

You will then receive a corresponding callback as such:

http://www.mydomain.com/rewardsCallback?appUserId=[USER_ID]&rewards=[REWARDS]&eventId=[EVENT_ID]&itemName=[ITEM_NAME]&custom_ip=1.0.0.9