problem with code admob game

Discussion in 'Android Tech Support' started by mohaarar, Nov 11, 2014.

?

what the problem ?

  1. 2 ads in same time

    0 vote(s)
    0.0%
  2. problem in AD_INTERSTITIAL_UNIT

    0 vote(s)
    0.0%
  1. mohaarar

    mohaarar New Member

    Joined:
    Nov 1, 2014
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    Current Phone Model:
    galxy
    hello

    i have problem with admob game

    112.png

    this AD_INTERSTITIAL_UNIT_ID Not show he show message field

    Code:
    import com.google.android.gms.ads.AdListener;
    import com.google.android.gms.ads.AdRequest;
    import com.google.android.gms.ads.AdSize;
    import com.google.android.gms.ads.AdView;
    import com.google.android.gms.ads.InterstitialAd;
    import com.mohaapp.layers.CCScene;
    import com.mohaapp.nodes.CCDirector;
    import com.mohaapp.opengl.CCGLSurfaceView;
    
    import android.app.Activity;
    import android.content.SharedPreferences;
    import android.media.MediaPlayer;
    import android.os.Bundle;
    import android.support.v4.view.ViewPager.LayoutParams;
    import android.util.DisplayMetrics;
    import android.view.KeyEvent;
    import android.widget.RelativeLayout;
    import android.widget.Toast;
    
    public class MainActivity extends Activity {
       
        private CCGLSurfaceView mGLSurfaceView;
    
        //<!-- Admob Ads Using Google Play Services SDK -->
        private static final String AD_UNIT_ID = "ca-app-pub-1141613635835332/7968365003";
        private static final String AD_INTERSTITIAL_UNIT_ID = "ca-app-pub-1141613635835332/7968365003";
       
    
        /** The Admob ad. */
        private InterstitialAd interstitialAd = null;
        public AdView adView = null;
    
        public static MainActivity app;
       
        public void onCreate(Bundle savedInstanceState)
        {
            app = this;
           
            super.onCreate(savedInstanceState);
                   
            // set view
            mGLSurfaceView = new CCGLSurfaceView(this);
           
            
    i now this 2 admob The same advertising but this to show you what a problem

    and the AD_UNIT_ID not show after add admob code AD_INTERSTITIAL_UNIT_ID = "ca-app-pub-1141613635835332/7968365003";