Example #1
0
        public static TDNativeAdType GetNativeAdTypeFromAdType(TDAdType adType)
        {
            var typeString = adType.ToString();

            var nativeTypeString = typeString.Replace("TDAdType", "TDNativeAdType");

            return(GetEnumFromString <TDNativeAdType>(nativeTypeString, TDNativeAdType.TDNativeAdTypeNone));
        }
Example #2
0
 public TagsList(TDAdType adType, string tags)
 {
     ad_type        = adType.ToString();
     placement_tags = tags.Split(new [] { "," }, StringSplitOptions.RemoveEmptyEntries).ToList();
 }