GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GADCustomEventRequest
@interface GADCustomEventRequest : NSObject
Specifies optional ad request targeting parameters that are provided by the publisher and are
forwarded to custom events for purposes of populating an ad request to a 3rd party ad network.
-
Keywords set in GADRequest. Returns nil if no keywords are set.
Declaration
Swift
var userKeywords: [Any]? { get }
Objective-C
@property (nonatomic, copy, readonly, nullable) NSArray *userKeywords;
-
The additional parameters set by the application. This property lets you pass additional
information from your application to your Custom Event object. To do so, create an instance of
GADCustomEventExtras to pass to GADRequest -registerAdNetworkExtras:. The instance should have
an NSDictionary set for a particular custom event label. That NSDictionary becomes the
additionalParameters here.
Declaration
Swift
var additionalParameters: [AnyHashable : Any]? { get }
Objective-C
@property (nonatomic, copy, readonly, nullable) NSDictionary *additionalParameters;
-
Indicates whether the testing property has been set in GADRequest.
Declaration
Swift
var isTesting: Bool { get }
Objective-C
@property (nonatomic, readonly) BOOL isTesting;
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."],[[["`GADCustomEventRequest` objects specify optional ad request parameters that publishers can provide to be forwarded to custom events for populating ad requests to external ad networks."],["It allows access to user keywords set in the main ad request, providing targeting information to custom events."],["Publishers can include additional parameters through `GADCustomEventExtras`, offering custom data to specific custom events."],["It indicates whether the ad request is for testing purposes, as set in the main `GADRequest`."]]],["`GADCustomEventRequest` provides ad request targeting parameters to custom events. It includes `userKeywords`, which are publisher-defined keywords from `GADRequest`. `additionalParameters` passes extra information as a dictionary from the application via `GADCustomEventExtras`. The `isTesting` property indicates if the testing flag was set in the original `GADRequest`. These parameters are read-only properties accessible in both Swift and Objective-C. The object is designed to allow a publisher to forward data to a third-party ad network.\n"]]