I am using a vungle app-id in my app and I want to increment the wallet of the user, only if the video ad is completely seen by user.
//code in my Activity
final VunglePub vunglePub = VunglePub.getInstance();
final String app_id= "58d46c1feba9a90a1a000011"; //vungleid
vunglePub.init(this,app_id);
final EventListener vungleListener= new EventListener() {
@Override
public void onAdEnd(boolean b, boolean b1) {
Update();
}
};
I am trying to update the wallet of user by calling Update method from onAdEnd method of listener but it updates the wallet even if the user closes the ad.
I am trying vungle for the first time, also searched a lot but didnt got my answer. Any help regarding this is appreciated. Thanks!..