DFP for IOS "No ads display"

156 views
Skip to first unread message

rahul jain

unread,
May 21, 2012, 1:19:26 PM5/21/12
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.

Marijana Karin

unread,
May 21, 2012, 3:44:31 PM5/21/12
to google-doubleclick...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages