parent
							
								
									dd809bf4b0
								
							
						
					
					
						commit
						e0277cd02b
					
				|  | @ -65,15 +65,13 @@ namespace Guru | ||||||
| 	            _asyncLoader.OnInterstitialRequestOver = (success, firstLoad) => | 	            _asyncLoader.OnInterstitialRequestOver = (success, firstLoad) => | ||||||
| 	            { | 	            { | ||||||
| 		            Debug.Log($"--- [Amazon] Async IV response, success:{success} -> OnLoadMaxIV"); | 		            Debug.Log($"--- [Amazon] Async IV response, success:{success} -> OnLoadMaxIV"); | ||||||
| 		            if (success && firstLoad) OnLoadMaxIV(); | 		            // if (success && firstLoad) OnLoadMaxIV(); | ||||||
| 	            }; | 	            }; | ||||||
| 	            _asyncLoader.OnRewardRequestOver = (success,firstLoad) => | 	            _asyncLoader.OnRewardRequestOver = (success, firstLoad) => | ||||||
| 	            { | 	            { | ||||||
| 		            Debug.Log($"--- [Amazon] Async RV response, success:{success} > OnLoadMaxRV"); | 		            Debug.Log($"--- [Amazon] Async RV response, success:{success} > OnLoadMaxRV"); | ||||||
| 		            if (success && firstLoad) OnLoadMaxRV(); | 		            // if (success && firstLoad) OnLoadMaxRV(); | ||||||
| 	            }; | 	            }; | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
|             } |             } | ||||||
| #endif | #endif | ||||||
|      |      | ||||||
|  |  | ||||||
|  | @ -216,12 +216,13 @@ namespace Guru | ||||||
|             OnLoadBads(); |             OnLoadBads(); | ||||||
|             // Banners are automatically sized to 320x50 on phones and 728x90 on tablets |             // Banners are automatically sized to 320x50 on phones and 728x90 on tablets | ||||||
|             // You may use the utility method `MaxSdkUtils.isTablet()` to help with view sizing adjustments |             // You may use the utility method `MaxSdkUtils.isTablet()` to help with view sizing adjustments | ||||||
|             MaxSdk.CreateBanner(GetBannerID(), MaxSdkBase.BannerPosition.BottomCenter); |             var id = GetBannerID(); | ||||||
|             MaxSdk.SetBannerExtraParameter(GetBannerID(), "adaptive_banner", "false"); |             MaxSdk.CreateBanner(id, MaxSdkBase.BannerPosition.BottomCenter); | ||||||
|  |             MaxSdk.SetBannerExtraParameter(id, "adaptive_banner", "false"); | ||||||
|             // Set background or background color for banners to be fully functional |             // Set background or background color for banners to be fully functional | ||||||
|             MaxSdk.SetBannerBackgroundColor(GetBannerID(), _backColor); |             MaxSdk.SetBannerBackgroundColor(id, _backColor); | ||||||
|             // Analytics.ADBadsLoad(GetBannerID()); |             // Analytics.ADBadsLoad(GetBannerID()); | ||||||
|             Analytics.ADBadsLoad(AdParams.Build(GetBannerID())); |             Analytics.ADBadsLoad(AdParams.Build(id)); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         public void OnLoadBads() |         public void OnLoadBads() | ||||||
|  | @ -293,7 +294,9 @@ namespace Guru | ||||||
|         protected void LoadMaxInterstitial() |         protected void LoadMaxInterstitial() | ||||||
|         { |         { | ||||||
|             OnLoadIads(); |             OnLoadIads(); | ||||||
|             MaxSdk.LoadInterstitial(GetInterstitialID()); |             var id = GetInterstitialID(); | ||||||
|  |             Analytics.ADIadsLoad(AdParams.Build(id)); | ||||||
|  |             MaxSdk.LoadInterstitial(id); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         public void OnLoadIads() |         public void OnLoadIads() | ||||||
|  | @ -430,8 +433,7 @@ namespace Guru | ||||||
|         { |         { | ||||||
|             OnLoadRads(); |             OnLoadRads(); | ||||||
|             var id = GetRewardedVideoID(); |             var id = GetRewardedVideoID(); | ||||||
|             // Analytics.ADRadsLoad(id); |             Analytics.ADRadsLoad(AdParams.Build(id)); // 上报打点 | ||||||
|             Analytics.ADIadsClose(AdParams.Build(id)); |  | ||||||
|             MaxSdk.LoadRewardedAd(id); |             MaxSdk.LoadRewardedAd(id); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -0,0 +1,3 @@ | ||||||
|  | fileFormatVersion: 2 | ||||||
|  | guid: 88708d2eeaaa4876b3614577593049ef | ||||||
|  | timeCreated: 1705049907 | ||||||
|  | @ -0,0 +1,6 @@ | ||||||
|  | <?xml version="1.0" encoding="utf-8"?> | ||||||
|  | <manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||||||
|  |           package="com.guru.unity.sdk.res" | ||||||
|  |           android:versionCode="1" | ||||||
|  |           android:versionName="1.0"> | ||||||
|  | </manifest> | ||||||
|  | @ -0,0 +1,3 @@ | ||||||
|  | fileFormatVersion: 2 | ||||||
|  | guid: c18726788fef4db9be1733b0329f1067 | ||||||
|  | timeCreated: 1705049907 | ||||||
|  | @ -0,0 +1,2 @@ | ||||||
|  | target=android-9 | ||||||
|  | android.library=true | ||||||
|  | @ -0,0 +1,3 @@ | ||||||
|  | fileFormatVersion: 2 | ||||||
|  | guid: 07d108573d1a417f8132f546c1b06a68 | ||||||
|  | timeCreated: 1705049907 | ||||||
|  | @ -0,0 +1,3 @@ | ||||||
|  | fileFormatVersion: 2 | ||||||
|  | guid: 41d8e4b1f70e46f09190dd0877324f73 | ||||||
|  | timeCreated: 1705049907 | ||||||
|  | @ -0,0 +1,3 @@ | ||||||
|  | fileFormatVersion: 2 | ||||||
|  | guid: 5c888f8eb1754ea3b54790aa1cc1fa60 | ||||||
|  | timeCreated: 1705049907 | ||||||
|  | @ -0,0 +1,43 @@ | ||||||
|  | <?xml version="1.0" encoding="utf-8"?> | ||||||
|  | <network-security-config> | ||||||
|  |     <base-config cleartextTrafficPermitted="true"> | ||||||
|  |         <trust-anchors> | ||||||
|  |             <certificates src="system" /> | ||||||
|  |         </trust-anchors> | ||||||
|  |     </base-config> | ||||||
|  |     <domain-config cleartextTrafficPermitted="true"> | ||||||
|  |         <!-- For Facebook(Meta) --> | ||||||
|  |         <!-- In the Audience Network Android SDK, | ||||||
|  |             we use 127.0.0.1 (localhost) as a caching | ||||||
|  |             proxy to cache media files in the SDK. | ||||||
|  |             Since Android P, cleartext traffic (unencrypted HTTP) | ||||||
|  |             will be blocked by default, which will affect the | ||||||
|  |             functionality of media caching of the SDK and could | ||||||
|  |             affect user experience and ads revenue. --> | ||||||
|  |         <domain includeSubdomains="true">127.0.0.1</domain> | ||||||
|  | 
 | ||||||
|  |         <!-- For Amazon --> | ||||||
|  |         <domain includeSubdomains="true">amazon-adsystem.com</domain> | ||||||
|  | 
 | ||||||
|  |         <!-- For Unity --> | ||||||
|  |         <domain includeSubdomains="true">cdn-creatives-akamai-prd.unityads.unity3d.com</domain> | ||||||
|  |         <domain includeSubdomains="true">cdn-creatives-akamaistls-prd.unityads.unity3d.com</domain> | ||||||
|  |         <domain includeSubdomains="true">cdn-creatives-akamaistls-re-prd.unityads.unity3d.com</domain> | ||||||
|  |         <domain includeSubdomains="true">cdn-creatives-geocdn-prd.unityads.unity3d.com</domain> | ||||||
|  |         <domain includeSubdomains="true">cdn-creatives-prd.unityads.unity3d.com</domain> | ||||||
|  |         <domain includeSubdomains="true">cdn-creatives-highwinds-prd.unityads.unity3d.com</domain> | ||||||
|  |         <domain includeSubdomains="true">cdn-creatives-tencent-prd.unityads.unitychina.cn</domain> | ||||||
|  |         <domain includeSubdomains="true">cdn-store-icons-akamai-prd.unityads.unity3d.com</domain> | ||||||
|  |         <domain includeSubdomains="true">cdn-store-icons-highwinds-prd.unityads.unity3d.com</domain> | ||||||
|  |         <domain includeSubdomains="true">cdn-store-icons-tencent-prd.unityads.unitychina.cn</domain> | ||||||
|  |         <domain includeSubdomains="true">cdn-creatives-akamaistls-prd.acquire.unity3dusercontent.com</domain> | ||||||
|  |         <domain includeSubdomains="true">unityads.unity3d.com</domain> | ||||||
|  |         <domain includeSubdomains="true">unityads.unitychina.cn</domain> | ||||||
|  |     </domain-config> | ||||||
|  |     <debug-overrides> | ||||||
|  |         <trust-anchors> | ||||||
|  |             <!-- Trust user added CAs while debuggable only --> | ||||||
|  |             <certificates src="user" /> | ||||||
|  |         </trust-anchors> | ||||||
|  |     </debug-overrides> | ||||||
|  | </network-security-config> | ||||||
|  | @ -0,0 +1,3 @@ | ||||||
|  | fileFormatVersion: 2 | ||||||
|  | guid: 986e002a4cff46229b401c3710ac1ff0 | ||||||
|  | timeCreated: 1705049907 | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| { | { | ||||||
|   "name": "com.guru.unity.sdk.core", |   "name": "com.guru.unity.sdk.core", | ||||||
|   "displayName": "Guru SDK Core", |   "displayName": "Guru SDK Core", | ||||||
|   "version": "1.0.0", |   "version": "1.0.3", | ||||||
|   "description": "Guru SDK core for Unity developers", |   "description": "Guru SDK core for Unity developers", | ||||||
|   "unity": "2021.3", |   "unity": "2021.3", | ||||||
|   "author":{ |   "author":{ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue