From 203916d5b31b25b7bfdada1509cd5f1d49f7605f Mon Sep 17 00:00:00 2001 From: Chris Williams Date: Thu, 6 Feb 2020 15:51:11 -0500 Subject: [PATCH] docs: tweak docs to add adSize --- apidoc/BannerView.yml | 8 ++++++++ apidoc/View.yml | 14 ++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/apidoc/BannerView.yml b/apidoc/BannerView.yml index 8c9bbba1..529d8cd1 100644 --- a/apidoc/BannerView.yml +++ b/apidoc/BannerView.yml @@ -4,6 +4,14 @@ extends: Titanium.UI.View platforms: [android] summary: A view for displaying ads delivered through Admob. createable: true +properties: + - name: adSize + type: Number + summary: size of the ad to display + constants: Modules.Admob.AD_SIZE_* + platforms: [android] + default: Modules.Admob.AD_SIZE_BANNER + methods: - name: requestAd summary: Calls for a new ad if needed. Pass optional `args` to configure extras. diff --git a/apidoc/View.yml b/apidoc/View.yml index 8e69fc19..4ab6d970 100644 --- a/apidoc/View.yml +++ b/apidoc/View.yml @@ -18,6 +18,20 @@ deprecated: notes: Replaced by on Android. properties: + - name: adSize + type: Number + summary: size of the ad to display + constants: Modules.Admob.AD_SIZE_* + platforms: [android] + default: Modules.Admob.AD_SIZE_BANNER + + - name: height + type: Number + summary: The height of the view, which will select an appropriate ad size automatically on iOS. + description: | + Note: Starting in 2.0.0, you just need to specify a height and an appropriate ad is selected by the Admob SDK. + platforms: [iphone, ipad] + - name: adType type: Number summary: Used to determine whetehr to display a banner ad or an interstitial ad