Ad Flags
This article presents all the flags related to advertising that can be defined in a tenant's definition.json.
adDealerExtraImpression
Description: Defines if an extra ad position is added to a tenant's site.
Location: Features
Values: True/False
Example:
"adDealerExtraImpression": false
adsBelowTopMedia
Description: Inserts an ad below the top media image, before the title.
Location: Features
Values: String
Example:
"adsBelowTopMedia": "adsBelowTopMedia320"
advertisement
Description: Used to list all the demand providers (ad servers and ad networks) the tenant is using.
Location: Features
Values: Node
Example:
"advertisement": {
"adservers": {
"doubleClick": {
adsOnHoldUntilCookies
Description: When enabled, prevents ads from initializing until the cookie policy has been resolved..
Location: Features
Values: True/False
Example:
"adsOnHoldUntilCookies": true
adInsertionStrategyS
Description: Defines if ads are inserted inline or pre-inserted.
Location: Features
Values: String:
- inserted
- preInserted
"adInsertionStrategyS": "preInserted"
balconAdFrequency
Description: Defines the number of elements before inserting a layoutRoba ad in a section preview or content group. It's used in several JSP files that implement section previews.
Location: Features
Values: Numerical
bottomDetailsAd
Description: Inserts an ad at the end of the article. The string used ("force__onScroll" or "onScroll") defines the loading strategy.
Location: Features
Values: String ("force__onScroll" or "onScroll")
Example:
"bottomDetailsAd": force_onScroll
bottomMosaicAd
Description: Inserts an ad at the beginning of the mrf-footer. The string used ("force__onScroll" or "onScroll") defines the loading strategy.
Location: Features
Values: String ("force__onScroll" or "onScroll")
Example:
"bottomMosaicAd": "force__onScreen"
customAdsStartPosition
Description: When enabled, defines if the first ad position is inserted according to a custom configuration.
Location: Features
Values: True/False
Example:
"customAdsStartPosition": true
disableAdsInTables
Description: When enabled, it forbids the AdDealer to place ads in tables. The current default is to allow ads in tables..
Location: Features
Values: True/False
Example:
"disableAdsInTables": true
disableKeepImagesAfterHeaders
Description: When enabled, this flag allows the insertion of an ad between the header and image. By default, Marfeel does not insert an ad placement there.
Location: Features
Values: True/False
Example:
"disableKeepImagesAfterHeaders":"true"
extraNativeAdvInDetails
Description: When activated, enables an extra layout for native ads.
Location: Features
Values: Boolean
facebookAutomaticAdPlacement
Description: Enables the automatic placement of ads in a publisher's Facebook Instant Articles.
Location: Features
Values: True/False
Example:
"facebookAutomaticAdPlacement": true
floatingInterClosable
Description: Enables the option to close floating ads.
Location: Features
Values: True/False
Example:
"floatingInterClosable": "false"
forceDetailsSExtraAd
Description: When set to true, this flag inserts an extra ad in the article details. By default Marfeel resolves if there are enough words after the last ad to insert a detailLayoutRoba ad.
Location: Features
Values: True/False
Example:
"forceDetailsSExtraAd": true
initialWordsBetweenAds
Description: Defines the amount of words between ads.
Location: Features
Values: Numerical
Example:
"initialWordsBetweenAds": 70
insertAdAfterTitleS
Description: Inserts a banner right after the title of an article in the article details.
Location: Features
Values: True/False
Example:
"insertAdAfterTitleS": true
maxAdsInArticle
Description: Defines the maximum number of ads loaded in the article details.
Location: Features
Values: Numerical
Example:
"maxAdsInArticle": 5
mosaicNextSectionAd
Description: When activated, enables an extra layout above the next section in mosaic.
Ad details:
- Type - "sRoba"
- Layout - "mosaicNextSectionAd"
- loadStrategy - "onScroll"
Location: Features
Values: True/False
Example:
"mosaicNextSectionAd":true
nativeAdvInDetails
This should removed when using the new inventory.json with useInventoryJsonInTouch.
Description: Enables native advertising in the article details and defines it's position according to the following:
- true - default position
- top - on top of the footer
- bottom - at the bottom of the footer.
Location: Features
Values: true, top, or bottom
Example:
"nativeAdvInDetails": true
numMadsLoadOnScreen
Description: Specifies the number of onScreen ads in the article details.
Location: Features
Values: Numerical
Example:
"numMadsLoadOnScreen": 5
stickyAds
Description: Depending on the value enables or disables sticky ads.
Location: Features
Values: True/False
Example:
"stickyAds": true
stickyMode
Description: If set to "above" the sticky ad is inserted above Marfeel's social share bar. By default a sticky is inserted below it.
Location: Features
Values: String
teadsInread
Description: Enables the use of the native ad server Teads in the detailsAdsFooter.jsp.
Location: Features
Values: True/False
Example:
"teadsInread": true
tenantFacebookAppID
Description: Part of the configuration for Facebook Instant Articles that identifies a publisher's app with a unique ID when requests are made to Facebook Audience Network.
Location: Features
Values: Numerical
Example:
"tenantFacebookAppID": "1223571062047928"
topMosaicAd
Description: A value of "onScreen" places a full-screen ad in the section mosaic that has to be closed to see the page. "force_onScreen" places the first ad in the section mosaic between the scrollable sections indicator (top menu) and the first article.
Location: Features
Values: String (onScreen and force_onScreen)
Example:
"topMosaicAd": "onScreen"
wordsBetweenLastAdAndNativeAds
Description: Defines the minimum number of words between the last ad placement in an article and native ads.
Location: Features
Values: Numerical
Example:
"wordsBetweenLastAdAndNativeAds": 30
wordsForFirstAd
Description: Defines the minimum number of words in the article details before the first ad is inserted. Two comma-separated values can be defined:
- The first is for articles without top media
- The second for articles with top media.
Location: Features
Values: True/False
Example:
"wordsForFirstAd":"50,35"