You are here

class AdsenseAd in Google AdSense integration 8

Defines an adsense ad item annotation object.

Plugin Namespace: Plugin\adsense\AdsenseAd.

Hierarchy

Expanded class hierarchy of AdsenseAd

See also

\Drupal\adsense\AdsenseAdManager

Plugin API

5 classes are annotated with AdsenseAd
CustomSearchAd in src/Plugin/AdsenseAd/CustomSearchAd.php
Provides an AdSense custom search engine form.
CustomSearchV2Ad in src/Plugin/AdsenseAd/CustomSearchV2Ad.php
Provides an AdSense custom search engine form.
ManagedAd in src/Plugin/AdsenseAd/ManagedAd.php
Provides an AdSense managed ad unit.
OldCodeAd in oldcode/src/Plugin/AdsenseAd/OldCodeAd.php
Provides an AdSense old code ad unit.
OldSearchAd in oldcode/src/Plugin/AdsenseAd/OldSearchAd.php
Provides an AdSense old search engine form.

File

src/Annotation/AdsenseAd.php, line 17

Namespace

Drupal\adsense\Annotation
View source
class AdsenseAd extends Plugin {

  /**
   * The plugin ID.
   *
   * @var string
   */
  public $id;

  /**
   * The name of the ad type.
   *
   * @var \Drupal\Core\Annotation\Translation
   *
   * @ingroup plugin_translatable
   */
  public $name;

  /**
   * Indicates if the plugin is for AdSense for Search.
   *
   * @var bool
   */
  public $isSearch;

  /**
   * Indicates if the plugin needs an Ad ID provided by the AdSense UI.
   *
   * @var bool
   */
  public $needsSlot;

  /**
   * Version of the plugin to use.
   *
   * @var int
   */
  public $version = 1;

}

Members

Namesort descending Modifiers Type Description Overrides
AdsenseAd::$id public property The plugin ID.
AdsenseAd::$isSearch public property Indicates if the plugin is for AdSense for Search.
AdsenseAd::$name public property The name of the ad type.
AdsenseAd::$needsSlot public property Indicates if the plugin needs an Ad ID provided by the AdSense UI.
AdsenseAd::$version public property Version of the plugin to use.
Plugin::$definition protected property The plugin definition read from the class annotation. 1
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get 5
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
Plugin::__construct public function Constructs a Plugin object. 2