| 
									
										
										
										
											2023-12-26 03:47:44 +00:00
										 |  |  | using System; | 
					
						
							|  |  |  | using System.Collections.Generic; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | namespace AmazonAds { | 
					
						
							|  |  |  |     public class AdView { | 
					
						
							|  |  |  |         internal IAdView adView; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         public AdView (AdSize adSize, APSAdDelegate delegates) { | 
					
						
							|  |  |  |             #if UNITY_ANDROID | 
					
						
							|  |  |  |                 adView = new Android.AndroidAdView(delegates); | 
					
						
							|  |  |  |             #elif UNITY_IOS | 
					
						
							|  |  |  |                 adView = new IOS.IOSAdView(adSize, delegates); | 
					
						
							|  |  |  |             #else | 
					
						
							|  |  |  |                 //Other platforms not supported | 
					
						
							|  |  |  |             #endif | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-06-24 01:28:57 +00:00
										 |  |  |         public void Dispose() { | 
					
						
							|  |  |  |             #if UNITY_ANDROID | 
					
						
							|  |  |  |             adView.Dispose(); | 
					
						
							|  |  |  |             #endif | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-12-26 03:47:44 +00:00
										 |  |  |         public void fetchAd (AdResponse adResponse) { | 
					
						
							|  |  |  |             adView.FetchAd(adResponse); | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | } |