It's required that you register your property as a 'Universal Analytics Property' in your Google Analytics account, otherwise Google won't make your property available for the API usage.
Google does not support the usage of the Google Analytics API for 'Google Analytics 4 property', 'Stream', 'IOS or Android apps' platforms.
When you register a new property in your Google Analytics account, you need to:
- Click 'Show advanced options'
- Enabled 'Create a Universal Analytics property'
- Choose to 'Create Google Analytics 4 and a Universal Analytics property' or 'Create a Universal Analytics property only'