@@ -175,11 +175,11 @@ export class InterstitialAd implements IInterstitialAd {
175175
176176 load ( ) : void {
177177 const ref = new WeakRef ( this ) ;
178- this . _nativeRequest = org . nativescript . firebase . admob . FirebaseAdmob . InterstitialAd . load (
178+ this . _nativeRequest = org . nativescript . plugins . google_mobile_ads . GoogleMobileAds . InterstitialAd . load (
179179 Application . android . foregroundActivity || Application . android . startActivity ,
180180 this . _adUnitId ,
181181 JSON . stringify ( this . _requestOptions || { } ) ,
182- new org . nativescript . firebase . admob . FirebaseAdmob . AdCallback ( {
182+ new org . nativescript . plugins . google_mobile_ads . GoogleMobileAds . AdCallback ( {
183183 onEvent ( event : string , dataOrError : any ) {
184184 const owner = ref . get ?.( ) ;
185185 switch ( event ) {
@@ -270,11 +270,11 @@ export class RewardedInterstitialAd implements IRewardedInterstitialAd {
270270
271271 load ( ) : void {
272272 const ref = new WeakRef ( this ) ;
273- this . _nativeRequest = org . nativescript . firebase . admob . FirebaseAdmob . RewardedInterstitialAd . load (
273+ this . _nativeRequest = org . nativescript . plugins . google_mobile_ads . GoogleMobileAds . RewardedInterstitialAd . load (
274274 Application . android . foregroundActivity || Application . android . startActivity ,
275275 this . _adUnitId ,
276276 JSON . stringify ( this . _requestOptions || { } ) ,
277- new org . nativescript . firebase . admob . FirebaseAdmob . AdCallback ( {
277+ new org . nativescript . plugins . google_mobile_ads . GoogleMobileAds . AdCallback ( {
278278 onEvent ( event : string , dataOrError : any ) {
279279 const owner = ref . get ?.( ) ;
280280 switch ( event ) {
@@ -320,10 +320,10 @@ export class RewardedInterstitialAd implements IRewardedInterstitialAd {
320320 this . native . setImmersiveMode ( showOptions ?. immersiveModeEnabled ) ;
321321 }
322322 const ref = new WeakRef ( this ) ;
323- org . nativescript . firebase . admob . FirebaseAdmob . RewardedInterstitialAd . show (
323+ org . nativescript . plugins . google_mobile_ads . GoogleMobileAds . RewardedInterstitialAd . show (
324324 Application . android . foregroundActivity || Application . android . startActivity ,
325325 this . native ,
326- new org . nativescript . firebase . admob . FirebaseAdmob . Callback < com . google . android . gms . ads . rewarded . RewardItem > ( {
326+ new org . nativescript . plugins . google_mobile_ads . GoogleMobileAds . Callback < com . google . android . gms . ads . rewarded . RewardItem > ( {
327327 onSuccess ( reward ) : void {
328328 ref . get ( ) ?. _onAdEvent ?.( RewardedAdEventType . EARNED_REWARD , null , RewardedItem . fromNative ( reward ) ) ;
329329 } ,
@@ -392,11 +392,11 @@ export class RewardedAd implements IRewardedAd {
392392
393393 load ( ) : void {
394394 const ref = new WeakRef ( this ) ;
395- this . _nativeRequest = org . nativescript . firebase . admob . FirebaseAdmob . RewardedAd . load (
395+ this . _nativeRequest = org . nativescript . plugins . google_mobile_ads . GoogleMobileAds . RewardedAd . load (
396396 Application . android . foregroundActivity || Application . android . startActivity ,
397397 this . adUnitId ,
398398 JSON . stringify ( this . _requestOptions || { } ) ,
399- new org . nativescript . firebase . admob . FirebaseAdmob . AdCallback ( {
399+ new org . nativescript . plugins . google_mobile_ads . GoogleMobileAds . AdCallback ( {
400400 onEvent ( event : string , dataOrError : any ) {
401401 const owner = ref . get ?.( ) ;
402402 if ( ! owner ) {
@@ -445,10 +445,10 @@ export class RewardedAd implements IRewardedAd {
445445 this . native . setImmersiveMode ( showOptions ?. immersiveModeEnabled ) ;
446446 }
447447 const ref = new WeakRef ( this ) ;
448- org . nativescript . firebase . admob . FirebaseAdmob . RewardedAd . show (
448+ org . nativescript . plugins . google_mobile_ads . GoogleMobileAds . RewardedAd . show (
449449 Application . android . foregroundActivity || Application . android . startActivity ,
450450 this . native ,
451- new org . nativescript . firebase . admob . FirebaseAdmob . Callback < com . google . android . gms . ads . rewarded . RewardItem > ( {
451+ new org . nativescript . plugins . google_mobile_ads . GoogleMobileAds . Callback < com . google . android . gms . ads . rewarded . RewardItem > ( {
452452 onSuccess ( reward ) : void {
453453 ref . get ( ) ?. _onAdEvent ?.( RewardedAdEventType . EARNED_REWARD , null , RewardedItem . fromNative ( reward ) ) ;
454454 } ,
@@ -522,7 +522,6 @@ const MEDIUM_RECTANGLE = lazy(() => com.google.android.gms.ads.AdSize.MEDIUM_REC
522522
523523const FLUID = lazy ( ( ) => com . google . android . gms . ads . AdSize . FLUID ) ;
524524const WIDE_SKYSCRAPER = lazy ( ( ) => com . google . android . gms . ads . AdSize . WIDE_SKYSCRAPER ) ;
525- const SEARCH = lazy ( ( ) => com . google . android . gms . ads . AdSize . SEARCH ) ;
526525const INVALID = lazy ( ( ) => com . google . android . gms . ads . AdSize . INVALID ) ;
527526const FULL_WIDTH = lazy ( ( ) => com . google . android . gms . ads . AdSize . FULL_WIDTH ) ;
528527const AUTO_HEIGHT = lazy ( ( ) => com . google . android . gms . ads . AdSize . AUTO_HEIGHT ) ;
@@ -604,10 +603,6 @@ export class BannerAdSize extends BannerAdSizeBase {
604603 return BannerAdSize . fromNative ( INVALID ( ) ) ;
605604 }
606605
607- static get SEARCH ( ) : BannerAdSize {
608- return BannerAdSize . fromNative ( SEARCH ( ) ) ;
609- }
610-
611606 get native ( ) {
612607 return this . _native ;
613608 }
@@ -646,7 +641,7 @@ export class BannerAd extends BannerAdBase {
646641
647642 load ( options ?: RequestOptions ) {
648643 if ( this . _native ) {
649- this . _nativeRequest = org . nativescript . firebase . admob . FirebaseAdmob . BannerAd . load ( JSON . stringify ( options || { } ) , this . _native ) ;
644+ this . _nativeRequest = org . nativescript . plugins . google_mobile_ads . GoogleMobileAds . BannerAd . load ( JSON . stringify ( options || { } ) , this . _native ) ;
650645 }
651646 }
652647
@@ -670,7 +665,7 @@ export class MobileAds implements IMobileAds {
670665 onInitializationComplete ( status : com . google . android . gms . ads . initialization . InitializationStatus ) {
671666 let data = { } ;
672667 try {
673- data = JSON . parse ( org . nativescript . firebase . admob . FirebaseAdmob . toJSONStatusMap ( status . getAdapterStatusMap ( ) ) ) ;
668+ data = JSON . parse ( org . nativescript . plugins . google_mobile_ads . GoogleMobileAds . toJSONStatusMap ( status . getAdapterStatusMap ( ) ) ) ;
674669 } catch ( e ) {
675670 // noop
676671 }
@@ -699,7 +694,7 @@ export class MobileAds implements IMobileAds {
699694 } else {
700695 parsedConfiguration . tagForUnderAgeOfConsent = 'unspecified' ;
701696 }
702- org . nativescript . firebase . admob . FirebaseAdmob . setRequestConfiguration ( JSON . stringify ( requestConfiguration ) ) ;
697+ org . nativescript . plugins . google_mobile_ads . GoogleMobileAds . setRequestConfiguration ( JSON . stringify ( requestConfiguration ) ) ;
703698 } catch ( e ) {
704699 // noop
705700 }
0 commit comments