GADSearchRequest

@interface GADSearchRequest : GADRequest

Specifies parameters for search ads.

  • The search ad query.

    Declaration

    Swift

    var query: String! { get set }

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *query;
  • The search ad background color.

    Declaration

    Objective-C

    @property(nonatomic, readonly, copy, GAD_NULLABLE) UIColor *backgroundColor
  • The search ad gradient from color.

    Declaration

    Objective-C

    @property(nonatomic, readonly, copy, GAD_NULLABLE) UIColor *gradientFrom
  • The search ad gradient to color.

    Declaration

    Objective-C

    @property(nonatomic, readonly, copy, GAD_NULLABLE) UIColor *gradientTo
  • The search ad header color.

    Declaration

    Objective-C

    @property(nonatomic, copy, GAD_NULLABLE) UIColor *headerColor
  • The search ad description text color.

    Declaration

    Objective-C

    @property(nonatomic, copy, GAD_NULLABLE) UIColor *descriptionTextColor
  • The search ad anchor text color.

    Declaration

    Objective-C

    @property(nonatomic, copy, GAD_NULLABLE) UIColor *anchorTextColor
  • The search ad text font family.

    Declaration

    Swift

    var fontFamily: String! { get set }

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *fontFamily;
  • The search ad header text size.

    Declaration

    Swift

    var headerTextSize: UInt { get set }

    Objective-C

    @property (assign, readwrite, nonatomic) NSUInteger headerTextSize;
  • The search ad border color.

    Declaration

    Objective-C

    @property(nonatomic, copy, GAD_NULLABLE) UIColor *borderColor
  • The search ad border type.

    Declaration

    Swift

    var borderType: GADSearchBorderType { get set }

    Objective-C

    @property (assign, readwrite, nonatomic) GADSearchBorderType borderType;
  • The search ad border thickness.

    Declaration

    Swift

    var borderThickness: UInt { get set }

    Objective-C

    @property (assign, readwrite, nonatomic) NSUInteger borderThickness;
  • The search ad custom channels.

    Declaration

    Swift

    var customChannels: String! { get set }

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *customChannels;
  • The search ad call button color.

    Declaration

    Swift

    var callButtonColor: GADSearchCallButtonColor { get set }

    Objective-C

    @property (assign, readwrite, nonatomic)
        GADSearchCallButtonColor callButtonColor;
  • A solid background color for rendering the ad. The background of the ad can either be a solid color, or a gradient, which can be specified through setBackgroundGradientFrom:toColor: method. If both solid and gradient background is requested, only the latter is considered.

    Declaration

    Swift

    func setBackgroundSolid(_ color: Any!)

    Objective-C

    - (void)setBackgroundSolid:(id)color;
  • A linear gradient background color for rendering the ad. The background of the ad can either be a linear gradient, or a solid color, which can be specified through setBackgroundSolid method. If both solid and gradient background is requested, only the latter is considered.

    Declaration

    Swift

    func setBackgroundGradientFrom(_ from: Any!, toColor: Any!)

    Objective-C

    - (void)setBackgroundGradientFrom:(id)from toColor:(id)toColor;