So the ids query parameter is called the table ID.
The value is ga:xxx where xxx is your profile ID.
You can get the profile ID:
- In the Google Analytics interface configuration section
- the p query parameter in the main Google Analytics interface reports
These tutorials do walk you through using the Management API to query the Core Reporting API.
-Nick