com.beanbag.huaweiads 2.3.9 → 2.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -47,13 +47,13 @@ public class AdsDemoManager : MonoBehaviour
|
|
|
47
47
|
|
|
48
48
|
private void Init()
|
|
49
49
|
{
|
|
50
|
-
HMSAdsKitManager.Instance = new Builder()
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
50
|
+
// HMSAdsKitManager.Instance = new Builder()
|
|
51
|
+
// .SetHasPurchasedNoAds(false)
|
|
52
|
+
// .SetRewardedAdLoadMethod(RewardedAdLoadMethod, rewardVerifyConfig)
|
|
53
|
+
// .SetBannerAdLoadMethod(BannerAdLoadMethod)
|
|
54
|
+
// .SetInterstitialAdLoadMethod(InterstitialAdLoadMethod)
|
|
55
|
+
// .SetSplashAdLoadMethod(SplashAdLoadMethod)
|
|
56
|
+
// .Build();
|
|
57
57
|
|
|
58
58
|
HMSAdsKitManager.Instance.OnRewardedAdLoaded = OnRewardedAdLoaded;
|
|
59
59
|
HMSAdsKitManager.Instance.OnRewarded = OnRewarded;
|
|
@@ -3,7 +3,6 @@ using HuaweiMobileServices.Ads;
|
|
|
3
3
|
using HuaweiMobileServices.Ads.InstallReferrer;
|
|
4
4
|
using HuaweiMobileServices.Utils;
|
|
5
5
|
using System;
|
|
6
|
-
using System.Collections;
|
|
7
6
|
using System.Collections.Generic;
|
|
8
7
|
using System.Threading.Tasks;
|
|
9
8
|
using UnityEngine;
|
|
@@ -27,6 +26,8 @@ namespace HmsPlugin
|
|
|
27
26
|
#endregion
|
|
28
27
|
|
|
29
28
|
#region PRIVATE_MEMBERS
|
|
29
|
+
|
|
30
|
+
private static string appId;
|
|
30
31
|
private BannerAd bannerView;
|
|
31
32
|
private InterstitialAd interstitialView;
|
|
32
33
|
private RewardAd rewardedView;
|
|
@@ -99,7 +100,7 @@ namespace HmsPlugin
|
|
|
99
100
|
|
|
100
101
|
private void InitAds()
|
|
101
102
|
{
|
|
102
|
-
HwAds.Init(
|
|
103
|
+
HwAds.Init(appId);
|
|
103
104
|
Debug.Log($"{TAG} Init done");
|
|
104
105
|
|
|
105
106
|
//If you want select with config you can change this method, also you can active account kit for this method
|
|
@@ -967,8 +968,9 @@ namespace HmsPlugin
|
|
|
967
968
|
splashAdLoadMethod = type;
|
|
968
969
|
return this;
|
|
969
970
|
}
|
|
970
|
-
public HMSAdsKitManager Build()
|
|
971
|
+
public HMSAdsKitManager Build(string appID)
|
|
971
972
|
{
|
|
973
|
+
appId = appID;
|
|
972
974
|
return new HMSAdsKitManager(this);
|
|
973
975
|
}
|
|
974
976
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "com.beanbag.huaweiads",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.10",
|
|
4
4
|
"displayName": "Huawei Ads",
|
|
5
5
|
"description": "The Huawei Ads pacakge let you integrate the petal ads in your game.",
|
|
6
6
|
"unity": "2019.1",
|
|
7
7
|
"author": {
|
|
8
|
-
"name": "Bean Bag"
|
|
9
|
-
"author": "Usman Arshad"
|
|
8
|
+
"name": "Bean Bag"
|
|
10
9
|
},
|
|
11
10
|
"type": "tool",
|
|
12
11
|
"hideInEditor": true
|