GoogleMobileAds Framework Reference

GADSearchRequest

class GADSearchRequest : GADRequest

Specifies parameters for search ads.

  • The search ad query.

    Declaration

    Swift

    var query: String? { get set }
  • The search ad background color.

    Declaration

    Swift

    @NSCopying var backgroundColor: UIColor? { get }
  • The search ad gradient from color.

    Declaration

    Swift

    @NSCopying var gradientFrom: UIColor? { get }
  • The search ad gradient to color.

    Declaration

    Swift

    @NSCopying var gradientTo: UIColor? { get }
  • The search ad header color.

    Declaration

    Swift

    @NSCopying var headerColor: UIColor? { get set }
  • The search ad description text color.

    Declaration

    Swift

    @NSCopying var descriptionTextColor: UIColor? { get set }
  • The search ad anchor text color.

    Declaration

    Swift

    @NSCopying var anchorTextColor: UIColor? { get set }
  • The search ad text font family.

    Declaration

    Swift

    var fontFamily: String? { get set }
  • The search ad header text size.

    Declaration

    Swift

    var headerTextSize: UInt { get set }
  • The search ad border color.

    Declaration

    Swift

    @NSCopying var borderColor: UIColor? { get set }
  • The search ad border type.

    Declaration

    Swift

    var borderType: GADSearchBorderType { get set }
  • The search ad border thickness.

    Declaration

    Swift

    var borderThickness: UInt { get set }
  • The search ad custom channels.

    Declaration

    Swift

    var customChannels: String? { get set }
  • The search ad call button color.

    Declaration

    Swift

    var callButtonColor: GADSearchCallButtonColor { get set }
  • 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: UIColor)
  • 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: UIColor, to toColor: UIColor)