2
Dans Google Analytics version API 3 pour Java il y avait une méthode setMaxResults:Google Version Analytics 4 API résultats maximum java
private static GaData executeDataQuery(Analytics analytics, String profileId) throws IOException {
return analytics.data().ga().get("ga:" + profileId, // Table Id. ga: + profile id.
"2012-01-01", // Start date.
"2012-01-14", // End date.
"ga:visits") // Metrics.
.setDimensions("ga:source,ga:keyword")
.setSort("-ga:visits,ga:source")
.setFilters("ga:medium==organic")
.setMaxResults(25)
.execute();
}
Comment puis-je obtenir maxResults utilisant l'API Google Analytics version 4? J'ai eu un bref balayage à travers les javadocs here et ne peut pas trouver une méthode pour le faire.