2
0
mirror of synced 2025-01-23 20:59:10 +00:00

[admob][android] Add dummy methods to AdRequest

This commit is contained in:
Elliot Hesp 2017-05-27 17:02:03 +01:00
parent 608c1d8d6b
commit 9c2d4a73d6

View File

@ -3,6 +3,9 @@ export default class AdRequest {
constructor() { constructor() {
this._props = { this._props = {
keywords: [], keywords: [],
contentUrl: null,
isDesignedForFamilies: null,
tagForChildDirectedTreatment: null,
}; };
} }
@ -15,8 +18,38 @@ export default class AdRequest {
return this; return this;
} }
addKeyword(word: string) { addKeyword(keyword: string) {
this._props.keywords.push(word); this._props.keywords.push(keyword);
return this;
}
setBirthday() {
// TODO
}
setContentUrl(url: string) {
this._props.contentUrl = url;
}
setGender() {
// TODO
}
setLocation() {
// TODO
}
setRequestAgent() {
// TODO
}
setIsDesignedForFamilies(isDesignedForFamilies: boolean) {
this._props.isDesignedForFamilies = isDesignedForFamilies;
return this;
}
tagForChildDirectedTreatment(tagForChildDirectedTreatment: boolean) {
this._props.tagForChildDirectedTreatment = tagForChildDirectedTreatment;
return this; return this;
} }
} }