commit | author | age
|
dbf535
|
1 |
// |
L |
2 |
// WAIAdmob.h |
|
3 |
// WASdkIntf |
|
4 |
// |
|
5 |
// Created by lpw on 2024/5/28. |
|
6 |
// Copyright © 2024 GHW-T-01. All rights reserved. |
|
7 |
// |
|
8 |
|
|
9 |
#import <Foundation/Foundation.h> |
|
10 |
#import <WASdkIntf/WAAdMobProxy.h> |
|
11 |
NS_ASSUME_NONNULL_BEGIN |
|
12 |
|
|
13 |
@interface WAIAdmob : NSObject |
|
14 |
// 广告测试模式,会强制使用测试广告id |
|
15 |
- (void)setTestMode:(BOOL)isDebugMode; |
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
// 横幅广告 |
|
20 |
- (BOOL)checkBannerAdReady; |
|
21 |
/** |
|
22 |
@param viewController 用于显示广告的视图控制器。 |
|
23 |
@param containerView 将包含横幅广告的视图。广告视图将作为此视图的子视图添加。 |
|
24 |
*/ |
|
25 |
- (void)bindBannerAdWithViewController:(UIViewController *)viewController containerView:(UIView *)containerView ; |
|
26 |
|
|
27 |
|
|
28 |
// 插页广告 |
|
29 |
- (BOOL)checkInterstitialAdReady; |
|
30 |
- (void)showInterstitialAdWithViewController:(UIViewController *)viewController withDelegate:( id<GADFullScreenContentDelegate>)delegate; |
|
31 |
|
|
32 |
|
|
33 |
//开屏广告 |
|
34 |
- (BOOL)checkAppOpenAdReady; |
|
35 |
- (void)showAppOpenAdWithViewController:(UIViewController *)viewController withDelegate:( id<GADFullScreenContentDelegate>)delegate; |
|
36 |
|
|
37 |
|
|
38 |
//激励广告 |
|
39 |
- (BOOL)checkRewardedAdReady; |
|
40 |
/** |
|
41 |
显示激励广告。 |
|
42 |
|
|
43 |
此方法在给定的视图控制器上显示激励广告,并处理广告的回调。 |
|
44 |
|
|
45 |
@param viewController 用于显示广告的视图控制器。 |
|
46 |
@param adName 广告名称或广告单元 ID。 |
|
47 |
@param extInfo 额外信息,可以用于调试或跟踪广告。 |
|
48 |
@param callback 广告展示和关闭时的回调。 |
|
49 |
*/ |
|
50 |
- (void)showRewardedAdWithViewController:(UIViewController *)viewController adName:(NSString *)adName extInfo:(NSString *)extInfo delegate:( id<GADFullScreenContentDelegate>)delegate; |
|
51 |
|
|
52 |
|
|
53 |
|
|
54 |
|
|
55 |
//admob的ump隐私 |
|
56 |
|
|
57 |
- (BOOL)checkUmpOptions; |
|
58 |
- (void)showUmpOptionsWithViewController:(UIViewController *)viewController consentGatheringComplete: (void (^)(NSError *_Nullable error))completionHandler; |
|
59 |
|
|
60 |
|
|
61 |
@end |
|
62 |
|
|
63 |
NS_ASSUME_NONNULL_END |