final class AdTypes in Facebook Instant Articles 8.2
Same name and namespace in other branches
- 3.x 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_articlesView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AdTypes:: |
constant | Use a custom embed code for ads placed into Instant Articles. | ||
AdTypes:: |
constant | Use Facebook Audience Network for ads. | ||
AdTypes:: |
constant | No ads will automatically be inserted into Instant Articles. | ||
AdTypes:: |
constant | Use an IFrame as the method of placing ads into Instant Articles. |