🍨Extra Display Templates
Last updated
Last updated
To use a single display template (for instance MediaLandscapeSimple), do the following in the NativeAdHolder component.
Assign MediaLandscapeSimple to the DEFAULT DISPLAY FORMAT field
Uncheck the ADD EXTRA DISPLAY FORMATS field
The Display Handler Templates used in the default Ad Prefabs are:
MediaLandscapeSimple
MediaLandscapeBlur
MediaPotrait
NonMedia
In addition to the above display templates, the SDK provides the following templates:
LogoHeadlineCompact (New! added in 1.4.2)
LongHorizontalSimple
LongHorizontalSimple2
LongVerticalSimple
TemplateCombo1
Combo1 Landscape
Combo1 Portrait
TemplateCombo2
Combo2 Landscape
Combo2 Portrait
TemplateCombo3
Combo3 Landscape
Combo3 Portrait
These can be found in the path:
Assets/PubscaleSDK/NativeAds/Prefabs/DisplayTemplates/Dynamic/
Make sure to assign the reference to NativeAdHolder in the CheckLogo script if using this template
TO USE THESE FORMATS:
Drag and drop the Display Template as a child to the SS_NativeAd or (WS_NativeAd > Canvas) object
If using a Single Template, follow the steps from the section above
If using multiple templates
Make sure the ADD EXTRA DISPLAY FORMATS is checked
Remove any display templates that you don't want to use from the Display options array
Add the new display templates to the array for the SDK to pick at runtime depending on the Ad big media aspect ratio
Assign the Default Display Template
Make sure the Status Visualizer is visible!
If you create your own Custom Display Template, create a variant for portrait big image media as well.
This will ensure the Ad unit looks good when the ad's big image media is in Portrait aspect ratio.
In this case, you have to add your custom display variants to the Display Options array as shown in the steps below
Set `ADD EXTRA DISPLAY FORMATS` field to Enabled
Remove any default display templates that you don't want to use from the Display options array
Add your Custom display templates to the array for the SDK to pick at runtime depending on the Ad big media aspect ratio
Make sure the Status Visualizer is visible
Done!