AI-generated Key Takeaways
-
GADBannerSignalRequest is a banner signal request used in server-to-server signal generation.
-
The
manualImpressionEnabledproperty indicates if the publisher will manually record impressions. -
The
adSizeproperty specifies the banner ad size, which should be one of the predefined standard sizes or created using GADAdSizeFromCGSize. -
The
adSizesproperty allows specifying an array of valid banner ad sizes using NSValue encoded GADAdSize structs. -
The
videoOptionsproperty allows setting video ad options.
GADBannerSignalRequest
@interface GADBannerSignalRequest : GADSignalRequestA banner signal request that can be used as input in server-to-server signal generation.
-
Indicates that the publisher will record impressions manually when the ad becomes visible to the user.
Declaration
Swift
var isManualImpressionEnabled: Bool { get set }Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite, getter=isManualImpressionEnabled) BOOL manualImpressionEnabled; -
The banner ad size. Use one of the predefined standard ad sizes (such as GADAdSizeBanner), or create one using the GADAdSizeFromCGSize method. Never create your own GADAdSize directly.
Declaration
Swift
var adSize: AdSize { get set }Objective-C
@property (nonatomic) GADAdSize adSize; -
Array of NSValue encoded GADAdSize structs, specifying all valid sizes that are appropriate for this slot. Use one of the predefined standard ad sizes (such as GADAdSizeBanner), or create one using the GADAdSizeFromCGSize method. Never create your own GADAdSize directly.
Example:
\code NSArray *adSizes = @[ NSValueFromGADAdSize(GADAdSizeBanner), NSValueFromGADAdSize(GADAdSizeLargeBanner) ];
signalRequest.adSizes = adSizes; \endcode
Declaration
Swift
var adSizes: [NSValue]? { get set }Objective-C
@property (nonatomic, copy, nullable) NSArray<NSValue *> *adSizes; -
Video ad options. Defaults to nil.
Declaration
Swift
@NSCopying var videoOptions: VideoOptions? { get set }Objective-C
@property (nonatomic, copy, nullable) GADVideoOptions *videoOptions; -
Returns an initialized banner signal request.
Declaration
Swift
init(signalType: String)Objective-C
- (nonnull instancetype)initWithSignalType:(nonnull NSString *)signalType;Parameters
signalTypeThe type of signal to request.