Merge pull request #3032 from iFeelSmart/chore/enable_IMA_on_demand_doc

doc(android): document IMA ads insertion activation
This commit is contained in:
Olivier Bouillet 2023-02-09 22:00:08 +01:00 committed by GitHub
commit b2b0eb9f50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

18
API.md
View File

@ -164,6 +164,21 @@ protected List<ReactPackage> getPackages() {
);
}
```
#### Enable custom feature in gradle file
##### Enable client side ads insertion
To enable client side ads insertion CSAI with google IMA SDK, you need to enable it in your gradle file.
```gradle
buildscript {
ext {
...
RNVUseExoplayerIMA = true
...
}
}
```
</details>
### Windows installation
@ -370,6 +385,9 @@ Example:
adTagUrl="https://pubads.g.doubleclick.net/gampad/ads?iu=/21775744923/external/vmap_ad_samples&sz=640x480&cust_params=sample_ar%3Dpremidpostoptimizedpodbumper&ciu_szs=300x250&gdfp_req=1&ad_rule=1&output=vmap&unviewed_position_start=1&env=vp&impl=s&cmsid=496&vid=short_onecue&correlator="
```
Note: On android, you need enable IMA SDK in gradle file, see: [enableclient side ads insertion](#enable-client-side-ads-insertion)
Platforms: Android, iOS
#### allowsExternalPlayback