Skip to content

Commit

Permalink
docs: tweak docs to add adSize
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtcoolguy committed Feb 10, 2020
1 parent 0e599ad commit 203916d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apidoc/BannerView.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
14 changes: 14 additions & 0 deletions apidoc/View.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,20 @@ deprecated:
notes: Replaced by <Modules.Admob.BannerView> 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
Expand Down

0 comments on commit 203916d

Please sign in to comment.