-4

I use admob rewarded video and i want to disable the the close button until the ad finish or enable the close button after 10 second like ads on games

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
ahmed mostafa
  • 197
  • 2
  • 12

2 Answers2

2

This is neither possible nor promoted by admob, they will probably ban you if you try to achieve this anyway. You can use other video ad networks which do have similar functionality

Suhaib Roomy
  • 2,501
  • 1
  • 16
  • 22
-1

Its depend on what component you use for show video like,

If you are using activity then override onBackpress event and don't call the super method like below, It will restrict back press event from device button.

@Override
public void onBackPressed() {
}

If you are using Dialog then set setCancelable false also setCanceledOnTouchOutside false like bellow

dialog.setCancelable(false);
dialog.setCanceledOnTouchOutside(true);
Dhaval Solanki
  • 4,589
  • 1
  • 23
  • 39