AdMob integration on iPhone app? - iphone

I want to show advertisement through AdMob. I got AdMob SDK from google document. But, i just confused that to get Publisher id. I read some blogs include google document, gave a way to get publisher id Link is http://www.admob.com/my_sites/.. But, now my iphone application is in developing stage, how do i know my app stoer link? Then how can i get Publisher id? and Where i can give advertise for AdMob? How can i test AdMob in iPhone Simulator and Device? I got a sample code from google site Link is http://code.google.com/mobile/ads/docs/ios/intermediate.html#testdevices. They gave a sample code,
GADRequest *request = [GADRequest request]; request.testDevices = [NSArray arrayWithObjects:
GAD_SIMULATOR_ID, // Simulator
#"28ab37c3902621dd572509110745071f0101b124", // Test iPhone 3G 3.0.1
#"8cf09e81ef3ec5418c3450f7954e0e95db8ab200", // Test iPod 4.3.1
nil];
i implement this code in my app error through like 'testDevices' something structure or union.. Can you please help me friends... Thanks to spent your valuable time with me..
Please help me friends....

I solved my AdMob problem. I got my publisher id by this way
Login your AdMob account
Go to Sites&Apps.
View your sites given below, which are developed by you.
Just move curser to the app or site, two boxes will show named as Reporting and Manage Settings.
Hit Manage Settings and view your Publisher id there.
Note: Your iphone or iPad name and your admob app name should be same. Then AdMob will run on simulator also.

Related

AdWhril adds not displaying and even not posting to twitter when upload to app store

i have implemented AdWhirl in my app and when i create build in xcode and install on my iphone then adds are showing perfectly but when i download the app from the app store then adds not receiving.
i have another issue relate to twitter and that is when i have post to twitter using TWTweetComposerViewController and posting to twitter is perfectly fine but when i try to post from my app downloading from AppStore then it shows error Cannot send tweet
i got the answer the problem was that in adwhirl app configration there was setting for Google Admob and iAd but here was not sdk for Google Ad Mob in my app bundle. when i add ad mob sdk to my app then it works perfectly fine.
and in twitter i have dismissed twitter controller twice in my code so there might be reason for not working well but when i deleted one dismiss statement then it works fine now.

Admob interstitial ads not working in ios6

I am using the latest admob SDK(V 6.2.1) for ios. Ads are not shown on ios6 and gives an error Request Error: No ad to show.
This happens only on ios 6 even if test mode is set to YES or NO. Ads are working fine on versions lower than ios6. Is there any solution for this?
Test mode doesn't work on iOS 6 devices as per this forum post.
If you want to get test ads to show up, you will have to use testDevices and pass in the ID you get from the AdSupport library (instructions here).
If you want to test your ad click flow though I'd take the forum post's suggestion and create a house ad campaign fully allocated to a test publisher ID, and use the test publisher ID into your applications to test.

Getting facebook Events list Using ios sdk

I am new to ios development. I want to integrate facebook for my ipad app and then i want to get the list of events. how do i get the events list.
Thanks in advance.
Raja
You'll probably want to start here. It details the Facebook SDK for iOS and has a reasonable amount of sample code to get you started.

How to get Real Ads by Admob into iphone

I am getting the Test Ads everytime in my iphone from Admob Service.
I want to get the real Ads.
I have tried the following but doesn't seem to work.
-(BOOL)useTestAd
{
return NO;
}
I have ios SDk 4.2 in my Mac.
How can I get real Ads?
Thanks.
First of all you need to have an Account in the Admob site.
Then you need create(register) an App in your account. Then you will get a publisher id.
you have to use that publisher id in the code at some place in the Admob sdk file or some where else.
Then you will get the real ads.
All the best.
Regards,
Satya

AdMob Iphone SDK Integration

I don't have any Application in the App Store. With the URL of my friend who has an application in the App store i have registered in Admob and Got the Iphone SDK.
I have integrated that SDK into my application. It was Successfully integrated but it is Displaying the "Iphone Test Web App" every time when iam Running the application.
It is not displaying the other Ads from the network.
I have guiven My UDID also in the code.
Please Help me.
You shoud set "test" to false to receive adds