code: def Pack(cls, obj, version):
      
      if isinstance(obj, (datetime.datetime, datetime.date)):
        return cls.AdManagerDateTimePacker(obj, version)
      return obj
docs: Pack the given object using Ad Manager-specific logic.
  
      Args:
        obj: an object to be packed for SOAP using Ad Manager-specific logic, if
            applicable.
        version: the version of the current API, e.g. 'v201811'
  
      Returns:
        The given object packed with Ad Manager-specific logic for SOAP,
        if applicable. Otherwise, returns the given object unmodified.