GADSearchRequest.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. //
  2. // GADSearchRequest.h
  3. // Google Mobile Ads SDK
  4. //
  5. // Copyright 2011 Google Inc. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import <UIKit/UIKit.h>
  9. #import "GADRequest.h"
  10. /// Search ad border types.
  11. typedef NS_ENUM(NSUInteger, GADSearchBorderType) {
  12. kGADSearchBorderTypeNone,
  13. kGADSearchBorderTypeDashed,
  14. kGADSearchBorderTypeDotted,
  15. kGADSearchBorderTypeSolid
  16. };
  17. typedef NS_ENUM(NSUInteger, GADSearchCallButtonColor) {
  18. kGADSearchCallButtonLight,
  19. kGADSearchCallButtonMedium,
  20. kGADSearchCallButtonDark
  21. };
  22. // Specifies parameters for search ads.
  23. @interface GADSearchRequest : GADRequest
  24. @property(nonatomic, copy) NSString *query;
  25. @property(nonatomic, copy, readonly) UIColor *backgroundColor;
  26. @property(nonatomic, copy, readonly) UIColor *gradientFrom;
  27. @property(nonatomic, copy, readonly) UIColor *gradientTo;
  28. @property(nonatomic, copy) UIColor *headerColor;
  29. @property(nonatomic, copy) UIColor *descriptionTextColor;
  30. @property(nonatomic, copy) UIColor *anchorTextColor;
  31. @property(nonatomic, copy) NSString *fontFamily;
  32. @property(nonatomic, assign) NSUInteger headerTextSize;
  33. @property(nonatomic, copy) UIColor *borderColor;
  34. @property(nonatomic, assign) GADSearchBorderType borderType;
  35. @property(nonatomic, assign) NSUInteger borderThickness;
  36. @property(nonatomic, copy) NSString *customChannels;
  37. @property(nonatomic, assign) GADSearchCallButtonColor callButtonColor;
  38. // A solid background color for rendering the ad. The background of the ad
  39. // can either be a solid color, or a gradient, which can be specified through
  40. // setBackgroundGradientFrom:toColor: method. If both solid and gradient
  41. // background is requested, only the latter is considered.
  42. - (void)setBackgroundSolid:(UIColor *)color;
  43. // A linear gradient background color for rendering the ad. The background of
  44. // the ad can either be a linear gradient, or a solid color, which can be
  45. // specified through setBackgroundSolid method. If both solid and gradient
  46. // background is requested, only the latter is considered.
  47. - (void)setBackgroundGradientFrom:(UIColor *)from toColor:(UIColor *)toColor;
  48. @end