B4A Class AdsHelper Extension for Traditional B4A apps & more

Sofian

Member
Hi, I try example ads. for activity ads its working fine, and for B4xpage ads its not show any ads.
error log :
error log:
Failed to load RewardedInterstitialAd: {
  "Code": 3,
    "Message": "No ad config.",
     "Domain": "com.google.android.gms.ads",
     "Cause": "null",
    "Response Info": {
    "Response ID": "null",
    "Mediation Adapter Class Name": "",
    "Adapter Responses": []
    }
}
all the same error code: 3 with other ads
 

Sofian

Member
I thinks after update B4A.exe to 11.80(64bit) , befote is 11.50 (32bit)
already copy resources_06_21.zip files and commandlinetools-win-6609375_latest.zip and exctract it . My other apps stop showing ads after this with same error
 

Filippo

Expert
Licensed User
Longtime User
Hi,

when executing the procedure "getConsentType" always comes this crash-message.
Is this an bug or is this normal?

B4X:
'Returns one of the following values: NON_PERSONALIZED, PERSONALIZED, UNKNOWN
Public Sub GetConsentType As String
    Dim statuses As Map = CreateMap(1: "NON_PERSONALIZED", 2: "PERSONALIZED", 0: "UNKNOWN")
    Dim status As Int = ConsentInformation.RunMethod("getConsentType", Null)
    Return statuses.GetDefault(status, "UNKNOWN")
End Sub

Crash message:
Error occurred on line: 68 (AdsHelper)
java.lang.RuntimeException: Method: getConsentType not found in: com.google.android.gms.internal.consent_sdk.zzk
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…