BUMopubAdMarkUpDelegate.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // BUMopubAdMarkUpDelegate.h
  3. // BUAdSDK
  4. //
  5. // Created by Siwant on 2020/4/24.
  6. // Copyright © 2020 bytedance. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @class BUAdSlot;
  11. @protocol BUMopubAdMarkUpDelegate <NSObject>
  12. @optional
  13. /** Mopub AdMarkUp
  14. */
  15. - (void)setMopubAdMarkUp:(NSString *)adm;
  16. /// Bidding Token. Now for MSDK in domestic, used for every ad type.
  17. - (NSString *)biddingToken;
  18. /** Mopub Adaptor get AD type from rit
  19. * @return @{@"adSlotType": @(1), @"renderType": @(1)}
  20. * adSlotType refer from BUAdSlotAdType in "BUAdSlot.h"
  21. * showType: @"1" express AD @"2" native AD
  22. */
  23. + (nullable NSDictionary *)AdTypeWithRit:(NSString *)rit error:(NSError **)error;
  24. /** Mopub bidding Adaptor get AD type from adm
  25. * @return @{@"adSlotType": @(1), @"renderType": @(1)}
  26. * adSlotType refer from BUAdSlotAdType in "BUAdSlot.h"
  27. * showType: @"1" express AD @"2" native AD
  28. */
  29. + (NSDictionary *)AdTypeWithAdMarkUp:(NSString *)adm;
  30. /// Mopub Bidding Token
  31. + (NSString *)mopubBiddingToken;
  32. @end
  33. NS_ASSUME_NONNULL_END