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;
  • Deprecated and unsupported. Always NO.

    Declaration

    Swift

    var userHasLocation: Bool { get }

    Objective-C

    @property (nonatomic, readonly) BOOL userHasLocation;
  • Deprecated and unsupported. Always 0.

    Declaration

    Swift

    var userLatitude: CGFloat { get }

    Objective-C

    @property (nonatomic, readonly) CGFloat userLatitude;
  • Deprecated and unsupported. Always 0.

    Declaration

    Swift

    var userLongitude: CGFloat { get }

    Objective-C

    @property (nonatomic, readonly) CGFloat userLongitude;
  • Deprecated and unsupported. Always 0.

    Declaration

    Swift

    var userLocationAccuracyInMeters: CGFloat { get }

    Objective-C

    @property (nonatomic, readonly) CGFloat userLocationAccuracyInMeters;
  • Deprecated and unsupported. Always nil.

    Declaration

    Swift

    var userLocationDescription: String? { get }

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *userLocationDescription;