Android Question Firebase Admob Test ID sample source

Discussion in 'Android Questions' started by NamDongKyun, Jun 26, 2019.

  1. NamDongKyun

    NamDongKyun Member Licensed User

    I am a beginner to try b4a and Android programming for the first time.

    The current b4a version is 9.01.2.

    Information about admob is scattered all over the place and I have difficulty understanding it.

    Can I get a complete sample source of firebase admob using test id?
     
  2. sorex

    sorex Expert Licensed User

    to prevent accidental clicks during (debug mode) development I use it like this
    (placed at the top in the variables so that I don't need to touch the rest of the class source when using it in another project)

    Code:
    #if debug
     Dim admobInterstitialID As String="ca-app-pub-3940256099942544/1033173712" 'test ID
    #else
        Dim admobInterstitialID As String="ca-app-pub-.../..." 'your interstitial placement id
    #end if
    the rest can be found in Erel's example.
     
    Erel likes this.
  3. NamDongKyun

    NamDongKyun Member Licensed User

    Thank you.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice