Ads C++
Public Member Functions | Static Public Member Functions
ludei::ads::AdService Class Referenceabstract

Public Member Functions

virtual void configure (const AdServiceSettings &settings)=0
 
virtual AdBannercreateBanner (const char *adunit=0, AdBannerSize size=AdBannerSize::SMART_SIZE)=0
 
virtual AdInterstitialcreateInterstitial (const char *adunit=0)=0
 

Static Public Member Functions

static AdServicecreate (AdProvider provider=AdProvider::AUTO)
 
static AdServicecreate (const char *className)
 

Detailed Description

The ad service.

Member Function Documentation

virtual void ludei::ads::AdService::configure ( const AdServiceSettings settings)
pure virtual

Stablishes the default configuration for the ad service.

Parameters
settingsThe default settings.
static AdService* ludei::ads::AdService::create ( AdProvider  provider = AdProvider::AUTO)
static

Creates a new AdService

Parameters
providerThe Ad Provider that will be used or AUTO to automatically select the one linked within the binary
Returns
The AdService with the selected provider or NULL if the provider is not available
static AdService* ludei::ads::AdService::create ( const char *  className)
static

Creates a new AdService

Parameters
classNameThe className of the provider
Returns
The AdService with the selected provider or NULL if the provider is not available
virtual AdBanner* ludei::ads::AdService::createBanner ( const char *  adunit = 0,
AdBannerSize  size = AdBannerSize::SMART_SIZE 
)
pure virtual

Creates a new banner. If no adunit is specified, the default one will be used.

Parameters
adunit
virtual AdInterstitial* ludei::ads::AdService::createInterstitial ( const char *  adunit = 0)
pure virtual

Creates a new interstitial. If no adunit is specified, the default one will be used.

Parameters
adunitThe interstitial adunit.

The documentation for this class was generated from the following file: