The introduction of Firebase Analytics has been shown in the top page of Admob site. They also say that their service will transform to Firebase. I don’t understand well, but I started to use it.

I don’t understand what Firebase is. I guess it is the useful tool to analysis my apps; when they are used and so on.

I memorize how to use Firebase at the following.

  1. When making ad in Admob, select to link with Firebase, and download “google-service.json” and put it into app directory.
  2. Write down the following sentences on build.gradle in root directory. buildscript { // … dependencies { // … classpath ‘com.google.gms:google-services:3.0.0’ } }
  3. Write down the following sentences on build.gradle in app directory. apply plugin: ‘com.android.application’ android { // … } dependencies { // … compile ‘com.google.firebase:firebase-core:9.2.0’ compile ‘com.google.firebase:firebase-ads:9.2.0’ } // ADD THIS AT THE BOTTOM apply plugin: ‘com.google.gms.google-services’
  4. Description about Admob is the same as usual.
    https://developers.google.com/mobile-ads-sdk/docs/admob/android/quick-start?hl=ja

So far, “compile ‘com.google.android.gms:play-services:6.+'” has been written in build.gradle. This is changed into “…firebase-ads…”.

I don’t know “Admob + Firebase” for Unity at all.

【References】

https://firebase.google.com/docs/android/setup

https://developers.google.com/mobile-ads-sdk/docs/admob/android/quick-start?hl=ja

http://gigazine.net/news/20160519-firebase/[:]

Categories: memo

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.