Rewarded Ads

Rewarded ads are an engaging ad format that shows a short video ad to the user and in exchange the user will earn a reward. The user must consent and watch the video completely through to the end in order to earn the reward.

circle-info

The speed and stability of users internet connections may vary. It is highly recommended to fetch as far in advance of showing an ad as possible. This helps to ensure that all necessary assets are downloaded. For example, you may want to fetch an ad when a level starts, or after a previous ad has been shown.

Making the Request

The following example shows how to make a request to display the Rewarded ads.

Before you can make a request to display a Rewarded ad, you must import the Rewarded class.

Kotlin
import com.fyber.fairbid.ads.Rewarded
Java
import com.fyber.fairbid.ads.Rewarded;

After importing the Rewarded class, you must make a request to display the Rewarded ads.

Kotlin
import com.fyber.fairbid.ads.Rewarded

val placementId = "12345"
Rewarded.request(placementId)
Java
import com.fyber.fairbid.ads.Rewarded;

String placementId = "12345";
Rewarded.request(placementId);

Adding Callbacks

The callback code below is required for SDK to track the activity of your ad properly.

Example showing an ad

The following example checks to see if a placement is available and, if it is, uses the show request to display the ad.

Server-Side Rewarding

Refer to the provided documentation for detailed instructions on configuring Server-Side Rewarding.

Last updated