I'm looking to fetch cost usage reports for all my GCP projects using the google-cloud-billing library in Python. To achieve this, I've created a Service Account. However, I encountered an issue while trying to attach the "Billing Account Viewer" role to my service account – it doesn't seem to be available.
I realized that I might have created this service account at the project level. Is this the correct approach, or should I have created it at a different level?
Also, if my goal is to utilize the google-cloud-billing library to retrieve cost report details for all projects, could you provide guidance on how to properly configure the service account for this purpose?
Thank you for your assistance!