Rewarded
Rewarded ads are suitable for users who need to obtain rewards, complete full-screen ad viewing, guide users to continue using within the specified time, and obtain in-app rewards after the display is completed. This guide completes the user's integration and configuration of rewarded ads in the app.
Before you begin
You should finish the step of the Guide first.
Initialization
Adx3RewardAdView view = new Adx3RewardAdView(this,"UnitID");
Set ad form orientation
0-vertical 1-horizontal; the default orientation of the ad slot is vertical; the user can configure it according to the specific business; and the user can skip the current operation.
view.setOpt(0);
Advertising event monitoring settings
view.setListener(new AdListener() {
@Override
public void show() {
}
@Override
public void loadFaild() {
}
@Override
public void loadSucces() {
}
@Override
public void adClose() {
//finish();
}
@Override
public void adClick() {
}
@Override
public void adComplate() {
ToastUtil.toast(getApplicationContext(),"Reward AD is complate");
}
@Override
public void adSkip() {
}
@Override
public void clickUrl(String url) {
}
});
Event listener description reference
LoadAd
view.loadAd();
Last updated