/**
* Retrieves the profile feed from the Management API and prints the
* first entry.
*/
public static void printFirstProfile() {
ManagementFeed profilesFeed = getFeed(BASE_URL +
"accounts/~all/webproperties/~all/profiles?max-results=1");
ManagementEntry profile = profilesFeed.getEntries().get(0);
System.out.println("--- Profile Entry ---");
System.out.println("Account ID: " + profile.getProperty("ga:accountId"));
System.out.println("Web Property ID: " + profile.getProperty("ga:webPropertyId"));
System.out.println("Profile ID: " + profile.getProperty("ga:profileId"));