I implemented Adwhirl into my new universal app. And was able to get the admob adapter running for Ipad... With help form this great answer...
Now I am stuck implementing InMobi.
I try to change the get ad function but it does not seem to work for me:
IMAdView *inMobiView;
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
{
CGRect adFrame;
adFrame.size = CGSizeMake(728,90);
inMobiView = [[IMAdView alloc]
initWithFrame:adFrame
imAppId:[self siteId]
imAdUnit:IM_UNIT_728x90
rootViewController:[self rootViewControllerForAd]];
} else {
inMobiView = [[IMAdView alloc]
initWithFrame:kAdWhirlViewDefaultFrame
imAppId:[self siteId]
imAdUnit:IM_UNIT_320x50
rootViewController:[self rootViewControllerForAd]];
}
inMobiView.refreshInterval = REFRESH_INTERVAL_OFF;
inMobiView.delegate = self;
self.adNetworkView = [inMobiView autorelease];
Can you see what I am doing wrong?
Thank you very much for your help.
Greetings
Anselm