@@ -242,9 +242,11 @@ public virtual LogEvent CreateImpressionEvent(ProjectConfig config, Experiment e
242242 GetImpressionOrConversionParamsWithCommonParams ( commonParams ,
243243 new object [ ] { impressionOnlyParams } ) ;
244244
245- var region = ! string . IsNullOrEmpty ( config . Region ) ? config . Region : "US" ;
245+ var endpoint = EventFactory . EventEndpoints . ContainsKey ( region )
246+ ? EventFactory . EventEndpoints [ region ]
247+ : EventFactory . EventEndpoints [ "US" ] ;
246248
247- return new LogEvent ( EventFactory . EventEndpoints [ region ] , impressionParams , HTTP_VERB , HTTP_HEADERS ) ;
249+ return new LogEvent ( endpoint , impressionParams , HTTP_VERB , HTTP_HEADERS ) ;
248250 }
249251
250252
@@ -270,9 +272,11 @@ public virtual LogEvent CreateConversionEvent(ProjectConfig config, string event
270272 var conversionParams =
271273 GetImpressionOrConversionParamsWithCommonParams ( commonParams , conversionOnlyParams ) ;
272274
273- var region = ! string . IsNullOrEmpty ( config . Region ) ? config . Region : "US" ;
275+ var endpoint = EventFactory . EventEndpoints . ContainsKey ( region )
276+ ? EventFactory . EventEndpoints [ region ]
277+ : EventFactory . EventEndpoints [ "US" ] ;
274278
275- return new LogEvent ( EventFactory . EventEndpoints [ region ] , conversionParams , HTTP_VERB , HTTP_HEADERS ) ;
279+ return new LogEvent ( endpoint , conversionParams , HTTP_VERB , HTTP_HEADERS ) ;
276280 }
277281 }
278282}
0 commit comments