Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/khalisafkari/react-native-smaato-ad
Smaato Ads for React Native
https://github.com/khalisafkari/react-native-smaato-ad
monetization react-native react-native-admob react-native-ads smaato
Last synced: 19 days ago
JSON representation
Smaato Ads for React Native
- Host: GitHub
- URL: https://github.com/khalisafkari/react-native-smaato-ad
- Owner: khalisafkari
- License: mit
- Created: 2019-12-13T18:21:51.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-29T09:16:25.000Z (about 4 years ago)
- Last Synced: 2024-11-20T03:39:04.666Z (about 1 month ago)
- Topics: monetization, react-native, react-native-admob, react-native-ads, smaato
- Language: Java
- Homepage: https://developers.smaato.com/publishers/nextgen-sdk-android-integration/
- Size: 346 KB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# react-native-smaato-ad
[![Facebook Ads](https://www.smaato.com/wp-content/uploads/2019/11/featured-image-rewarded-video.png)](https://smaato.com)
Monetize Your App With the **Smaato** Publisher Platform
Maximize your mobile advertising fill rates and eCPMs.[![npm version](https://badge.fury.io/js/react-native-smaato-ad.svg)](https://badge.fury.io/js/react-native-smaato-ad)
## Platforms Supported
- [x] Android
_Note: Why isn't the iOS version available? because i don't have mac os_
## Getting Started
Here's how to get started quickly with the React Native Smaato Next Ads.
#### 1. Add react-native-smaato-ad to your dependencies
```
$ yarn add react-native-smaato-ad
```
(or)For npm use
```
$ npm install --save react-native-smaato-ad
```#### 2. Link native dependencies
From react-native 0.60 autolinking will take care of the link.
React Native modules that include nativeJava, or Kotlin code have to be "linked" so that the compiler knows to include them in the app.
```
$ react-native link react-native-smaato-ad
```Android -
Please make sure AndroidX is enabled in your project by editting `android/gradle.properties` and adding 2 lines:```
android.useAndroidX=true
android.enableJetifier=true
``````
# /android/app/build.gradleimplementation 'com.smaato.android.sdk:smaato-sdk:21.5.2'
implementation 'com.smaato.android.sdk:smaato-sdk-banner:21.5.2'
implementation 'com.smaato.android.sdk:smaato-sdk-interstitial:21.5.2'
implementation 'com.smaato.android.sdk:smaato-sdk-rewarded-ads:21.5.2'```
```
# /android/build.gradleallprojects {
repositories {
...
maven {
url "https://s3.amazonaws.com/smaato-sdk-releases/"
}
...
}
}```
```javascript
// index.js
import SmaatoAd from 'react-native-smaato-ad'
SmaatoAd.init('')
```#### 3. api docs
- [x] [Guide Full](docs/Getting-Started.md)
- [x] [SmaatoAd](docs/Smaato.md)
- [x] [IntertitialAd](docs/intertitials.md)
- [x] [BannerAd](docs/BannerAd.md)
- [x] [RewardAd](docs/Reward.md)
- [ ] [NativeAd](#)#### [Common issues](https://github.com/khalisafkari/react-native-smaato-ad/issues)
## License
MIT