Warning: is_writable(): open_basedir restriction in effect. File(/var/www/clients/client2/web93/web/wp-content/uploads/broken-link-checker/blc-log.txt) is not within the allowed path(s): (/var/www/clients/client1/web15/web:/var/www/clients/client1/web15/private:/var/www/clients/client1/web15/tmp:/var/www/supersonic-knowledge.rtl.co.il/web:/srv/www/supersonic-knowledge.rtl.co.il/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in /var/www/clients/client1/web15/web/wp-content/plugins/broken-link-checker/core/init.php on line 141
Custom Parameters for Android - Supersonic Knowledge Center

Custom Parameters for Android

The Supersonic SDK supports the ability for you to pass Custom Parameters on the initialization of your chosen Ad Units and to receive this data back upon user’s completion event.

Note:

  1. 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 Example

If in your application you would like to receive the IP of the user as a parameter in the Completion callback for users who engaged with the Offerwall Ad Unit, you would use:

Oren Android example

You would 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

Implementation Code

Rewarded Video

Map<String, String> rvParams = new HashMap<String,String>();
rvParams.put("ip", "123.4.56.78");
SupersonicConfig.getConfigObj().setRewardedVideoCustomParams(rvParams);

 Offerwall

Map<String, String> owParams = new HashMap<String,String>();
owParams.put("ip", "123.4.56.78");
SupersonicConfig.getConfigObj().setOfferwallCustomParams(owParams);