Thursday, September 15, 2016

How I got AdSense working in my Android App

Why do I need AdSense in my Android app?  Two reasons:
  • I want to see how rich I can get by putting in tiny advertisements in my Android apps via the Google AdMob advertising aggregation and serving solution.
  • I want to offer InAppPurchases in my Android apps.
Both of these require that I have a Google AdSense account that is tied to my bank account.  Sorry Google, but this should be totally easy for even a brain-dead programmer, or even a 6-year old whiz kid programmer.  I'm somewhere in between the two extremes and I am finding that this process is neither straight forward, nor particularly easy.  Thus this blog post.

This is a work in progress...  This paragraph will disappear when I have fully documented the somewhat lengthy and frustrating experience of traversing the various Google products and services required to enable a first-time Android publisher to incorporate AdMob advertisements into their Android app.
  1. Create your Android app.
  2. Download the AdMob SDK
  3. So, what the heck is Firebase and why do I need it?  Well, it's another opportunity for Google to do a Freemium hack of their own on all of us Android developers...  From what I have gleaned so far, this is another company that Google has Gobbled because they were offering a cool set of features that someone at Google felt that they could ride to the bank.  Here's the lowdown on Firebase from Wikipedia...it was actually two companies that Google Gobbled; Envolve and Divshot.
    • Anyway, why is Firebase relevant for you when you need to get the Google Mobile Ads SDK? Well, probably because Firebase was not getting enough traffic from Android developers and now, since you have to get a Firebase account to get the Ads SDK, you get to take the time to figure out what the heck you need to do with Firebase to be able to download and use the Ad SDK.
      • Answer ==> nothing that I can see so far, but I may change this as I learn more.
  4. Visit GitHub and get Google Play samples for sample apps that show you how to integrate the AdMob ads and InApp Purchases into your Android app.
  5. If you need help, you can visit  the Google Mobile Ads SDK Developers forum
  6. Incorporate the AdMob SDK into your Android App.  While you are testing, make sure that you do NOT use your real AdSense account.  There is a not-so-subtle threat made by the AdSense folks that if you do use your real AdSense account while testing and accidentally click-thru an advertisement, they will know, and they will deactivate your AdSense account.  Since it is such a pain to get your AdSense account in the first place, you should probably heed their severe warnings and make sure to use only the AdSense test account while you are developing and testing your Android app.
  7. Well now, one way to qualify to get an AdSense account is to Get yourself a Google Blogger account and start publishing blog posts like this one.
  8. Use your Google Blogger URL as the website that you want to associate with an AdSense account
  9. Visit the AdSense website and create a "project"
  10. On the AdSense website, associate your Android developer email address with a new AdSense account
  11. And, associate your Google Blogger URL with the new AdSense account
  12. Now, we get to a sort of catch-22 area...
    • The reason that I started this blog was because the AdSense website pointed out that "one way" to have a website that qualified for an AdSense account was to start a personal Blogger blog, so hey, why not.  Here's the link from the AdSense support site...
    • I created a Blogger account and figured that it would be kinda neat to start a blog about interesting Android tips and tricks that I've picked up over the past few years.  So far, so good. You are looking at the first blog post in this new blog.
    • So, silly me, I figured now that I have a blog post that I've posted, I should be able to ad an AdSense "gadget" to my blog.  I can see the AdSense gadget.  I can click on it, but then I get a nice little error message that says that I need to set up an AdSense account before I can add the AdSense gadget.
    • No problemo.  I click on the "Earnings" tab on the left of my blog management panel, and am promptly told, "Your blog doesn't currently qualify for AdSense."  It does not tell me why, other than giving me a this link to the qualification criteria for a Blogger blog to use AdSense.  Hmmm...now it tells me that I need to have had my Blogger account for at least 6 months.  Is that bait and switch, or what?
    • I started this blog via Blogger because the AdSense said that was an expedient way to qualify for an AdSense account, but once I have created the Blogger blog, now I have to wait for 6 months for the account to become active?  That's just silly!!!
  13. To see if I could jump-start the AdSense evaluation process, I tried another experiment.  I decided to simply sign up for an AdSense account for one of my websites.  As sort of a placeholder, I keep a very basic website for one of my software development consulting companies, Friller.  So, I attempted to use the Friller website as the website on which I proposed to serve up AdMob advertisements.
    • Upon submission of the Friller website to the AdSense evaluation process, I got a message telling me that they would evaluate my submission and get back to me.
    • I got a denial email within 12 hours, with a pointer (link) to the possible reasons that might be the justification for said denial.  What came across was the basic message, "Hey dude, are you wacked out?  Your website is totally boring and content-free, so why would advertisers want to advertise on Friller.com?".
    • Fair enough.  I never really wanted to serve up ads on Friller, but it was worth the experiment to see what the lords of content would have to say.
  14. Next experiment: use the Blogger Settings/Publishing/Blog Address configuration feature to redirect this blog to one of my domain names, www.outathere.com, which should bypass the 6-month AdSense delay period and should also get me in the door to having an approved website (because that's what the AdSense site says about Blogger).
    • So, I hopped over to Godaddy and reconfigured one of my many parked domain names to point to the CNAMEs that Blogger has assigned to this blog.
    • Godaddy's interface for this wasn't too bad and they had a support article on exactly how to do this, and the Blogger feature was also easy to read and understand, so I now have www.outathere.com pointed to this website blog and it works.
    • One side note -- make darn sure that you ensure that you specify only the top level of your domain name (i.e., make sure it starts with www. (e.g. www.outathere.com, rather than outathere.com)).  Otherwise, the AdSense application engine is supposed to automatically reject your submission.
    • Once I verified that this redirection was up and running, I resubmitted my AdSense account request, but now pointing to www.outathere.com.  And the good news was that my application was not automatically rejected.
    • Now, I'm just waiting for the AdSense content review lords to bless or trash my latest request.
    • It's now day 3 of waiting for the content review lords...looking at the lost revenue from not being able to use AdSense to enable InApp Purchases in my Android Apps...
    • Ok Google!!!, it took 5 days, but it looks like I can now sign up for AdSense from my Blogger account.  I'll attempt this now and update accordingly.
    • Interesting stuff (otherwise known as a cluster fck).  Here's what happened next.
      • My blog page said that my AdSense account was approved to work with my blog page, with a "click here" to configure my AdSense account.
      • I clicked on "click here", was redirected to the AdSense account request page, which was pre-filled with my www.outathere.com submission request.
      • I clicked on the "submit" button and was told, "you are approved", and was presented with another button to get back to my blog page on blogger.
      • Upon clicking on the "go back to blogger" button, I was redirected back to my blog page, and landed on the following page:
      • As you can see, it says that "your AdSense account is awaiting approval".  Go figure, I thought that the AdSense site already approved us.  Guess I'll wait awhile to see if this is a synchronization issue between various Google properties.
      • Here's what the Blogger "Earnings" screen looks like when I attempt to configure the ads for my blog and "Save" my configuration options:
      • Also, if I go back to the AdSense website, here's what I'm now told:
      • Progress is being made, but there's definitely a delay between even small amounts of progress on Google's part :(.
      • Started another "day counter" to record how long it's taking AdSense to "re-approve" my request for an AdSense account.  It's really hard to understand how I can be "approved", but upon attempting to finalize my "approval", I get stuck back into the "waiting for approval" queue?  Wish there was a whole lot more transparency at AdSense in this regard.
      • Day Counter : 9 days, AND COUNTING, so far for the second round of approvals, what a PAIN!
      • So, on the 8th day of waiting (see above bullet for total time spent waiting in this cycle of hurry-up-and-wait, I got a slightly new screen in my Blogger Earnings screen...note that the Earnings screen has changed behavior, at least for about 5 minutes, as follows:

      • Next, I navigated over to AdSense, and got the standard "not yet" error message from AdSense.  So, I navigated back to my Blogger Earnings page and now the page has changed back to the "Your AdSense account is awaiting approval.  NICE!!!
      • I'm really beginning to wonder if Blogger and/or AdSense even knows the meaning of "Quality Assurance".  Do you folks have a QA team?  Do you care about the really crumby user experience that you are putting your users through?  Or are you simply clueless robots?  By the way, I have found absolutely no way to communicate with the AdSense folks (and yes, by communicate, I do mean that I'd like to either talk on the phone or via email with you, a bi-directional communication link that has effective participants at both ends of the communication channel).  Oops, that doesn't currently exists, silly me!

      • More to come as I come up for air...


No comments:

Post a Comment

Our Privacy Policy follows:
This blog does not share personal information with third parties nor do we store any information about your visit to this blog other than to analyze and optimize your content and reading experience through the use of cookies. You can turn off the use of cookies at anytime by changing your specific browser settings. We are not responsible for republished content from this blog on other blogs or websites without our permission. This privacy policy is subject to change without notice and was last updated on October 5th, 2016. If you have any questions feel free to contact me directly here: blogs@friller.com.