Greystripe iPad Banner Ads on AdWhirl
One of AdWhirl's many downsides is limited support for the iPad or tablet devices. House ads are limited to iPhone Portrait (Retina & non-retina), and iPhone Landscape. While AdWhirl will deliver iPad sized ads to the iPad for some networks, the AdWhirl adapter for Greystripe pushes iPhone sized ads to the iPad.
Fortunately, the GSAdEngine.h has defined a set of banner ad sizes that will make it easy for us modify our code to display iPad ads on the iPad.
1. Go into AdWhirlAdapterGreystripe.m
2. Navigate to the - (id)initWithAdWhirlDelegate:... method.
Within the @try block, the current code reads:
3. Change those three lines to this:
Greystripe provides several different ad sizes. I chose the kGSAdSizeIPadLeaderboard for my banner size because it made the most sense in my portrait apps with ads at the bottom. Here are the ad sizes you could substitute: