Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

123
Views
GA4 Admin API for .Net not returning MeasurementUnit for CustomMetrics. Always null

I'm using the .Net library for the GA4 admin API. When I request CustomMetrics the MeasurementUnit in the response is always null.

Am I missing something?

var service = new GoogleAnalyticsAdminService(...);    
var metricsList = service.Properties.CustomMetrics.List("properties/1234567890");
var metricsResponse = await metricsList.ExecuteAsync(cancellationToken);
foreach(var customMetric in metricsResponse.CustomMetrics) {
    Debug.WriteLine($"{customMetric.DisplayName}.MeasurementUnit={customMetric.MeasurementUnit ?? "(null)"}"); // Always null
}

I've also noticed that the patch method does not accept measurement_unit in the UpdateMask.

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!