import type { OAuth2Client } from 'google-auth-library'; /** * AdMob API 래퍼 * v1: 조회 (stable) * v1beta: 생성 (Limited Access — 대부분 계정에서 403, 시도는 함) */ export declare function listAccounts(auth: OAuth2Client): Promise<{ name: string | null | undefined; publisherId: string | null | undefined; reportingTimeZone: string | null | undefined; currencyCode: string | null | undefined; }[]>; export declare function listApps(auth: OAuth2Client, accountId: string): Promise<{ name: any; appId: any; platform: any; linkedAppInfo: any; manualAppInfo: any; }[]>; export declare function listAdUnits(auth: OAuth2Client, accountId: string): Promise<{ name: any; adUnitId: any; adFormat: any; adTypes: any; displayName: any; appId: any; }[]>; export declare function getNetworkReport(auth: OAuth2Client, accountId: string, startDate: { year: number; month: number; day: number; }, endDate: { year: number; month: number; day: number; }): Promise; export declare function getTodayEarnings(auth: OAuth2Client, accountId: string): Promise; export type AdFormat = 'BANNER' | 'INTERSTITIAL' | 'REWARDED' | 'REWARDED_INTERSTITIAL' | 'APP_OPEN' | 'NATIVE'; /** * adFormat → adTypes 파생 (순수 함수 — 테스트 대상). * AdMob v1beta adTypes 의 유효값은 'RICH_MEDIA'(텍스트·이미지 등 비동영상)와 'VIDEO' 둘뿐 * (Schema$AdUnit.adTypes 문서). 동영상 지원 포맷은 VIDEO 를 포함하고, * REWARDED_INTERSTITIAL 은 문서상 video-only 다. */ export declare function adTypesForFormat(adFormat: AdFormat): string[]; export declare function createApp(auth: OAuth2Client, accountId: string, platform: 'ANDROID' | 'IOS', displayName: string, /** 스토어에 게시된 앱이면 store ID 로 링크 (Android=패키지명, iOS=App Store 숫자 ID). 없으면 manual(unlinked) 앱. */ appStoreId?: string): Promise; export declare function createAdUnit(auth: OAuth2Client, accountId: string, appId: string, displayName: string, adFormat: AdFormat): Promise;