farhan678 / adwhirl

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

Reported size of banner is not always correct, reults in cutt-off advertisement #114

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set NSLog reports on callbacks to AdWhirl
2. Run product with custom, iAd, GreyStripe (custom is only in backup)
3. After a short while, AdWhirl starts losing ads and then gets confused on the 
size of the current add.

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

Expected- always have the correct add size reported & filled content when 
callback says an add is posted.

What I am getting- 

Portrait mode is easiest to see- it had iAd posted then got callback sent to 
'adWhirlDidFailToReceiveAd' reporting:

"Failed to receive ad from iad, will use backup. Error: no error"

The backup add was a custom add with height of 50 pixels but when I called 
[banner actualAdSize] it reported a height of 32 pixels (from the iAd which 
failed). When this happens my custom add (which is displayed) has the bottom 18 
pixels cut off because my program is being told the wrong size. I have seen a 
similar output with GreyStripe adds being cut off.

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

iPhone iOS 4.1, AdWhirl 2.6.0

Please provide any additional information below.

Typical sequence leading up to failure (ResizeAddBanner is called after each 
callback form AdWhirl)-

0x1407d0 MainViewController.m:(111)> adWhirlDidReceiveAd: Network name: custom
<0x1407d0 MainViewController.m:(213)> ResizeAddBanner: Network name: custom
<0x1407d0 MainViewController.m:(163)> adWhirlDidAnimateToNewAdIn: Network name: 
custom
** FAILURE HAPPEN HERE ***>
<0x1407d0 MainViewController.m:(213)> ResizeAddBanner: Network name: custom
<0x1407d0 MainViewController.m:(213)> ResizeAddBanner: Network name: iad
<0x1407d0 MainViewController.m:(163)> adWhirlDidAnimateToNewAdIn: Network name: 
iad
<0x1407d0 MainViewController.m:(213)> ResizeAddBanner: Network name: iad
2010-10-01 11:14:39.865 foo [1916:307] Stored pending Adapters for network type 
19 is different from the one sending the adapter callback
<0x1407d0 MainViewController.m:(140)> Failed to receive ad from iad, will use 
backup. Error: no error
<0x1407d0 MainViewController.m:(213)> ResizeAddBanner: Network name: iad

Often leading to this sequence showing lost iAd advertisements-

0x1407d0 MainViewController.m:(213)> ResizeAddBanner: Network name: custom
<0x1407d0 MainViewController.m:(140)> Failed to receive ad from iad, will use 
backup. Error: no error
<0x1407d0 MainViewController.m:(213)> ResizeAddBanner: Network name: iad
<0x1407d0 MainViewController.m:(111)> adWhirlDidReceiveAd: Network name: custom
<0x1407d0 MainViewController.m:(213)> ResizeAddBanner: Network name: custom
<0x1407d0 MainViewController.m:(163)> adWhirlDidAnimateToNewAdIn: Network name: 
custom

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

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago

Original comment by fch...@google.com on 20 Oct 2010 at 12:14