Ads to my app.

Put your problem here if it does not fit any of the other categories.

Ads to my app.

Postby wahid2oo9 » Sun Jan 02, 2011 5:38 am

I created a account with adsense and admob. But I'm not sure how to get the code and put it in my app.

it's giving me instructions to read but so confusing. hmm...
anyone know how to add a ad to a app step by step Please?


Thanks
Wahid
wahid2oo9
Developer
Developer
 
Posts: 36
Joined: Fri Dec 31, 2010 7:07 am

Top

Re: Ads to my app.

Postby Skiller » Sun Jan 02, 2011 6:05 am

I watched a Google I/O 2010 vid on youtube that showed how to do this step by step (including showing the source code), as well as a few other things. Here's the link:
http://www.youtube.com/watch?v=Vt4zylvgGjw
Skiller
Developer
Developer
 
Posts: 33
Joined: Sun Nov 28, 2010 8:35 pm
Location: Australia

Re: Ads to my app.

Postby wahid2oo9 » Sun Jan 02, 2011 6:21 am

Thanks I'll check it out. :D
wahid2oo9
Developer
Developer
 
Posts: 36
Joined: Fri Dec 31, 2010 7:07 am

Re: Ads to my app.

Postby wahid2oo9 » Tue Jan 04, 2011 8:41 am

OK im kinda so lost!

I done everything what it says on the Android admob sdk instructions...
and on Step 4 – Editing Your Layout.
I get an error in my layout.xml when i add this:
<com.admob.android.ads.AdView
android:id="@+id/ad"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
myapp:backgroundColor="#000000"
myapp:primaryTextColor="#FFFFFF"
myapp:secondaryTextColor="#CCCCCC"
/>

it has a X on the line <com.admob.android.ads.AdView
it says error: Error parsing XML: unbound prefix
wahid2oo9
Developer
Developer
 
Posts: 36
Joined: Fri Dec 31, 2010 7:07 am

Re: Ads to my app.

Postby wahid2oo9 » Tue Jan 04, 2011 9:25 am

dw bout it. i canceled my whole account with admob its so annoying!
wahid2oo9
Developer
Developer
 
Posts: 36
Joined: Fri Dec 31, 2010 7:07 am

Re: Ads to my app.

Postby blundell » Tue Jan 04, 2011 3:52 pm

Did you have the admob jar attached as a library?

Did you have attrs.xml defined in your /res/values/ folder?
User avatar
blundell
Master Developer
Master Developer
 
Posts: 1610
Joined: Tue Nov 18, 2008 12:58 pm
Location: UK

Top

Re: Ads to my app.

Postby rHalf » Tue Jan 18, 2011 5:20 pm

I'm unfamiliar with this as well. Are ads on phones like ads on web? In other words are they pay-per-click or pay-per-view?

It seems like no one would click on an ad in a phone unless it's "poorly" placed on the screen.
rHalf
Junior Developer
Junior Developer
 
Posts: 16
Joined: Sun Dec 20, 2009 1:54 am

Re: Ads to my app.

Postby blundell » Tue Jan 18, 2011 10:13 pm

Both, pay per view and per click, you'd be suprised how many clicks you get
User avatar
blundell
Master Developer
Master Developer
 
Posts: 1610
Joined: Tue Nov 18, 2008 12:58 pm
Location: UK

Re: Ads to my app.

Postby wahid2oo9 » Wed Jan 26, 2011 9:15 am

ok i got admob again.
I just need help, went through the setup, did everything it told me, but ad isn't showing?
can anyone tell me wat to do again step by step? PLEASE?
I have a app that when you touch the screen it makes a sound,
i want the ad to pop up when it first opens
wahid2oo9
Developer
Developer
 
Posts: 36
Joined: Fri Dec 31, 2010 7:07 am

Re: Ads to my app.

Postby wahid2oo9 » Thu Jan 27, 2011 7:18 am

dw got it working :)
wahid2oo9
Developer
Developer
 
Posts: 36
Joined: Fri Dec 31, 2010 7:07 am

Re: Ads to my app.

Postby wahid2oo9 » Thu Jan 27, 2011 8:34 am

just wondering if anyone had this simular problem.

when the ad loads, and a update is updated on the market to the apk the ad doesnt show?
wahid2oo9
Developer
Developer
 
Posts: 36
Joined: Fri Dec 31, 2010 7:07 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 23 guests