Skip to content

Commit c8e5b6b

Browse files
committed
Update packages from Cloud to Analytics
1 parent a63614a commit c8e5b6b

26 files changed

+50
-50
lines changed

google-analytics-data/src/client_from_json_credentials.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* limitations under the License.
1717
*/
1818

19-
namespace Google\Cloud\Samples\Analytics\Data;
19+
namespace Google\Analytics\Data\Samples;
2020

2121
/**
2222
* This file is to be used as an example only!
@@ -49,4 +49,4 @@ function client_from_json_credentials(string $credentialsJsonPath)
4949

5050
// The following 2 lines are only needed to run the samples
5151
require_once __DIR__ . '/../testing/sample_helpers.php';
52-
return \Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);
52+
return \Google\Analytics\Data\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

google-analytics-data/src/get_common_metadata.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* php get_common_metadata.php
2727
*/
2828

29-
namespace Google\Cloud\Samples\Analytics\Data;
29+
namespace Google\Analytics\Data\Samples;
3030

3131
// [START analyticsdata_get_common_metadata]
3232
use Google\Analytics\Data\V1beta\Client\BetaAnalyticsDataClient;
@@ -119,4 +119,4 @@ function printGetCommonMetadata(Metadata $response)
119119

120120
// The following 2 lines are only needed to run the samples
121121
require_once __DIR__ . '/../testing/sample_helpers.php';
122-
return \Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);
122+
return \Google\Analytics\Data\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

google-analytics-data/src/get_metadata_by_property_id.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* php get_metadata_by_property_id.php
2727
*/
2828

29-
namespace Google\Cloud\Samples\Analytics\Data;
29+
namespace Google\Analytics\Data\Samples;
3030

3131
// [START analyticsdata_get_metadata_by_property_id]
3232
use Google\Analytics\Data\V1beta\Client\BetaAnalyticsDataClient;
@@ -119,4 +119,4 @@ function printGetMetadataByPropertyId(Metadata $response)
119119

120120
// The following 2 lines are only needed to run the samples
121121
require_once __DIR__ . '/../testing/sample_helpers.php';
122-
return \Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);
122+
return \Google\Analytics\Data\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

google-analytics-data/src/run_batch_report.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* php run_batch_report.php YOUR-GA4-PROPERTY-ID
2727
*/
2828

29-
namespace Google\Cloud\Samples\Analytics\Data;
29+
namespace Google\Analytics\Data\Samples;
3030

3131
// [START analyticsdata_run_batch_report]
3232
use Google\Analytics\Data\V1beta\Client\BetaAnalyticsDataClient;
@@ -118,4 +118,4 @@ function printBatchRunReportsResponse(RunReportResponse $response)
118118

119119
// The following 2 lines are only needed to run the samples
120120
require_once __DIR__ . '/../testing/sample_helpers.php';
121-
return \Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);
121+
return \Google\Analytics\Data\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

google-analytics-data/src/run_pivot_report.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* php run_pivot_report.php YOUR-GA4-PROPERTY-ID
2727
*/
2828

29-
namespace Google\Cloud\Samples\Analytics\Data;
29+
namespace Google\Analytics\Data\Samples;
3030

3131
// [START analyticsdata_run_pivot_report]
3232
use Google\Analytics\Data\V1beta\Client\BetaAnalyticsDataClient;
@@ -112,4 +112,4 @@ function printPivotReportResponse(RunPivotReportResponse $response)
112112

113113
// The following 2 lines are only needed to run the samples
114114
require_once __DIR__ . '/../testing/sample_helpers.php';
115-
return \Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);
115+
return \Google\Analytics\Data\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

google-analytics-data/src/run_realtime_report.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* php run__realtime_report.php YOUR-GA4-PROPERTY-ID
2727
*/
2828

29-
namespace Google\Cloud\Samples\Analytics\Data;
29+
namespace Google\Analytics\Data\Samples;
3030

3131
// [START analyticsdata_run_realtime_report]
3232
use Google\Analytics\Data\V1beta\Client\BetaAnalyticsDataClient;
@@ -92,4 +92,4 @@ function printRunRealtimeReportResponse(RunRealtimeReportResponse $response)
9292

9393
// The following 2 lines are only needed to run the samples
9494
require_once __DIR__ . '/../testing/sample_helpers.php';
95-
return \Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);
95+
return \Google\Analytics\Data\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

google-analytics-data/src/run_realtime_report_with_minute_ranges.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* php run__realtime_report_with_minute_ranges.php YOUR-GA4-PROPERTY-ID
2828
*/
2929

30-
namespace Google\Cloud\Samples\Analytics\Data;
30+
namespace Google\Analytics\Data\Samples;
3131

3232
// [START analyticsdata_run_realtime_report_with_minute_ranges]
3333
use Google\Analytics\Data\V1beta\Client\BetaAnalyticsDataClient;
@@ -98,4 +98,4 @@ function printRunRealtimeReportWithMinuteRangesResponse(RunRealtimeReportRespons
9898

9999
// The following 2 lines are only needed to run the samples
100100
require_once __DIR__ . '/../testing/sample_helpers.php';
101-
return \Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);
101+
return \Google\Analytics\Data\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

google-analytics-data/src/run_realtime_report_with_multiple_dimensions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* php run_realtime_report_with_multiple_dimensions.php YOUR-GA4-PROPERTY-ID
2727
*/
2828

29-
namespace Google\Cloud\Samples\Analytics\Data;
29+
namespace Google\Analytics\Data\Samples;
3030

3131
// [START analyticsdata_run_realtime_report_with_multiple_dimensions]
3232
use Google\Analytics\Data\V1beta\Client\BetaAnalyticsDataClient;
@@ -95,4 +95,4 @@ function printRunRealtimeReportWithMultipleDimensionsResponse(RunRealtimeReportR
9595

9696
// The following 2 lines are only needed to run the samples
9797
require_once __DIR__ . '/../testing/sample_helpers.php';
98-
return \Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);
98+
return \Google\Analytics\Data\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

google-analytics-data/src/run_realtime_report_with_multiple_metrics.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* php run__realtime_report_with_multiple_metrics.php YOUR-GA4-PROPERTY-ID
2727
*/
2828

29-
namespace Google\Cloud\Samples\Analytics\Data;
29+
namespace Google\Analytics\Data\Samples;
3030

3131
// [START analyticsdata_run_realtime_report_with_multiple_metrics]
3232
use Google\Analytics\Data\V1beta\Client\BetaAnalyticsDataClient;
@@ -95,4 +95,4 @@ function printRunRealtimeReportWithMultipleMetricsResponse(RunRealtimeReportResp
9595

9696
// The following 2 lines are only needed to run the samples
9797
require_once __DIR__ . '/../testing/sample_helpers.php';
98-
return \Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);
98+
return \Google\Analytics\Data\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

google-analytics-data/src/run_report.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* for more information.
2424
*/
2525

26-
namespace Google\Cloud\Samples\Analytics\Data;
26+
namespace Google\Analytics\Data\Samples;
2727

2828
// [START analyticsdata_run_report]
2929
use Google\Analytics\Data\V1beta\Client\BetaAnalyticsDataClient;
@@ -100,4 +100,4 @@ function printRunReportResponse(RunReportResponse $response)
100100

101101
// The following 2 lines are only needed to run the samples
102102
require_once __DIR__ . '/../testing/sample_helpers.php';
103-
return \Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);
103+
return \Google\Analytics\Data\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

0 commit comments

Comments
 (0)