mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-06-05 07:09:36 +08:00
[admob][android] Add dummy methods to AdRequest
This commit is contained in:
@@ -3,6 +3,9 @@ export default class AdRequest {
|
||||
constructor() {
|
||||
this._props = {
|
||||
keywords: [],
|
||||
contentUrl: null,
|
||||
isDesignedForFamilies: null,
|
||||
tagForChildDirectedTreatment: null,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -15,8 +18,38 @@ export default class AdRequest {
|
||||
return this;
|
||||
}
|
||||
|
||||
addKeyword(word: string) {
|
||||
this._props.keywords.push(word);
|
||||
addKeyword(keyword: string) {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user