I have developed my first App which is free of charge ("Aviation DG"), and thus added adWhirl to it. However it seems that I have done something wrong. There are no ads showing at all. (Settings in AdWhirl: 90% iAd / 10% AdMob / 10% for 1 House Ad). I don't see any of them :(
In iAd i have 45 requests 0 impressions, in AdMob i have 152 requests 152 impressions, however they are not showing any ads (at least those people I have asked if they see the ads).
When I tested the app, it showed the Banner iAD Test (or whatever it says, the black banner from apple).
Do you know what I could have done wrong? Or are the things correctly installed and I just dont receive any ads. If so, why is that?
Thanks so much in advance for your help. This might be just a small project at the moment, but I intend to add Ad networks to other apps to and it would be nice to know why it's not working :)
Cheers Ronnie
Following is what I have done in xcode:
Added the folowing frameworks:
iAd / AVFoundation / CoreLocation / AddressBook / AudioToolbox / MapKit / MediaPlayer / MessageUI / QuartzCore / SystemConfiguration / libsqlite3.dylib / libz.dylib
Added the Folder TouchJSON, added the Folder AdWhirl from AdWhirl Ressources.
As I didn't find the Adapter settings as in the instruction PDF, I deleted all networks and have now the following files in the adapters folder:
- AdWhirlAdapterGoogleAdMobAds.h/.m
- AdWhirlAdapterIAd.h/.m
- AdWhirlAdNetworkAdapter.h
Then I aded the AdLibrary from adMob:
- GADBannerView.h
- GADBannerViewDelegate.h
- GADInterstitial.h
- GADInterstitialDelegate.h
- GADRequest.h
- GADRequestError.h
- libGoogleAdMobAds.a
Then I have changed the following part (in AdWhirlView.h), that the ad shows on the bottom of the page:
#define kAdWhirlAppVer 300
#define kAdWhirlViewWidth 320
#define kAdWhirlViewHeight 50
#define kAdWhirlViewDefaultSize \
(CGSizeMake(kAdWhirlViewWidth,
kAdWhirlViewHeight))
#define kAdWhirlViewDefaultFrame \
(CGRectMake(0,(460-
kAdWhirlViewHeight),kAdWhirlViewWidth, kAdWhirlViewHeight))
#define kAdWhirlDefaultConfigURL @"http://mob.adwhirl.com/getInfo.php"
#define kAdWhirlDefaultImpMetricURL @"http://met.adwhirl.com/
exmet.php"
#define kAdWhirlDefaultClickMetricURL @"http://met.adwhirl.com/
exclick.php"
#define kAdWhirlDefaultCustomAdURL @"http://mob.adwhirl.com/
custom.php"
#define kAWMinimumTimeBetweenFreshAdRequests 4.9f
#define kAdWhirlAdRequestTimeout 10
in my view controller .m file I then have this:
#define kSampleAppKey @"x000x00000000x00000x000x0000x000" //the number
of my adwhirl appid
@implementation...
#pragma mark AdWhirlDelegate methods
- (NSString *)adWhirlApplicationKey{
return kSampleAppKey;
}
- (UIViewController *)viewControllerForPresentingModalView{
return self;
}
in the view did load:
AdWhirlView *awView = [AdWhirlView
requestAdWhirlViewWithDelegate:self];
[self.view addSubview:awView];
[super viewDidLoad];
in the viewcontroller .h file:
#import "AdWhirlView.h"
#import "AdWhirlDelegateProtocol.h"
@interface Aviation_DGViewController : UIViewController
<ItemChooserDelegate, InfoDisplayDelegate, AdWhirlDelegate> {