message  Send Feedback

admob

The Firebase Admob service interface.

This module is available for the default app only.

Example

Get the Admob service for the default app:

const defaultAppAdmob = firebase.admob();

Properties

Methods


Properties

app

app: FirebaseApp;
keyboard_return Inherited from 
FirebaseModule.app

The current FirebaseApp instance for this Firebase service.


Methods

setRequestConfiguration

setRequestConfiguration(
  requestConfiguration: RequestConfiguration
): Promise<void>;

Sets request options for all future ad requests.

Example

import admob, { MaxAdContentRating } from '@react-native-firebase/admob';
await admob().setRequestConfiguration({
// Update all future requests suitable for parental guidance
maxAdContentRating: MaxAdContentRating.PG,
});

Parameters

  • requestConfiguration: RequestConfiguration
    An RequestConfiguration interface used on all future AdMob ad requests.

React Native Market

Looking for pre-built React Native apps to kick start your next project? Check out the React Native Market by Invertase.

Your purchases help support our open-source projects such as React Native Firebase. All items are currently 50% off to celebrate the release of React Native Firebase version 6.
shopping_cartVisit React Native Market