GADCustomEventRequest.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // GADCustomEventRequest.h
  3. // Google Mobile Ads SDK
  4. //
  5. // Copyright 2012 Google Inc. All rights reserved.
  6. //
  7. #import <UIKit/UIKit.h>
  8. #import "GADRequest.h"
  9. @class GADCustomEventExtras;
  10. @interface GADCustomEventRequest : NSObject
  11. /// The end user's gender set in GADRequest. If not specified, returns kGADGenderUnknown.
  12. @property(nonatomic, readonly, assign) GADGender userGender;
  13. /// The end user's birthday set in GADRequest. If not specified, returns nil.
  14. @property(nonatomic, readonly, copy) NSDate *userBirthday;
  15. /// The end user's latitude, longitude, and accuracy, set in GADRequest. If not specified,
  16. /// userHasLocation returns NO, and userLatitude, userLongitude and userLocationAccuracyInMeters
  17. /// will all return 0.
  18. @property(nonatomic, readonly, assign) BOOL userHasLocation;
  19. @property(nonatomic, readonly, assign) CGFloat userLatitude;
  20. @property(nonatomic, readonly, assign) CGFloat userLongitude;
  21. @property(nonatomic, readonly, assign) CGFloat userLocationAccuracyInMeters;
  22. /// Description of the user's location, in free form text, set in GADRequest. If not available,
  23. /// returns nil. This may be set even if userHasLocation is NO.
  24. @property(nonatomic, readonly, copy) NSString *userLocationDescription;
  25. /// Keywords set in GADRequest. Returns nil if no keywords are set.
  26. @property(nonatomic, readonly, copy) NSArray *userKeywords;
  27. /// The additional parameters set by the application. This property allows you to pass additional
  28. /// information from your application to your Custom Event object. To do so, create an instance of
  29. /// GADCustomEventExtras to pass to GADRequest -registerAdNetworkExtras:. The instance should have
  30. /// an NSDictionary set for a particular custom event label. That NSDictionary becomes the
  31. /// additionalParameters here.
  32. @property(nonatomic, readonly, copy) NSDictionary *additionalParameters;
  33. /// Indicates if the testing property has been set in GADRequest.
  34. @property(nonatomic, readonly, assign) BOOL isTesting;
  35. @end