capacitor-community / capacitor-community/admob

Failing prepareInterstitial or prepareRewardVideoAd doesn't return error code

Open
#235 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
296
Forks
97
Avg merge
2d 6h
Merged PRs (30d)
7

Description

**Describe the bug**

Failing prepareInterstitial or prepareRewardVideoAd doesn't return error code.
It is currently very hard to determine cause for failure or rejection.

Most important codes for my needs are no fill rejections (ERROR_CODE_NO_FILL / GADErrorNoFill).

ERROR_CODE_MEDIATION_NO_FILL / GADErrorMediationNoFill will need special handling.

[Android](https://developers.google.com/admob/android/ad-load-errors)
[iOS](https://developers.google.com/admob/ios/ad-load-errors)

Error code values differ in Android and iOS.
So they need to be normalized.

**Expected behavior**
Error code should be returned in call.reject

Contributor guide

Open the contributing guide

Research direction

Start by tracing the prepareInterstitial and prepareRewardVideoAd handlers on Android and iOS, focusing on their failure paths and call.reject behavior. Read the linked Android and iOS ad-load-error documentation to compare no-fill and mediation-no-fill cases. Done means platform error codes are normalized and the relevant code is returned through call.reject.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, ios, java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.