-
Notifications
You must be signed in to change notification settings - Fork 1
NativeAdDisplayHandler
GreedyBM edited this page Jun 18, 2024
·
8 revisions
This component takes a native Ad from the Native Ad Holder and displays it. It handles presentation and decides how the Ad looks.
Name | Description |
---|---|
REQUIRED AD FIELDS | |
DisplayTemplateID | An ID we use to identify which ad display template is performing for the game. If you create a custom template, make sure to assign a unique ID to it |
adHeadlineTxt | Reference to the TextMeshProUGUI component that renders the Ad headline text. |
adChoicesImg | Reference to the Image component that renders the Ad Choices graphic. |
OPTIONAL IMAGE ELEMENTS | |
adIconImg | Reference to the Image component that renders the Ad Icon graphic (Advertiser Logo). |
adIconImgHolder | Reference to the background Image component that holds the Ad Icon Image (Logo Background). |
imageTextures | Reference to the Image component that renders the Ad media graphic (Advertiser Product Image). |
OPTIONAL TEXT ELEMENTS | |
adCallToActionTxt | Reference to the TextMeshProUGUI component that renders the Ad call to action text. |
adAdvertiserTxt | Reference to the TextMeshProUGUI component that renders the Ad advertiser text. |
bodyTxt | Reference to the TextMeshProUGUI component that renders the Ad body text. |
priceTxt | Reference to the TextMeshProUGUI component that renders the Ad price text. |
storeTxt | Reference to the TextMeshProUGUI component that renders the Ad store text. |
OPTIONAL STAR RATINGS DISPLAY | |
starRatingTxt | Reference to the TextMeshProUGUI component that renders the Ad star rating text. |
starRatingStroke | Reference to the Image component that renders the outline for the star rating of the Ad product. |
starRatingFill | Reference to the Image component that renders the fill for the star rating of the Ad product. |
VISUAL CUSTOMIZATION | |
AdIconDarkBgTint | The dark tint color value to use for AdIconImgHolder component if the AdIconImg is light. |
AdIconLightBgTint | The light tint color value to use for AdIconImgHolder component if the AdIconImg is dark. |
These methods can be overloaded. Make sure to call the base class function in the overloaded function.
Name | Description |
---|---|
FillAndRegister | Fills the individual Ad component according to the availability and registers them for click and impression detection. |