googleanalytics / dotnet-docs-samples

Apache License 2.0
9 stars 17 forks source link

Cannot implicitly convert type Google.Analytics.Data.V1Beta.RunReportResponse to Google.Api.Gax.PagedEnumerable #8

Open arnold-overby-SIM opened 3 years ago

arnold-overby-SIM commented 3 years ago

Trying to build this from fresh clone results in error "The type or namespace PagedEnumerable<> could not be found."

Adding "using Google.Api.Gax" resolves that, but then results in build error:

Cannot implicitly convert type Google.Analytics.Data.V1Beta.RunReportResponse to Google.Api.Gax.PagedEnumerable<Google.Analytics.Data.V1Beta.RunReportResponse,Google.Analytics.Data.V1Beta.DimensionHeader>

SanderHexadot commented 3 years ago

Have the same issue

surferjeff commented 2 years ago

Me too.

surferjeff commented 2 years ago

And even when I fix the code so that it runs, I see this error:

RpcException: Status(StatusCode="InvalidArgument", Detail="property must be in the form `properties/1234` where `1234` is an GA4 property Id. Instead, the API received property = property/26[redacted]30 To learn more about Property ID, see https://developers.google.com/analytics/devguides/reporting/data/v1/property-id.", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"@1635129070.133087000","description":"Error received from peer ipv6:[2607:f8b0:4005:80c::200a]:443","file":"/tmpfs/src/github/grpc/workspace_csharp_ext_macos_x64/src/core/lib/surface/call.cc","file_line":1067,"grpc_message":"property must be in the form `properties/1234` where `1234` is an GA4 property Id. Instead, the API received property = property/26[redacted]30 To learn more about Property ID, see https://developers.google.com/analytics/devguides/reporting/data/v1/property-id.","grpc_status":3}")

I followed the instructions in the error message and visited https://developers.google.com/analytics/devguides/reporting and confirmed my property id is numeric.