File tree Expand file tree Collapse file tree 3 files changed +14
-11
lines changed
Expand file tree Collapse file tree 3 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 3434use Google \Analytics \Data \V1beta \BetaAnalyticsDataClient ;
3535use Google \Analytics \Data \V1beta \DateRange ;
3636use Google \Analytics \Data \V1beta \Dimension ;
37- use Google \Analytics \Data \V1beta \Entity ;
3837use Google \Analytics \Data \V1beta \Metric ;
3938
4039/**
6261 'dimensions ' => [new Dimension (
6362 [
6463 'name ' => 'city ' ,
65- ]),
64+ ]
65+ ),
6666 ],
6767 'metrics ' => [new Metric (
6868 [
6969 'name ' => 'activeUsers ' ,
70- ])
70+ ]
71+ )
7172 ]
7273]);
7374// [END analyticsdata_run_report]
7980foreach ($ response ->getRows () as $ row ) {
8081 print $ row ->getDimensionValues ()[0 ]->getValue ()
8182 . ' ' . $ row ->getMetricValues ()[0 ]->getValue () . PHP_EOL ;
82- // [END analyticsdata_run_report_response]
83+ // [END analyticsdata_run_report_response]
8384}
8485// [END analytics_data_quickstart]
Original file line number Diff line number Diff line change 3535use Google \Analytics \Data \V1beta \BetaAnalyticsDataClient ;
3636use Google \Analytics \Data \V1beta \DateRange ;
3737use Google \Analytics \Data \V1beta \Dimension ;
38- use Google \Analytics \Data \V1beta \Entity ;
3938use Google \Analytics \Data \V1beta \Metric ;
4039
4140/**
7170 'dimensions ' => [new Dimension (
7271 [
7372 'name ' => 'city ' ,
74- ]),
73+ ]
74+ ),
7575 ],
7676 'metrics ' => [new Metric (
7777 [
7878 'name ' => 'activeUsers ' ,
79- ])
79+ ]
80+ )
8081 ]
8182]);
8283// [END analyticsdata_json_credentials_run_report]
8889foreach ($ response ->getRows () as $ row ) {
8990 print $ row ->getDimensionValues ()[0 ]->getValue ()
9091 . ' ' . $ row ->getMetricValues ()[0 ]->getValue () . PHP_EOL ;
91- // [END analyticsdata_json_credentials_run_report_response]
92+ // [END analyticsdata_json_credentials_run_report_response]
9293}
9394
9495// [END analytics_data_quickstart]
Original file line number Diff line number Diff line change 2121use Google \Analytics \Data \V1beta \BetaAnalyticsDataClient ;
2222use Google \Analytics \Data \V1beta \DateRange ;
2323use Google \Analytics \Data \V1beta \Dimension ;
24- use Google \Analytics \Data \V1beta \Entity ;
2524use Google \Analytics \Data \V1beta \Metric ;
2625use Google \ApiCore \ApiException ;
2726use Google \Auth \OAuth2 ;
6867 'dimensions ' => [new Dimension (
6968 [
7069 'name ' => 'city ' ,
71- ]),
70+ ]
71+ ),
7272 ],
7373 'metrics ' => [new Metric (
7474 [
7575 'name ' => 'activeUsers ' ,
76- ])
76+ ]
77+ )
7778 ]
7879 ]);
7980
You can’t perform that action at this time.
0 commit comments