lyspring / adwhirl

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

AdMob support for iOS - Not passing text color correctly #222

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When working with Google AdMob in iOS in the mode of 'Use colors set in client 
code', the text color in client side is not passed correctly from AdWhirl to 
the AdMob SDK. 
Only the background color is passed correctly.
There's a bug in AdWhirlAdapterGoogleAdMobAds.m of dWhirlSDK_iPhone_3.0.0. 
Here's the patch for fixing the bug:

*** /tmp/AdWhirlAdapterGoogleAdMobAds.m.old Tue May 17 17:34:49 2011
--- AdWhirl/adapters/AdWhirlAdapterGoogleAdMobAds.m Tue May 17 17:19:28 2011
***************
*** 79,85 ****
    }

    if ((value = [self delegateValueForSelector:
!                       @selector(adWhirlAdBackgroundColor)])) {
      [additional setObject:[self hexStringFromUIColor:(UIColor *)value]
                     forKey:@"color_text"];
    }
--- 79,85 ----
    }

    if ((value = [self delegateValueForSelector:
!                       @selector(adWhirlTextColor)])) {
      [additional setObject:[self hexStringFromUIColor:(UIColor *)value]
                     forKey:@"color_text"];
    }

Original issue reported on code.google.com by nadav.so...@gmail.com on 17 May 2011 at 2:36