import BaseAPI from "./BaseAPI" ; import Client from "../Client" ; export declare type GetSponsoredGamesOptions = { groupId ? : number ; startRowIndex ? : number ; count ? : number ; } ; export declare type CreateAdOptions = unknown ; export declare type RunAdOptions = unknown ; export declare type StopAdOptions = unknown ; export declare type GetCreateAdMetaData = { universeId : number ; universeCreatorType : string ; universeCreatorTargetId : number ; areNativeAdsForPhoneEnabled : boolean ; areNativeAdsForTabletEnabled : boolean ; areNativeAdsForDesktopEnabled : boolean ; areNativeAdsForConsoleEnabled : boolean ; } ; export declare type GetSponsoredGames = { sponsoredGames : { adId : number ; universeName : string ; universeRootPlaceId : number ; targetDeviceType : string ; totalBid : number ; totalImpressions : number ; totalClicks : number ; campaign : { bid : number ; clicks : number ; impressions : 0 ; isRunning : boolean ; } ; gameIconUrl : string ; costPerImpressionEstimate : number ; } ; nextPageStartRowIndex : number ; creatorType : "User" | "Group" ; isErroneous : boolean ; minimumBidAmount : number ; } ; export declare type CreateAd = unknown ; export declare type RunAd = unknown ; export declare type StopAd = unknown ; export default class AdConfigurationAPI extends BaseAPI { constructor ( client ) { super ( { baseUrl : "https://adconfiguration.roblox.com/" , client } ) ; } getCreateAdMetaData ( ) { return this . request ( { requiresAuth : false , request : { path : "/v1/sponsored-games/create-ad/metadata" } , json : true } ) . then ( response => response . body as GetCreateAdMetaData ) ; } getSponsoredGames ( options ) { return this . request ( { requiresAuth : true , request : { path : "/v1/sponsored-games/sponsored-games" , qs : { groupId : options . groupId || null , startRowIndex : options . startRowIndex || 0 , count : options . count || 50 } } , json : true } ) . then ( response => response . body as GetSponsoredGames ) ; } createAd ( options ) { return this . request ( { requiresAuth : true , request : { path : "/v1/sponsored-games/create-ad" , method : "POST" , json : options as any } , json : true } ) . then ( response => response . body as CreateAd ) ; } runAd ( options ) { return this . request ( { requiresAuth : true , request : { path : "/v1/sponsored-games/run" , method : "POST" , json : options as any } , json : true } ) . then ( response => response . body as RunAd ) ; } stopAd ( options ) { return this . request ( { requiresAuth : true , request : { path : "/v1/sponsored-games/stop" , method : "POST" , json : options as any } , json : true } ) . then ( response => response . body as StopAd ) ; } }