Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 04-16-2011, 03:41 PM   #1 (permalink)
Registered Member
 
Join Date: Apr 2011
Posts: 5
astamana is on a distinguished road
Exclamation Admob Advertisment

hallo

i am quiet new to this forum, so excuse if i have posted it wrong.

now my quiestion, I have build my fist app (jeej) but now I want some ads in it, because its a free app. But when I put the lines of code in my app, from this site,click, i got two errors.

one says at this line of code, it says that my adunit is undecleared.( i put my publisher id in it like this = XXXXXXXXXX)

Code:
// Specify the ad's "unit identifier." This is your AdMob Publisher ID.
  bannerView_.adUnitID = MY_BANNER_UNIT_ID;
and the second thing that goes wrong is at the end of the code, orsomething

Code:
-void dealloc
he says its undeclaerd when i put the code in from admob, but when the code of admob isnt there, there is noting matter with that line of code

can some one help me please?

Theastamana
astamana is offline   Reply With Quote
Old 04-17-2011, 02:59 AM   #2 (permalink)
Registered Member
 
Join Date: Apr 2011
Posts: 5
astamana is on a distinguished road
Default Help?

Can Someone help me how to input The publishers ID?
astamana is offline   Reply With Quote
Old 04-17-2011, 08:17 AM   #3 (permalink)
almostfunnydev
iPhone Dev SDK Supporter
 
rocotilos's Avatar
 
Join Date: Oct 2009
Age: 34
Posts: 3,015
rocotilos is on a distinguished road
Default

You should use the admobdelegate function to input the publisher iD:

Code:
- (NSString *)publisherIdForAd:(AdMobView *)adView {
	return @"xxxxxxxxxxxxx"; // publisher id here
}
rocotilos is offline   Reply With Quote
Old 04-17-2011, 09:25 AM   #4 (permalink)
Registered Member
 
Join Date: Apr 2011
Posts: 5
astamana is on a distinguished road
Default Thanks

Thanks for the anwser, hope it wil work.

Is there anyone who can solve my second problem
(Mayby its sloved with the first solution, I will post it a.s.a.p)
astamana is offline   Reply With Quote
Old 04-17-2011, 10:35 AM   #5 (permalink)
Registered Member
 
Join Date: Apr 2011
Posts: 5
astamana is on a distinguished road
Default

i Have the solution for the first problem, that was @"XXXXXXXXX"

but the second problem remains, someone can help me with thta part?
astamana is offline   Reply With Quote
Reply

Bookmarks

Tags
admob

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 360
14 members and 346 guests
dansparrow, dre, ilmman, LezB44, lorrettaui53, Nobbsy, Objective Zero, oztemel, pbart, samdanielblr, shagor012, sledzeppelin, thephotographer, Trickphotostudios
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,663
Threads: 94,119
Posts: 402,896
Top Poster: BrianSlick (7,990)
Welcome to our newest member, LezB44
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:46 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0