expo-ads-admob
Version:
Provides support for the Google AdMob SDK (https://www.google.com/admob/) for mobile advertising. This module is largely based of the react-native-admob (https://github.com/sbugert/react-native-admob) module, as the documentation and questions surrounding
17 lines (16 loc) • 862 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const config_plugins_1 = require("@expo/config-plugins");
const withAdMobAndroid_1 = require("./withAdMobAndroid");
const withAdMobIOS_1 = require("./withAdMobIOS");
const withSKAdNetworkIdentifiers_1 = require("./withSKAdNetworkIdentifiers");
const pkg = require('expo-ads-admob/package.json');
const withAdMob = (config, props) => {
config = withAdMobAndroid_1.withAdMobAndroid(config);
config = withAdMobIOS_1.withAdMobIOS(config);
config = withAdMobIOS_1.withUserTrackingPermission(config, props);
// https://developers.google.com/admob/ios/ios14
config = withSKAdNetworkIdentifiers_1.withSKAdNetworkIdentifiers(config, ['cstr6suwn9.skadnetwork']);
return config;
};
exports.default = config_plugins_1.createRunOncePlugin(withAdMob, pkg.name, pkg.version);