-1
   GetProjectBillingInfoRequest request =
       GetProjectBillingInfoRequest.newBuilder()
           .setName(ProjectBillingInfoName.of("billing-124-2j0").toString())
           .build();
   ProjectBillingInfo response = cloudBillingClient.getProjectBillingInfo(request);

By using this code i am trying get ProjectBillingInfo. My need is to get a billing account Id. I have the project Id and service account json.

From above code I am getting this error com.google.api.gax.rpc.InvalidArgumentException: io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Request contains an invalid argument.

what's the issue here?

billing-124-2j0 is my project Id.

DAK
  • 282
  • 1
  • 18

0 Answers0