Discussion Forums  >  Uncategorized

Replies: 3    Views: 367

mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
11/09/11 12:27 PM (14 years ago)

How can I add ads to my android apps?

How can I add ads to my android apps? Edit: Thank you so much for the comments. I have been able to add advertisements to my android apps using the awesome guides available in the How To's section of buzztouch!
 
gereghas
Aspiring developer
Profile
Posts: 45
Reg: May 14, 2011
Oklahoma
1,250
like
11/09/11 01:28 PM (14 years ago)
Adding admob to version 1.5 is no harder than version 1.4. All the steps are still the same and is required to be done in Eclipse until the Buzztouch team can make a deal with advertising companies to include the code in Buzztouch. I agree that the steps are tedious to perform because I worked on it for over 8 hours before I got it to work. I then wrote my guide based on what I done to achieve ads in my application. The guide is by no means a set in stone how to do it, but it works. You can find my guide at the address below. http://tipstricksandhacks.blogspot.com/2011/06/how-to-add-admob-ads-to-your-buzztouch.html
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
11/10/11 09:36 AM (14 years ago)
I will check it out again! Thanks for the response, David.
 
Yash Kumar
buzztouch Evangelist
Profile
Posts: 66
Reg: Jan 29, 2012
Jharkhand
660
like
03/26/12 01:19 AM (13 years ago)
I have Followed below steps to adding Admobs in 1.5 !! Step 1. Download the Admob sdk then In eclipse, right click on the project name and select Properties. Select Java Build Path on the left and then make sure the Libraries tab is selected at the top. Then click Add External JARS... on the right side of the window. Navigate to where you saved the unzipped AdMob sdk and select the .jar file. Step 2. Added These two Line in AndroidManifest.xml before the closing application tag ..................................................... <activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/> ..................................................... Step 3. Modify your screen_menulist.xml ..................................................... <com.google.ads.AdView android:layout_height="wrap_content" android:id="@+id/adView" android:layout_width="wrap_content" ads:adUnitId="Your ADD MOB ID" ads:adSize="BANNER" ads:loadAdOnCreate="true" android:layout_alignParentBottom="true"> </com.google.ads.AdView> </RelativeLayout> .................................................... Note :- Don't Forget to Add xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads" After <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" .................................................... My :- screen_customhtml.xml .................................................... <?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="fill_parent"> <LinearLayout android:id="@+id/subContainer" android:layout_height="fill_parent" android:layout_width="fill_parent" android:gravity="center_horizontal" android:orientation="vertical"> <com.google.ads.AdView android:layout_height="wrap_content" android:id="@+id/adView" android:layout_width="wrap_content" ads:adUnitId="Your ADD MOB ID" ads:adSize="BANNER" ads:loadAdOnCreate="true" android:layout_alignParentBottom="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="fill_parent"> </WebView> </LinearLayout> <com.google.ads.AdView android:layout_height="wrap_content" android:id="@+id/adView" android:layout_width="wrap_content" ads:adUnitId="Your ADD MOB ID" ads:adSize="BANNER" ads:loadAdOnCreate="true" android:layout_alignParentBottom="true"> </com.google.ads.AdView> </RelativeLayout> .......................................................
 

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.