AdsenseAdvertising extends AdvertisingAbstract
Table of Contents
- $advertisingEnable : bool
- Indicate if advertising bundle is enable or disabled.
- $configuration : array<string|int, mixed>
- Configuration for Provider.
- $environment : string
- Environment of app.
- $hasAds : bool
- Indicate if has an ads.
- $inlineScript : InlineScript
- $scriptRendered : bool
- Indicate if script is rendered.
- __construct() : mixed
- configure() : self
- Add configuration for provider.
- disableAdvertising() : self
- Disable advertising module.
- enableAdvertising() : self
- Enable advertising module.
- getConfig() : array<string|int, mixed>
- Get configuration of provider.
- getSlot() : mixed
- isAdvertisingEnabled() : bool
- Check if advertising module is enable.
- isEnabled() : bool
- Is enable if enable is true and client are configured.
- addGoogleAdsenseScript() : mixed
Properties
$advertisingEnable
Indicate if advertising bundle is enable or disabled.
protected
bool
$advertisingEnable
$configuration
Configuration for Provider.
protected
array<string|int, mixed>
$configuration
$environment
Environment of app.
protected
string
$environment
$hasAds
Indicate if has an ads.
protected
bool
$hasAds
= false
$inlineScript
protected
InlineScript
$inlineScript
$scriptRendered
Indicate if script is rendered.
protected
bool
$scriptRendered
= false
Methods
__construct()
public
__construct(InlineScript $inlineScript, string $environment) : mixed
Parameters
- $inlineScript : InlineScript
- $environment : string
Return values
mixed —configure()
Add configuration for provider.
public
configure(array<string|int, mixed> $config) : self
Parameters
- $config : array<string|int, mixed>
Return values
self —disableAdvertising()
Disable advertising module.
public
disableAdvertising() : self
Return values
self —enableAdvertising()
Enable advertising module.
public
enableAdvertising() : self
Return values
self —getConfig()
Get configuration of provider.
public
getConfig() : array<string|int, mixed>
Return values
array<string|int, mixed> —getSlot()
public
getSlot(string $slot) : mixed
Parameters
- $slot : string
Return values
mixed —isAdvertisingEnabled()
Check if advertising module is enable.
public
isAdvertisingEnabled() : bool
Return values
bool —isEnabled()
Is enable if enable is true and client are configured.
public
isEnabled() : bool
Return values
bool —addGoogleAdsenseScript()
private
addGoogleAdsenseScript() : mixed