Class AdContextGeneratorKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • generateAdContext

         final static List<AdContext> generateAdContext(AdResponse adResponse, AdManagerContext adManagerContext)

        Generates a list of AdContext objects from an AdResponse and AdManagerContext.

        This function processes an ad response and creates individual ad contexts for each ad in the response, configuring viewability and MRC context settings based on the ad type and configuration parameters.

        Parameters:
        adResponse - The AdResponse containing ad sets and individual ads to process.
        adManagerContext - The AdManagerContext containing ad type, configuration, and settings.
        Returns:

        A list of AdContext objects, one for each ad in the response, or empty list if no ads.