UNPKG

@dat-platform/advertiser

Version:

An SDK for advertisers to track user actions, such as Telegram channel or bot joins, and notify publishers upon completion.

74 lines (73 loc) 1.48 kB
export interface SDKConfig { apiKey: string; baseURL?: string; } export interface AuthResponse { status: number; message: string; results: { token: string; user_id: string; }; success?: boolean; } export interface Offer { url: string; icon: string; title: string; reward: string; offerId: string; currency: string; campaignId: string; description: string; adtype_action: string; clickTroughURL: string; impressionTrackURL: string; } export interface Ad { id: string; type: 'banner' | 'interstitial' | 'rewarded'; content: { title: string; description?: string; imageUrl?: string; clickUrl?: string; }; } export interface OfferWallResponse { status: number; message: string; results: Offer[]; } export interface AdResponse { status: number; message: string; results: Offer[]; } export interface SDKError { code: string; message: string; details?: any; } export interface OfferWallOptions { user_unique_id?: string; limit?: number; } export interface DisplayAdOptions { user_unique_id?: string; } export interface RewardBalanceResponse { status: number; message: string; results: { reward_balance: string; }; } export interface RewardBalanceOptions { user_unique_id?: string; } export interface WebhookResponse { status: number; message: string; results: []; }