@manta-eu/react/ad-preview
Reference for @manta-eu/react/ad-preview as it is on main.
Type Aliases
AdPreviewBaseProps
AdPreviewBaseProps =
object
Properties
assetNode?
optionalassetNode?:ReactNode
Media as a node rather than assetUrl. Honored by every single-media format; the
multi-item ones (carousel, reels, a story with items) take a URL per item.
assetUrl?
optionalassetUrl?:string
businessIcon?
optionalbusinessIcon?:string
businessName
businessName:
string
callToAction?
optionalcallToAction?:string
className?
optionalclassName?:string
isVideo?
optionalisVideo?:boolean
CallToAction
CallToAction =
"MORE"|"APPLY_NOW"|"ORDER_NOW"|"PLAY"|"READ"|"SHOP_NOW"|"SHOW"|"SIGN_UP"|"VIEW"|"WATCH"|"DONATE"|"DOWNLOAD"|"RESPOND"|"BUY_TICKETS"|"SHOWTIMES"|"BOOK_NOW"|"GET_NOW"|"LISTEN"|"TRY"|"VOTE"|"VIEW_MENU"|"PRE_REGISTER"|"PLAY_GAME"
FacebookAdFormat
FacebookAdFormat =
"feed"|"carousel"|"marketplace"|"story"|"reels"|"instream-reels"
FacebookAdPreviewProps
FacebookAdPreviewProps =
FacebookPreviewProps&object
Type Declaration
format
format:
FacebookAdFormat
FacebookCarouselItem
FacebookCarouselItem =
object
Properties
assetUrl
assetUrl:
string
callToAction?
optionalcallToAction?:string
isVideo?
optionalisVideo?:boolean
title?
optionaltitle?:string
FacebookPreviewProps
FacebookPreviewProps =
AdPreviewBaseProps&object
Type Declaration
description?
optionaldescription?:string
items?
optionalitems?:FacebookCarouselItem[]
mainText?
optionalmainText?:string
title?
optionaltitle?:string
url?
optionalurl?:string
GoogleAdFormat
GoogleAdFormat =
"search"|"shopping"|"display"|"discover"|"gmail"|"youtube"
GoogleAdPreviewProps
GoogleAdPreviewProps =
object&GoogleSearchAdPreviewProps|object&GoogleShoppingAdPreviewProps|object&GoogleDisplayAdProps|object&GoogleDiscoverAdProps|object&GoogleGmailAdProps|object&GoogleYoutubeAdProps
GoogleDiscoverAdProps
GoogleDiscoverAdProps =
object
Properties
businessIconUrl?
optionalbusinessIconUrl?:string
businessName
businessName:
string
businessUrl?
optionalbusinessUrl?:string
className?
optionalclassName?:string
description?
optionaldescription?:string
headline
headline:
string
imageSrc?
optionalimageSrc?:string
label?
optionallabel?:string
GoogleDisplayAdProps
GoogleDisplayAdProps =
object
Properties
callToAction?
optionalcallToAction?:string
className?
optionalclassName?:string
description
description:
string
headline
headline:
string
imageSrc?
optionalimageSrc?:string
GoogleGmailAdProps
GoogleGmailAdProps =
object
Properties
businessName
businessName:
string
className?
optionalclassName?:string
description?
optionaldescription?:string
headline
headline:
string
imageSrc?
optionalimageSrc?:string
label?
optionallabel?:string
GoogleSearchAdPreviewProps
GoogleSearchAdPreviewProps =
object
Properties
businessIconUrl?
optionalbusinessIconUrl?:string
businessName
businessName:
string
businessUrl?
optionalbusinessUrl?:string
className?
optionalclassName?:string
description?
optionaldescription?:string
headline?
optionalheadline?:string
label?
optionallabel?:string
sitelinks?
optionalsitelinks?:GoogleSearchSitelink[]
GoogleSearchSitelink
GoogleSearchSitelink =
object
Properties
description?
optionaldescription?:string
text
text:
string
url?
optionalurl?:string
GoogleShoppingAdPreviewProps
GoogleShoppingAdPreviewProps =
object
Properties
businessName
businessName:
string
className?
optionalclassName?:string
label?
optionallabel?:string
products
products:
GoogleShoppingProduct[]
GoogleShoppingPrice
GoogleShoppingPrice =
object
Properties
current
current:
string
original?
optionaloriginal?:string
GoogleShoppingProduct
GoogleShoppingProduct =
object
Properties
badge?
optionalbadge?:string
callToAction?
optionalcallToAction?:string
id
id:
string
imageUrl?
optionalimageUrl?:string
price?
optionalprice?:GoogleShoppingPrice
rating?
optionalrating?:number
reviewCount?
optionalreviewCount?:number
title?
optionaltitle?:string
GoogleYoutubeAdProps
GoogleYoutubeAdProps =
object
Properties
businessIconUrl?
optionalbusinessIconUrl?:string
businessName
businessName:
string
className?
optionalclassName?:string
description?
optionaldescription?:string
headline
headline:
string
imageSrc?
optionalimageSrc?:string
primaryCta?
optionalprimaryCta?:string
progress?
optionalprogress?:number
secondaryCta?
optionalsecondaryCta?:string
sponsoredLabel?
optionalsponsoredLabel?:string
InstagramAdFormat
InstagramAdFormat =
"feed"|"reel"|"story"|"search-result"
InstagramAdPreviewProps
InstagramAdPreviewProps =
InstagramPreviewProps&object
Type Declaration
format
format:
InstagramAdFormat
InstagramPreviewProps
InstagramPreviewProps =
AdPreviewBaseProps&object
Type Declaration
carouselAssets?
optionalcarouselAssets?:object[]
mainText?
optionalmainText?:string
MediaSlotProps
MediaSlotProps =
object
Properties
alt?
optionalalt?:string
className
className:
string
isVideo?
optionalisVideo?:boolean
node?
optionalnode?:ReactNode
Rendered instead of the <img>/<video>, for a caller whose media has no URL yet.
src?
optionalsrc?:string
SnapchatAdFormat
SnapchatAdFormat =
"between-content"
SnapchatAdPreviewProps
SnapchatAdPreviewProps =
SnapchatBetweenContentProps&object
Type Declaration
format
format:
SnapchatAdFormat
SnapchatBetweenContentProps
SnapchatBetweenContentProps =
object
Properties
assetUrl?
optionalassetUrl?:string
brandName
brandName:
string
callToAction
callToAction:
CallToAction
className?
optionalclassName?:string
headline
headline:
string
logoUrl?
optionallogoUrl?:string|null
websiteURL
websiteURL:
string
Variables
sizeClasses
constsizeClasses:object
Type Declaration
md
readonlymd:"size-8"="size-8"
sm
readonlysm:"size-6"="size-6"
xs
readonlyxs:"size-5"="size-5"
snapchatAssetPlaceHolderUrl
constsnapchatAssetPlaceHolderUrl:"https://placehold.co/1080x1920.svg"="https://placehold.co/1080x1920.svg"
snapchatLogoPlaceholderUrl
constsnapchatLogoPlaceholderUrl:"https://placehold.co/100x100.svg"="https://placehold.co/100x100.svg"
Functions
FacebookAdPreview()
FacebookAdPreview(
props):Element
Parameters
props
Returns
Element
getHumanCallToAction()
getHumanCallToAction(
callToAction):string
Parameters
callToAction
Returns
string
GoogleAdPreview()
GoogleAdPreview(
props):Element
Parameters
props
Returns
Element
GoogleDiscoverAd()
GoogleDiscoverAd(
props):Element
Parameters
props
Returns
Element
GoogleDisplayAd()
GoogleDisplayAd(
props):Element
Parameters
props
Returns
Element
GoogleGmailAd()
GoogleGmailAd(
props):Element
Parameters
props
Returns
Element
GoogleSearchAdPreview()
GoogleSearchAdPreview(
props):Element
Parameters
props
Returns
Element
GoogleShoppingAdPreview()
GoogleShoppingAdPreview(
props):Element
Parameters
props
Returns
Element
GoogleYoutubeAd()
GoogleYoutubeAd(
props):Element
Parameters
props
Returns
Element
InstagramAdPreview()
InstagramAdPreview(
props):Element
Parameters
props
Returns
Element
MediaSlot()
MediaSlot(
props):Element|null
Parameters
props
Returns
Element | null
SnapchatAdPreview()
SnapchatAdPreview(
props):Element
Parameters
props
Returns
Element