in ingestion-beam/src/main/java/com/mozilla/telemetry/contextualservices/ParseReportingUrl.java [521:534]
private static String extractInteractionType(String docType) {
if (DT_TOPSITES_IMPRESSION.equals(docType) || DT_QUICKSUGGEST_IMPRESSION.equals(docType)
|| PT_MOBILE_QUICKSUGGEST_IMPRESSION.equals(docType)
|| "contile_impression".equals(docType)) {
return SponsoredInteraction.INTERACTION_IMPRESSION;
}
if (DT_TOPSITES_CLICK.equals(docType) || DT_QUICKSUGGEST_CLICK.equals(docType)
|| PT_MOBILE_QUICKSUGGEST_CLICK.equals(docType) || "contile_click".equals(docType)) {
return SponsoredInteraction.INTERACTION_CLICK;
}
throw new InvalidAttributeException("Received unexpected docType: " + docType, docType);
}