New AdMob

AllyAndroid

Member
Licensed User
Longtime User
Has anyone switched to the new AdMob system yet?

I just did and am totally lost on what to do now. Not sure if my existing ads will continue to work or if they need to be updated. Also, don't see where my previous earnings carried over to the new system.
 

AllyAndroid

Member
Licensed User
Longtime User
So far:

It merged my AdMob account with my AdSense account.
My previous AdMob earnings did not transfer over.
Two separate apps got merged into one when it transferred them to the new system.
All apps have a new AdSense ad id which does not appear to work with the existing AdMob code.
The legacy AdMob ad id still works but any new app will have the AdSense id.

Edit: The new AdSense ID is working now. Might have copy/pasted an extra space into the code.
 
Upvote 0

lucad

Member
Licensed User
Longtime User
So AllyAndroid in the end new AdMob is fully compatible with our 'old' library ? did you do something different ? I just switched and I am a little bit lost .. could you please post some useful tip ? Thank you!!!!!
 
Upvote 0

AllyAndroid

Member
Licensed User
Longtime User
So AllyAndroid in the end new AdMob is fully compatible with our 'old' library ? did you do something different ? I just switched and I am a little bit lost .. could you please post some useful tip ? Thank you!!!!!

I've only tested one app and have not experienced any issues with the new code. For now, any existing app that was already setup in the old system will continue to work without having to make any changes. I say for now, because G could remove them later on.

In the new system, you will see two ID's for the existing ads that look like this:

B4X:
Ad unit ID: ca-app-pub-1234567890123456/1234567890
Legacy Publisher ID: a1234a123d1c12a

The Legacy Publisher ID will be your old id number and the Ad Unit ID will be your new one.

In B4, all you need to change is one line of code.

Change this:

B4X:
AdView1.Initialize("Ad", "a1234a123d1c12a")

to this:

B4X:
AdView1.Initialize("Ad", "ca-app-pub-1234567890123456/1234567890")

The first time I tried, it didn't work but I may have added a space in the code or it just takes a few minutes before the new code starts working.
 
Upvote 0

AllyAndroid

Member
Licensed User
Longtime User
I also found out that any previous earnings from the old system will not be carried over to the new system. Instead, they will issue a payment for the old system. The new system starts out at $0.00.

I don't know if that is true if you had not reached the $100 threshold. I had only reached $50 so I am going to have to wait and see if they issue me a check or not.
 
Upvote 0

AllyAndroid

Member
Licensed User
Longtime User
When you switch to the new system, you need to import your old data. As stated above, it isn't 100% perfect. Sorry, but I didn't pay attention to the steps when I did this and now the option is no longer there. You can only import once, after that any changes to the old system will not be included in the new system.

To find your ID numbers:
  1. Click on the Monetize tab.
  2. On the left, click on All Apps.
  3. Click on the app you want to get the IDs for.
  4. The data will be on the right under Ad Unit.

One advantage to the new system is that you can create multiple ads for a app. So if you have four activities and you want an ad on each one, you could name them "Activity 1", "Activity 2", "Activity 3", and "Activity 4". This will allow you to track the stats for ads in different locations to see which ones do better than others.
 
Upvote 0

WAZUMBi

Well-Known Member
Licensed User
Longtime User
Anyone know for sure if the old code format:

B4X:
AdView1.Initialize("Ad", "a1234a123d1c12a")

will work until I get around to changing it to the new format in all my apps?

I am assuming it will but...
 
Upvote 0

lucad

Member
Licensed User
Longtime User
I will test the new ID if the old one will stop working or in case of a new app .... many thanks AllyAndroid!
 
Upvote 0

TavR

Member
Licensed User
Longtime User
Hi,
ok first post and I am kinda feeling apprehensive
Firstly great forum, great product and all that,
I seriously have learnt a lot from everyone.

Now my question....

Obviously the Ad Unit Id is set in App and compiled to publish.
but my admob account says publish your App to get Unit ID.

Now that is very confusing. (This is my first venture into Admob)

I have Google Adsense and Publisher ID.

Are they the same????

or should I publish the App, get ID, then re-edit App and insert the ID and compile and publish again? (which seems silly)

on New adMob panel there is no place to get Unit id except in montize which first asks for a App first

I hope you get my drift here...

So if you can get the steps listed to get ad on your App assuming your Admob panel is completely blank (App free) and this is your first app you are developing for Admob, but have google adsense account

Many thanks
 
Upvote 0

WAZUMBi

Well-Known Member
Licensed User
Longtime User
Admob should be one of last things you do. First develop your app.
Take into account the placement of your ad and where you want to be is during this.
In admob click monetize new app and then add it manually to get the app id.

After you get the app id you can then add the admob code, libraries, and then publish.
You can later link your ad in the admob console after it is published.

This is pretty much what I do. The ad is always done last.
 
Upvote 0

TavR

Member
Licensed User
Longtime User
Ok Thanks WAZUMBi and thanks for such quick reply
If I understand correctly

1. develop app and do all the stuff for admob (except missing unit id)
2. Upload to google Play (but not publish)
3. get unit id from admob for that app
4. edit the app and insert unit ID
5. upload again and publish

step 2 is the question. you can add app to admob panel with no reference to Google Developers panel. I did that messing about and added several apps that don't exist (and there is no delete button)

You see i understand getting UNIT ID but what confuses me is you can get unit ID for non-exitance App which is fine for development but how do you tie it to real app when uploaded to google dev panel.
or alternatively you have to upload to google dev and then get the unit id

see what I mean?

Also a major problem which I would be grateful if you help
in tutorial Erel mentions getting admob-sdk library etc.

google syas this is not available anymore and we should use google play in SDK

I get this error when compiling

class file for com.google.ads.AdView not found
1 error

I have Admob version 1.36 ticked on my Lib tab and when DIMming Adview it shows no error on editor (i.e. not red)
but no compile.

I have followed Erel's instructions and read all other posts, and see nothing missing except admob-sdk-android which I can't get from anywhere.

HELP Please

thanks
 
Upvote 0

WAZUMBi

Well-Known Member
Licensed User
Longtime User
No, when I start a new app AdMob is the last thing I do. I only consider the placement of the banner.
I don't include the libraries or necessary code in the manifest.

After I feel the app is complete then I create an ad unit with AdMob.
You will then get the ads ID to insert into your code.

I do some final QA and ensure the ad is properly displaying.
Only then do I upload the completed apk and to Google Play.

There's no need to upload it without the ID unless you are doing beta testing.
AdMob allows you to manually create an ad unit and then later link it to your app.

I'm not sure about the error.
There are much better experts here on reading the error code.
 
Upvote 0

TavR

Member
Licensed User
Longtime User
WAZUMBi, thanks a lot. I understand now
For other users with similar problem, I will list my solution

1. I missed the "LINK APP" on Admob panel.
so I did a test ad got the Unit ID, put in my APP and it took a while and I pulled my hair a lot, but eventually I got an Advert on emulator.

2. I should have mentioned that this App is already online and finished development, I was just adding admob as my first experience with admob.
So thanks a lot on that part, fully agree and understand the development cycle

3. regarding the error, OOPS my bad.
I added Admob Lib V 1.36 main library and V2.00 to additional.
so obviously it was using main library first and missing the objects, events, etc needed, for example AdView.Pause was not listed on object property list.

I corrected this and all is now OK.

But I much appreciate your quick help and as a programmer you know the value of brain dumping. No matter how stupid I sounded, just chatting with you helped a lot and of course your great guidance was icing on the cake.

Thanks a lot
 
Upvote 0

mkvidyashankar

Active Member
Licensed User
Longtime User
I tried new version of Admob using google play services
created new ad and follow the instructions to create adview and put following lines in manifest

'AdMob
AddApplicationText(
<meta-data android:name="com.google.android.gms.version"
android:value="@Integer/google_play_services_version"/>
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>

)
'End of AdMob


even though ads are not served and giving error
"You must have adactivity declared in Androidmanifest.xml with configchanges, please help
 
Upvote 0
Top