Skip to content

Commit ca55dfd

Browse files
committed
Merge branch 'samples' of github.com:ikuleshov/python-analytics-data into samples
2 parents 0b51431 + f86c4d5 commit ca55dfd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

samples/snippets/quickstart_oauth2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
from google.analytics.data_v1beta.types import RunReportRequest
3838

3939

40-
def sample_run_report(credentials):
40+
def sample_run_report(credentials=None, property_id='YOUR-GA4-PROPERTY-ID'):
4141
"""Runs a simple report on a Google Analytics 4 property."""
4242
# TODO(developer): Uncomment this variable and replace with your
4343
# Google Analytics 4 property ID before running the sample.

samples/snippets/quickstart_oauth2_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717

1818
def test_quickstart(capsys):
1919
TEST_PROPERTY_ID = '222596558'
20-
quickstart_oauth2.sample_run_report(TEST_PROPERTY_ID)
20+
quickstart_oauth2.sample_run_report(None, TEST_PROPERTY_ID)
2121
out, _ = capsys.readouterr()
2222
assert "Report result" in out

0 commit comments

Comments
 (0)