feat(admob-free): add missing config properties (#3344)

This commit is contained in:
Lucas 2020-03-22 10:54:32 +01:00 committed by GitHub
parent 7bcbca7696
commit a0f91635fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,23 @@ export interface AdMobFreeBannerConfig {
* Auto show ad when loaded
*/
autoShow?: boolean;
/**
* Child-directed setting. Default is not calling `tagForChildDirectedTreatment`.
* Set to `true` for `tagForChildDirectedTreatment(true)`.
* Set to `false` for `tagForChildDirectedTreatment(false)`.
*/
forChild?: boolean | null;
/**
* Designed for Families setting. Android-only. Default is not calling setIsDesignedForFamilies.
* Set to `true` for `setIsDesignedForFamilies(true)`.
* Set to `false` for `setIsDesignedForFamilies(false)`.
*/
forFamily?: boolean | null;
/**
* Location targeting. It accept an array in the form of `[latitude, longitude]`.
* Android-only. Default is not calling `setLatitude` and `setLongitude`.
*/
location?: (number)[] | null;
/**
* Set to true, to put banner at top
*/
@ -46,6 +63,23 @@ export interface AdMobFreeInterstitialConfig {
* Auto show ad when loaded
*/
autoShow?: boolean;
/**
* Child-directed setting. Default is not calling `tagForChildDirectedTreatment`.
* Set to `true` for `tagForChildDirectedTreatment(true)`.
* Set to `false` for `tagForChildDirectedTreatment(false)`.
*/
forChild?: boolean | null;
/**
* Designed for Families setting. Android-only. Default is not calling setIsDesignedForFamilies.
* Set to `true` for `setIsDesignedForFamilies(true)`.
* Set to `false` for `setIsDesignedForFamilies(false)`.
*/
forFamily?: boolean | null;
/**
* Location targeting. It accept an array in the form of `[latitude, longitude]`.
* Android-only. Default is not calling `setLatitude` and `setLongitude`.
*/
location?: (number)[] | null;
}
export interface AdMobFreeRewardVideoConfig {
@ -61,6 +95,23 @@ export interface AdMobFreeRewardVideoConfig {
* Auto show ad when loaded
*/
autoShow?: boolean;
/**
* Child-directed setting. Default is not calling `tagForChildDirectedTreatment`.
* Set to `true` for `tagForChildDirectedTreatment(true)`.
* Set to `false` for `tagForChildDirectedTreatment(false)`.
*/
forChild?: boolean | null;
/**
* Designed for Families setting. Android-only. Default is not calling setIsDesignedForFamilies.
* Set to `true` for `setIsDesignedForFamilies(true)`.
* Set to `false` for `setIsDesignedForFamilies(false)`.
*/
forFamily?: boolean | null;
/**
* Location targeting. It accept an array in the form of `[latitude, longitude]`.
* Android-only. Default is not calling `setLatitude` and `setLongitude`.
*/
location?: (number)[] | null;
}
/**