GoogleMobileAds Framework Reference
Stay organized with collections Save and categorize content based on your preferences.
GADBannerSignalRequest
A 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
signalType | The type of signal to request. |
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 2025-02-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-04 UTC."],[[["`GADBannerSignalRequest` is used for server-side signal generation for banner ads."],["It allows publishers to specify the ad size and whether impressions are manually recorded."],["`GADBannerSignalRequest` supports defining multiple valid ad sizes for the ad slot."],["Video ad options can be customized using the `videoOptions` property."],["The request must be initialized with a signal type using the `initWithSignalType:` method."]]],["The `GADBannerSignalRequest` class facilitates server-to-server banner ad signal generation. Key properties include `manualImpressionEnabled`, which indicates if impressions are recorded manually, and `adSize` or `adSizes` that defines the banner's dimensions using predefined or custom sizes. It includes video options using `videoOptions`. An initialized request is created via `initWithSignalType:` using the desired type. This allows specifying banner sizes and impression tracking.\n"]]