This project demonstrates how you can employ the Google Mobile Ads SDK to show banner ads in a NativeScript framework app. Thanks to the NativeScript ability to call native API using JavaScript, you can use any native library, just by adding a reference to that library and its documentation. For more information, please refer to the following blog articles:
- Monetize your NativeScript apps with AdMob (part 1 - iOS)
- Monetize your NativeScript apps with AdMob (part 2 - Android)
The improved version of that project which implies how to create modules can be found at this repo.
Here is a list of the features that are showcased in the Google Banner Ads app:
- NativeScript ability to call native API from JavaScript
- Using an NPM plugin ads a reference to the Google Play Services.
- Using CocoaPods in an NPM plugin to load a 3rd party library.
The following is a list of requirements for the sample app:
- The NativeScript runtime with CLI tools version 1.5.2 or above.