Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/khalisafkari/react-native-sdkx
GreedyGame is an end-to-end implementation, mediation and optimization platform for Ads, support Admob, FacebookAds, Mopub,
https://github.com/khalisafkari/react-native-sdkx
admob android facebook greedygame monetization mopub-ads react-native
Last synced: 19 days ago
JSON representation
GreedyGame is an end-to-end implementation, mediation and optimization platform for Ads, support Admob, FacebookAds, Mopub,
- Host: GitHub
- URL: https://github.com/khalisafkari/react-native-sdkx
- Owner: khalisafkari
- License: mit
- Created: 2020-10-23T05:15:58.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-05T14:39:17.000Z (almost 2 years ago)
- Last Synced: 2024-11-19T01:28:12.960Z (about 1 month ago)
- Topics: admob, android, facebook, greedygame, monetization, mopub-ads, react-native
- Language: Java
- Homepage:
- Size: 1.94 MB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
GreedyGame’s SDK X is an SDK for app developers to increase their monetisation capabilities. You can also connect your AdMob account and mediate ads to optimise your **AdMob** Monetization.
### installed
```shell script
npm install react-native-sdkxor
yarn add react-native-sdkx
```### Usage
```typescript jsx
// in-initialize
interface option {
appId: string; // required
themes?: number; // default 0 choose 1 | 0
enableCoppa?: boolean; // optional default true
enableCcpa?: boolean; // optional default true
enableGdpr?: boolean; // optional default true
enableDebug?: boolean; // optional default true
}interface props {
initialize(option): Promise;
isinitialize(): Promise;
loadAdIntertitial(unitAd: string): Promise;
showIntertitialAd(): void;
destroy(): void;
prefetchAds(unitAd: string, callback: Function): void;
};
``````typescript jsx
// index.jsimport SDK from 'react-native-sdkx';
export interface option {
appId: string;
themes?: number;
enableCoppa?: boolean;
enableCcpa?: boolean;
enableGdpr?: boolean;
enableDebug?: boolean;
}SDK.initialize(option)
``````typescript
// intertitial Ad
import SDKX from 'react-native-sdkx';const loadAd = await SDKX.loadAdIntertitial('unit ad')
if (loadAd) { SDKX.showIntertitialAd() }```
```typescript jsx
//Banner
import SDKX, { BannerAd } from 'react-native-sdkx';interface props {
style?: StyleProp;
adUnit?: string; // bannerId | nativeId
onReadyForRefresh?: Function;
onUiiClosed?: Function;
onUiiOpened?: Function;
onAdLoadFailed?(error?: string): Function;
onAdLoaded?: Function;
}```
```
To beautify the native appearance -
I suggest a minimum height style of 250```
## ContributingSee the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
## License
MIT