GromoreAdLoadConfig.m 866 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // GromoreAdLoadConfig.m
  3. // ABUDemo
  4. //
  5. // Created by bytedance on 2022/2/10.
  6. // Copyright © 2022 bytedance. All rights reserved.
  7. //
  8. #import "GromoreAdLoadConfig.h"
  9. @implementation GromoreAdLoadConfig
  10. - (NSString *)adTypeName {
  11. static NSDictionary *dict = nil;
  12. static dispatch_once_t onceToken;
  13. dispatch_once(&onceToken, ^{
  14. dict = @{
  15. @(GromoreAdTypeBanner) : @"Banner",
  16. @(GromoreAdTypeInterstitial) : @"Interstitial",
  17. @(GromoreAdTypeSplash) : @"Splash",
  18. @(GromoreAdTypeNative) : @"Native",
  19. @(GromoreAdTypeRewardedVideo) : @"RewardedVideo",
  20. @(GromoreAdTypeFullscreenVideo) : @"FullscreenVideo",
  21. @(GromoreAdTypeInterstitialPro) : @"InterstitialPro",
  22. @(GromoreAdTypeDraw) : @"Draw",
  23. };
  24. });
  25. return dict[@(self.adType)];
  26. }
  27. @end