EcpmConfigInitExporter.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //
  2. // EcpmConfigInitExporter.h
  3. // UUTUtils2.1
  4. //
  5. // Created by zhuge on 2020/7/14.
  6. // Copyright © 2020 dym. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @class ProjectInfo;
  11. @interface EcpmConfigInitExporter : NSObject
  12. @property (strong) NSString *admobFilePath;
  13. @property (strong) NSString *facebookFilePath;
  14. @property (strong) ProjectInfo *projectInfo;
  15. - (NSString*) doExport:(ProjectInfo*)project admobFilePath:(NSString*)admobFilePath facebookFilePath:(NSString*)facebookFilePath;
  16. @end
  17. #pragma mark - Admob国家版本信息
  18. enum EcpmFromType {
  19. ADMOB, FACEBOOK,
  20. };
  21. @interface EcpmCountryAdInfo: NSObject
  22. @property (strong) NSString *country;
  23. @property (strong) NSString *adName;
  24. @property float ecpm;
  25. @property enum EcpmFromType type;
  26. - (instancetype) initWithAdmobLine:(NSString *)line;
  27. - (instancetype) initWithFacebookLine:(NSString *)line;
  28. @end
  29. @interface EcpmCountryInfo: NSObject
  30. @property (strong) NSString *country;
  31. @property (strong) NSMutableArray<EcpmCountryAdInfo*> *maCountryAdInfos;
  32. - (float) avgEcpm;
  33. - (void) addCountryAdInfo:(EcpmCountryAdInfo*) countryAdInfo;
  34. @end
  35. NS_ASSUME_NONNULL_END