Can anyone test my app

magarcan

Active Member
Licensed User
Longtime User
I'm working in my first app. I have included two advices in two different activities. They are shown in emulator, but don't in my phone.

Can you see the advices??

Thanks!!
 

magarcan

Active Member
Licensed User
Longtime User
Thank you so much! When I said advices, it means Admob items...
Seeing your screenshots they aren't working :signOops:

But it does in emulator...
 
Upvote 0

admac231

Active Member
Licensed User
Longtime User
Ahhh okay

If I remember rightly, adverts show in the emulator because they show test ads. It takes a while for the ads to start appearing in your app running on an actual phone. Just wait a few hours and see if they start appearing.
 
Upvote 0

magarcan

Active Member
Licensed User
Longtime User
Ahhh okay

If I remember rightly, adverts show in the emulator because they show test ads. It takes a while for the ads to start appearing in your app running on an actual phone. Just wait a few hours and see if they start appearing.
:sign0142:

Thanks!! I will wait for this. Now I'm going to sleep, so if tomorrow I can't see them I'll write again.
 
Upvote 0

magarcan

Active Member
Licensed User
Longtime User
Some strange is happening!! Firs time I run the app, I can see only one ad (remember I put two, one in each activity).

I'tried to press over the ad and it works. The I closed my app. Now, when I execute it again, I can't see any ad.

Does it happen to you?? Thanks!!
 
Upvote 0

magarcan

Active Member
Licensed User
Longtime User
I still can't see the ads. Do any of you see them??
This is my code:
First activity:
B4X:
Sub Globals
...
   Dim AdView1 As AdView
   
End Sub

Sub Activity_Create(FirstTime As Boolean)
   Activity.LoadLayout("layoutmain")   'Cargamos el Layout Principal

   'PUBLICIDAD
   ListView1.Height = activity.Height-50dip'Recorto es listview
   AdView1.Initialize("AdView1", "a14e3423bfXXXXX") 'publisher id that you received from AdMob.
    'Activity.AddView(AdView1, 0dip, 400dip, 320dip, 50dip) 'previously the height was 48dip. Now it is 50dip.
   Activity.AddView(AdView1, 0dip, ListView1.Height, 320dip, 50dip)
   AdView1.LoadAd 'loads an ad
End Sub

Same code in the second activity:
B4X:
Sub Globals
...
   Dim AdView1 As AdView
End Sub

Sub Activity_Create(FirstTime As Boolean)
   Activity.LoadLayout("lista")
   
   ListView1.Height = activity.Height-50dip'Recorto es listview
   AdView1.Initialize("AdView1", "a14e3423bfXXXXX") 'publisher id that you received from AdMob.
   Activity.AddView(AdView1, 0dip, ListView1.Height, 320dip, 50dip)
   AdView1.LoadAd 'loads an ad
End Sub

Please, can anyone help me?? I'm waiting to fix it before upload my app to Market.
 
Upvote 0

susu

Well-Known Member
Licensed User
Longtime User
I published 4 apps to the Market so I got some experience: At first, your app only display AdMob ads (and it's so rare) but when you got about 5.000-10.000 downloads or more your app can display AdSense ads (and it's alot!). So I think you just stay calm, try to make your app better and you'll see the magic
 
Upvote 0

magarcan

Active Member
Licensed User
Longtime User
This is in my phone:


And this in the emulator:


As I can't see nothing, I don't know if it is working, I'm a bit worried.
 
Upvote 0

magarcan

Active Member
Licensed User
Longtime User
Just out of interest, have you changed the android-maifest.xml file and made it read-only?
Yes I did. Here can yo see:
B4X:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="gcmdesarrollos.AvionesEspanoles"
      android:versionCode="4"
      android:versionName="0.7b"
     android:installLocation="preferExternal">
      <uses-sdk android:minSdkVersion="4" />
      <supports-screens
          android:largeScreens="true"
          android:normalScreens="true"
          android:smallScreens="true"
          android:anyDensity="true"/>
    <application android:icon="@drawable/icon" android:label="Aviones Españoles">
       
        <activity android:windowSoftInputMode="stateHidden" android:launchMode="singleTop" android:name=".main"
                  android:label="Aviones Españoles" android:screenOrientation="unspecified">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:windowSoftInputMode="stateHidden" android:launchMode="singleTop" android:name="ficha" android:label="Ficha" android:screenOrientation="unspecified"></activity>
<activity android:windowSoftInputMode="stateHidden" android:launchMode="singleTop" android:name="lista" android:label="Lista" android:screenOrientation="unspecified"></activity>

        <!-- *** For AdMob: manually added *** -->
        <activity android:name="com.google.ads.AdActivity"
              android:configChanges="keyboard|keyboardHidden|orientation"/>

    </application>
   <uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>


</manifest>

I think it's all right.
 
Upvote 0

admac231

Active Member
Licensed User
Longtime User
Change:

B4X:
AdView1.Initialize("AdView1", "a14e3423bfXXXXX")

to:

B4X:
AdView1.Initialize("[b]Ad[/b]", "a14e3423bfXXXXX")

Edit: In fact, I realised this is a stupid suggestion. Long day at work etc etc lol. I really don't know what's happening here.

Do the above and try adding this:

B4X:
Sub Ad_FailedToReceiveAd (ErrorCode As String)
    Log("failed: " & ErrorCode)
End Sub
Sub Ad_ReceiveAd
    Log("received")
End Sub

This will tell you if ads can actually be received but there isn't any to show
 
Last edited:
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Just for the input, it took me about a week, after putting my app to market, to start receving ads from appstart moment...before that, it took a few tens of minutes to receive 1 add...

The more downloads and use your app gets, the more requests for adds are issued, and the filling rate will increase.
 
Upvote 0

magarcan

Active Member
Licensed User
Longtime User
I've also seen that I've not activated Google AdSense. Activate Google AdSense may help??

PD: I'm talking about config in admob.com
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…