Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

65 rindas
2.3 KiB

  1. // Copyright 2014 Google Inc. All Rights Reserved.
  2. #import <Foundation/Foundation.h>
  3. #import <GoogleMobileAds/GoogleMobileAds.h>
  4. /// Genders to help deliver more relevant ads.
  5. typedef NS_ENUM(NSInteger, GADUGender) {
  6. kGADUGenderUnknown = 0, ///< Unknown.
  7. kGADUGenderMale = 1, ///< Male.
  8. kGADUGenderFemale = 2 ///< Female.
  9. };
  10. // Specifies optional parameters for ad requests.
  11. @interface GADURequest : NSObject
  12. /// Returns an initialized GADURequest object.
  13. - (id)init;
  14. /// An array of device identifiers to receive test ads.
  15. @property(nonatomic, strong) NSMutableArray *testDevices;
  16. /// Words or phrase describing the current activity of the user.
  17. @property(nonatomic, strong) NSMutableArray *keywords;
  18. /// The user's birthday may be used to deliver more relevant ads.
  19. @property(nonatomic, strong) NSDate *birthday;
  20. /// String that identifies the ad request's origin.
  21. @property(nonatomic, strong) NSString *requestAgent;
  22. /// The user's gender may be used to deliver more relevant ads.
  23. @property(nonatomic, assign) GADGender *gender;
  24. /// [Optional] This method allows you to specify whether you would like your app to be treated as
  25. /// child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA) -
  26. /// http://business.ftc.gov/privacy-and-security/childrens-privacy.
  27. @property(nonatomic, assign) BOOL tagForChildDirectedTreatment;
  28. /// GADMediationExtras to be sent up in the ad request.
  29. @property(nonatomic, strong) NSMutableArray<id<GADAdNetworkExtras>> *mediationExtras;
  30. /// Extra parameters to be sent up in the ad request.
  31. @property(nonatomic, strong) NSMutableDictionary *extras;
  32. /// Convenience method for adding a single test device.
  33. - (void)addTestDevice:(NSString *)deviceID;
  34. /// Convenience method for adding a single keyword.
  35. - (void)addKeyword:(NSString *)keyword;
  36. /// Convenience method for setting the user's birthday.
  37. - (void)setBirthdayWithMonth:(NSInteger)month day:(NSInteger)day year:(NSInteger)year;
  38. /// Convenience method for setting the user's birthday with a GADUGender.
  39. - (void)setGenderWithCode:(GADUGender)gender;
  40. /// Convenience method for setting an extra parameters.
  41. - (void)setExtraWithKey:(NSString *)key value:(NSString *)value;
  42. /// Constructs a GADRequest with the defined targeting values.
  43. - (GADRequest *)request;
  44. @end