When I call
[GADRequest request];
I get a runtime exception
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[GADTimingManager initWithIdentifier:].
The same code works fine in the example. I have no idea they this might be happening
In the ViewDidLoad I have the following declaration
self.bannerView = [[[GADBannerView alloc] initWithFrame: CGRectMake(0.0, 5.0, 320.0, 50.0)] autorelease];
self.bannerView.adUnitID = AdMobDefaultiPhonePublisherId;
self.bannerView.delegate = self;
[self.bannerView setRootViewController:self];
[self.view addSubview:self.bannerView];
[self.bannerView loadRequest:[self createRequest]];
I then have the following methods
- (GADRequest *)createRequest {
GADRequest *request = [GADRequest request];
return request;
}
and
- (void) adViewDidReceiveAd:(GADBannerView *)view {
}
- (void)adView:(GADBannerView *)view
didFailToReceiveAdWithError:(GADRequestError *)error {
NSLog(@"Failed to receive ad with error: %@", [error localizedFailureReason]);
}