class AdTypeTranslator {

    static String getCustomEventNameForAdType(MoPubView moPubView, String adType, String fullAdType) {
        CustomEventType customEventType;

        if ("html".equals(adType) || "mraid".equals(adType)) {
            customEventType = (isInterstitial(moPubView))
                    ? CustomEventType.fromString(adType + "_interstitial")
                    : CustomEventType.fromString(adType + "_banner");
        } else {
            customEventType = ("interstitial".equals(adType))
                    ? CustomEventType.fromString(fullAdType + "_interstitial")
                    : CustomEventType.fromString(adType + "_banner");
        }

        return customEventType.toString();
    }

}