UNPKG

react-native-firebase-compiled

Version:

A well tested, feature rich Firebase implementation for React Native, supporting iOS & Android. Individual module support for Admob, Analytics, Auth, Crash Reporting, Cloud Firestore, Database, Dynamic Links, Functions, Messaging (FCM), Remote Config, Sto

70 lines (52 loc) 1.21 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; class AdRequest { constructor() { this._props = { keywords: [], testDevices: [] }; } build() { return this._props; } addTestDevice(deviceId) { this._props.testDevices.push(deviceId || 'DEVICE_ID_EMULATOR'); return this; } addKeyword(keyword) { this._props.keywords.push(keyword); return this; } setBirthday() {// TODO } setContentUrl(url) { this._props.contentUrl = url; return this; } setGender(gender) { const genders = ['male', 'female', 'unknown']; if (genders.includes(gender)) { this._props.gender = gender; } return this; } setLocation() {// TODO } setRequestAgent(requestAgent) { this._props.requestAgent = requestAgent; return this; } setIsDesignedForFamilies(isDesignedForFamilies) { this._props.isDesignedForFamilies = isDesignedForFamilies; return this; } tagForChildDirectedTreatment(tagForChildDirectedTreatment) { this._props.tagForChildDirectedTreatment = tagForChildDirectedTreatment; return this; } } exports.default = AdRequest;