4

I use admob rewarded video. I set the limit of impressions to 5 per hour. But how can I check on client when the limit is reached, without implementing my own checking system.

I want to avoid to send a request when there is no reward video available anymore.

Mira Stinktshir
  • 303
  • 4
  • 13
  • *I want to avoid to send a request when there is no reward video available anymore.*. Why? That's the whole purpose of limiting it on AdMob so you don't have to do this in your application. – Daniel Storm May 02 '17 at 17:24
  • Because I want to avoid unnecessary requests. For example, it would be nice if there was an extra error-code at the onRewardedVideoAdFailedToLoad (int errorCode) method. Then I would know I don't have to repeat the request because the limit is reached. – Mira Stinktshir May 02 '17 at 18:31
  • Why not create a counter that increments in the ad did close delegate method and then check it before each request? – Daniel Storm May 02 '17 at 18:41
  • Because I want to be able to dynamically change my admob limit settings. So maybe tomorrow the limit will be 5 impressions per day. Furthermore, I would have to store the counter locally to avoid cheating by closing the app. There must be a simple sophisticated solution from admob. – Mira Stinktshir May 02 '17 at 18:47
  • The simplest solution is to just send the requests and change the impression limit on AdMob. There isn't a way to accomplish what you're describing without building your own backend. Are you trying to change your UI based on if you have an ad or not? Use `.isReady` if that's the case. – Daniel Storm May 02 '17 at 20:10
  • Okay I accept if there is no way to do it with a build in method. I am aware of .isReady but this wont help to attempt the simple idea to avoid sending unnecessary requests. Which shouldn't be my personal guidelines. I wonder if other developers simple fire requests, regardless if the limit is reached or not. – Mira Stinktshir May 03 '17 at 08:36

0 Answers0