How do I use Admob on the Android OS? - android

Using AdMob, how can I give an advertisement in an Android Application?

For AdMob Android App Integration
Register or login at admob.com, and click 'Sites & Apps".
Click "Add Site/App", and provide the info for your Android App. (Feel free to enter placeholder information if you just want to download the SDK without registering a real app.)
Once you've added your site, you will be prompted to download the Android SDK and the integration PDF.
The download includes the binaries, documentation, and a sample.
Review the integration PDF at http://www.admob.com/docs/AdMob_Android_SDK_Instructions.pdf
Read index.html for information on the AdMob SDK's classes and methods
Look at the Lunar Lander sample project to see a working example
For more info you should check http://developer.admob.com/wiki/Android
Note: Description for you app/site on admob is very important, they use all info that appear there to provide your advertisement.
UPDATE: Now is called Google Mobile Ads SDK https://developers.google.com/mobile-ads-sdk/download
and for Admob https://www.google.com/ads/admob/monetize.html

Some more info that may help is this Question. You have to make sure that the AdMob view is at least 320dip, if it is not, you will never see an ad in your application.

Related

Facebook App Install Ads: Is it mandetory to have the SDK installed?

We have developed a mobile app for both Android and iOS. We are planning to promote it through Facebook via Facebook App Install Ads. We don't want to track the number of installs or anything, because we can easily see these info in the app database.
However reading the following articles, we are very confused.
https://developers.facebook.com/docs/app-ads
https://developers.facebook.com/docs/app-ads/resources/faqs/
In the first link it sounds like we need to have the Facebook SDK installed. But in the second link, the first 2 FAQ says we don't need SDK if we are not planning to measure and track installs.
Out of this, which one is correct?
Our social media guy complains he can't create the App Install Ads in Facebook because FB says SDK is not installed in the app, but he himself admit he is not knowledgeable on this matter much.
I think there is a confusion between installing ads inside of your app, versus running ads on Facebook itself. To run adds on Facebook you do not need an SDK installed in your app, you just setup a Facebook Ads Account here and submit your ad information, payment, etc. If I misunderstood your question please let me know.
Edit:
The easiest way to publish Facebook ads for your app is simply to link a website that routs to the correct App Store for the device -- the SDK setup is unnecessarily complex for what you're trying to accomplish. You can see how to
write a website to route the user: here:https://stackoverflow.com/a/39749991/13296047
You don't need to install the SDK to run these App Install button ads, but I've done some testing, and they don't seem to optimise very well. The ads run brilliantly for 24hrs, then fade quickly. I'm wondering if this is because the FB algorithm doesn't get a data feed for app installs, so doesn't know how to deliver the ad. Not 100% sure, this is still a theory I'm investigating...

Facebook Developers Add Platform

I'm developing an Android App where I needed to use the SDK provided by FB to enable login via FB.
Everything is OK and it works, but when I went at:
https://developers.facebook.com/apps/MY_APP_ID/settings/basic/
I saw that there is a button that says "Add Platform".
My question is, why should I add a platform for my APP if I have everything done without that?
Does anyone know when I might need to use that option, in which cases?
Any information would be appreciated.
Thank you in advance.
As the comments above indicate, this is pretty much the answer (fell free to correct me):
If your application is running in different platforms, this means that you should be able to login in the same account from different platforms, then that's where the "Add Platform" comes in play.
In my case, I had an Android App where users can sign up using their FB account.
If in the future, I want to create a website application, then obviously, the users should be able to access that application with the same FB account.
In this case, I add an Website as a Platform.

Facebook review approval with an Intel XDK android app fails due to missing login

I'm trying to get my android application approved by facebook, but I keep getting the same inexplicable error back:
General
One or more of your App Center Listed Platforms doesn't use
Facebook Login. Please integrate Facebook Login, and clarify how to
login with Facebook in your Review Instructions. Otherwise, remove the
platform(s) from your "App Details" tab.
Now, my app has a big blue facebook-login button on its main screen, so don't think that a missing facebook login is the problem, I think a screenshot of my facebook app settings screen holds a much more plausible explanation:
In order to add facebook support to an Intel XDK facebook app you've previously had to add a website going to html5tools-software.intel.com and use that same address as an App Domain for the application. I think the missing Facebook-login error comes from that website being tested together with my android app (which it shouldn't, it has nothing to do with my app).
What I would like to know is how to get a wrapped HTML5 application for android approved or if there are any other ways for Intel XDK apps to be approved as facebook apps (different App Domain perhaps?).
Have you tried using http://plugins.cordova.io/#/package/com.phonegap.plugins.facebookconnect
https://developers.facebook.com/policy/#login
Says that native apps must use the SDK, which is provided by the plugin.
The solution was to ignore the app domains (I was setting it to 'html5tools-software.intel.com' in accordance to intels tutorial on how to do it) and NOT add a second 'facebook app' as the tutorial says (it wants you to add a web page with url html5tools-software.intel.com). Skip those two and it works!

Creating an android smart app banner

Is there any solution for Android devices similar to the iOS 6 smart app banner?
Here is the code for smart app banner
<meta name="apple-itunes-app" content="app-id=311507490, affiliate-data=partnerId=30&siteID=k1CkFsOh4nQ"/>
Since Chrome 44 Beta you can push your app in Chrome for Android with
a native app install banner on your website.
Please see the answer below.
Old answer
I needed that myself, so I created a jquery plugin to mimic a smart banner for Android and older iOS versions.
http://jasny.github.com/jquery.smartbanner/#android
Since Chrome 44 Beta you can push your app in Chrome for Android with a native app install banner on your website. There are a couple of criteria that need to be met in order to enable it:
You will need a web app manifest file
You will have to serve your web using https
The user has visited your site twice over two separate days during the course of two weeks.
Read more about it in the official docs from Google.
You add the Google Sign-In button to your page with a special parameter and then users can sign in and specify which device to install your app to directly from your website.
This is the most "officially supported" implementation I know of:
https://developers.google.com/identity/sign-in/web/android-app-installs
From the link:
By adding the Google Sign-In button to your web site, you can automatically prompt your users to download your Android app over the air to their Android devices. To enable this feature, you must use the same Google Developers Console project for your Web and Android clients, and configure your web app's sign-in button.
Your web app must use the Google Sign-In button to prompt your web site users to download your app the first time that they sign in. This feature is enabled by adding the apppackagename parameter to your sign-in button.
There are two APIs available:
To detect if the app is already installed use getInstalledRelatedApps (only for Chrome 80+)
Article with general information: https://web.dev/get-installed-related-apps/
Docs and demo (web+app) with code https://www.chromestatus.com/feature/5695378309513216
Show a prompt to install your app
Article with code samples: https://web.dev/customize-install/
Documentation: https://developers.google.com/web/fundamentals/app-install-banners/native

failed to Implementing google adsense in my android app

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.

Categories

Resources