else {
for (Account account : accounts.getItems()) {
String accountId = account.getId();
// Query webproperties collection.
Webproperties webproperties = analytics.management().webproperties().list(accountId).execute();
if (webproperties.getItems().isEmpty()) {
System.err.println("No Webproperties found");
}
else {
for (Webproperty webproperty : webproperties.getItems()) {
String webpropertyId = webproperty.getId();
// Query profiles collection.
Profiles profiles = analytics.management().profiles().list(accountId, webpropertyId).execute();
if (profiles.getItems().isEmpty()) {