GoogleMobileAds Framework Reference

GADCustomEventRequest

class 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.

  • If the user’s latitude, longitude, and accuracy are not specified, userHasLocation returns NO, and userLatitude, userLongitude, and userLocationAccuracyInMeters return 0.

    Declaration

    Swift

    var userHasLocation: Bool { get }
  • User’s latitude set in GADRequest.

    Declaration

    Swift

    var userLatitude: CGFloat { get }
  • User’s longitude set in GADRequest.

    Declaration

    Swift

    var userLongitude: CGFloat { get }
  • The accuracy, in meters, of the user’s location data.

    Declaration

    Swift

    var userLocationAccuracyInMeters: CGFloat { get }
  • Description of the user’s location, in free form text, set in GADRequest. If not available, returns nil. This may be set even if userHasLocation is NO.

    Declaration

    Swift

    var userLocationDescription: String? { get }
  • Keywords set in GADRequest. Returns nil if no keywords are set.

    Declaration

    Swift

    var userKeywords: [Any]? { get }
  • The additional parameters set by the application. This property allows you to 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 }
  • Indicates whether the testing property has been set in GADRequest.

    Declaration

    Swift

    var isTesting: Bool { get }
  • Deprecated. User’s gender set in GADRequest. If not specified, returns kGADGenderUnknown.

    Declaration

    Swift

    var userGender: GADGender { get }
  • Deprecated. User’s birthday set in GADRequest. If not specified, returns nil.

    Declaration

    Swift

    var userBirthday: Date? { get }