rahul jain
unread,May 21, 2012, 1:19:26 PM5/21/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google's DoubleClick for Publishers API Forum
Hello
I face lot of problem to implement DFP for IOS user. I have
implemented the code as follows-
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Urban Airship Register for alert notifications
[window addSubview:navigationController.view];
[window makeKeyAndVisible];
[application
registerForRemoteNotificationTypes:UIRemoteNotificationTypeAlert];
GADInterstitial *splashInterstitial_ = [[GADInterstitial alloc]
init];
[splashInterstitial_ loadAndDisplayRequest:[GADRequest request]
usingWindow:window
initialImage:[UIImage
imageNamed:@"Default.png"]];
}
In this an error display "Request error: No ads to show".
In another class i am showing banner ad (320,50) then no ad display ,
and no error was displaying .
When i use admob unit id in stead of DFP ad unit id them admob display
properly. I have implemented all necessary framework.
Code for banner-
#define MY_BANNER_UNIT_ID @"/1014189/iOS_App"
-(void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
//[self refreshEvents:nil];
GADBannerView *adBannerView = [[GADBannerView alloc]
initWithFrame:CGRectMake(0,317,GAD_SIZE_320x50.width,
GAD_SIZE_320x50.height)];
// Specify the ad's "unit identifier." This is your AdMob
Publisher ID.
adBannerView.adUnitID = MY_BANNER_UNIT_ID;
[self.view addSubview:adBannerView];
appDelegate.adBannerView.rootViewController = self;
//appDelegate.adBannerView.delegate = self;
GADRequest *gadRequest = [GADRequest request];//[[GADRequest
alloc] init];
gadRequest.testing = NO;
[adBannerView loadRequest:gadRequest];
}
Please provide me proper step to resolve this problem.