GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GADSearchRequest
Specifies parameters for search ads.
-
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.
-
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.
-
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;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-03-03 UTC.
[null,null,["Last updated 2021-03-03 UTC."],[],[],null,["GADSearchRequest \n\n @interface GADSearchRequest : ../Classes/GADRequest.html\n\nSpecifies parameters for search ads.\n- `\n ``\n ``\n `\n\n [query](#/c:objc(cs)GADSearchRequest(py)query)`\n ` \n The search ad query. \n\n Declaration \n Objective-C \n\n @property (readwrite, copy, nonatomic, nullable) NSString *query;\n\n- `\n ``\n ``\n `\n\n [backgroundColor](#/c:objc(cs)GADSearchRequest(py)backgroundColor)`\n ` \n The search ad background color. \n\n Declaration \n Objective-C \n\n @property (readonly, copy, nonatomic, nullable) UIColor *backgroundColor;\n\n- `\n ``\n ``\n `\n\n [gradientFrom](#/c:objc(cs)GADSearchRequest(py)gradientFrom)`\n ` \n The search ad gradient from color. \n\n Declaration \n Objective-C \n\n @property (readonly, copy, nonatomic, nullable) UIColor *gradientFrom;\n\n- `\n ``\n ``\n `\n\n [gradientTo](#/c:objc(cs)GADSearchRequest(py)gradientTo)`\n ` \n The search ad gradient to color. \n\n Declaration \n Objective-C \n\n @property (readonly, copy, nonatomic, nullable) UIColor *gradientTo;\n\n- `\n ``\n ``\n `\n\n [headerColor](#/c:objc(cs)GADSearchRequest(py)headerColor)`\n ` \n The search ad header color. \n\n Declaration \n Objective-C \n\n @property (readwrite, copy, nonatomic, nullable) UIColor *headerColor;\n\n- `\n ``\n ``\n `\n\n [descriptionTextColor](#/c:objc(cs)GADSearchRequest(py)descriptionTextColor)`\n ` \n The search ad description text color. \n\n Declaration \n Objective-C \n\n @property (readwrite, copy, nonatomic, nullable) UIColor *descriptionTextColor;\n\n- `\n ``\n ``\n `\n\n [anchorTextColor](#/c:objc(cs)GADSearchRequest(py)anchorTextColor)`\n ` \n The search ad anchor text color. \n\n Declaration \n Objective-C \n\n @property (readwrite, copy, nonatomic, nullable) UIColor *anchorTextColor;\n\n- `\n ``\n ``\n `\n\n [fontFamily](#/c:objc(cs)GADSearchRequest(py)fontFamily)`\n ` \n The search ad text font family. \n\n Declaration \n Objective-C \n\n @property (readwrite, copy, nonatomic, nullable) NSString *fontFamily;\n\n- `\n ``\n ``\n `\n\n [headerTextSize](#/c:objc(cs)GADSearchRequest(py)headerTextSize)`\n ` \n The search ad header text size. \n\n Declaration \n Objective-C \n\n @property (assign, readwrite, nonatomic) NSUInteger headerTextSize;\n\n- `\n ``\n ``\n `\n\n [borderColor](#/c:objc(cs)GADSearchRequest(py)borderColor)`\n ` \n The search ad border color. \n\n Declaration \n Objective-C \n\n @property (readwrite, copy, nonatomic, nullable) UIColor *borderColor;\n\n- `\n ``\n ``\n `\n\n [borderType](#/c:objc(cs)GADSearchRequest(py)borderType)`\n ` \n The search ad border type. \n\n Declaration \n Objective-C \n\n @property (assign, readwrite, nonatomic) ../Enums/GADSearchBorderType.html borderType;\n\n- `\n ``\n ``\n `\n\n [borderThickness](#/c:objc(cs)GADSearchRequest(py)borderThickness)`\n ` \n The search ad border thickness. \n\n Declaration \n Objective-C \n\n @property (assign, readwrite, nonatomic) NSUInteger borderThickness;\n\n- `\n ``\n ``\n `\n\n [customChannels](#/c:objc(cs)GADSearchRequest(py)customChannels)`\n ` \n The search ad custom channels. \n\n Declaration \n Objective-C \n\n @property (readwrite, copy, nonatomic, nullable) NSString *customChannels;\n\n- `\n ``\n ``\n `\n\n [callButtonColor](#/c:objc(cs)GADSearchRequest(py)callButtonColor)`\n ` \n The search ad call button color. \n\n Declaration \n Objective-C \n\n @property (assign, readwrite, nonatomic)\n ../Enums/GADSearchCallButtonColor.html callButtonColor;\n\n- `\n ``\n ``\n `\n\n [-setBackgroundSolid:](#/c:objc(cs)GADSearchRequest(im)setBackgroundSolid:)`\n ` \n A solid background color for rendering the ad. The background of the ad\n can either be a solid color, or a gradient, which can be specified through\n setBackgroundGradientFrom:toColor: method. If both solid and gradient\n background is requested, only the latter is considered. \n\n Declaration \n Objective-C \n\n - (void)setBackgroundSolid:(nonnull UIColor *)color;\n\n- `\n ``\n ``\n `\n\n [-setBackgroundGradientFrom:toColor:](#/c:objc(cs)GADSearchRequest(im)setBackgroundGradientFrom:toColor:)`\n ` \n A linear gradient background color for rendering the ad. The background of\n the ad can either be a linear gradient, or a solid color, which can be\n specified through setBackgroundSolid method. If both solid and gradient\n background is requested, only the latter is considered. \n\n Declaration \n Objective-C \n\n - (void)setBackgroundGradientFrom:(nonnull UIColor *)from\n toColor:(nonnull UIColor *)toColor;"]]