Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MEDIUM_RECTANGLE not working inside content #76

Open
jpnathannew opened this issue Apr 4, 2021 · 0 comments
Open

MEDIUM_RECTANGLE not working inside content #76

jpnathannew opened this issue Apr 4, 2021 · 0 comments

Comments

@jpnathannew
Copy link

Tried to place the MEDIUM_RECTANGLE Banner ad into my code and It is showing smart banner ad and its comming into center place

i am using IONIC Capacitor

const showTabBarBanner = () => {
    const options: AdOptions = {
      adId: 'ca-app-pub-XXX/XXX',
      adSize: AdSize.MEDIUM_RECTANGLE,
      position: AdPosition.CENTER,
    };

    // Show Banner Ad
    AdMob.showBanner(options)
      .then(
        async (value: any) => {
          await Toast.show({
            text: ''
          })
        },
        (error: any) => {
          console.error(error); // show error
        }
      );
    // Subscibe Banner Event Listener
    AdMob.addListener('onAdLoaded', async (info: boolean) => {
      console.log('Showing TabBar Banner AD.');
    });
  }

I want to show 300x250 ad into my content. can you please help me on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant