You are here

public static function AdsenseAdInterface::createAd in Google AdSense integration 8

Creates the ad object, as specified by the definitions in the parameter.

Parameters

array $args: Definitions of the ad object as per the AdsenseAd annotation.

Return value

AdsenseAdBase Created ad object.

Throws

\Drupal\Component\Plugin\Exception\PluginException Exception thrown in the event of problems with the plugin.

1 method overrides AdsenseAdInterface::createAd()
AdsenseAdBase::createAd in src/AdsenseAdBase.php
Creates the ad object, as specified by the definitions in the parameter.

File

src/AdsenseAdInterface.php, line 24

Class

AdsenseAdInterface
Defines an interface for the adsense ad plugins.

Namespace

Drupal\adsense

Code

public static function createAd(array $args);