cash-collection-currency-47344

MONETIZE YOUR ANDROID APP WITH ADS

Hello, welcome to bunkerspoint. We know that how much time it takes to build a good working legit app and you are ready to show-off the world. But wait don’t you think your efforts should payback to you? In this post we’ll talk about how to monetize your Android app with Google Admob. Admob is a mobile advertising company managed by Google.

WHAT MONETIZING APP DOES:

When your app is monetized with any advertising company it would be, it allows to display their ads in your app and the company pays for those ads which are live in your app.

MONETIZE YOUR ANDROID APP:

  • Sign up for admob. You need to have a gmail account in order to register in admob
  • Go to Apps and add app. If you have already published your app in playstore then click yes and search your app by name,developer name etc .else if you hadn’t published your app then click no and enter your app name and add the app to admob.
  • Enter your app name and choose your os.
  • After adding the app, go to app’s overview and add ad unit and select any of the ad type(Banner, Interstitial, Rewarded)
  • Suppose you select Banner then give AD unit name a name and select the ad type you want like video, text etc.
  • Let the Automatic refresh be Google optimized and keep the rest of the settings same.
  • Select create AD UNIT and your done with creading the AD UNIT. Now you’ll need to connect your app to admob.

CONNECT YOUR APP TO ADMOB:

You need to connect your android app with the admob in order to show live ads in your app. Connecting android app to admob is pretty easy by Firebase. Firebase helps in analyzing your app easily. If you haven’t signed up for Firebase then sign up for it and login to Firebase and create a project, give it a name and add integrate the app to firebase by clicking Add App and follow the instructions on Add Firebase to your Android app. After these settings is done, link your project with Admob in firebase navigating to Integrations under settings or you could also link to Firebase project through Admob.

LIVE ADS IN YOUR APP:

To live the ads in your app, you need to add the admob dependency in your android app. In Android Studio, click on Assistant and select firebase. Now
You could easily follow the instructions from there on how to create ads in app and adding dependency etc. For instance we are going to show you how to create banner ads in your app using firebase but without assistant.

So firstly login to Firebase and then follow these simple steps.

  • Add the necessary firebase dependencies such as core, admob, analytics.
  • Copy these line of codes in your activity/main.xml

        <com.google.android.gms.ads.AdView
            xmlns:ads="http://schemas.android.com/apk/res-auto"
            android:id="@+id/adView"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerHorizontal="true"
            android:layout_alignParentBottom="true"
            ads:adSize="BANNER"
            ads:adUnitId="ca-app-pub-3940256099942544/6300978111">
        </com.google.android.gms.ads.AdView>

Add this piece of code in MainActivity.java

import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdView;

public class MainActivity extends AppCompatActivity {
    private AdView mAdView;

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        MobileAds.initialize(this,
            "ca-app-pub-3940256099942544~3347511713");

        mAdView = findViewById(R.id.adView);
        AdRequest adRequest = new AdRequest.Builder().build();
        mAdView.loadAd(adRequest);
    }

Thats it , now you’ve monteized your app and you are ready to display ads in your app.


Note: Always use test Ad ID while you are testing your application, you should never use original Ad ID in your application when in testing/developing phase. If you do so you might get blocked from AdMob.
You could find the App’s id and ad unit id under App’s settings in Admob.
Follow more detailed instructions on how to create ads for interstitial, rewarded in the below link.
https://firebase.google.com/docs/admob/android/quick-start

android-1635206_1280

Upload Your First App In Play Store

Hello, welcome to bunkers point. In this post we are going to show you how to upload your app to play store in detail.
So let’s get started,
First you’ll need to register a developer account in Google play console. It will cost you a 25$ for registering as a developer in play console. Don’t worry it’s a one time payment. After that you could upload as many apps you want.

REGISTER FOR A GOOGLE PLAY DEVELOPER ACCOUNT:

⦁ Sign up for a google developer account using google account.
⦁ Accept the Developer Distribution Agreement.
⦁ Pay the registration fees.
⦁ And finally complete your account details.

GENERATE A SIGNED APK/BUNDLE:

Usually, you would have built the debug apk which could simply be built by selecting and clicking on Build Apk .This is a debug apk which developers build so that they could test their apps but if you want to upload the app to play store then you need to generate a signed apk/aab .

STEPS TO CREATE APK:

  • .Goto Build and select Generate signed Apk/Aab
  • Select APK and Click next.
PLAY STORE
  • Select create new keystore path and store it wherever you want
  • Enter the keystore password,key alias ,fill certificate details and click Ok.
  • Select destination and then select the build type as release , as google play store does not accept the apk/aab as type debug and check mark the signed versions v1 or v2 or both.
  • Click Finish and your done.

Android studio will now build the apk and you could locate or analyze the apk/aab after build is done.
One important thing you have to do as soon as your build is ready, always backup your keystore somewhere safe as it will be required at the time of updating your app. If you lose your keystore then nobody could help you , not even Google. As Google Play secures the app with key so it is necessary that you provide a key at the time of updating your app otherwise you will not be able to update the app in Play Store. If you don’t want to handle the key by yourself then no worries ,Google Play Console now has a feature that lets Google manage the app singing key .
The above steps were to create a signed apk but Google has launched Bundles .Now in Google Play Store ,app bundles can be uploaded instead of apk. Bundles helps in reducing the app size to about 50% and bundles are faster than apks.

STEPS FOR CREATING ANDROID APP BUNDLE:

  • .Goto Build and select Generate signed Bundle/APK
  • Select Android App Bundle and click Next.
  • Select create new keystore path and store it wherever you want
PLAY STORE
  • Enter the keystore password,key alias ,fill certificate details and click Ok.
  • Select the destination and then select build type as release as google play store does not accept the apk/aab as type debug and check mark the signed versions v1 or v2 or both.
  • Click Finish and your done.

UPLOADING THE APK/BUNDLE TO GOOGLE PLAY CONSOLE:

⦁ After registering to the Google Play Console, goto the All applications and select create application.

PLAY STORE


⦁ Enter your app Title and click ok.
⦁ Now you need to enter details of your app for store listing, Pricing and distribution, content rating.


⦁ And then in app releases , click on manage under production and then drag or copy your APK or AAB and wait for uploading.
⦁ If you don’t want to handle the key then you could opt in the app signing key and continue ,else opt out.
⦁ After everything is done ,your app will be under review and checks and when no issues found ,your app will be published in Google Play Store.


Note: You need to provide description,images,logo etc for your app.You’ll come to know it at the time of uploading the app. I’m pretty much sure you’ll be able to handle these things easily. If any doubt don’t hesitate to ask.

And don’t forget to comment,share and like. Thanks for reading.