Package 

Class AdRenderer


  • 
    public final class AdRenderer
    
                        

    The AdRenderer class is responsible for fetching and preparing ad data for rendering. It acts as a bridge between the ad fetcher module and UI-level ad views.

    • Constructor Detail

      • AdRenderer

        AdRenderer()
    • Method Detail

      • fetchBannerAdsWithAu

         final Map<String, Object> fetchBannerAdsWithAu(String cliUbid, String pageType, String adUnits, Map<String, Object> targetingParams, Map<String, Object> extraParams)
        Parameters:
        cliUbid - : Retailers Generated Id to identify unique shopper
        pageType - : page type from which request made.
        adUnits - : Ad unit tags defined for the different slots on the page.
        targetingParams - (optional): Filter params that you want to apply
        extraParams - (optional): Map of any other params
      • fetchCarouselAdWithAu

         final Map<String, Object> fetchCarouselAdWithAu(String cliUbid, String pageType, String adUnits, Map<String, Object> targetingParams, Map<String, Object> extraParams)
        Parameters:
        cliUbid - : Retailers Generated Id to identify unique shopper
        pageType - : page type from which request made.
        adUnits - : Ad unit tags defined for the different slots on the page.
        targetingParams - (optional): Filter params that you want to apply
        extraParams - (optional): Map of any other params
      • fetchMultiAdCarouselWithAu

         final Map<String, Object> fetchMultiAdCarouselWithAu(String cliUbid, String pageType, String adUnits, Integer productCount, Map<String, Object> targetingParams, Map<String, Object> extraParams)
        Parameters:
        cliUbid - : Retailers Generated Id to identify unique shopper
        pageType - : page type from which request made.
        adUnits - : Ad unit tags defined for the different slots on the page.
        productCount - : No of ads responded.
        targetingParams - (optional): Filter params that you want to apply
        extraParams - (optional): Map of any other params
      • fetch_banner_ads_with_au

        @Deprecated(message = Use fetchBannerAdsWithAu instead, replaceWith = @ReplaceWith(imports = {}, expression = fetchBannerAdsWithAu(cliUbid, pageType, adUnits, targetingParams, extraParams)), level = DeprecationLevel.WARNING) final Map<String, Object> fetch_banner_ads_with_au(String cli_ubid, String page_type, String ad_units, Map<String, Object> targeting_params, Map<String, Object> extra_params)
        Parameters:
        cli_ubid - : Retailers Generated Id to identify unique shopper.
        page_type - : page type from which request made.
        targeting_params - (optional): Filter params that you want to apply
        extra_params - (optional): map of any other params
      • fetch_carousel_ad_with_au

        @Deprecated(message = Use fetchCarouselAdWithAu instead, replaceWith = @ReplaceWith(imports = {}, expression = fetchCarouselAdWithAu(cliUbid, pageType, adUnits, targetingParams, extraParams)), level = DeprecationLevel.WARNING) final Map<String, Object> fetch_carousel_ad_with_au(String cli_ubid, String page_type, String ad_units, Map<String, Object> targeting_params, Map<String, Object> extra_params)
        Parameters:
        cli_ubid - : Retailers Generated Id to identify unique shopper
        page_type - : page type from which request made.
        ad_units - : Ad unit tags defined for the different slots on the page.
        targeting_params - (optional): Filter params that you want to apply
        extra_params - (optional): Map of any other params