Android Question Need help with Chartboost and Admob using MoPub

Discussion in 'Android Questions' started by Chris_MobileApp, Mar 4, 2015.

  1. Chris_MobileApp

    Chris_MobileApp Member Licensed User

    HI all...Its my first time using B4A.I am facing this problem. Please help.Would really appreciate.
    I have followed the guide (pdf file) to integrate mopub. I want Admob banner and Chartboost Interstetial in my game. Can some please help with this?(I have uncomment the chartboost from xml file as given in pdf file)
    Below is my manifest..

    Code:
    AddManifestText(
    <uses-sdk android:minSdkVersion=
    "4" android:targetSdkVersion="19" />
    <uses-permission android:name=
    "android.permission.WRITE_EXTERNAL_STORAGE" />
    <supports-screens android:largeScreens=
    "true"
        android:normalScreens=
    "true"
        android:smallScreens=
    "true"
        android:anyDensity=
    "true"/>)
    SetApplicationAttribute(android:icon, 
    "@drawable/icon")
    SetApplicationAttribute(android:
    label"$LABEL$")
    'End of default text.

    'AdMob
    AddApplicationText(<!-- MoPub -->
    <
    activity android:name="com.mopub.mobileads.MoPubActivity"
    android:configChanges=
    "keyboardHidden|orientation"/>
    <
    activity android:name="com.mopub.mobileads.MraidActivity"
    android:configChanges=
    "keyboardHidden|orientation"/>
    <
    activity android:name="com.mopub.common.MoPubBrowser"
    android:configChanges=
    "keyboardHidden|orientation"/>
    <
    activity android:name="com.mopub.mobileads.MraidVideoPlayerActivity"
    android:configChanges=
    "keyboardHidden|orientation"/>
    <!-- Google Play Services -->
    <meta-data android:name=
    "com.google.android.gms.version"
    android:value=
    "[USER=21225]@Integer[/USER]/google_play_services_version" />
    <!-- AdMob -->
    <
    activity android:name="com.google.android.gms.ads.AdActivity"
    android:configChanges=
    "keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
    )
    'AddApplicationText(<activity android:name="com.google.ads.AdActivity")
    'AddApplicationText(android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|smallestScreenSize|screenSize"/>)
    'AddApplicationText(
    ')
    'End of AdMob



    And here below is my script in game.


    Code:
    ads.AdMob_Test
        ads.InitializeMopub_Banner(
    "banner""mopub_banner")
        ads.InitializeMopub_Interstitial(
    "interstitial""YOUR_MOPUB_INTERSTITIAL_ID")
        
    Activity.AddView (ads, 00320dip50dip)
        ads.LoadMopub_Banner

        ads.PreloadMopub_Interstitial
    Where to add chartboost and admob ids? Any help would be really appreciated.I know I have to use ads.ShowMopub_Interstitial for showing add where i want.
     
    Last edited: Mar 4, 2015
  2. DonManfred

    DonManfred Expert Licensed User

    Please use code tags when posting code or manifest-data
     
  3. Chris_MobileApp

    Chris_MobileApp Member Licensed User

    Whats that?
     
  4. DonManfred

    DonManfred Expert Licensed User

    [​IMG]
    [​IMG]
    [​IMG]
     
  5. Chris_MobileApp

    Chris_MobileApp Member Licensed User

    Thanks....Hope someone could help me now
     
  6. DonManfred

    DonManfred Expert Licensed User

    I cant help here, sorry.
    But for ALL it is better to see a thread with correctly used code-tags instead of plainposts. ;-)
    Thank you for updating your post
     
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