[admob][android] Support multiple test devices

This commit is contained in:
Elliot Hesp
2017-06-05 14:12:49 +01:00
parent e52e01f735
commit c710f135ce
3 changed files with 20 additions and 6 deletions

View File

@@ -3,6 +3,7 @@ export default class AdRequest {
constructor() {
this._props = {
keywords: [],
testDevices: [],
};
}
@@ -10,8 +11,8 @@ export default class AdRequest {
return this._props;
}
addTestDevice() {
this._props.testDevice = true;
addTestDevice(deviceId?: string) {
this._props.testDevices.push(deviceId ? deviceId : 'DEVICE_ID_EMULATOR');
return this;
}