Immersive Ads SDK
v1.5.3 beta
v1.5.3 beta
  • 👋Welcome to Immersive Ads SDK
  • Prerequisites
    • 📪Prerequisites
    • 🧙Demand Source setup
  • Integration
    • ⬇️Adding the SDK
    • 🔗App Linking
    • 🎬Scene setup
    • 🩺Testing the integration
    • ☑️Integration Checklist
    • 🛠️Troubleshoot
  • PRESENTATION
    • 🍥Ad Object Structure
    • 🍧Changing Ad Visuals
    • 🍨Extra Display Templates
  • 🔮Samples
Powered by GitBook
On this page
  • USING A SINGLE DISPLAY TEMPLATE
  • ADDITIONAL DISPLAY TEMPLATES
  • CUSTOM DISPLAY TEMPLATES (CREATE YOUR OWN TEMPLATE)
  1. PRESENTATION

Extra Display Templates

PreviousChanging Ad VisualsNextSamples

USING A SINGLE DISPLAY TEMPLATE

To use a single display template (for instance MediaLandscapeSimple), do the following in the NativeAdHolder component.

  1. Assign MediaLandscapeSimple to the DEFAULT DISPLAY FORMAT field

  2. Uncheck the ADD EXTRA DISPLAY FORMATS field


ADDITIONAL DISPLAY TEMPLATES

The Display Handler Templates used in the default Ad Prefabs are:

  1. MediaLandscapeSimple

  2. MediaLandscapeBlur

  3. MediaPotrait

  4. NonMedia

In addition to the above display templates, the SDK provides the following templates:

  1. LogoHeadlineCompact (New! added in 1.4.2)

  2. LongHorizontalSimple

  3. LongHorizontalSimple2

  4. LongVerticalSimple

  5. TemplateCombo1

    1. Combo1 Landscape

    2. Combo1 Portrait

  6. TemplateCombo2

    1. Combo2 Landscape

    2. Combo2 Portrait

  7. TemplateCombo3

    1. Combo3 Landscape

    2. 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:

  1. Drag and drop the Display Template as a child to the SS_NativeAd or (WS_NativeAd > Canvas) object

  2. If using a Single Template, follow the steps from the section above

  3. If using multiple templates

    1. Make sure the ADD EXTRA DISPLAY FORMATS is checked

    2. Remove any display templates that you don't want to use from the Display options array

    3. Add the new display templates to the array for the SDK to pick at runtime depending on the Ad big media aspect ratio

  4. Assign the Default Display Template

  5. Make sure the Status Visualizer is visible!


CUSTOM DISPLAY TEMPLATES (CREATE YOUR OWN TEMPLATE)

  • 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

  1. Set `ADD EXTRA DISPLAY FORMATS` field to Enabled

  2. Remove any default display templates that you don't want to use from the Display options array

  3. Add your Custom display templates to the array for the SDK to pick at runtime depending on the Ad big media aspect ratio

  4. Make sure the Status Visualizer is visible

  5. Done!

🍨
New LogoHeadlineCompact template
Custom Display Templates