Discussion Forums  >  Uncategorized

Replies: 5    Views: 347

simoblu
Android Fan
Profile
Posts: 5
Reg: Jan 26, 2012
location unknow...
50
01/26/12 02:45 AM (14 years ago)

BT 2.0 How integrate AdMob ver. 4.3.1 Eclipse Help

Hi Everybody, I have a problem to insert a simple adMob BANNER in screen_htmldoc.xml. I read the following post: http://www.buzztouch.com/forum/thread.php?tid=7F471EA76C7B84C2AC2B8EE&status=&searchInput=admob%204.3.1&sortColumn=FT.dateStampUTC&sortUpDown=DESC¤tPage=1&doViews=1 But Nothing. Here the code in <com.google.ads.AdView android:layout_height=wrap_content android:id=@+id/adView android:layout_width=wrap_content ads:adUnitId=MY_ID ads:adSize=BANNER ads:loadAdOnCreate=true android:layout_alignParentBottom=true> </com.google.ads.AdView>
 
simoblu
Android Fan
Profile
Posts: 5
Reg: Jan 26, 2012
location unknow...
50
like
01/26/12 02:50 AM (14 years ago)
In the manifest: <activity android:name=com.google.ads.AdActivity android:configChanges=keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|></activity> If i delete in the configchange screenLayout|uiMode|screenSize|smallestScreenSize the banner appears in the View with the famous error: “You must have AdActivity declared in AndroidManifest.xml with configChanges.” while if the configchange has all parameter the banner does not appear. The project has Android 3.2 like builder default properties: target=android-13 min SDK in manifest: 8 I test the app in a Tablet 10.1 but nothing the banner does not appear in the View. Someone can help me? Really thanks to everybody Simo
 
Zelazny
Android Fan
Profile
Posts: 6
Reg: Jan 05, 2012
London
60
like
01/26/12 03:59 AM (14 years ago)
I've just done this for one of my apps, and it took a lot of trial and error before I could get them appearing in the right place consistently. I found that there was a tendency for the Buzztouch UI elements to appear over the top of the ads, meaning that although they were being requested and displayed (according to admob) nothing appeared on screen. Could this be your problem?
 
simoblu
Android Fan
Profile
Posts: 5
Reg: Jan 26, 2012
location unknow...
50
like
01/26/12 11:04 AM (14 years ago)
Simply True.Problem solved using the following simple alignment in xml: android:layout_alignParentTop=true Yes BT UI cover the ads BANNER. Really thanks Simo
 
simoblu
Android Fan
Profile
Posts: 5
Reg: Jan 26, 2012
location unknow...
50
like
01/26/12 11:33 AM (14 years ago)
Nothing!!!!!!!!!!!!! I do not understand where is it the error. Before adding alignParentTop parameter it was ok, after nothing again without BANNER :( It should be easy but nothing....somebody help me please.... <?xml version=1.0 encoding=UTF-8?> <RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android xmlns:ads=http://schemas.android.com/apk/lib/com.google.ads android:id=@+id/containerView android:background=@android:color/transparent android:layout_width=fill_parent android:layout_height=wrap_content> <LinearLayout android:id=@+id/subContainer android:layout_width=fill_parent android:layout_height=fill_parent android:layout_alignParentTop=true android:gravity=center_horizontal android:orientation=vertical > <com.google.ads.AdView android:id=@+id/adView android:layout_width=wrap_content android:layout_height=wrap_content ads:adSize=BANNER ads:adUnitId=MY_ID ads:loadAdOnCreate=true > </com.google.ads.AdView> <WebView xmlns:android=http://schemas.android.com/apk/res/android android:id=@+id/webView android:layout_width=fill_parent android:layout_height=529dp /> </LinearLayout> </RelativeLayout>
 
ASusoeff
Aspiring developer
Profile
Posts: 296
Reg: Aug 13, 2011
Bryant, AR
13,460
like
03/12/12 05:55 AM (13 years ago)
if you solved the problem Zelanzy, will you show us how to do it? either here or perhaps make a tutorial for us?
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.