farhan678 / adwhirl

Automatically exported from code.google.com/p/adwhirl
0 stars 0 forks source link

Supplied add banner is sometimes empty #115

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Using custom, iAd, GreyStripe advertisers (custom is backup only)
2. Insert callback messages to report on what AdWhirl is calling back into
3. Run product for a while

What is the expected output? What do you see instead?

EXPECTED: Whenever an add is reported then there should be something in the 
banner.

GET: Occasional empty banners posted even though AdWhirl is reporting that it 
has a banner in backup.

What version of the product are you using? On what operating system?

iOS 4.1  AdWhirl 2.6.0

Please provide any additional information below.

I am setting a visibility flag so I know when the banner is visible based on 
these callbacks-
1) adWhirlDidReceiveAd -> add is visible
2) adWhirlDidFailToReceiveAd -> visibility is equal to 'usingBackup' arg
3) adWhirlDidAnimateToNewAdIn -> Visible
4) adWhirlReceivedNotificationAdsAreOff -> Adds are off (not visible)
5) bannerViewDidLoadAd -> Visible (iAd only)
6) dealloc -> Not visible

Message callback-

**** START EXECUTION ***

<0x62124f0 FlipsideViewController.m:(209)> ResizeAddBanner: Network name: (null)
<0x62124f0 FlipsideViewController.m:(130)> adWhirlDidFailToReceiveAd: Network 
name: greystripe
<0x62124f0 FlipsideViewController.m:(209)> ResizeAddBanner: Network name: 
greystripe
<0x62124f0 FlipsideViewController.m:(142)> Failed to receive ad from 
greystripe, will use backup. Error: no error

*** NO ADD IS SHOWN HERE (empty view box) ***

<0x62124f0 FlipsideViewController.m:(209)> ResizeAddBanner: Network name: iad
<0x62124f0 FlipsideViewController.m:(106)> adWhirlDidReceiveAd: Network name: 
greystripe
<0x62124f0 FlipsideViewController.m:(209)> ResizeAddBanner: Network name: 
greystripe

*** GreyStripe ADD IS NOW VISIBLE AFTER 30 SECOND WAIT FOR NEW ADD ***

<0x62124f0 FlipsideViewController.m:(159)> adWhirlDidAnimateToNewAdIn: Network 
name: greystripe
<0x62124f0 FlipsideViewController.m:(209)> ResizeAddBanner: Network name: 
greystripe

Original issue reported on code.google.com by Geb...@gmail.com on 1 Oct 2010 at 7:25

GoogleCodeExporter commented 9 years ago
It's possible that in development, iAd is deliberately giving you a timeout, 
making you wait for an ad until the refresh timer kicks in and requests 
greystripe. That's probably what's going on at the point where "NO ADD IS SHOWN 
HERE." I'd say it's normal, it's just the ad request is going on and the 
AdWhirlView haven't gotten the ad back. I'm going to mark this as invalid 
unless you have more information. You can turn on AdWhirl debug logging by 
importing "AdWhirlLog.h" in your app delegate, and call this the first thing in 
applicationDidFinishLaunching:

AWLogSetLogLevel(AWLogLevelDebug);

Original comment by nigelc...@google.com on 7 Oct 2010 at 12:42