useAppOpenAd
Use this hook to use App Open Ad with its various states.
Returns
| Type | 
|---|
| object | 
Properties:
| Name | Type | Description | 
|---|---|---|
| adLoaded | boolean | Whether your ad is loaded and ready to present. | 
| adPresented | boolean | Whether your ad is presented to user. The value remains trueuntil new ad is requested. | 
| adDismissed | boolean | Whether your ad is dismissed. The value remains trueuntil new ad is requested. | 
| adShowing | boolean | Whether your ad is showing. The value is equal with adPresented && !adDismissed. | 
| adLoadError | AdError | AdErrorobject throwed during ad load. | 
| adPresentError | AdError | AdErrorobject throwed during ad present. | 
| load | Function | Loads new ad. | 
| show | Function | Shows loaded ad. Ad must be loaded prior to this call. | 
tip
Note that adPresented value remains true after the ad is dismissed.
The value changes to false when ad is initialized via load().
To determine whether the ad is showing, use adShowing value.
caution
When using with loadOnDismissed option to true, changed adDimissed value will appear for a very short time and initialized to false as derived states are initialized just after new ad is requested.