GADCustomEventNativeAd.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // GADCustomEventNativeAd.h
  3. // Google Mobile Ads SDK
  4. //
  5. // Copyright 2015 Google Inc. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import "GADCustomEventRequest.h"
  9. @protocol GADCustomEventNativeAdDelegate;
  10. /// The protocol for a custom event for a native ad. Your custom event handler object for native ads
  11. /// must implement this protocol. The
  12. /// requestNativeAdWithParameter:request:adTypes:options:rootViewController: method will be called
  13. /// when mediation schedules your custom event to be executed.
  14. @protocol GADCustomEventNativeAd<NSObject>
  15. /// This method is called by mediation when your custom event is scheduled to be executed.
  16. /// |serverParameter| is the parameter configured in the mediation UI for the custom event.
  17. /// |request| contains ad targeting information. |adTypes| contains the list of native ad types
  18. /// requested. See GADAdLoaderAdTypes.h for available ad types. |options| are any additional options
  19. /// configured by the publisher for requesting a native ad. See GADNativeAdImageAdLoaderOptions.h
  20. /// for available image options. |rootViewController| is the view controller provided by the
  21. /// publisher.
  22. - (void)requestNativeAdWithParameter:(NSString *)serverParameter
  23. request:(GADCustomEventRequest *)request
  24. adTypes:(NSArray *)adTypes
  25. options:(NSArray *)options
  26. rootViewController:(UIViewController *)rootViewController;
  27. /// The delegate object, used for receiving custom native ad load request progress.
  28. @property(nonatomic, weak) id<GADCustomEventNativeAdDelegate> delegate;
  29. @end