GADNativeAdImageAdLoaderOptions.h 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. //
  2. // GADNativeAdImageAdLoaderOptions.h
  3. // Google Mobile Ads SDK
  4. //
  5. // Copyright 2015 Google Inc. All rights reserved.
  6. //
  7. #import "GADAdLoader.h"
  8. /// Native ad image orientation preference.
  9. typedef NS_ENUM(NSInteger, GADNativeAdImageAdLoaderOptionsOrientation) {
  10. GADNativeAdImageAdLoaderOptionsOrientationAny, ///< No orientation preference.
  11. GADNativeAdImageAdLoaderOptionsOrientationPortrait, ///< Prefer portrait images.
  12. GADNativeAdImageAdLoaderOptionsOrientationLandscape ///< Prefer landscape images.
  13. };
  14. @interface GADNativeAdImageAdLoaderOptions : GADAdLoaderOptions
  15. /// Indicates if image asset content should be loaded by the SDK. If set to YES, the SDK will not
  16. /// load image asset content and native ad image URLs can be used to fetch content. Defaults to NO,
  17. /// image assets are loaded by the SDK.
  18. @property(nonatomic, assign) BOOL disableImageLoading;
  19. /// Indicates if multiple images should be loaded for each asset. Defaults to NO.
  20. @property(nonatomic, assign) BOOL shouldRequestMultipleImages;
  21. /// Indicates preferred image orientation. Defaults to
  22. /// GADNativeAdImageAdLoaderOptionsOrientationAny.
  23. @property(nonatomic, assign) GADNativeAdImageAdLoaderOptionsOrientation preferredImageOrientation;
  24. @end