C Chris_MobileApp Member Licensed User Longtime User Mar 4, 2015 #1 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, 0, 0, 320dip, 50dip) 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
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, 0, 0, 320dip, 50dip) 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.
DonManfred Expert Licensed User Longtime User Mar 4, 2015 #2 Please use code tags when posting code or manifest-data Upvote 0
C Chris_MobileApp Member Licensed User Longtime User Mar 4, 2015 #3 DonManfred said: Please use code tags when posting code or manifest-data Click to expand... Whats that? Upvote 0
DonManfred said: Please use code tags when posting code or manifest-data Click to expand... Whats that?
DonManfred Expert Licensed User Longtime User Mar 4, 2015 #4 Chris_MobileApp said: Whats that? Click to expand... Upvote 0
C Chris_MobileApp Member Licensed User Longtime User Mar 4, 2015 #5 DonManfred said: Click to expand... Thanks....Hope someone could help me now Upvote 0
DonManfred Expert Licensed User Longtime User Mar 4, 2015 #6 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 Upvote 0
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