failed to Implementing google adsense in my android app - android

I signed to adsense and got my id to use adsense mechanism. I followed the tutorial http://code.google.com/intl/iw/mobile/afma_ads/docs/android/ and did exactly like the incomprehensible tutorial (Very surprising). Also the jar file that i supposed to add to my libs not available in the site and i downloaded it from http://www.java2s.com/Code/Jar/g/DownloadGoogleAdViewjar.htm. When i load my app i get a banner filled with "AD TEST" strings. When i tried to change the boolean parameter in setAdTestEnabled to false i got empty banner (not visible).
Does anyone run into such behavior using adsense?
Does anyone know better tutorial?
Does AdMob and Adsense connected to google?

If the test ad worked it could be that you have either not set your unique ID in your adWords account or its just not been activated yet therefor there are no images to retrieve.
Another reason could be that the image that it did retrieve doesnt fit into the view you have gave it. Something like that should throw an exception so have a look through your code in debug and see if it does throw an error

You are looking at an old old version of the Ads SDK. The download link probably isn't on the site anymore because it is now recommended/required to use the Google AdMob Ads SDK. It is a rewrite of the Google Ads SDK, and it has active support and documentation. I recommend trying it out, and any questions you may have you can ask on the support forum.
Side Note: I say using the new SDK is required because if you read through the the documentation, you will find a warning saying all new sites and apps created after October 14th, 2011 have to use the Google AdMob Ads SDK.

Related

How to Debug Android AdMob Implementation

I have been fighting the Android AdMob implementation for a few weeks in an attempt to show ads in an app I have published to the Play Store.
Currently, test ads show up in the app when I push a .apk build to my phone. However, when I swap to my production AdMob ID in AndroidManifest.xml and publish a release .aab to Play Store, I do not see any ads in the app.
Google appears to offer no way to debug issues like this. When the main AdMob call is made, they return a binary status message of the form "success" or "failure". There is no troubleshooter for android apps using AdMob that I've found, and generally no way to debug the issue so that I can figure out what is wrong. The "help" pages list about 5-10 things that commonly go wrong with AdMob implementations; these are not helpful, as any dev who has scraped through them realizes they are playing whack-a-mole.
Is there a hidden status message, error code, something on AdMob or the Play Store console that I could be missing, any warning or error that would lead me in the right direction?
Alternatively, I'll take any suggestions for AdMob alternatives as Google does not seem to support this product.
Use Adlovin Max. Admob is lacking support.

Get AdMob test device ids for both iOS and Android in Flutter project

I am trying to use my own/REAL AdUnits instead of the TestAdUnits but I have no idea where to get the Test Device Ids for my iOS and Android devices.
Docs say to look at the logs to locate the test id, but I have inspected everything that gets printed to the console and it does not print either of the devices test ids.
I am building and running my project in VS Code
After a while of looking through logs, I realized there are some missing steps in Flutter's package explanation.
First, Firebase needs to be linked to you AdMob app, AND you need to re-download the GoogleService-Info.plist file for iOS and the google-services.json for Android.
After that, in iOS you need to go into Settings -> Privacy -> Advertising and disable Limit Ad Tracking. This will allow for the ID to be printed.
I think you probably searched on admob and adsense console.
maybe the google play developer console will be helpful.
For now im only using testAds since my app is not done yet.

AdMob and how does it work?

I'm confused about AdMob. I just signed up and I want to put ads in an app. I went to add site/app thinking this was it. There is a question and field that says Android package url. I clicked the question mark and it talks about formatting it like this market://details?id=. First, it talks about how it will link my app to ads so if someone clicks on it then it will go to my app in the marketplace. Well I haven't put the app in the market place yet and I don't think that is even a correct URL and I trying to get adds in my app not me make an add about my app. Can someone please enlighten me on how this all works and how to get it set up where I can have ads on an app. Thanks
When signing up for AdMob they want to see where your application currently is, but this isn't an essential part of the process from your point of view.
Basically, for AdMob (as well as a whole slew of other similar sites) you download a small SDK that you include in your Android application. This SDK usually has a View that you can plop on one of your Activities. You give that control some information, like a private AdMob key (so it knows which person you are) and then that control will provide an ad from the server. Note: it usually doesn't work right off the bat and there is a "development mode" setting you can set to always pull back a fake ad while you are just working on it.
You may also want to sign up for multiple sites and check out AdWhirl which allows you to manage the ratio of ads you display from each site, since you will find that some sites will generate more revenue for you than others.
Good luck!
Though its an older post, but still if it helps anyone who wants to display ads in their app. Based on many of findings with friends I would suggest to look for other ad network than admob. Imagine you set all things right, follow rules correctly, feel happy about your earnings through ads on your admob console and then suddenly one fine day you get an email from google admob that your account is suspended for invalid activity. Well what does it mean? In simple terms, it means google don't tell you what did you do wrong and will keep all your earnings. It's natural for every newbie developer to settle with admob being google's own ad network. But dont fall for this trap, if you don't want to lose your money better avoid admob.
It would be nice if readers share their experience with other ad network. It can help all of us I think.
Edit: I put this in a comment originally, but seemed suited better as an answer.
Google keeps switching the location of the Admob integration instructions which is driving me nuts. It has moved 3 times in the past 6 months. It originally was nicely done in wiki format, then moved to a PDF and now it is part of the Google code website which is here.
On this site you will find what you need, but unfortunately, you will have to dig a bit to get everything you need.

How can I set up AdWhirl in the Android SDK?

The AdWhirl instructions are extremely crappy. All I want to know is how to set up the layout XML and get the source code into the Java of my application.
Can someone please give me an example for, let's say, a simple application with just buttons and text and pictures with the AdWhirl ads on the page?
I would suggest working with Admob Mediation as that contains a more up to date development of Adwhirl. Adwhirl is actually developed in some part by Admob and so has been neglected with the release of Admob Mediation.
Look at this link to see how Admob relates to Adwhirl and works with multiple banner ads. Admob implementation also has a lot more documentation online. Make sure you have an account already.
I am thinking the answer' did not know the context of the question.
I was recently stumped about this when developing with the adwhirl server.
So incase anyone else is curious:
1) Install a firephp plugin in your favorite browser
2) update to latest version of FirePHP
3) refresh your page
4) have fun

How to add REAL ADS for admob? Android

I added test ads, and everything ok, but how to add REAL ADS on my program?
The question is a bit vague.
Are you saying you have an adMob publisher Id, have the admob-sdk-android.jar integrated in your project, have added the attrs.xml, and are using the com.admob.android.ads.AdView view to get test ads and now want to know how to get AdMob to serve up real ads?
If so, it's pretty obvious how to do that from the AdMob publisher controls page: (if you have a publisher Id already) Or..use help link there and see the content about Publishing for your Android app.
If youre asking how to get started using the AdMob SDK with your project, you might try: http://developer.admob.com/wiki/Android
I found it pretty painless. Hope that helps.

Categories

Resources