GADSearchRequest

@interface GADSearchRequest : GADRequest

Specifies parameters for search ads.

  • The search ad query.

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    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

    Objective-C

    - (void)setBackgroundSolid:(nonnull UIColor *)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

    Objective-C

    - (void)setBackgroundGradientFrom:(nonnull UIColor *)from
                              toColor:(nonnull UIColor *)toColor;