Android Question Rewarded Interstitial - "Cannot determine request type. Is your ad unit id correct?"

DOM85

Active Member
Licensed User
Longtime User
Hello everyone,

I am developing an Android game called Maze-Mania with B4A 12.80 and FirebaseAdmob2 v3.21.

The application is now publicly published on Google Play and has been successfully linked to my AdMob account.

My AdMob configuration is the following:

  • App ID: ca-app-pub-5538406962438606~xxxxxxxxxx
  • Rewarded Interstitial Ad Unit ID: ca-app-pub-5538406962438606/xxxxxxxxxx
These IDs were copied directly from my AdMob account.

The initialization code is:

Ads.Initialize
Wait For (MobileAds.Initialize) MobileAds_Ready

If Ads.GetConsentStatus = "UNKNOWN" Or Ads.GetConsentStatus = "REQUIRED" Then
Wait For (Ads.RequestConsentInformation(False)) Complete (Success As Boolean)
End If

If Ads.GetConsentStatus = "REQUIRED" And Ads.GetConsentFormAvailable Then
Wait For (Ads.ShowConsentForm) Complete (Success As Boolean)
End If

LoadAds
The rewarded interstitial is loaded with:

Ads.FetchRewardedInterstitialAd("ca-app-pub-5538406962438606/xxxxxxxxx", Me, "RewardedInterstitialAd")
The callbacks are:

Sub RewardedInterstitialAd_ReceiveAd
IndicInterstitialReward = True
End Sub

Sub RewardedInterstitialAd_FailedToReceiveAd (ErrorCode As String)
Log(ErrorCode)
End Sub
The problem is that neither RewardedInterstitialAd_ReceiveAd nor RewardedInterstitialAd_FailedToReceiveAd is ever called.

The log shows:

After MobileAds_Ready

onConsentInfoUpdateFailure:
Publisher misconfiguration:
Failed to read publisher's account configuration;
no form(s) configured for the input app ID.

Consent: UNKNOWN

Failed:
Code: 1
Message:
Error building request URL:
Cannot determine request type.
Is your ad unit id correct?
Additional information:

  • The application is already public on Google Play.
  • The package name is correct.
  • The Ad Unit ID was copied directly from AdMob.
  • The same project previously worked correctly with Google's test ad IDs.
  • My application is currently under AdMob review ("Review required").
Has anyone encountered this error with Rewarded Interstitial ads?

Could this be related to the current AdMob review, the consent configuration, or is there another possible cause?

Thank you very much for any advice.
 

asales

Expert
Licensed User
Longtime User
The rewarded interstitial in this example is working:
Try to run it. If don't works the problem could be with your tools.

Maybe could be the B4A version (12.80) or your SDK is not updated.
The rewarded interstitial requires Google Mobile Ads SDK 19.2.0 or higher.

I'm using B4A 13.50 with FirebaseAdmob2 3.22 and have no problems with rewarded ads.
 
Last edited:
Upvote 0

DOM85

Active Member
Licensed User
Longtime User
The rewarded interstitial in this example is working:
Try to run it. If don't works the problem could be with your tools.

Maybe could be the B4A version (12.80) or your SDK is not updated.
The rewarded interstitial requires Google Mobile Ads SDK 19.2.0 or higher.

I'm using B4A 13.50 with FirebaseAdmob2 3.22 and have no problems with rewarded ads.
Thank you for your Help and for your answer.
My code use as example the good one of yours.

Please, do you know how i could verify which Google Mobile Ads SDK version is included in my B4A FirebaseAdMob2 library?
 
Last edited:
Upvote 0

asales

Expert
Licensed User
Longtime User
Please, do you know how i could verify which Google Mobile Ads SDK version is included in my B4A FirebaseAdMob2 library?
Tools menu / SDK Manager

1782949536754.png
 
Upvote 0

DOM85

Active Member
Licensed User
Longtime User
Tools menu / SDK Manager

View attachment 172140
Thank you.
Please, where is "Google Mobile Ads SDK" version ?
Is my version difference 24.4.0 / 24.6.0 on "com.google.android.gmsplay-services-ads-api" and "com.google.android.gmsplay-services-ads-lite-license" important ?

Note, ads are well displayed with tests ID, and are not displayed vith my own Admob ID.
 

Attachments

  • SDK.jpg
    SDK.jpg
    117.1 KB · Views: 32
Upvote 0

asales

Expert
Licensed User
Longtime User
I don't use the rewarded interstitial in production. Only the rewarded ad.

If worked with the test ID, maybe could be fixed when the app is released in production.
Maybe could be related with the B4A version, because there are so many changes to the actual version.
Or could be other problem that I don't know.

You can try too with the rewarded ad instead the rewarded interstitial.
 
Upvote 0

DOM85

Active Member
Licensed User
Longtime User
I don't use the rewarded interstitial in production. Only the rewarded ad.

If worked with the test ID, maybe could be fixed when the app is released in production.
Maybe could be related with the B4A version, because there are so many changes to the actual version.
Or could be other problem that I don't know.

You can try too with the rewarded ad instead the rewarded interstitial.
Thank you. I will try.
 
Upvote 0
Top