You are here

final class AdTypes in Facebook Instant Articles 3.x

Same name and namespace in other branches
  1. 8.2 src/AdTypes.php \Drupal\fb_instant_articles\AdTypes

Ad type constants.

Hierarchy

  • class \Drupal\fb_instant_articles\AdTypes

Expanded class hierarchy of AdTypes

2 files declare their use of AdTypes
BaseSettingsForm.php in src/Form/BaseSettingsForm.php
InstantArticleContentEntityNormalizer.php in src/Normalizer/InstantArticleContentEntityNormalizer.php

File

src/AdTypes.php, line 8

Namespace

Drupal\fb_instant_articles
View source
final class AdTypes {

  /**
   * No ads will automatically be inserted into Instant Articles.
   */
  const AD_TYPE_NONE = 'none';

  /**
   * Use Facebook Audience Network for ads.
   */
  const AD_TYPE_FBAN = 'fban';

  /**
   * Use an IFrame as the method of placing ads into Instant Articles.
   */
  const AD_TYPE_SOURCE_URL = 'source_url';

  /**
   * Use a custom embed code for ads placed into Instant Articles.
   */
  const AD_TYPE_EMBED_CODE = 'embed_code';

}

Members

Namesort descending Modifiers Type Description Overrides
AdTypes::AD_TYPE_EMBED_CODE constant Use a custom embed code for ads placed into Instant Articles.
AdTypes::AD_TYPE_FBAN constant Use Facebook Audience Network for ads.
AdTypes::AD_TYPE_NONE constant No ads will automatically be inserted into Instant Articles.
AdTypes::AD_TYPE_SOURCE_URL constant Use an IFrame as the method of placing ads into Instant Articles.