@@ -29,6 +29,7 @@ class Component extends BaseComponent
2929 private const ACTION_SEGMENTS = 'segments ' ;
3030 private const ACTION_CUSTOM_METRICS = 'customMetrics ' ;
3131 private const ACTION_GET_PROFILES_PROPERTIES = 'getProfilesProperties ' ;
32+ private const ACTION_GET_PROPERTIES_METADATA = 'getPropertiesMetadata ' ;
3233
3334 public function getConfig (): Config
3435 {
@@ -192,6 +193,21 @@ protected function runCustomMetricsAction(): array
192193 return $ result ;
193194 }
194195
196+ protected function getPropertiesMetadata (): array
197+ {
198+ $ properties = $ this ->getConfig ()->getProperties ();
199+ $ viewId = $ this ->getConfig ()->getQuery ()['viewId ' ] ?? null ;
200+
201+ $ result = [];
202+ try {
203+ $ result = $ this ->getExtractor ()->getPropertiesMetadata ($ properties , $ viewId );
204+ } catch (RequestException $ e ) {
205+ $ this ->handleException ($ e );
206+ }
207+
208+ return $ result ;
209+ }
210+
195211 protected function getProfilesPropertiesAction (): array
196212 {
197213 return $ this ->getExtractor ()->getProfilesPropertiesAction ();
@@ -222,6 +238,7 @@ protected function getSyncActions(): array
222238 {
223239 return [
224240 self ::ACTION_GET_PROFILES_PROPERTIES => 'getProfilesPropertiesAction ' ,
241+ self ::ACTION_GET_PROPERTIES_METADATA => 'getPropertiesMetadata ' ,
225242 self ::ACTION_SAMPLE => 'runSampleAction ' ,
226243 self ::ACTION_SAMPLE_JSON => 'runSampleJsonAction ' ,
227244 self ::ACTION_SEGMENTS => 'runSegmentsAction ' ,
0 commit comments