react-native-appodeal
Version:
React Native Module created to support Appodeal SDK for iOS and Android platforms
41 lines (38 loc) • 844 B
text/typescript
/**
* Appodeal Ad Types
*
* Contains all ad-related type definitions including ad types, revenue tracking,
* and ad unit information.
*/
/**
* Ad type bit flags for combining multiple ad types
* Use bitwise OR (|) to combine multiple ad types
*/
export enum AppodealAdType {
NONE = 0,
INTERSTITIAL = 1 << 0, // 1
BANNER = 1 << 2, // 4
BANNER_BOTTOM = 1 << 3, // 8
BANNER_TOP = 1 << 4, // 16
REWARDED_VIDEO = 1 << 5, // 32
MREC = 1 << 8, // 256
ALL = INTERSTITIAL |
BANNER |
BANNER_BOTTOM |
BANNER_TOP |
REWARDED_VIDEO |
MREC,
}
/**
* Ad revenue information for analytics
*/
export interface AppodealAdRevenue {
networkName: string;
adUnitName: string;
placement: string;
revenuePrecision: string;
demandSource: string;
currency: string;
revenue: number;
adType: AppodealAdType;
}