@@ -117,7 +117,7 @@ public void Hide()
117117 /// </summary>
118118 public void RenderAd ( )
119119 {
120- #if VIRTUESKY_ADS && VIRTUESKY_ADS
120+ #if VIRTUESKY_ADS && VIRTUESKY_ADMOB
121121 if ( _nativeOverlayAd == null ) return ;
122122 _nativeOverlayAd . RenderTemplate ( Style ( ) , ConvertSize ( ) , ConvertPosition ( adsPosition ) ) ;
123123#endif
@@ -129,7 +129,7 @@ public void RenderAd()
129129 /// <param name="uiElement">RectTransform of uiElement, used to determine position for native overlay ads</param>
130130 public void RenderAd ( RectTransform uiElement )
131131 {
132- #if VIRTUESKY_ADS && VIRTUESKY_ADS
132+ #if VIRTUESKY_ADS && VIRTUESKY_ADMOB
133133 if ( _nativeOverlayAd == null ) return ;
134134 ( int admobX , int admobY ) = ConvertUiElementPosToNativeAdsPos ( uiElement ) ;
135135 _nativeOverlayAd . RenderTemplate ( Style ( ) , admobX , admobY ) ;
@@ -144,7 +144,7 @@ public void RenderAd(RectTransform uiElement)
144144 /// <param name="height">Custom height for native overlay ads</param>
145145 public void RenderAd ( RectTransform uiElement , int width , int height )
146146 {
147- #if VIRTUESKY_ADS && VIRTUESKY_ADS
147+ #if VIRTUESKY_ADS && VIRTUESKY_ADMOB
148148 if ( _nativeOverlayAd == null ) return ;
149149 ( int admobX , int admobY ) = ConvertUiElementPosToNativeAdsPos ( uiElement ) ;
150150 _nativeOverlayAd . RenderTemplate ( Style ( ) , new AdSize ( width , height ) , admobX , admobY ) ;
0 commit comments