You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

43 regels
1.3 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 GADUNativeCustomTemplateAd : NSObject
  6. /// A reference to the Unity native custom template ad client.
  7. @property(nonatomic, assign) GADUTypeNativeCustomTemplateAdClientRef *nativeCustomTemplateClient;
  8. /// A GADNativeCustomTemplateAd which loads native ads.
  9. @property(nonatomic, strong) GADNativeCustomTemplateAd *nativeCustomTemplateAd;
  10. /// Initializes a GADUNativeCustomTemplateAd.
  11. - (instancetype)initWithAd:(GADNativeCustomTemplateAd *)nativeCustomTemplateAd;
  12. /// The ad clicked callback into Unity.
  13. @property(nonatomic, assign)
  14. GADUNativeCustomTemplateDidReceiveClickCallback didReceiveClickCallback;
  15. /// The custom template ID for the ad.
  16. - (NSString *)templateID;
  17. /// Returns the string corresponding to the specified key.
  18. - (NSString *)stringForKey:(NSString *)key;
  19. /// Returns the native ad image corresponding to the specified key.
  20. - (UIImage *)imageForKey:(NSString *)key;
  21. /// Call when the user clicks on the ad.
  22. - (void)performClickOnAssetWithKey:(NSString *)key withCustomClickAction:(bool)clickAction;
  23. /// Call when the ad is displayed on screen to the user.
  24. - (void)recordImpression;
  25. /// An array of available asset keys.
  26. - (NSArray *)availableAssetKeys;
  27. @end