{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Network.Google.Partners.Types.Sum where
import Network.Google.Prelude hiding (Bytes)
data OfferCustomerOfferType
= OfferTypeUnspecified
| OfferTypeSpendXGetY
| OfferTypeVideo
| OfferTypeSpendMatch
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable OfferCustomerOfferType
instance FromHttpApiData OfferCustomerOfferType where
parseQueryParam = \case
"OFFER_TYPE_UNSPECIFIED" -> Right OfferTypeUnspecified
"OFFER_TYPE_SPEND_X_GET_Y" -> Right OfferTypeSpendXGetY
"OFFER_TYPE_VIDEO" -> Right OfferTypeVideo
"OFFER_TYPE_SPEND_MATCH" -> Right OfferTypeSpendMatch
x -> Left ("Unable to parse OfferCustomerOfferType from: " <> x)
instance ToHttpApiData OfferCustomerOfferType where
toQueryParam = \case
OfferTypeUnspecified -> "OFFER_TYPE_UNSPECIFIED"
OfferTypeSpendXGetY -> "OFFER_TYPE_SPEND_X_GET_Y"
OfferTypeVideo -> "OFFER_TYPE_VIDEO"
OfferTypeSpendMatch -> "OFFER_TYPE_SPEND_MATCH"
instance FromJSON OfferCustomerOfferType where
parseJSON = parseJSONText "OfferCustomerOfferType"
instance ToJSON OfferCustomerOfferType where
toJSON = toJSONText
data LeadType
= LeadTypeUnspecified
| LtGps
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable LeadType
instance FromHttpApiData LeadType where
parseQueryParam = \case
"LEAD_TYPE_UNSPECIFIED" -> Right LeadTypeUnspecified
"LT_GPS" -> Right LtGps
x -> Left ("Unable to parse LeadType from: " <> x)
instance ToHttpApiData LeadType where
toQueryParam = \case
LeadTypeUnspecified -> "LEAD_TYPE_UNSPECIFIED"
LtGps -> "LT_GPS"
instance FromJSON LeadType where
parseJSON = parseJSONText "LeadType"
instance ToJSON LeadType where
toJSON = toJSONText
data AvailableOfferOfferLevel
= OfferLevelUnspecified
| OfferLevelDenyProblem
| OfferLevelDenyContract
| OfferLevelManual
| OfferLevelLimit0
| OfferLevelLimit5
| OfferLevelLimit15
| OfferLevelLimit50
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable AvailableOfferOfferLevel
instance FromHttpApiData AvailableOfferOfferLevel where
parseQueryParam = \case
"OFFER_LEVEL_UNSPECIFIED" -> Right OfferLevelUnspecified
"OFFER_LEVEL_DENY_PROBLEM" -> Right OfferLevelDenyProblem
"OFFER_LEVEL_DENY_CONTRACT" -> Right OfferLevelDenyContract
"OFFER_LEVEL_MANUAL" -> Right OfferLevelManual
"OFFER_LEVEL_LIMIT_0" -> Right OfferLevelLimit0
"OFFER_LEVEL_LIMIT_5" -> Right OfferLevelLimit5
"OFFER_LEVEL_LIMIT_15" -> Right OfferLevelLimit15
"OFFER_LEVEL_LIMIT_50" -> Right OfferLevelLimit50
x -> Left ("Unable to parse AvailableOfferOfferLevel from: " <> x)
instance ToHttpApiData AvailableOfferOfferLevel where
toQueryParam = \case
OfferLevelUnspecified -> "OFFER_LEVEL_UNSPECIFIED"
OfferLevelDenyProblem -> "OFFER_LEVEL_DENY_PROBLEM"
OfferLevelDenyContract -> "OFFER_LEVEL_DENY_CONTRACT"
OfferLevelManual -> "OFFER_LEVEL_MANUAL"
OfferLevelLimit0 -> "OFFER_LEVEL_LIMIT_0"
OfferLevelLimit5 -> "OFFER_LEVEL_LIMIT_5"
OfferLevelLimit15 -> "OFFER_LEVEL_LIMIT_15"
OfferLevelLimit50 -> "OFFER_LEVEL_LIMIT_50"
instance FromJSON AvailableOfferOfferLevel where
parseJSON = parseJSONText "AvailableOfferOfferLevel"
instance ToJSON AvailableOfferOfferLevel where
toJSON = toJSONText
data LogUserEventRequestEventAction
= EventActionUnspecified
| SmbClickedFindAPartnerButtonBottom
| SmbClickedFindAPartnerButtonTop
| AgencyClickedJoinNowButtonBottom
| AgencyClickedJoinNowButtonTop
| SmbCanceledPartnerContactForm
| SmbClickedContactAPartner
| SmbCompletedPartnerContactForm
| SmbEnteredEmailInContactPartnerForm
| SmbEnteredNameInContactPartnerForm
| SmbEnteredPhoneInContactPartnerForm
| SmbFailedRecaptchaInContactPartnerForm
| PartnerViewedBySmb
| SmbCanceledPartnerContactFormOnGps
| SmbChangedASearchParameterTop
| SmbClickedContactAPartnerOnGps
| SmbClickedShowMorePartnersButtonBottom
| SmbCompletedPartnerContactFormOnGps
| SmbNoPartnersAvailableWithSearchCriteria
| SmbPerformedSearchOnGps
| SmbViewedAPartnerOnGps
| SmbCanceledPartnerContactFormOnProFilePage
| SmbClickedContactAPartnerOnProFilePage
| SmbClickedPartnerWebsite
| SmbCompletedPartnerContactFormOnProFilePage
| SmbViewedAPartnerProFile
| AgencyClickedAcceptTosButton
| AgencyChangedTosCountry
| AgencyAddedAddressInMyProFilePortal
| AgencyAddedPhoneNumberInMyProFilePortal
| AgencyChangedPrimaryAccountAssociation
| AgencyChangedPrimaryCountryAssociation
| AgencyClickedAffiliateButtonInMyProFileInPortal
| AgencyClickedGiveEditAccessInMyProFilePortal
| AgencyClickedLogOutInMyProFilePortal
| AgencyClickedMyProFileLeftNavInPortal
| AgencyClickedSaveAndContinueAtBotOfCompleteProFile
| AgencyClickedUnaffiliateInMyProFilePortal
| AgencyFilledOutCompAffiliationInMyProFilePortal
| AgencySuccessfullyConnectedWithCompanyInMyProFile
| AgencyClickedCreateMccInMyProFilePortal
| AgencyDidntHaveAnMccAssociatedOnCompleteProFile
| AgencyHadAnMccAssociatedOnCompleteProFile
| AgencyAddedJobFunctionInMyProFilePortal
| AgencyLookedAtJobFunctionDropDown
| AgencySelectedAccountManagerAsJobFunction
| AgencySelectedAccountPlannerAsJobFunction
| AgencySelectedAnalyticsAsJobFunction
| AgencySelectedCreativeAsJobFunction
| AgencySelectedMediaBuyerAsJobFunction
| AgencySelectedMediaPlannerAsJobFunction
| AgencySelectedOtherAsJobFunction
| AgencySelectedProductionAsJobFunction
| AgencySelectedSeoAsJobFunction
| AgencySelectedSalesRepAsJobFunction
| AgencySelectedSearchSpeciaListAsJobFunction
| AgencyAddedChannelsInMyProFilePortal
| AgencyLookedAtAddChannelDropDown
| AgencySelectedCrossChannelFromAddChannel
| AgencySelectedDisplayFromAddChannel
| AgencySelectedMobileFromAddChannel
| AgencySelectedSearchFromAddChannel
| AgencySelectedSocialFromAddChannel
| AgencySelectedToolsFromAddChannel
| AgencySelectedYouTubeFromAddChannel
| AgencyAddedIndustriesInMyProFilePortal
| AgencyChangedAddIndustriesDropDown
| AgencyAddedMarketsInMyProFilePortal
| AgencyChangedAddMarketsDropDown
| AgencyCheckedRecieveMailPromotionsMyproFile
| AgencyCheckedRecieveMailPromotionsSignup
| AgencySelectedOptInBetaTestsAndMktResearch
| AgencySelectedOptInBetaTestsInMyProFilePortal
| AgencySelectedOptInNewsInMyProFilePortal
| AgencySelectedOptInNewsInvitationsAndPromos
| AgencySelectedOptInPerformanceSugInMyProFilePortal
| AgencySelectedOptInPerformanceSuggestions
| AgencySelectedOptInSelectAllEmailNotifications
| AgencySelectedSelectAllOptInsInMyProFilePortal
| AgencyClickedBackButtonOnConnectWithCompany
| AgencyClickedContinueToOverviewOnConnectWithCompany
| AgecnyClickedCreateMccConnectWithCompanyNotFound
| AgecnyClickedGiveEditAccessConnectWithCompanyNotFound
| AgecnyClickedLogOutConnectWithCompanyNotFound
| AgencyClickedSkipForNowOnConnectWithCompanyPage
| AgencyClosedConnectedToCompanyXButtonWrongCompany
| AgencyCompletedFieldConnectWithCompany
| AgecnyFoundCompanyToConnectWith
| AgencySuccessfullyCreatedCompany
| AgencyAddedNewCompanyLocation
| AgencyClickedCommUnityJoinNowLinkInPortalNotifications
| AgencyClickedConnectToCompanyLinkInPortalNotifications
| AgencyClickedGetCertifiedLinkInPortalNotifications
| AgencyClickedGetVideoAdsCertifiedLinkInPortalNotifications
| AgencyClickedLinkToMccLinkInPortalNotifications
| AgencyClickedInsightContentInPortal
| AgencyClickedInsightsViewNowPitchDecksInPortal
| AgencyClickedInsightsLeftNavInPortal
| AgencyClickedInsightsUploadContent
| AgencyClickedInsightsViewedDeprecated
| AgencyClickedCommUnityLeftNavInPortal
| AgencyClickedJoinCommUnityButtonCommUnityPortal
| AgencyClickedCertificationsLeftNavInPortal
| AgencyClickedCertificationsProductLeftNavInPortal
| AgencyClickedPartnerStatusLeftNavInPortal
| AgencyClickedPartnerStatusProductLeftNavInPortal
| AgencyClickedOffersLeftNavInPortal
| AgencyClickedSendButtonOnOffersPage
| AgencyClickedExamDetailsOnCertAdwordsPage
| AgencyClickedSeeExamsCertificationMainPage
| AgencyClickedTakeExamOnCertExamPage
| AgencyOpenedLastAdminDialog
| AgencyOpenedDialogWithNoUsers
| AgencyPromotedUserToAdmin
| AgencyUnaffiliated
| AgencyChangedRoles
| SmbClickedCompanyNameLinkToProFile
| SmbViewedAdwordsCertificate
| SmbViewedAdwordsSearchCertificate
| SmbViewedAdwordsDisplayCertificate
| SmbClickedAdwordsCertificateHelpIcon
| SmbViewedAnalyticsCertificate
| SmbViewedDoubleClickCertificate
| SmbViewedMobileSitesCertificate
| SmbViewedVideoAdsCertificate
| SmbViewedShoppingCertificate
| SmbClickedVideoAdsCertificateHelpIcon
| SmbViewedDigitalSalesCertificate
| ClickedHelpAtBottom
| ClickedHelpAtTop
| ClientError
| AgencyClickedLeftNavStories
| Clicked
| SmbViewedMobileCertificate
| AgencyFailedCompanyVerification
| VisitedLanding
| VisitedGps
| VisitedAgencyPortal
| CancelledIndividualSignUp
| CancelledCompanySignUp
| AgencyClickedSignInButtonTop
| AgencyClickedSaveAndContinueAtBotOfIncompleteProFile
| AgencyUnselectedOptInNewsInvitationsAndPromos
| AgencyUnselectedOptInBetaTestsAndMktResearch
| AgencyUnselectedOptInPerformanceSuggestions
| AgencySelectedOptOutUnselectAllEmailNotifications
| AgencyLinkedIndividualMcc
| AgencySuggestedToUser
| AgencyIgnoredSuggestedAgenciesAndSearched
| AgencyPickedSuggestedAgency
| AgencySearchedForAgencies
| AgencyPickedSearchedAgency
| AgencyDismissedAffiliationWidget
| AgencyClickedInsightsDownloadContent
| AgencyProgressInsightsViewContent
| AgencyClickedCancelAcceptTosButton
| SmbEnteredWebsiteInContactPartnerForm
| AgencySelectedOptInAfaMigration
| AgencySelectedOptOutAfaMigration
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable LogUserEventRequestEventAction
instance FromHttpApiData LogUserEventRequestEventAction where
parseQueryParam = \case
"EVENT_ACTION_UNSPECIFIED" -> Right EventActionUnspecified
"SMB_CLICKED_FIND_A_PARTNER_BUTTON_BOTTOM" -> Right SmbClickedFindAPartnerButtonBottom
"SMB_CLICKED_FIND_A_PARTNER_BUTTON_TOP" -> Right SmbClickedFindAPartnerButtonTop
"AGENCY_CLICKED_JOIN_NOW_BUTTON_BOTTOM" -> Right AgencyClickedJoinNowButtonBottom
"AGENCY_CLICKED_JOIN_NOW_BUTTON_TOP" -> Right AgencyClickedJoinNowButtonTop
"SMB_CANCELED_PARTNER_CONTACT_FORM" -> Right SmbCanceledPartnerContactForm
"SMB_CLICKED_CONTACT_A_PARTNER" -> Right SmbClickedContactAPartner
"SMB_COMPLETED_PARTNER_CONTACT_FORM" -> Right SmbCompletedPartnerContactForm
"SMB_ENTERED_EMAIL_IN_CONTACT_PARTNER_FORM" -> Right SmbEnteredEmailInContactPartnerForm
"SMB_ENTERED_NAME_IN_CONTACT_PARTNER_FORM" -> Right SmbEnteredNameInContactPartnerForm
"SMB_ENTERED_PHONE_IN_CONTACT_PARTNER_FORM" -> Right SmbEnteredPhoneInContactPartnerForm
"SMB_FAILED_RECAPTCHA_IN_CONTACT_PARTNER_FORM" -> Right SmbFailedRecaptchaInContactPartnerForm
"PARTNER_VIEWED_BY_SMB" -> Right PartnerViewedBySmb
"SMB_CANCELED_PARTNER_CONTACT_FORM_ON_GPS" -> Right SmbCanceledPartnerContactFormOnGps
"SMB_CHANGED_A_SEARCH_PARAMETER_TOP" -> Right SmbChangedASearchParameterTop
"SMB_CLICKED_CONTACT_A_PARTNER_ON_GPS" -> Right SmbClickedContactAPartnerOnGps
"SMB_CLICKED_SHOW_MORE_PARTNERS_BUTTON_BOTTOM" -> Right SmbClickedShowMorePartnersButtonBottom
"SMB_COMPLETED_PARTNER_CONTACT_FORM_ON_GPS" -> Right SmbCompletedPartnerContactFormOnGps
"SMB_NO_PARTNERS_AVAILABLE_WITH_SEARCH_CRITERIA" -> Right SmbNoPartnersAvailableWithSearchCriteria
"SMB_PERFORMED_SEARCH_ON_GPS" -> Right SmbPerformedSearchOnGps
"SMB_VIEWED_A_PARTNER_ON_GPS" -> Right SmbViewedAPartnerOnGps
"SMB_CANCELED_PARTNER_CONTACT_FORM_ON_PROFILE_PAGE" -> Right SmbCanceledPartnerContactFormOnProFilePage
"SMB_CLICKED_CONTACT_A_PARTNER_ON_PROFILE_PAGE" -> Right SmbClickedContactAPartnerOnProFilePage
"SMB_CLICKED_PARTNER_WEBSITE" -> Right SmbClickedPartnerWebsite
"SMB_COMPLETED_PARTNER_CONTACT_FORM_ON_PROFILE_PAGE" -> Right SmbCompletedPartnerContactFormOnProFilePage
"SMB_VIEWED_A_PARTNER_PROFILE" -> Right SmbViewedAPartnerProFile
"AGENCY_CLICKED_ACCEPT_TOS_BUTTON" -> Right AgencyClickedAcceptTosButton
"AGENCY_CHANGED_TOS_COUNTRY" -> Right AgencyChangedTosCountry
"AGENCY_ADDED_ADDRESS_IN_MY_PROFILE_PORTAL" -> Right AgencyAddedAddressInMyProFilePortal
"AGENCY_ADDED_PHONE_NUMBER_IN_MY_PROFILE_PORTAL" -> Right AgencyAddedPhoneNumberInMyProFilePortal
"AGENCY_CHANGED_PRIMARY_ACCOUNT_ASSOCIATION" -> Right AgencyChangedPrimaryAccountAssociation
"AGENCY_CHANGED_PRIMARY_COUNTRY_ASSOCIATION" -> Right AgencyChangedPrimaryCountryAssociation
"AGENCY_CLICKED_AFFILIATE_BUTTON_IN_MY_PROFILE_IN_PORTAL" -> Right AgencyClickedAffiliateButtonInMyProFileInPortal
"AGENCY_CLICKED_GIVE_EDIT_ACCESS_IN_MY_PROFILE_PORTAL" -> Right AgencyClickedGiveEditAccessInMyProFilePortal
"AGENCY_CLICKED_LOG_OUT_IN_MY_PROFILE_PORTAL" -> Right AgencyClickedLogOutInMyProFilePortal
"AGENCY_CLICKED_MY_PROFILE_LEFT_NAV_IN_PORTAL" -> Right AgencyClickedMyProFileLeftNavInPortal
"AGENCY_CLICKED_SAVE_AND_CONTINUE_AT_BOT_OF_COMPLETE_PROFILE" -> Right AgencyClickedSaveAndContinueAtBotOfCompleteProFile
"AGENCY_CLICKED_UNAFFILIATE_IN_MY_PROFILE_PORTAL" -> Right AgencyClickedUnaffiliateInMyProFilePortal
"AGENCY_FILLED_OUT_COMP_AFFILIATION_IN_MY_PROFILE_PORTAL" -> Right AgencyFilledOutCompAffiliationInMyProFilePortal
"AGENCY_SUCCESSFULLY_CONNECTED_WITH_COMPANY_IN_MY_PROFILE" -> Right AgencySuccessfullyConnectedWithCompanyInMyProFile
"AGENCY_CLICKED_CREATE_MCC_IN_MY_PROFILE_PORTAL" -> Right AgencyClickedCreateMccInMyProFilePortal
"AGENCY_DIDNT_HAVE_AN_MCC_ASSOCIATED_ON_COMPLETE_PROFILE" -> Right AgencyDidntHaveAnMccAssociatedOnCompleteProFile
"AGENCY_HAD_AN_MCC_ASSOCIATED_ON_COMPLETE_PROFILE" -> Right AgencyHadAnMccAssociatedOnCompleteProFile
"AGENCY_ADDED_JOB_FUNCTION_IN_MY_PROFILE_PORTAL" -> Right AgencyAddedJobFunctionInMyProFilePortal
"AGENCY_LOOKED_AT_JOB_FUNCTION_DROP_DOWN" -> Right AgencyLookedAtJobFunctionDropDown
"AGENCY_SELECTED_ACCOUNT_MANAGER_AS_JOB_FUNCTION" -> Right AgencySelectedAccountManagerAsJobFunction
"AGENCY_SELECTED_ACCOUNT_PLANNER_AS_JOB_FUNCTION" -> Right AgencySelectedAccountPlannerAsJobFunction
"AGENCY_SELECTED_ANALYTICS_AS_JOB_FUNCTION" -> Right AgencySelectedAnalyticsAsJobFunction
"AGENCY_SELECTED_CREATIVE_AS_JOB_FUNCTION" -> Right AgencySelectedCreativeAsJobFunction
"AGENCY_SELECTED_MEDIA_BUYER_AS_JOB_FUNCTION" -> Right AgencySelectedMediaBuyerAsJobFunction
"AGENCY_SELECTED_MEDIA_PLANNER_AS_JOB_FUNCTION" -> Right AgencySelectedMediaPlannerAsJobFunction
"AGENCY_SELECTED_OTHER_AS_JOB_FUNCTION" -> Right AgencySelectedOtherAsJobFunction
"AGENCY_SELECTED_PRODUCTION_AS_JOB_FUNCTION" -> Right AgencySelectedProductionAsJobFunction
"AGENCY_SELECTED_SEO_AS_JOB_FUNCTION" -> Right AgencySelectedSeoAsJobFunction
"AGENCY_SELECTED_SALES_REP_AS_JOB_FUNCTION" -> Right AgencySelectedSalesRepAsJobFunction
"AGENCY_SELECTED_SEARCH_SPECIALIST_AS_JOB_FUNCTION" -> Right AgencySelectedSearchSpeciaListAsJobFunction
"AGENCY_ADDED_CHANNELS_IN_MY_PROFILE_PORTAL" -> Right AgencyAddedChannelsInMyProFilePortal
"AGENCY_LOOKED_AT_ADD_CHANNEL_DROP_DOWN" -> Right AgencyLookedAtAddChannelDropDown
"AGENCY_SELECTED_CROSS_CHANNEL_FROM_ADD_CHANNEL" -> Right AgencySelectedCrossChannelFromAddChannel
"AGENCY_SELECTED_DISPLAY_FROM_ADD_CHANNEL" -> Right AgencySelectedDisplayFromAddChannel
"AGENCY_SELECTED_MOBILE_FROM_ADD_CHANNEL" -> Right AgencySelectedMobileFromAddChannel
"AGENCY_SELECTED_SEARCH_FROM_ADD_CHANNEL" -> Right AgencySelectedSearchFromAddChannel
"AGENCY_SELECTED_SOCIAL_FROM_ADD_CHANNEL" -> Right AgencySelectedSocialFromAddChannel
"AGENCY_SELECTED_TOOLS_FROM_ADD_CHANNEL" -> Right AgencySelectedToolsFromAddChannel
"AGENCY_SELECTED_YOUTUBE_FROM_ADD_CHANNEL" -> Right AgencySelectedYouTubeFromAddChannel
"AGENCY_ADDED_INDUSTRIES_IN_MY_PROFILE_PORTAL" -> Right AgencyAddedIndustriesInMyProFilePortal
"AGENCY_CHANGED_ADD_INDUSTRIES_DROP_DOWN" -> Right AgencyChangedAddIndustriesDropDown
"AGENCY_ADDED_MARKETS_IN_MY_PROFILE_PORTAL" -> Right AgencyAddedMarketsInMyProFilePortal
"AGENCY_CHANGED_ADD_MARKETS_DROP_DOWN" -> Right AgencyChangedAddMarketsDropDown
"AGENCY_CHECKED_RECIEVE_MAIL_PROMOTIONS_MYPROFILE" -> Right AgencyCheckedRecieveMailPromotionsMyproFile
"AGENCY_CHECKED_RECIEVE_MAIL_PROMOTIONS_SIGNUP" -> Right AgencyCheckedRecieveMailPromotionsSignup
"AGENCY_SELECTED_OPT_IN_BETA_TESTS_AND_MKT_RESEARCH" -> Right AgencySelectedOptInBetaTestsAndMktResearch
"AGENCY_SELECTED_OPT_IN_BETA_TESTS_IN_MY_PROFILE_PORTAL" -> Right AgencySelectedOptInBetaTestsInMyProFilePortal
"AGENCY_SELECTED_OPT_IN_NEWS_IN_MY_PROFILE_PORTAL" -> Right AgencySelectedOptInNewsInMyProFilePortal
"AGENCY_SELECTED_OPT_IN_NEWS_INVITATIONS_AND_PROMOS" -> Right AgencySelectedOptInNewsInvitationsAndPromos
"AGENCY_SELECTED_OPT_IN_PERFORMANCE_SUG_IN_MY_PROFILE_PORTAL" -> Right AgencySelectedOptInPerformanceSugInMyProFilePortal
"AGENCY_SELECTED_OPT_IN_PERFORMANCE_SUGGESTIONS" -> Right AgencySelectedOptInPerformanceSuggestions
"AGENCY_SELECTED_OPT_IN_SELECT_ALL_EMAIL_NOTIFICATIONS" -> Right AgencySelectedOptInSelectAllEmailNotifications
"AGENCY_SELECTED_SELECT_ALL_OPT_INS_IN_MY_PROFILE_PORTAL" -> Right AgencySelectedSelectAllOptInsInMyProFilePortal
"AGENCY_CLICKED_BACK_BUTTON_ON_CONNECT_WITH_COMPANY" -> Right AgencyClickedBackButtonOnConnectWithCompany
"AGENCY_CLICKED_CONTINUE_TO_OVERVIEW_ON_CONNECT_WITH_COMPANY" -> Right AgencyClickedContinueToOverviewOnConnectWithCompany
"AGECNY_CLICKED_CREATE_MCC_CONNECT_WITH_COMPANY_NOT_FOUND" -> Right AgecnyClickedCreateMccConnectWithCompanyNotFound
"AGECNY_CLICKED_GIVE_EDIT_ACCESS_CONNECT_WITH_COMPANY_NOT_FOUND" -> Right AgecnyClickedGiveEditAccessConnectWithCompanyNotFound
"AGECNY_CLICKED_LOG_OUT_CONNECT_WITH_COMPANY_NOT_FOUND" -> Right AgecnyClickedLogOutConnectWithCompanyNotFound
"AGENCY_CLICKED_SKIP_FOR_NOW_ON_CONNECT_WITH_COMPANY_PAGE" -> Right AgencyClickedSkipForNowOnConnectWithCompanyPage
"AGENCY_CLOSED_CONNECTED_TO_COMPANY_X_BUTTON_WRONG_COMPANY" -> Right AgencyClosedConnectedToCompanyXButtonWrongCompany
"AGENCY_COMPLETED_FIELD_CONNECT_WITH_COMPANY" -> Right AgencyCompletedFieldConnectWithCompany
"AGECNY_FOUND_COMPANY_TO_CONNECT_WITH" -> Right AgecnyFoundCompanyToConnectWith
"AGENCY_SUCCESSFULLY_CREATED_COMPANY" -> Right AgencySuccessfullyCreatedCompany
"AGENCY_ADDED_NEW_COMPANY_LOCATION" -> Right AgencyAddedNewCompanyLocation
"AGENCY_CLICKED_COMMUNITY_JOIN_NOW_LINK_IN_PORTAL_NOTIFICATIONS" -> Right AgencyClickedCommUnityJoinNowLinkInPortalNotifications
"AGENCY_CLICKED_CONNECT_TO_COMPANY_LINK_IN_PORTAL_NOTIFICATIONS" -> Right AgencyClickedConnectToCompanyLinkInPortalNotifications
"AGENCY_CLICKED_GET_CERTIFIED_LINK_IN_PORTAL_NOTIFICATIONS" -> Right AgencyClickedGetCertifiedLinkInPortalNotifications
"AGENCY_CLICKED_GET_VIDEO_ADS_CERTIFIED_LINK_IN_PORTAL_NOTIFICATIONS" -> Right AgencyClickedGetVideoAdsCertifiedLinkInPortalNotifications
"AGENCY_CLICKED_LINK_TO_MCC_LINK_IN_PORTAL_NOTIFICATIONS" -> Right AgencyClickedLinkToMccLinkInPortalNotifications
"AGENCY_CLICKED_INSIGHT_CONTENT_IN_PORTAL" -> Right AgencyClickedInsightContentInPortal
"AGENCY_CLICKED_INSIGHTS_VIEW_NOW_PITCH_DECKS_IN_PORTAL" -> Right AgencyClickedInsightsViewNowPitchDecksInPortal
"AGENCY_CLICKED_INSIGHTS_LEFT_NAV_IN_PORTAL" -> Right AgencyClickedInsightsLeftNavInPortal
"AGENCY_CLICKED_INSIGHTS_UPLOAD_CONTENT" -> Right AgencyClickedInsightsUploadContent
"AGENCY_CLICKED_INSIGHTS_VIEWED_DEPRECATED" -> Right AgencyClickedInsightsViewedDeprecated
"AGENCY_CLICKED_COMMUNITY_LEFT_NAV_IN_PORTAL" -> Right AgencyClickedCommUnityLeftNavInPortal
"AGENCY_CLICKED_JOIN_COMMUNITY_BUTTON_COMMUNITY_PORTAL" -> Right AgencyClickedJoinCommUnityButtonCommUnityPortal
"AGENCY_CLICKED_CERTIFICATIONS_LEFT_NAV_IN_PORTAL" -> Right AgencyClickedCertificationsLeftNavInPortal
"AGENCY_CLICKED_CERTIFICATIONS_PRODUCT_LEFT_NAV_IN_PORTAL" -> Right AgencyClickedCertificationsProductLeftNavInPortal
"AGENCY_CLICKED_PARTNER_STATUS_LEFT_NAV_IN_PORTAL" -> Right AgencyClickedPartnerStatusLeftNavInPortal
"AGENCY_CLICKED_PARTNER_STATUS_PRODUCT_LEFT_NAV_IN_PORTAL" -> Right AgencyClickedPartnerStatusProductLeftNavInPortal
"AGENCY_CLICKED_OFFERS_LEFT_NAV_IN_PORTAL" -> Right AgencyClickedOffersLeftNavInPortal
"AGENCY_CLICKED_SEND_BUTTON_ON_OFFERS_PAGE" -> Right AgencyClickedSendButtonOnOffersPage
"AGENCY_CLICKED_EXAM_DETAILS_ON_CERT_ADWORDS_PAGE" -> Right AgencyClickedExamDetailsOnCertAdwordsPage
"AGENCY_CLICKED_SEE_EXAMS_CERTIFICATION_MAIN_PAGE" -> Right AgencyClickedSeeExamsCertificationMainPage
"AGENCY_CLICKED_TAKE_EXAM_ON_CERT_EXAM_PAGE" -> Right AgencyClickedTakeExamOnCertExamPage
"AGENCY_OPENED_LAST_ADMIN_DIALOG" -> Right AgencyOpenedLastAdminDialog
"AGENCY_OPENED_DIALOG_WITH_NO_USERS" -> Right AgencyOpenedDialogWithNoUsers
"AGENCY_PROMOTED_USER_TO_ADMIN" -> Right AgencyPromotedUserToAdmin
"AGENCY_UNAFFILIATED" -> Right AgencyUnaffiliated
"AGENCY_CHANGED_ROLES" -> Right AgencyChangedRoles
"SMB_CLICKED_COMPANY_NAME_LINK_TO_PROFILE" -> Right SmbClickedCompanyNameLinkToProFile
"SMB_VIEWED_ADWORDS_CERTIFICATE" -> Right SmbViewedAdwordsCertificate
"SMB_VIEWED_ADWORDS_SEARCH_CERTIFICATE" -> Right SmbViewedAdwordsSearchCertificate
"SMB_VIEWED_ADWORDS_DISPLAY_CERTIFICATE" -> Right SmbViewedAdwordsDisplayCertificate
"SMB_CLICKED_ADWORDS_CERTIFICATE_HELP_ICON" -> Right SmbClickedAdwordsCertificateHelpIcon
"SMB_VIEWED_ANALYTICS_CERTIFICATE" -> Right SmbViewedAnalyticsCertificate
"SMB_VIEWED_DOUBLECLICK_CERTIFICATE" -> Right SmbViewedDoubleClickCertificate
"SMB_VIEWED_MOBILE_SITES_CERTIFICATE" -> Right SmbViewedMobileSitesCertificate
"SMB_VIEWED_VIDEO_ADS_CERTIFICATE" -> Right SmbViewedVideoAdsCertificate
"SMB_VIEWED_SHOPPING_CERTIFICATE" -> Right SmbViewedShoppingCertificate
"SMB_CLICKED_VIDEO_ADS_CERTIFICATE_HELP_ICON" -> Right SmbClickedVideoAdsCertificateHelpIcon
"SMB_VIEWED_DIGITAL_SALES_CERTIFICATE" -> Right SmbViewedDigitalSalesCertificate
"CLICKED_HELP_AT_BOTTOM" -> Right ClickedHelpAtBottom
"CLICKED_HELP_AT_TOP" -> Right ClickedHelpAtTop
"CLIENT_ERROR" -> Right ClientError
"AGENCY_CLICKED_LEFT_NAV_STORIES" -> Right AgencyClickedLeftNavStories
"CLICKED" -> Right Clicked
"SMB_VIEWED_MOBILE_CERTIFICATE" -> Right SmbViewedMobileCertificate
"AGENCY_FAILED_COMPANY_VERIFICATION" -> Right AgencyFailedCompanyVerification
"VISITED_LANDING" -> Right VisitedLanding
"VISITED_GPS" -> Right VisitedGps
"VISITED_AGENCY_PORTAL" -> Right VisitedAgencyPortal
"CANCELLED_INDIVIDUAL_SIGN_UP" -> Right CancelledIndividualSignUp
"CANCELLED_COMPANY_SIGN_UP" -> Right CancelledCompanySignUp
"AGENCY_CLICKED_SIGN_IN_BUTTON_TOP" -> Right AgencyClickedSignInButtonTop
"AGENCY_CLICKED_SAVE_AND_CONTINUE_AT_BOT_OF_INCOMPLETE_PROFILE" -> Right AgencyClickedSaveAndContinueAtBotOfIncompleteProFile
"AGENCY_UNSELECTED_OPT_IN_NEWS_INVITATIONS_AND_PROMOS" -> Right AgencyUnselectedOptInNewsInvitationsAndPromos
"AGENCY_UNSELECTED_OPT_IN_BETA_TESTS_AND_MKT_RESEARCH" -> Right AgencyUnselectedOptInBetaTestsAndMktResearch
"AGENCY_UNSELECTED_OPT_IN_PERFORMANCE_SUGGESTIONS" -> Right AgencyUnselectedOptInPerformanceSuggestions
"AGENCY_SELECTED_OPT_OUT_UNSELECT_ALL_EMAIL_NOTIFICATIONS" -> Right AgencySelectedOptOutUnselectAllEmailNotifications
"AGENCY_LINKED_INDIVIDUAL_MCC" -> Right AgencyLinkedIndividualMcc
"AGENCY_SUGGESTED_TO_USER" -> Right AgencySuggestedToUser
"AGENCY_IGNORED_SUGGESTED_AGENCIES_AND_SEARCHED" -> Right AgencyIgnoredSuggestedAgenciesAndSearched
"AGENCY_PICKED_SUGGESTED_AGENCY" -> Right AgencyPickedSuggestedAgency
"AGENCY_SEARCHED_FOR_AGENCIES" -> Right AgencySearchedForAgencies
"AGENCY_PICKED_SEARCHED_AGENCY" -> Right AgencyPickedSearchedAgency
"AGENCY_DISMISSED_AFFILIATION_WIDGET" -> Right AgencyDismissedAffiliationWidget
"AGENCY_CLICKED_INSIGHTS_DOWNLOAD_CONTENT" -> Right AgencyClickedInsightsDownloadContent
"AGENCY_PROGRESS_INSIGHTS_VIEW_CONTENT" -> Right AgencyProgressInsightsViewContent
"AGENCY_CLICKED_CANCEL_ACCEPT_TOS_BUTTON" -> Right AgencyClickedCancelAcceptTosButton
"SMB_ENTERED_WEBSITE_IN_CONTACT_PARTNER_FORM" -> Right SmbEnteredWebsiteInContactPartnerForm
"AGENCY_SELECTED_OPT_IN_AFA_MIGRATION" -> Right AgencySelectedOptInAfaMigration
"AGENCY_SELECTED_OPT_OUT_AFA_MIGRATION" -> Right AgencySelectedOptOutAfaMigration
x -> Left ("Unable to parse LogUserEventRequestEventAction from: " <> x)
instance ToHttpApiData LogUserEventRequestEventAction where
toQueryParam = \case
EventActionUnspecified -> "EVENT_ACTION_UNSPECIFIED"
SmbClickedFindAPartnerButtonBottom -> "SMB_CLICKED_FIND_A_PARTNER_BUTTON_BOTTOM"
SmbClickedFindAPartnerButtonTop -> "SMB_CLICKED_FIND_A_PARTNER_BUTTON_TOP"
AgencyClickedJoinNowButtonBottom -> "AGENCY_CLICKED_JOIN_NOW_BUTTON_BOTTOM"
AgencyClickedJoinNowButtonTop -> "AGENCY_CLICKED_JOIN_NOW_BUTTON_TOP"
SmbCanceledPartnerContactForm -> "SMB_CANCELED_PARTNER_CONTACT_FORM"
SmbClickedContactAPartner -> "SMB_CLICKED_CONTACT_A_PARTNER"
SmbCompletedPartnerContactForm -> "SMB_COMPLETED_PARTNER_CONTACT_FORM"
SmbEnteredEmailInContactPartnerForm -> "SMB_ENTERED_EMAIL_IN_CONTACT_PARTNER_FORM"
SmbEnteredNameInContactPartnerForm -> "SMB_ENTERED_NAME_IN_CONTACT_PARTNER_FORM"
SmbEnteredPhoneInContactPartnerForm -> "SMB_ENTERED_PHONE_IN_CONTACT_PARTNER_FORM"
SmbFailedRecaptchaInContactPartnerForm -> "SMB_FAILED_RECAPTCHA_IN_CONTACT_PARTNER_FORM"
PartnerViewedBySmb -> "PARTNER_VIEWED_BY_SMB"
SmbCanceledPartnerContactFormOnGps -> "SMB_CANCELED_PARTNER_CONTACT_FORM_ON_GPS"
SmbChangedASearchParameterTop -> "SMB_CHANGED_A_SEARCH_PARAMETER_TOP"
SmbClickedContactAPartnerOnGps -> "SMB_CLICKED_CONTACT_A_PARTNER_ON_GPS"
SmbClickedShowMorePartnersButtonBottom -> "SMB_CLICKED_SHOW_MORE_PARTNERS_BUTTON_BOTTOM"
SmbCompletedPartnerContactFormOnGps -> "SMB_COMPLETED_PARTNER_CONTACT_FORM_ON_GPS"
SmbNoPartnersAvailableWithSearchCriteria -> "SMB_NO_PARTNERS_AVAILABLE_WITH_SEARCH_CRITERIA"
SmbPerformedSearchOnGps -> "SMB_PERFORMED_SEARCH_ON_GPS"
SmbViewedAPartnerOnGps -> "SMB_VIEWED_A_PARTNER_ON_GPS"
SmbCanceledPartnerContactFormOnProFilePage -> "SMB_CANCELED_PARTNER_CONTACT_FORM_ON_PROFILE_PAGE"
SmbClickedContactAPartnerOnProFilePage -> "SMB_CLICKED_CONTACT_A_PARTNER_ON_PROFILE_PAGE"
SmbClickedPartnerWebsite -> "SMB_CLICKED_PARTNER_WEBSITE"
SmbCompletedPartnerContactFormOnProFilePage -> "SMB_COMPLETED_PARTNER_CONTACT_FORM_ON_PROFILE_PAGE"
SmbViewedAPartnerProFile -> "SMB_VIEWED_A_PARTNER_PROFILE"
AgencyClickedAcceptTosButton -> "AGENCY_CLICKED_ACCEPT_TOS_BUTTON"
AgencyChangedTosCountry -> "AGENCY_CHANGED_TOS_COUNTRY"
AgencyAddedAddressInMyProFilePortal -> "AGENCY_ADDED_ADDRESS_IN_MY_PROFILE_PORTAL"
AgencyAddedPhoneNumberInMyProFilePortal -> "AGENCY_ADDED_PHONE_NUMBER_IN_MY_PROFILE_PORTAL"
AgencyChangedPrimaryAccountAssociation -> "AGENCY_CHANGED_PRIMARY_ACCOUNT_ASSOCIATION"
AgencyChangedPrimaryCountryAssociation -> "AGENCY_CHANGED_PRIMARY_COUNTRY_ASSOCIATION"
AgencyClickedAffiliateButtonInMyProFileInPortal -> "AGENCY_CLICKED_AFFILIATE_BUTTON_IN_MY_PROFILE_IN_PORTAL"
AgencyClickedGiveEditAccessInMyProFilePortal -> "AGENCY_CLICKED_GIVE_EDIT_ACCESS_IN_MY_PROFILE_PORTAL"
AgencyClickedLogOutInMyProFilePortal -> "AGENCY_CLICKED_LOG_OUT_IN_MY_PROFILE_PORTAL"
AgencyClickedMyProFileLeftNavInPortal -> "AGENCY_CLICKED_MY_PROFILE_LEFT_NAV_IN_PORTAL"
AgencyClickedSaveAndContinueAtBotOfCompleteProFile -> "AGENCY_CLICKED_SAVE_AND_CONTINUE_AT_BOT_OF_COMPLETE_PROFILE"
AgencyClickedUnaffiliateInMyProFilePortal -> "AGENCY_CLICKED_UNAFFILIATE_IN_MY_PROFILE_PORTAL"
AgencyFilledOutCompAffiliationInMyProFilePortal -> "AGENCY_FILLED_OUT_COMP_AFFILIATION_IN_MY_PROFILE_PORTAL"
AgencySuccessfullyConnectedWithCompanyInMyProFile -> "AGENCY_SUCCESSFULLY_CONNECTED_WITH_COMPANY_IN_MY_PROFILE"
AgencyClickedCreateMccInMyProFilePortal -> "AGENCY_CLICKED_CREATE_MCC_IN_MY_PROFILE_PORTAL"
AgencyDidntHaveAnMccAssociatedOnCompleteProFile -> "AGENCY_DIDNT_HAVE_AN_MCC_ASSOCIATED_ON_COMPLETE_PROFILE"
AgencyHadAnMccAssociatedOnCompleteProFile -> "AGENCY_HAD_AN_MCC_ASSOCIATED_ON_COMPLETE_PROFILE"
AgencyAddedJobFunctionInMyProFilePortal -> "AGENCY_ADDED_JOB_FUNCTION_IN_MY_PROFILE_PORTAL"
AgencyLookedAtJobFunctionDropDown -> "AGENCY_LOOKED_AT_JOB_FUNCTION_DROP_DOWN"
AgencySelectedAccountManagerAsJobFunction -> "AGENCY_SELECTED_ACCOUNT_MANAGER_AS_JOB_FUNCTION"
AgencySelectedAccountPlannerAsJobFunction -> "AGENCY_SELECTED_ACCOUNT_PLANNER_AS_JOB_FUNCTION"
AgencySelectedAnalyticsAsJobFunction -> "AGENCY_SELECTED_ANALYTICS_AS_JOB_FUNCTION"
AgencySelectedCreativeAsJobFunction -> "AGENCY_SELECTED_CREATIVE_AS_JOB_FUNCTION"
AgencySelectedMediaBuyerAsJobFunction -> "AGENCY_SELECTED_MEDIA_BUYER_AS_JOB_FUNCTION"
AgencySelectedMediaPlannerAsJobFunction -> "AGENCY_SELECTED_MEDIA_PLANNER_AS_JOB_FUNCTION"
AgencySelectedOtherAsJobFunction -> "AGENCY_SELECTED_OTHER_AS_JOB_FUNCTION"
AgencySelectedProductionAsJobFunction -> "AGENCY_SELECTED_PRODUCTION_AS_JOB_FUNCTION"
AgencySelectedSeoAsJobFunction -> "AGENCY_SELECTED_SEO_AS_JOB_FUNCTION"
AgencySelectedSalesRepAsJobFunction -> "AGENCY_SELECTED_SALES_REP_AS_JOB_FUNCTION"
AgencySelectedSearchSpeciaListAsJobFunction -> "AGENCY_SELECTED_SEARCH_SPECIALIST_AS_JOB_FUNCTION"
AgencyAddedChannelsInMyProFilePortal -> "AGENCY_ADDED_CHANNELS_IN_MY_PROFILE_PORTAL"
AgencyLookedAtAddChannelDropDown -> "AGENCY_LOOKED_AT_ADD_CHANNEL_DROP_DOWN"
AgencySelectedCrossChannelFromAddChannel -> "AGENCY_SELECTED_CROSS_CHANNEL_FROM_ADD_CHANNEL"
AgencySelectedDisplayFromAddChannel -> "AGENCY_SELECTED_DISPLAY_FROM_ADD_CHANNEL"
AgencySelectedMobileFromAddChannel -> "AGENCY_SELECTED_MOBILE_FROM_ADD_CHANNEL"
AgencySelectedSearchFromAddChannel -> "AGENCY_SELECTED_SEARCH_FROM_ADD_CHANNEL"
AgencySelectedSocialFromAddChannel -> "AGENCY_SELECTED_SOCIAL_FROM_ADD_CHANNEL"
AgencySelectedToolsFromAddChannel -> "AGENCY_SELECTED_TOOLS_FROM_ADD_CHANNEL"
AgencySelectedYouTubeFromAddChannel -> "AGENCY_SELECTED_YOUTUBE_FROM_ADD_CHANNEL"
AgencyAddedIndustriesInMyProFilePortal -> "AGENCY_ADDED_INDUSTRIES_IN_MY_PROFILE_PORTAL"
AgencyChangedAddIndustriesDropDown -> "AGENCY_CHANGED_ADD_INDUSTRIES_DROP_DOWN"
AgencyAddedMarketsInMyProFilePortal -> "AGENCY_ADDED_MARKETS_IN_MY_PROFILE_PORTAL"
AgencyChangedAddMarketsDropDown -> "AGENCY_CHANGED_ADD_MARKETS_DROP_DOWN"
AgencyCheckedRecieveMailPromotionsMyproFile -> "AGENCY_CHECKED_RECIEVE_MAIL_PROMOTIONS_MYPROFILE"
AgencyCheckedRecieveMailPromotionsSignup -> "AGENCY_CHECKED_RECIEVE_MAIL_PROMOTIONS_SIGNUP"
AgencySelectedOptInBetaTestsAndMktResearch -> "AGENCY_SELECTED_OPT_IN_BETA_TESTS_AND_MKT_RESEARCH"
AgencySelectedOptInBetaTestsInMyProFilePortal -> "AGENCY_SELECTED_OPT_IN_BETA_TESTS_IN_MY_PROFILE_PORTAL"
AgencySelectedOptInNewsInMyProFilePortal -> "AGENCY_SELECTED_OPT_IN_NEWS_IN_MY_PROFILE_PORTAL"
AgencySelectedOptInNewsInvitationsAndPromos -> "AGENCY_SELECTED_OPT_IN_NEWS_INVITATIONS_AND_PROMOS"
AgencySelectedOptInPerformanceSugInMyProFilePortal -> "AGENCY_SELECTED_OPT_IN_PERFORMANCE_SUG_IN_MY_PROFILE_PORTAL"
AgencySelectedOptInPerformanceSuggestions -> "AGENCY_SELECTED_OPT_IN_PERFORMANCE_SUGGESTIONS"
AgencySelectedOptInSelectAllEmailNotifications -> "AGENCY_SELECTED_OPT_IN_SELECT_ALL_EMAIL_NOTIFICATIONS"
AgencySelectedSelectAllOptInsInMyProFilePortal -> "AGENCY_SELECTED_SELECT_ALL_OPT_INS_IN_MY_PROFILE_PORTAL"
AgencyClickedBackButtonOnConnectWithCompany -> "AGENCY_CLICKED_BACK_BUTTON_ON_CONNECT_WITH_COMPANY"
AgencyClickedContinueToOverviewOnConnectWithCompany -> "AGENCY_CLICKED_CONTINUE_TO_OVERVIEW_ON_CONNECT_WITH_COMPANY"
AgecnyClickedCreateMccConnectWithCompanyNotFound -> "AGECNY_CLICKED_CREATE_MCC_CONNECT_WITH_COMPANY_NOT_FOUND"
AgecnyClickedGiveEditAccessConnectWithCompanyNotFound -> "AGECNY_CLICKED_GIVE_EDIT_ACCESS_CONNECT_WITH_COMPANY_NOT_FOUND"
AgecnyClickedLogOutConnectWithCompanyNotFound -> "AGECNY_CLICKED_LOG_OUT_CONNECT_WITH_COMPANY_NOT_FOUND"
AgencyClickedSkipForNowOnConnectWithCompanyPage -> "AGENCY_CLICKED_SKIP_FOR_NOW_ON_CONNECT_WITH_COMPANY_PAGE"
AgencyClosedConnectedToCompanyXButtonWrongCompany -> "AGENCY_CLOSED_CONNECTED_TO_COMPANY_X_BUTTON_WRONG_COMPANY"
AgencyCompletedFieldConnectWithCompany -> "AGENCY_COMPLETED_FIELD_CONNECT_WITH_COMPANY"
AgecnyFoundCompanyToConnectWith -> "AGECNY_FOUND_COMPANY_TO_CONNECT_WITH"
AgencySuccessfullyCreatedCompany -> "AGENCY_SUCCESSFULLY_CREATED_COMPANY"
AgencyAddedNewCompanyLocation -> "AGENCY_ADDED_NEW_COMPANY_LOCATION"
AgencyClickedCommUnityJoinNowLinkInPortalNotifications -> "AGENCY_CLICKED_COMMUNITY_JOIN_NOW_LINK_IN_PORTAL_NOTIFICATIONS"
AgencyClickedConnectToCompanyLinkInPortalNotifications -> "AGENCY_CLICKED_CONNECT_TO_COMPANY_LINK_IN_PORTAL_NOTIFICATIONS"
AgencyClickedGetCertifiedLinkInPortalNotifications -> "AGENCY_CLICKED_GET_CERTIFIED_LINK_IN_PORTAL_NOTIFICATIONS"
AgencyClickedGetVideoAdsCertifiedLinkInPortalNotifications -> "AGENCY_CLICKED_GET_VIDEO_ADS_CERTIFIED_LINK_IN_PORTAL_NOTIFICATIONS"
AgencyClickedLinkToMccLinkInPortalNotifications -> "AGENCY_CLICKED_LINK_TO_MCC_LINK_IN_PORTAL_NOTIFICATIONS"
AgencyClickedInsightContentInPortal -> "AGENCY_CLICKED_INSIGHT_CONTENT_IN_PORTAL"
AgencyClickedInsightsViewNowPitchDecksInPortal -> "AGENCY_CLICKED_INSIGHTS_VIEW_NOW_PITCH_DECKS_IN_PORTAL"
AgencyClickedInsightsLeftNavInPortal -> "AGENCY_CLICKED_INSIGHTS_LEFT_NAV_IN_PORTAL"
AgencyClickedInsightsUploadContent -> "AGENCY_CLICKED_INSIGHTS_UPLOAD_CONTENT"
AgencyClickedInsightsViewedDeprecated -> "AGENCY_CLICKED_INSIGHTS_VIEWED_DEPRECATED"
AgencyClickedCommUnityLeftNavInPortal -> "AGENCY_CLICKED_COMMUNITY_LEFT_NAV_IN_PORTAL"
AgencyClickedJoinCommUnityButtonCommUnityPortal -> "AGENCY_CLICKED_JOIN_COMMUNITY_BUTTON_COMMUNITY_PORTAL"
AgencyClickedCertificationsLeftNavInPortal -> "AGENCY_CLICKED_CERTIFICATIONS_LEFT_NAV_IN_PORTAL"
AgencyClickedCertificationsProductLeftNavInPortal -> "AGENCY_CLICKED_CERTIFICATIONS_PRODUCT_LEFT_NAV_IN_PORTAL"
AgencyClickedPartnerStatusLeftNavInPortal -> "AGENCY_CLICKED_PARTNER_STATUS_LEFT_NAV_IN_PORTAL"
AgencyClickedPartnerStatusProductLeftNavInPortal -> "AGENCY_CLICKED_PARTNER_STATUS_PRODUCT_LEFT_NAV_IN_PORTAL"
AgencyClickedOffersLeftNavInPortal -> "AGENCY_CLICKED_OFFERS_LEFT_NAV_IN_PORTAL"
AgencyClickedSendButtonOnOffersPage -> "AGENCY_CLICKED_SEND_BUTTON_ON_OFFERS_PAGE"
AgencyClickedExamDetailsOnCertAdwordsPage -> "AGENCY_CLICKED_EXAM_DETAILS_ON_CERT_ADWORDS_PAGE"
AgencyClickedSeeExamsCertificationMainPage -> "AGENCY_CLICKED_SEE_EXAMS_CERTIFICATION_MAIN_PAGE"
AgencyClickedTakeExamOnCertExamPage -> "AGENCY_CLICKED_TAKE_EXAM_ON_CERT_EXAM_PAGE"
AgencyOpenedLastAdminDialog -> "AGENCY_OPENED_LAST_ADMIN_DIALOG"
AgencyOpenedDialogWithNoUsers -> "AGENCY_OPENED_DIALOG_WITH_NO_USERS"
AgencyPromotedUserToAdmin -> "AGENCY_PROMOTED_USER_TO_ADMIN"
AgencyUnaffiliated -> "AGENCY_UNAFFILIATED"
AgencyChangedRoles -> "AGENCY_CHANGED_ROLES"
SmbClickedCompanyNameLinkToProFile -> "SMB_CLICKED_COMPANY_NAME_LINK_TO_PROFILE"
SmbViewedAdwordsCertificate -> "SMB_VIEWED_ADWORDS_CERTIFICATE"
SmbViewedAdwordsSearchCertificate -> "SMB_VIEWED_ADWORDS_SEARCH_CERTIFICATE"
SmbViewedAdwordsDisplayCertificate -> "SMB_VIEWED_ADWORDS_DISPLAY_CERTIFICATE"
SmbClickedAdwordsCertificateHelpIcon -> "SMB_CLICKED_ADWORDS_CERTIFICATE_HELP_ICON"
SmbViewedAnalyticsCertificate -> "SMB_VIEWED_ANALYTICS_CERTIFICATE"
SmbViewedDoubleClickCertificate -> "SMB_VIEWED_DOUBLECLICK_CERTIFICATE"
SmbViewedMobileSitesCertificate -> "SMB_VIEWED_MOBILE_SITES_CERTIFICATE"
SmbViewedVideoAdsCertificate -> "SMB_VIEWED_VIDEO_ADS_CERTIFICATE"
SmbViewedShoppingCertificate -> "SMB_VIEWED_SHOPPING_CERTIFICATE"
SmbClickedVideoAdsCertificateHelpIcon -> "SMB_CLICKED_VIDEO_ADS_CERTIFICATE_HELP_ICON"
SmbViewedDigitalSalesCertificate -> "SMB_VIEWED_DIGITAL_SALES_CERTIFICATE"
ClickedHelpAtBottom -> "CLICKED_HELP_AT_BOTTOM"
ClickedHelpAtTop -> "CLICKED_HELP_AT_TOP"
ClientError -> "CLIENT_ERROR"
AgencyClickedLeftNavStories -> "AGENCY_CLICKED_LEFT_NAV_STORIES"
Clicked -> "CLICKED"
SmbViewedMobileCertificate -> "SMB_VIEWED_MOBILE_CERTIFICATE"
AgencyFailedCompanyVerification -> "AGENCY_FAILED_COMPANY_VERIFICATION"
VisitedLanding -> "VISITED_LANDING"
VisitedGps -> "VISITED_GPS"
VisitedAgencyPortal -> "VISITED_AGENCY_PORTAL"
CancelledIndividualSignUp -> "CANCELLED_INDIVIDUAL_SIGN_UP"
CancelledCompanySignUp -> "CANCELLED_COMPANY_SIGN_UP"
AgencyClickedSignInButtonTop -> "AGENCY_CLICKED_SIGN_IN_BUTTON_TOP"
AgencyClickedSaveAndContinueAtBotOfIncompleteProFile -> "AGENCY_CLICKED_SAVE_AND_CONTINUE_AT_BOT_OF_INCOMPLETE_PROFILE"
AgencyUnselectedOptInNewsInvitationsAndPromos -> "AGENCY_UNSELECTED_OPT_IN_NEWS_INVITATIONS_AND_PROMOS"
AgencyUnselectedOptInBetaTestsAndMktResearch -> "AGENCY_UNSELECTED_OPT_IN_BETA_TESTS_AND_MKT_RESEARCH"
AgencyUnselectedOptInPerformanceSuggestions -> "AGENCY_UNSELECTED_OPT_IN_PERFORMANCE_SUGGESTIONS"
AgencySelectedOptOutUnselectAllEmailNotifications -> "AGENCY_SELECTED_OPT_OUT_UNSELECT_ALL_EMAIL_NOTIFICATIONS"
AgencyLinkedIndividualMcc -> "AGENCY_LINKED_INDIVIDUAL_MCC"
AgencySuggestedToUser -> "AGENCY_SUGGESTED_TO_USER"
AgencyIgnoredSuggestedAgenciesAndSearched -> "AGENCY_IGNORED_SUGGESTED_AGENCIES_AND_SEARCHED"
AgencyPickedSuggestedAgency -> "AGENCY_PICKED_SUGGESTED_AGENCY"
AgencySearchedForAgencies -> "AGENCY_SEARCHED_FOR_AGENCIES"
AgencyPickedSearchedAgency -> "AGENCY_PICKED_SEARCHED_AGENCY"
AgencyDismissedAffiliationWidget -> "AGENCY_DISMISSED_AFFILIATION_WIDGET"
AgencyClickedInsightsDownloadContent -> "AGENCY_CLICKED_INSIGHTS_DOWNLOAD_CONTENT"
AgencyProgressInsightsViewContent -> "AGENCY_PROGRESS_INSIGHTS_VIEW_CONTENT"
AgencyClickedCancelAcceptTosButton -> "AGENCY_CLICKED_CANCEL_ACCEPT_TOS_BUTTON"
SmbEnteredWebsiteInContactPartnerForm -> "SMB_ENTERED_WEBSITE_IN_CONTACT_PARTNER_FORM"
AgencySelectedOptInAfaMigration -> "AGENCY_SELECTED_OPT_IN_AFA_MIGRATION"
AgencySelectedOptOutAfaMigration -> "AGENCY_SELECTED_OPT_OUT_AFA_MIGRATION"
instance FromJSON LogUserEventRequestEventAction where
parseJSON = parseJSONText "LogUserEventRequestEventAction"
instance ToJSON LogUserEventRequestEventAction where
toJSON = toJSONText
data HistoricalOfferStatus
= OfferStatusUnspecified
| OfferStatusDistributed
| OfferStatusRedeemed
| OfferStatusAwarded
| OfferStatusExpired
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable HistoricalOfferStatus
instance FromHttpApiData HistoricalOfferStatus where
parseQueryParam = \case
"OFFER_STATUS_UNSPECIFIED" -> Right OfferStatusUnspecified
"OFFER_STATUS_DISTRIBUTED" -> Right OfferStatusDistributed
"OFFER_STATUS_REDEEMED" -> Right OfferStatusRedeemed
"OFFER_STATUS_AWARDED" -> Right OfferStatusAwarded
"OFFER_STATUS_EXPIRED" -> Right OfferStatusExpired
x -> Left ("Unable to parse HistoricalOfferStatus from: " <> x)
instance ToHttpApiData HistoricalOfferStatus where
toQueryParam = \case
OfferStatusUnspecified -> "OFFER_STATUS_UNSPECIFIED"
OfferStatusDistributed -> "OFFER_STATUS_DISTRIBUTED"
OfferStatusRedeemed -> "OFFER_STATUS_REDEEMED"
OfferStatusAwarded -> "OFFER_STATUS_AWARDED"
OfferStatusExpired -> "OFFER_STATUS_EXPIRED"
instance FromJSON HistoricalOfferStatus where
parseJSON = parseJSONText "HistoricalOfferStatus"
instance ToJSON HistoricalOfferStatus where
toJSON = toJSONText
data CompanyProFileStatus
= CompanyProFileStatusUnspecified
| Hidden
| Published
| Searchable
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable CompanyProFileStatus
instance FromHttpApiData CompanyProFileStatus where
parseQueryParam = \case
"COMPANY_PROFILE_STATUS_UNSPECIFIED" -> Right CompanyProFileStatusUnspecified
"HIDDEN" -> Right Hidden
"PUBLISHED" -> Right Published
"SEARCHABLE" -> Right Searchable
x -> Left ("Unable to parse CompanyProFileStatus from: " <> x)
instance ToHttpApiData CompanyProFileStatus where
toQueryParam = \case
CompanyProFileStatusUnspecified -> "COMPANY_PROFILE_STATUS_UNSPECIFIED"
Hidden -> "HIDDEN"
Published -> "PUBLISHED"
Searchable -> "SEARCHABLE"
instance FromJSON CompanyProFileStatus where
parseJSON = parseJSONText "CompanyProFileStatus"
instance ToJSON CompanyProFileStatus where
toJSON = toJSONText
data CompanyBadgeTier
= BadgeTierNone
| BadgeTierRegular
| BadgeTierPremier
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable CompanyBadgeTier
instance FromHttpApiData CompanyBadgeTier where
parseQueryParam = \case
"BADGE_TIER_NONE" -> Right BadgeTierNone
"BADGE_TIER_REGULAR" -> Right BadgeTierRegular
"BADGE_TIER_PREMIER" -> Right BadgeTierPremier
x -> Left ("Unable to parse CompanyBadgeTier from: " <> x)
instance ToHttpApiData CompanyBadgeTier where
toQueryParam = \case
BadgeTierNone -> "BADGE_TIER_NONE"
BadgeTierRegular -> "BADGE_TIER_REGULAR"
BadgeTierPremier -> "BADGE_TIER_PREMIER"
instance FromJSON CompanyBadgeTier where
parseJSON = parseJSONText "CompanyBadgeTier"
instance ToJSON CompanyBadgeTier where
toJSON = toJSONText
data CompanyRelationBadgeTier
= CRBTBadgeTierNone
| CRBTBadgeTierRegular
| CRBTBadgeTierPremier
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable CompanyRelationBadgeTier
instance FromHttpApiData CompanyRelationBadgeTier where
parseQueryParam = \case
"BADGE_TIER_NONE" -> Right CRBTBadgeTierNone
"BADGE_TIER_REGULAR" -> Right CRBTBadgeTierRegular
"BADGE_TIER_PREMIER" -> Right CRBTBadgeTierPremier
x -> Left ("Unable to parse CompanyRelationBadgeTier from: " <> x)
instance ToHttpApiData CompanyRelationBadgeTier where
toQueryParam = \case
CRBTBadgeTierNone -> "BADGE_TIER_NONE"
CRBTBadgeTierRegular -> "BADGE_TIER_REGULAR"
CRBTBadgeTierPremier -> "BADGE_TIER_PREMIER"
instance FromJSON CompanyRelationBadgeTier where
parseJSON = parseJSONText "CompanyRelationBadgeTier"
instance ToJSON CompanyRelationBadgeTier where
toJSON = toJSONText
data CompanyRelationState
= UserCompanyReationStateNoneSpecified
| UserCompanyRelationStateAwaitEmail
| UserCompanyRelationStateAwaitAdmin
| UserCompanyRelationStateApproved
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable CompanyRelationState
instance FromHttpApiData CompanyRelationState where
parseQueryParam = \case
"USER_COMPANY_REATION_STATE_NONE_SPECIFIED" -> Right UserCompanyReationStateNoneSpecified
"USER_COMPANY_RELATION_STATE_AWAIT_EMAIL" -> Right UserCompanyRelationStateAwaitEmail
"USER_COMPANY_RELATION_STATE_AWAIT_ADMIN" -> Right UserCompanyRelationStateAwaitAdmin
"USER_COMPANY_RELATION_STATE_APPROVED" -> Right UserCompanyRelationStateApproved
x -> Left ("Unable to parse CompanyRelationState from: " <> x)
instance ToHttpApiData CompanyRelationState where
toQueryParam = \case
UserCompanyReationStateNoneSpecified -> "USER_COMPANY_REATION_STATE_NONE_SPECIFIED"
UserCompanyRelationStateAwaitEmail -> "USER_COMPANY_RELATION_STATE_AWAIT_EMAIL"
UserCompanyRelationStateAwaitAdmin -> "USER_COMPANY_RELATION_STATE_AWAIT_ADMIN"
UserCompanyRelationStateApproved -> "USER_COMPANY_RELATION_STATE_APPROVED"
instance FromJSON CompanyRelationState where
parseJSON = parseJSONText "CompanyRelationState"
instance ToJSON CompanyRelationState where
toJSON = toJSONText
data CountryOfferInfoOfferType
= COIOTOfferTypeUnspecified
| COIOTOfferTypeSpendXGetY
| COIOTOfferTypeVideo
| COIOTOfferTypeSpendMatch
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable CountryOfferInfoOfferType
instance FromHttpApiData CountryOfferInfoOfferType where
parseQueryParam = \case
"OFFER_TYPE_UNSPECIFIED" -> Right COIOTOfferTypeUnspecified
"OFFER_TYPE_SPEND_X_GET_Y" -> Right COIOTOfferTypeSpendXGetY
"OFFER_TYPE_VIDEO" -> Right COIOTOfferTypeVideo
"OFFER_TYPE_SPEND_MATCH" -> Right COIOTOfferTypeSpendMatch
x -> Left ("Unable to parse CountryOfferInfoOfferType from: " <> x)
instance ToHttpApiData CountryOfferInfoOfferType where
toQueryParam = \case
COIOTOfferTypeUnspecified -> "OFFER_TYPE_UNSPECIFIED"
COIOTOfferTypeSpendXGetY -> "OFFER_TYPE_SPEND_X_GET_Y"
COIOTOfferTypeVideo -> "OFFER_TYPE_VIDEO"
COIOTOfferTypeSpendMatch -> "OFFER_TYPE_SPEND_MATCH"
instance FromJSON CountryOfferInfoOfferType where
parseJSON = parseJSONText "CountryOfferInfoOfferType"
instance ToJSON CountryOfferInfoOfferType where
toJSON = toJSONText
data RankType
= RankTypeUnspecified
| RtFinalScore
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable RankType
instance FromHttpApiData RankType where
parseQueryParam = \case
"RANK_TYPE_UNSPECIFIED" -> Right RankTypeUnspecified
"RT_FINAL_SCORE" -> Right RtFinalScore
x -> Left ("Unable to parse RankType from: " <> x)
instance ToHttpApiData RankType where
toQueryParam = \case
RankTypeUnspecified -> "RANK_TYPE_UNSPECIFIED"
RtFinalScore -> "RT_FINAL_SCORE"
instance FromJSON RankType where
parseJSON = parseJSONText "RankType"
instance ToJSON RankType where
toJSON = toJSONText
data SpecializationStatusBadgeSpecializationState
= BadgeSpecializationStateUnknown
| BadgeSpecializationStatePassed
| BadgeSpecializationStateNotPassed
| BadgeSpecializationStateInGrace
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable SpecializationStatusBadgeSpecializationState
instance FromHttpApiData SpecializationStatusBadgeSpecializationState where
parseQueryParam = \case
"BADGE_SPECIALIZATION_STATE_UNKNOWN" -> Right BadgeSpecializationStateUnknown
"BADGE_SPECIALIZATION_STATE_PASSED" -> Right BadgeSpecializationStatePassed
"BADGE_SPECIALIZATION_STATE_NOT_PASSED" -> Right BadgeSpecializationStateNotPassed
"BADGE_SPECIALIZATION_STATE_IN_GRACE" -> Right BadgeSpecializationStateInGrace
x -> Left ("Unable to parse SpecializationStatusBadgeSpecializationState from: " <> x)
instance ToHttpApiData SpecializationStatusBadgeSpecializationState where
toQueryParam = \case
BadgeSpecializationStateUnknown -> "BADGE_SPECIALIZATION_STATE_UNKNOWN"
BadgeSpecializationStatePassed -> "BADGE_SPECIALIZATION_STATE_PASSED"
BadgeSpecializationStateNotPassed -> "BADGE_SPECIALIZATION_STATE_NOT_PASSED"
BadgeSpecializationStateInGrace -> "BADGE_SPECIALIZATION_STATE_IN_GRACE"
instance FromJSON SpecializationStatusBadgeSpecializationState where
parseJSON = parseJSONText "SpecializationStatusBadgeSpecializationState"
instance ToJSON SpecializationStatusBadgeSpecializationState where
toJSON = toJSONText
data AvailableOfferOfferType
= AOOTOfferTypeUnspecified
| AOOTOfferTypeSpendXGetY
| AOOTOfferTypeVideo
| AOOTOfferTypeSpendMatch
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable AvailableOfferOfferType
instance FromHttpApiData AvailableOfferOfferType where
parseQueryParam = \case
"OFFER_TYPE_UNSPECIFIED" -> Right AOOTOfferTypeUnspecified
"OFFER_TYPE_SPEND_X_GET_Y" -> Right AOOTOfferTypeSpendXGetY
"OFFER_TYPE_VIDEO" -> Right AOOTOfferTypeVideo
"OFFER_TYPE_SPEND_MATCH" -> Right AOOTOfferTypeSpendMatch
x -> Left ("Unable to parse AvailableOfferOfferType from: " <> x)
instance ToHttpApiData AvailableOfferOfferType where
toQueryParam = \case
AOOTOfferTypeUnspecified -> "OFFER_TYPE_UNSPECIFIED"
AOOTOfferTypeSpendXGetY -> "OFFER_TYPE_SPEND_X_GET_Y"
AOOTOfferTypeVideo -> "OFFER_TYPE_VIDEO"
AOOTOfferTypeSpendMatch -> "OFFER_TYPE_SPEND_MATCH"
instance FromJSON AvailableOfferOfferType where
parseJSON = parseJSONText "AvailableOfferOfferType"
instance ToJSON AvailableOfferOfferType where
toJSON = toJSONText
data SpecializationStatusBadgeSpecialization
= BadgeSpecializationUnknown
| BadgeSpecializationAdwordsSearch
| BadgeSpecializationAdwordsDisplay
| BadgeSpecializationAdwordsMobile
| BadgeSpecializationAdwordsVideo
| BadgeSpecializationAdwordsShopping
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable SpecializationStatusBadgeSpecialization
instance FromHttpApiData SpecializationStatusBadgeSpecialization where
parseQueryParam = \case
"BADGE_SPECIALIZATION_UNKNOWN" -> Right BadgeSpecializationUnknown
"BADGE_SPECIALIZATION_ADWORDS_SEARCH" -> Right BadgeSpecializationAdwordsSearch
"BADGE_SPECIALIZATION_ADWORDS_DISPLAY" -> Right BadgeSpecializationAdwordsDisplay
"BADGE_SPECIALIZATION_ADWORDS_MOBILE" -> Right BadgeSpecializationAdwordsMobile
"BADGE_SPECIALIZATION_ADWORDS_VIDEO" -> Right BadgeSpecializationAdwordsVideo
"BADGE_SPECIALIZATION_ADWORDS_SHOPPING" -> Right BadgeSpecializationAdwordsShopping
x -> Left ("Unable to parse SpecializationStatusBadgeSpecialization from: " <> x)
instance ToHttpApiData SpecializationStatusBadgeSpecialization where
toQueryParam = \case
BadgeSpecializationUnknown -> "BADGE_SPECIALIZATION_UNKNOWN"
BadgeSpecializationAdwordsSearch -> "BADGE_SPECIALIZATION_ADWORDS_SEARCH"
BadgeSpecializationAdwordsDisplay -> "BADGE_SPECIALIZATION_ADWORDS_DISPLAY"
BadgeSpecializationAdwordsMobile -> "BADGE_SPECIALIZATION_ADWORDS_MOBILE"
BadgeSpecializationAdwordsVideo -> "BADGE_SPECIALIZATION_ADWORDS_VIDEO"
BadgeSpecializationAdwordsShopping -> "BADGE_SPECIALIZATION_ADWORDS_SHOPPING"
instance FromJSON SpecializationStatusBadgeSpecialization where
parseJSON = parseJSONText "SpecializationStatusBadgeSpecialization"
instance ToJSON SpecializationStatusBadgeSpecialization where
toJSON = toJSONText
data LogUserEventRequestEventCategory
= EventCategoryUnspecified
| GooglePartnerSearch
| GooglePartnerSignupFlow
| GooglePartnerPortal
| GooglePartnerPortalMyProFile
| GooglePartnerPortalCertifications
| GooglePartnerPortalCommUnity
| GooglePartnerPortalInsights
| GooglePartnerPortalClients
| GooglePartnerPublicUserProFile
| GooglePartnerPanel
| GooglePartnerPortalLastAdminDialog
| GooglePartnerClient
| GooglePartnerPortalCompanyProFile
| ExternalLinks
| GooglePartnerLanding
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable LogUserEventRequestEventCategory
instance FromHttpApiData LogUserEventRequestEventCategory where
parseQueryParam = \case
"EVENT_CATEGORY_UNSPECIFIED" -> Right EventCategoryUnspecified
"GOOGLE_PARTNER_SEARCH" -> Right GooglePartnerSearch
"GOOGLE_PARTNER_SIGNUP_FLOW" -> Right GooglePartnerSignupFlow
"GOOGLE_PARTNER_PORTAL" -> Right GooglePartnerPortal
"GOOGLE_PARTNER_PORTAL_MY_PROFILE" -> Right GooglePartnerPortalMyProFile
"GOOGLE_PARTNER_PORTAL_CERTIFICATIONS" -> Right GooglePartnerPortalCertifications
"GOOGLE_PARTNER_PORTAL_COMMUNITY" -> Right GooglePartnerPortalCommUnity
"GOOGLE_PARTNER_PORTAL_INSIGHTS" -> Right GooglePartnerPortalInsights
"GOOGLE_PARTNER_PORTAL_CLIENTS" -> Right GooglePartnerPortalClients
"GOOGLE_PARTNER_PUBLIC_USER_PROFILE" -> Right GooglePartnerPublicUserProFile
"GOOGLE_PARTNER_PANEL" -> Right GooglePartnerPanel
"GOOGLE_PARTNER_PORTAL_LAST_ADMIN_DIALOG" -> Right GooglePartnerPortalLastAdminDialog
"GOOGLE_PARTNER_CLIENT" -> Right GooglePartnerClient
"GOOGLE_PARTNER_PORTAL_COMPANY_PROFILE" -> Right GooglePartnerPortalCompanyProFile
"EXTERNAL_LINKS" -> Right ExternalLinks
"GOOGLE_PARTNER_LANDING" -> Right GooglePartnerLanding
x -> Left ("Unable to parse LogUserEventRequestEventCategory from: " <> x)
instance ToHttpApiData LogUserEventRequestEventCategory where
toQueryParam = \case
EventCategoryUnspecified -> "EVENT_CATEGORY_UNSPECIFIED"
GooglePartnerSearch -> "GOOGLE_PARTNER_SEARCH"
GooglePartnerSignupFlow -> "GOOGLE_PARTNER_SIGNUP_FLOW"
GooglePartnerPortal -> "GOOGLE_PARTNER_PORTAL"
GooglePartnerPortalMyProFile -> "GOOGLE_PARTNER_PORTAL_MY_PROFILE"
GooglePartnerPortalCertifications -> "GOOGLE_PARTNER_PORTAL_CERTIFICATIONS"
GooglePartnerPortalCommUnity -> "GOOGLE_PARTNER_PORTAL_COMMUNITY"
GooglePartnerPortalInsights -> "GOOGLE_PARTNER_PORTAL_INSIGHTS"
GooglePartnerPortalClients -> "GOOGLE_PARTNER_PORTAL_CLIENTS"
GooglePartnerPublicUserProFile -> "GOOGLE_PARTNER_PUBLIC_USER_PROFILE"
GooglePartnerPanel -> "GOOGLE_PARTNER_PANEL"
GooglePartnerPortalLastAdminDialog -> "GOOGLE_PARTNER_PORTAL_LAST_ADMIN_DIALOG"
GooglePartnerClient -> "GOOGLE_PARTNER_CLIENT"
GooglePartnerPortalCompanyProFile -> "GOOGLE_PARTNER_PORTAL_COMPANY_PROFILE"
ExternalLinks -> "EXTERNAL_LINKS"
GooglePartnerLanding -> "GOOGLE_PARTNER_LANDING"
instance FromJSON LogUserEventRequestEventCategory where
parseJSON = parseJSONText "LogUserEventRequestEventCategory"
instance ToJSON LogUserEventRequestEventCategory where
toJSON = toJSONText
data HistoricalOfferOfferType
= HOOTOfferTypeUnspecified
| HOOTOfferTypeSpendXGetY
| HOOTOfferTypeVideo
| HOOTOfferTypeSpendMatch
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable HistoricalOfferOfferType
instance FromHttpApiData HistoricalOfferOfferType where
parseQueryParam = \case
"OFFER_TYPE_UNSPECIFIED" -> Right HOOTOfferTypeUnspecified
"OFFER_TYPE_SPEND_X_GET_Y" -> Right HOOTOfferTypeSpendXGetY
"OFFER_TYPE_VIDEO" -> Right HOOTOfferTypeVideo
"OFFER_TYPE_SPEND_MATCH" -> Right HOOTOfferTypeSpendMatch
x -> Left ("Unable to parse HistoricalOfferOfferType from: " <> x)
instance ToHttpApiData HistoricalOfferOfferType where
toQueryParam = \case
HOOTOfferTypeUnspecified -> "OFFER_TYPE_UNSPECIFIED"
HOOTOfferTypeSpendXGetY -> "OFFER_TYPE_SPEND_X_GET_Y"
HOOTOfferTypeVideo -> "OFFER_TYPE_VIDEO"
HOOTOfferTypeSpendMatch -> "OFFER_TYPE_SPEND_MATCH"
instance FromJSON HistoricalOfferOfferType where
parseJSON = parseJSONText "HistoricalOfferOfferType"
instance ToJSON HistoricalOfferOfferType where
toJSON = toJSONText
data CertificationStatusType
= CertificationTypeUnspecified
| CtAdwords
| CtYouTube
| CtVideoads
| CtAnalytics
| CtDoubleClick
| CtShopping
| CtMobile
| CtDigitalSales
| CtAdwordsSearch
| CtAdwordsDisplay
| CtMobileSites
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable CertificationStatusType
instance FromHttpApiData CertificationStatusType where
parseQueryParam = \case
"CERTIFICATION_TYPE_UNSPECIFIED" -> Right CertificationTypeUnspecified
"CT_ADWORDS" -> Right CtAdwords
"CT_YOUTUBE" -> Right CtYouTube
"CT_VIDEOADS" -> Right CtVideoads
"CT_ANALYTICS" -> Right CtAnalytics
"CT_DOUBLECLICK" -> Right CtDoubleClick
"CT_SHOPPING" -> Right CtShopping
"CT_MOBILE" -> Right CtMobile
"CT_DIGITAL_SALES" -> Right CtDigitalSales
"CT_ADWORDS_SEARCH" -> Right CtAdwordsSearch
"CT_ADWORDS_DISPLAY" -> Right CtAdwordsDisplay
"CT_MOBILE_SITES" -> Right CtMobileSites
x -> Left ("Unable to parse CertificationStatusType from: " <> x)
instance ToHttpApiData CertificationStatusType where
toQueryParam = \case
CertificationTypeUnspecified -> "CERTIFICATION_TYPE_UNSPECIFIED"
CtAdwords -> "CT_ADWORDS"
CtYouTube -> "CT_YOUTUBE"
CtVideoads -> "CT_VIDEOADS"
CtAnalytics -> "CT_ANALYTICS"
CtDoubleClick -> "CT_DOUBLECLICK"
CtShopping -> "CT_SHOPPING"
CtMobile -> "CT_MOBILE"
CtDigitalSales -> "CT_DIGITAL_SALES"
CtAdwordsSearch -> "CT_ADWORDS_SEARCH"
CtAdwordsDisplay -> "CT_ADWORDS_DISPLAY"
CtMobileSites -> "CT_MOBILE_SITES"
instance FromJSON CertificationStatusType where
parseJSON = parseJSONText "CertificationStatusType"
instance ToJSON CertificationStatusType where
toJSON = toJSONText
data CreateLeadResponseRecaptchaStatus
= RecaptchaStatusUnspecified
| RsNotNeeded
| RsPassed
| RsFailed
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable CreateLeadResponseRecaptchaStatus
instance FromHttpApiData CreateLeadResponseRecaptchaStatus where
parseQueryParam = \case
"RECAPTCHA_STATUS_UNSPECIFIED" -> Right RecaptchaStatusUnspecified
"RS_NOT_NEEDED" -> Right RsNotNeeded
"RS_PASSED" -> Right RsPassed
"RS_FAILED" -> Right RsFailed
x -> Left ("Unable to parse CreateLeadResponseRecaptchaStatus from: " <> x)
instance ToHttpApiData CreateLeadResponseRecaptchaStatus where
toQueryParam = \case
RecaptchaStatusUnspecified -> "RECAPTCHA_STATUS_UNSPECIFIED"
RsNotNeeded -> "RS_NOT_NEEDED"
RsPassed -> "RS_PASSED"
RsFailed -> "RS_FAILED"
instance FromJSON CreateLeadResponseRecaptchaStatus where
parseJSON = parseJSONText "CreateLeadResponseRecaptchaStatus"
instance ToJSON CreateLeadResponseRecaptchaStatus where
toJSON = toJSONText
data ExamStatusExamType
= CertificationExamTypeUnspecified
| CetAdwordsFundamentals
| CetAdwordsAdvancedSearch
| CetAdwordsAdvancedDisplay
| CetVideoAds
| CetDoubleClick
| CetAnalytics
| CetShopping
| CetMobile
| CetDigitalSales
| CetMobileSites
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable ExamStatusExamType
instance FromHttpApiData ExamStatusExamType where
parseQueryParam = \case
"CERTIFICATION_EXAM_TYPE_UNSPECIFIED" -> Right CertificationExamTypeUnspecified
"CET_ADWORDS_FUNDAMENTALS" -> Right CetAdwordsFundamentals
"CET_ADWORDS_ADVANCED_SEARCH" -> Right CetAdwordsAdvancedSearch
"CET_ADWORDS_ADVANCED_DISPLAY" -> Right CetAdwordsAdvancedDisplay
"CET_VIDEO_ADS" -> Right CetVideoAds
"CET_DOUBLECLICK" -> Right CetDoubleClick
"CET_ANALYTICS" -> Right CetAnalytics
"CET_SHOPPING" -> Right CetShopping
"CET_MOBILE" -> Right CetMobile
"CET_DIGITAL_SALES" -> Right CetDigitalSales
"CET_MOBILE_SITES" -> Right CetMobileSites
x -> Left ("Unable to parse ExamStatusExamType from: " <> x)
instance ToHttpApiData ExamStatusExamType where
toQueryParam = \case
CertificationExamTypeUnspecified -> "CERTIFICATION_EXAM_TYPE_UNSPECIFIED"
CetAdwordsFundamentals -> "CET_ADWORDS_FUNDAMENTALS"
CetAdwordsAdvancedSearch -> "CET_ADWORDS_ADVANCED_SEARCH"
CetAdwordsAdvancedDisplay -> "CET_ADWORDS_ADVANCED_DISPLAY"
CetVideoAds -> "CET_VIDEO_ADS"
CetDoubleClick -> "CET_DOUBLECLICK"
CetAnalytics -> "CET_ANALYTICS"
CetShopping -> "CET_SHOPPING"
CetMobile -> "CET_MOBILE"
CetDigitalSales -> "CET_DIGITAL_SALES"
CetMobileSites -> "CET_MOBILE_SITES"
instance FromJSON ExamStatusExamType where
parseJSON = parseJSONText "ExamStatusExamType"
instance ToJSON ExamStatusExamType where
toJSON = toJSONText
data ListOffersResponseNoOfferReason
= NoOfferReasonUnspecified
| NoOfferReasonNoMcc
| NoOfferReasonLimitReached
| NoOfferReasonIneligible
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable ListOffersResponseNoOfferReason
instance FromHttpApiData ListOffersResponseNoOfferReason where
parseQueryParam = \case
"NO_OFFER_REASON_UNSPECIFIED" -> Right NoOfferReasonUnspecified
"NO_OFFER_REASON_NO_MCC" -> Right NoOfferReasonNoMcc
"NO_OFFER_REASON_LIMIT_REACHED" -> Right NoOfferReasonLimitReached
"NO_OFFER_REASON_INELIGIBLE" -> Right NoOfferReasonIneligible
x -> Left ("Unable to parse ListOffersResponseNoOfferReason from: " <> x)
instance ToHttpApiData ListOffersResponseNoOfferReason where
toQueryParam = \case
NoOfferReasonUnspecified -> "NO_OFFER_REASON_UNSPECIFIED"
NoOfferReasonNoMcc -> "NO_OFFER_REASON_NO_MCC"
NoOfferReasonLimitReached -> "NO_OFFER_REASON_LIMIT_REACHED"
NoOfferReasonIneligible -> "NO_OFFER_REASON_INELIGIBLE"
instance FromJSON ListOffersResponseNoOfferReason where
parseJSON = parseJSONText "ListOffersResponseNoOfferReason"
instance ToJSON ListOffersResponseNoOfferReason where
toJSON = toJSONText
data Xgafv
= X1
| X2
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable Xgafv
instance FromHttpApiData Xgafv where
parseQueryParam = \case
"1" -> Right X1
"2" -> Right X2
x -> Left ("Unable to parse Xgafv from: " <> x)
instance ToHttpApiData Xgafv where
toQueryParam = \case
X1 -> "1"
X2 -> "2"
instance FromJSON Xgafv where
parseJSON = parseJSONText "Xgafv"
instance ToJSON Xgafv where
toJSON = toJSONText
data CertificationExamStatusType
= CESTCertificationExamTypeUnspecified
| CESTCetAdwordsFundamentals
| CESTCetAdwordsAdvancedSearch
| CESTCetAdwordsAdvancedDisplay
| CESTCetVideoAds
| CESTCetDoubleClick
| CESTCetAnalytics
| CESTCetShopping
| CESTCetMobile
| CESTCetDigitalSales
| CESTCetMobileSites
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable CertificationExamStatusType
instance FromHttpApiData CertificationExamStatusType where
parseQueryParam = \case
"CERTIFICATION_EXAM_TYPE_UNSPECIFIED" -> Right CESTCertificationExamTypeUnspecified
"CET_ADWORDS_FUNDAMENTALS" -> Right CESTCetAdwordsFundamentals
"CET_ADWORDS_ADVANCED_SEARCH" -> Right CESTCetAdwordsAdvancedSearch
"CET_ADWORDS_ADVANCED_DISPLAY" -> Right CESTCetAdwordsAdvancedDisplay
"CET_VIDEO_ADS" -> Right CESTCetVideoAds
"CET_DOUBLECLICK" -> Right CESTCetDoubleClick
"CET_ANALYTICS" -> Right CESTCetAnalytics
"CET_SHOPPING" -> Right CESTCetShopping
"CET_MOBILE" -> Right CESTCetMobile
"CET_DIGITAL_SALES" -> Right CESTCetDigitalSales
"CET_MOBILE_SITES" -> Right CESTCetMobileSites
x -> Left ("Unable to parse CertificationExamStatusType from: " <> x)
instance ToHttpApiData CertificationExamStatusType where
toQueryParam = \case
CESTCertificationExamTypeUnspecified -> "CERTIFICATION_EXAM_TYPE_UNSPECIFIED"
CESTCetAdwordsFundamentals -> "CET_ADWORDS_FUNDAMENTALS"
CESTCetAdwordsAdvancedSearch -> "CET_ADWORDS_ADVANCED_SEARCH"
CESTCetAdwordsAdvancedDisplay -> "CET_ADWORDS_ADVANCED_DISPLAY"
CESTCetVideoAds -> "CET_VIDEO_ADS"
CESTCetDoubleClick -> "CET_DOUBLECLICK"
CESTCetAnalytics -> "CET_ANALYTICS"
CESTCetShopping -> "CET_SHOPPING"
CESTCetMobile -> "CET_MOBILE"
CESTCetDigitalSales -> "CET_DIGITAL_SALES"
CESTCetMobileSites -> "CET_MOBILE_SITES"
instance FromJSON CertificationExamStatusType where
parseJSON = parseJSONText "CertificationExamStatusType"
instance ToJSON CertificationExamStatusType where
toJSON = toJSONText
data LogMessageRequestLevel
= MessageLevelUnspecified
| MlFine
| MlInfo
| MlWarning
| MlSevere
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable LogMessageRequestLevel
instance FromHttpApiData LogMessageRequestLevel where
parseQueryParam = \case
"MESSAGE_LEVEL_UNSPECIFIED" -> Right MessageLevelUnspecified
"ML_FINE" -> Right MlFine
"ML_INFO" -> Right MlInfo
"ML_WARNING" -> Right MlWarning
"ML_SEVERE" -> Right MlSevere
x -> Left ("Unable to parse LogMessageRequestLevel from: " <> x)
instance ToHttpApiData LogMessageRequestLevel where
toQueryParam = \case
MessageLevelUnspecified -> "MESSAGE_LEVEL_UNSPECIFIED"
MlFine -> "ML_FINE"
MlInfo -> "ML_INFO"
MlWarning -> "ML_WARNING"
MlSevere -> "ML_SEVERE"
instance FromJSON LogMessageRequestLevel where
parseJSON = parseJSONText "LogMessageRequestLevel"
instance ToJSON LogMessageRequestLevel where
toJSON = toJSONText
data CertificationCertificationType
= CCTCertificationTypeUnspecified
| CCTCtAdwords
| CCTCtYouTube
| CCTCtVideoads
| CCTCtAnalytics
| CCTCtDoubleClick
| CCTCtShopping
| CCTCtMobile
| CCTCtDigitalSales
| CCTCtAdwordsSearch
| CCTCtAdwordsDisplay
| CCTCtMobileSites
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable CertificationCertificationType
instance FromHttpApiData CertificationCertificationType where
parseQueryParam = \case
"CERTIFICATION_TYPE_UNSPECIFIED" -> Right CCTCertificationTypeUnspecified
"CT_ADWORDS" -> Right CCTCtAdwords
"CT_YOUTUBE" -> Right CCTCtYouTube
"CT_VIDEOADS" -> Right CCTCtVideoads
"CT_ANALYTICS" -> Right CCTCtAnalytics
"CT_DOUBLECLICK" -> Right CCTCtDoubleClick
"CT_SHOPPING" -> Right CCTCtShopping
"CT_MOBILE" -> Right CCTCtMobile
"CT_DIGITAL_SALES" -> Right CCTCtDigitalSales
"CT_ADWORDS_SEARCH" -> Right CCTCtAdwordsSearch
"CT_ADWORDS_DISPLAY" -> Right CCTCtAdwordsDisplay
"CT_MOBILE_SITES" -> Right CCTCtMobileSites
x -> Left ("Unable to parse CertificationCertificationType from: " <> x)
instance ToHttpApiData CertificationCertificationType where
toQueryParam = \case
CCTCertificationTypeUnspecified -> "CERTIFICATION_TYPE_UNSPECIFIED"
CCTCtAdwords -> "CT_ADWORDS"
CCTCtYouTube -> "CT_YOUTUBE"
CCTCtVideoads -> "CT_VIDEOADS"
CCTCtAnalytics -> "CT_ANALYTICS"
CCTCtDoubleClick -> "CT_DOUBLECLICK"
CCTCtShopping -> "CT_SHOPPING"
CCTCtMobile -> "CT_MOBILE"
CCTCtDigitalSales -> "CT_DIGITAL_SALES"
CCTCtAdwordsSearch -> "CT_ADWORDS_SEARCH"
CCTCtAdwordsDisplay -> "CT_ADWORDS_DISPLAY"
CCTCtMobileSites -> "CT_MOBILE_SITES"
instance FromJSON CertificationCertificationType where
parseJSON = parseJSONText "CertificationCertificationType"
instance ToJSON CertificationCertificationType where
toJSON = toJSONText
data EventDataKey
= EDKEventDataTypeUnspecified
| EDKAction
| EDKAgencyId
| EDKAgencyName
| EDKAgencyPhoneNumber
| EDKAgencyWebsite
| EDKBudget
| EDKCenterPoint
| EDKCertification
| EDKComment
| EDKCountry
| EDKCurrency
| EDKCurrentlyViewedAgencyId
| EDKDistance
| EDKDistanceType
| EDKExam
| EDKHistoryToken
| EDKID
| EDKIndustry
| EDKInsightTag
| EDKLanguage
| EDKLocation
| EDKMarketingOptIn
| EDKQuery
| EDKSearchStartIndex
| EDKService
| EDKShowVow
| EDKSolution
| EDKTrafficSourceId
| EDKTrafficSubId
| EDKViewPort
| EDKWebsite
| EDKDetails
| EDKExperimentId
| EDKGpsMotivation
| EDKURL
| EDKElementFocus
| EDKProgress
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable EventDataKey
instance FromHttpApiData EventDataKey where
parseQueryParam = \case
"EVENT_DATA_TYPE_UNSPECIFIED" -> Right EDKEventDataTypeUnspecified
"ACTION" -> Right EDKAction
"AGENCY_ID" -> Right EDKAgencyId
"AGENCY_NAME" -> Right EDKAgencyName
"AGENCY_PHONE_NUMBER" -> Right EDKAgencyPhoneNumber
"AGENCY_WEBSITE" -> Right EDKAgencyWebsite
"BUDGET" -> Right EDKBudget
"CENTER_POINT" -> Right EDKCenterPoint
"CERTIFICATION" -> Right EDKCertification
"COMMENT" -> Right EDKComment
"COUNTRY" -> Right EDKCountry
"CURRENCY" -> Right EDKCurrency
"CURRENTLY_VIEWED_AGENCY_ID" -> Right EDKCurrentlyViewedAgencyId
"DISTANCE" -> Right EDKDistance
"DISTANCE_TYPE" -> Right EDKDistanceType
"EXAM" -> Right EDKExam
"HISTORY_TOKEN" -> Right EDKHistoryToken
"ID" -> Right EDKID
"INDUSTRY" -> Right EDKIndustry
"INSIGHT_TAG" -> Right EDKInsightTag
"LANGUAGE" -> Right EDKLanguage
"LOCATION" -> Right EDKLocation
"MARKETING_OPT_IN" -> Right EDKMarketingOptIn
"QUERY" -> Right EDKQuery
"SEARCH_START_INDEX" -> Right EDKSearchStartIndex
"SERVICE" -> Right EDKService
"SHOW_VOW" -> Right EDKShowVow
"SOLUTION" -> Right EDKSolution
"TRAFFIC_SOURCE_ID" -> Right EDKTrafficSourceId
"TRAFFIC_SUB_ID" -> Right EDKTrafficSubId
"VIEW_PORT" -> Right EDKViewPort
"WEBSITE" -> Right EDKWebsite
"DETAILS" -> Right EDKDetails
"EXPERIMENT_ID" -> Right EDKExperimentId
"GPS_MOTIVATION" -> Right EDKGpsMotivation
"URL" -> Right EDKURL
"ELEMENT_FOCUS" -> Right EDKElementFocus
"PROGRESS" -> Right EDKProgress
x -> Left ("Unable to parse EventDataKey from: " <> x)
instance ToHttpApiData EventDataKey where
toQueryParam = \case
EDKEventDataTypeUnspecified -> "EVENT_DATA_TYPE_UNSPECIFIED"
EDKAction -> "ACTION"
EDKAgencyId -> "AGENCY_ID"
EDKAgencyName -> "AGENCY_NAME"
EDKAgencyPhoneNumber -> "AGENCY_PHONE_NUMBER"
EDKAgencyWebsite -> "AGENCY_WEBSITE"
EDKBudget -> "BUDGET"
EDKCenterPoint -> "CENTER_POINT"
EDKCertification -> "CERTIFICATION"
EDKComment -> "COMMENT"
EDKCountry -> "COUNTRY"
EDKCurrency -> "CURRENCY"
EDKCurrentlyViewedAgencyId -> "CURRENTLY_VIEWED_AGENCY_ID"
EDKDistance -> "DISTANCE"
EDKDistanceType -> "DISTANCE_TYPE"
EDKExam -> "EXAM"
EDKHistoryToken -> "HISTORY_TOKEN"
EDKID -> "ID"
EDKIndustry -> "INDUSTRY"
EDKInsightTag -> "INSIGHT_TAG"
EDKLanguage -> "LANGUAGE"
EDKLocation -> "LOCATION"
EDKMarketingOptIn -> "MARKETING_OPT_IN"
EDKQuery -> "QUERY"
EDKSearchStartIndex -> "SEARCH_START_INDEX"
EDKService -> "SERVICE"
EDKShowVow -> "SHOW_VOW"
EDKSolution -> "SOLUTION"
EDKTrafficSourceId -> "TRAFFIC_SOURCE_ID"
EDKTrafficSubId -> "TRAFFIC_SUB_ID"
EDKViewPort -> "VIEW_PORT"
EDKWebsite -> "WEBSITE"
EDKDetails -> "DETAILS"
EDKExperimentId -> "EXPERIMENT_ID"
EDKGpsMotivation -> "GPS_MOTIVATION"
EDKURL -> "URL"
EDKElementFocus -> "ELEMENT_FOCUS"
EDKProgress -> "PROGRESS"
instance FromJSON EventDataKey where
parseJSON = parseJSONText "EventDataKey"
instance ToJSON EventDataKey where
toJSON = toJSONText
data LeadState
= LSLeadStateUnspecified
| LSLead
| LSContacted
| LSClient
| LSOther
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable LeadState
instance FromHttpApiData LeadState where
parseQueryParam = \case
"LEAD_STATE_UNSPECIFIED" -> Right LSLeadStateUnspecified
"LEAD" -> Right LSLead
"CONTACTED" -> Right LSContacted
"CLIENT" -> Right LSClient
"OTHER" -> Right LSOther
x -> Left ("Unable to parse LeadState from: " <> x)
instance ToHttpApiData LeadState where
toQueryParam = \case
LSLeadStateUnspecified -> "LEAD_STATE_UNSPECIFIED"
LSLead -> "LEAD"
LSContacted -> "CONTACTED"
LSClient -> "CLIENT"
LSOther -> "OTHER"
instance FromJSON LeadState where
parseJSON = parseJSONText "LeadState"
instance ToJSON LeadState where
toJSON = toJSONText
data LogUserEventRequestEventScope
= EventScopeUnspecified
| Visitor
| Session
| Page
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable LogUserEventRequestEventScope
instance FromHttpApiData LogUserEventRequestEventScope where
parseQueryParam = \case
"EVENT_SCOPE_UNSPECIFIED" -> Right EventScopeUnspecified
"VISITOR" -> Right Visitor
"SESSION" -> Right Session
"PAGE" -> Right Page
x -> Left ("Unable to parse LogUserEventRequestEventScope from: " <> x)
instance ToHttpApiData LogUserEventRequestEventScope where
toQueryParam = \case
EventScopeUnspecified -> "EVENT_SCOPE_UNSPECIFIED"
Visitor -> "VISITOR"
Session -> "SESSION"
Page -> "PAGE"
instance FromJSON LogUserEventRequestEventScope where
parseJSON = parseJSONText "LogUserEventRequestEventScope"
instance ToJSON LogUserEventRequestEventScope where
toJSON = toJSONText