Update to the Latest ironSource Android SDK

We’re excited to introduce the ironSource SDK 6.5+, with brand new features and significant enhancements. Following the SDK release, existing integrations of earlier SDK versions are outdated. Follow this guide to upgrade from earlier SDK versions to the latest ironSource SDK.

Step 3. Update SDK Methods

We’ve standardized and updated all of our methods according to tech conventions, and replaced all Supersonic mentions with ironSource. In addition, you can now initialize your preferred ad units with a single init, preferably on application launch.

You’ll need to review and replace existing methods with the following:

General Methods (relevant for All Ad Units):

New! setUserId
The UserID is a unique identifier for each user. You can set the userID parameter, or let us generate one for you. If you’re serving the Offerwall ad unit or server-to-server callbacks to reward your users with our rewarded ad units, you must set the UserID. Common practice is to use the GAID (Google Advertiser ID).

Note: You must set the UserID parameter before the init request.

IronSource.setUserId("UserID");

AdvertiserId
Call this method to retrieve the device’s unique AdvertisingID:

The Dynamic UserID is a parameter that can be changed throughout the session and will be received in the server-to-server ad rewarded callbacks. This parameter helps verify AdRewarded transactions and must be set before calling ShowRewardedVideo.

IronSource.setDynamicUserId("UserID");

Step 4. Update Callbacks

Lastly, you will need to update the Listener classes for the ad units you’d like to serve on your app .