I want to programatically set a few goals for each trackingId I create. The docs say:
Also you can create at most 20 goals through the API; see the limits and quotas page for details.
It is unclear to me:
Goals are view based.
You have a Tracking id (web property) under that property you have one ore more a view / profile. Each view / profile can have up to 20 goals.
You could just make additional views under your web property and have additional goals. You can not analyze data across views though.
This is not really API related this is how Google Analytics works.
You can also get a professional Google Analytics account I believe the limit is higher.