Android Question Google Admob Ads Stop

prince_j325

Member
Gd day,
I developed an app with ads from Google Admob and the ads display successfully for 4 days. Then Yesterday and today no more ads is diaplaying. Somebody here know why?
 

Pendrush

Well-Known Member
Licensed User
Longtime User
Do you show Interstitial ads?
If answer is yes, then you can post here full implementation as source code, maybe I can help you.
 
Upvote 0

prince_j325

Member
Yes

B4X:
Activity.LoadLayout("lyMain")
  

    BannerAd.Initialize2("BannerAd", "ca-app-pub-7449308286288394/xxxxxxxxxx", BannerAd.SIZE_SMART_BANNER)
    Dim height As Int
    If GetDeviceLayoutValues.ApproximateScreenSize < 6 Then
        'phones
        If 100%x > 100%y Then height = 32dip Else height = 50dip
    Else
        'tablets
        height = 90dip
    End If
  
    Activity.AddView(BannerAd, 0dip, 45dip, 100%x, height)
    BannerAd.LoadAd
  
    IAd.Initialize("iad", "ca-app-pub-7449308286288394/xxxxxxxxxx")
    IAd.LoadAd
 
Upvote 0

Pendrush

Well-Known Member
Licensed User
Longtime User
I think about complete Interstitial implementation (all events and code).
Google will detect as problem if your app request "too much" Interstitial ads. You need to make at least 60 sec between two Interstitial ads request (IAd.LoadAd), no matter is request successful or not.
Example of very very bad code, which will lead to ad suspension is this one:
B4X:
If IAd.Ready Then
   IAd.Show
Else
   IAd.LoadAd
End If
 
Upvote 0

Pendrush

Well-Known Member
Licensed User
Longtime User
You should do proper implementation and wait....
As it's look like, you will wait at least 45 days if your ads are suspended at first place.
Also check your admob account for policy violation.
 
Upvote 0

Similar Threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…