Hey folks,
I have successfully integrated adwhirl into my project, and it works fine on my iPhone, displaying correctly.
However, on the iPad, the ad banner is simply in the top left corner, at the wrong size.
I followed instructions, and the view controller.m file has this;
Code:
- (NSString *)adWhirlApplicationKey {
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
{
return @"iPhone SDK Key for Adwhirl";
}
else
{
return @"iPad SDK Key for Adwhirl";
}
But still it displays the wrong banner size.
In the adwhirladaptoradmobads.m file I have;
Code:
- (void)getAd {
//Request the right size ad for your device
CGSize adSize = GAD_SIZE_320x50;
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
adSize = GAD_SIZE_728x90;
CGRect adFrame = CGRectMake(0, 0, adSize.width, adSize.height);
GADRequest *request = [GADRequest request];
NSObject *value;
Surely this should be making the iPad display @ 728x90?
Any ideas? :/