AdmobNative.h 957 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // AdmobNative.h
  3. // XenonSDK
  4. //
  5. // Created by fq on 2020/12/24.
  6. // Copyright © 2020 SAGESSE. All rights reserved.
  7. //
  8. #import "AdNative.h"
  9. #import <GoogleMobileAds/GoogleMobileAds.h>
  10. #import <UIKit/UIKit.h>
  11. #import "TestNativeAdView.h"
  12. @interface AdmobNative : AdNative
  13. //是否加载好
  14. @property (nonatomic, assign)BOOL ready;
  15. //是否需要显示
  16. @property (nonatomic, assign)BOOL isShow;
  17. //Container that holds the native ad.
  18. @property (nonatomic,strong)UIView *nativeAdPlaceholder;
  19. //Native Advanced ad unit ID for testing.
  20. @property (nonatomic,strong)NSString *AdUnit;
  21. @property(nonatomic, strong) GADAdLoader *adLoader;
  22. /// The native ad view that is being presented.
  23. //@property(nonatomic, strong) GADNativeAdView *nativeAdView;
  24. @property(nonatomic, strong) TestNativeAdView *nativeAdView;
  25. /// The height constraint applied to the ad view, where necessary.
  26. @property(nonatomic, strong) NSLayoutConstraint *heightConstraint;
  27. @end