XML account feed reference에서 API에서 반환 된 모든 데이터를 살펴보십시오.
Here 모든 중요한 계정 피드 정보에 액세스하는 Java 예 : 요청에 따라
Web Property Id = UA-4276604-4
Account Name = www.mainsite.net
Account ID = 4246204
Profile Name = www.systempuntoout.com
Profile ID = 26084768
Table Id = ga:26084768
Currency = USD
TimeZone = Europe/Rome
사용하여 다음 코드 사이트를 얻을 :이 샘플 결과
for (AccountEntry entry : accountFeed.getEntries()) {
System.out.println(
"\nWeb Property Id = " + entry.getProperty("ga:webPropertyId") +
"\nAccount Name = " + entry.getProperty("ga:accountName") +
"\nAccount ID = " + entry.getProperty("ga:accountId") +
"\nProfile Name = " + entry.getTitle().getPlainText() +
"\nProfile ID = " + entry.getProperty("ga:profileId") +
"\nTable Id = " + entry.getTableId().getValue() +
"\nCurrency = " + entry.getProperty("ga:currency") +
"\nTimeZone = " + entry.getProperty("ga:timezone") +
(entry.hasCustomVariables() ? "\nThis profile has custom variables" : "") +
(entry.hasGoals() ? "\nThis profile has goals" : ""));
}
entry.getTitle().getPlainText()
을
괜찮습니다. 그러나 어느 쪽이 웹 사이트입니까 ??? – Chez
업데이트 됨 ..use getTitle(). getPlainText(). – systempuntoout