您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

41 行
1.4 KiB

  1. // Copyright 2014 Google Inc. All Rights Reserved.
  2. #import <Foundation/Foundation.h>
  3. #import <GoogleMobileAds/GoogleMobileAds.h>
  4. #import "GADUTypes.h"
  5. @interface GADUAdLoader : NSObject
  6. /// A reference to the Unity ad loader client.
  7. @property(nonatomic, assign) GADUTypeAdLoaderClientRef *adLoaderClient;
  8. /// A GADAdLoader that loads native ads.
  9. @property(nonatomic, strong) GADAdLoader *adLoader;
  10. // List of native ad types the ad loader will request.
  11. @property(nonatomic, copy) NSArray *adTypes;
  12. /// List of templateIDs.
  13. @property(nonatomic, copy) NSArray *templateIDs;
  14. /// The custom template ad received callback into Unity.
  15. @property(nonatomic, assign)
  16. GADUAdLoaderDidReceiveNativeCustomTemplateAdCallback customTemplateAdReceivedCallback;
  17. /// The ad failed to load callback into Unity.
  18. @property(nonatomic, assign) GADUAdLoaderDidFailToReceiveAdWithErrorCallback adFailedCallback;
  19. /// Initializes the GADUAdLoader.
  20. - (instancetype)initWithAdLoaderClientReference:(GADUTypeAdLoaderClientRef *)adLoaderClient
  21. adUnitID:(NSString *)adUnitID
  22. templateIDs:(NSArray *)templateIDs
  23. adTypes:(NSArray *)adTypes
  24. options:(NSArray *)options;
  25. /// Makes an ad request. Additional targeting options can be supplied with a request object.
  26. - (void)loadRequest:(GADRequest *)request;
  27. @end