We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0b51431 + f86c4d5 commit ca55dfdCopy full SHA for ca55dfd
2 files changed
samples/snippets/quickstart_oauth2.py
@@ -37,7 +37,7 @@
37
from google.analytics.data_v1beta.types import RunReportRequest
38
39
40
-def sample_run_report(credentials):
+def sample_run_report(credentials=None, property_id='YOUR-GA4-PROPERTY-ID'):
41
"""Runs a simple report on a Google Analytics 4 property."""
42
# TODO(developer): Uncomment this variable and replace with your
43
# Google Analytics 4 property ID before running the sample.
samples/snippets/quickstart_oauth2_test.py
@@ -17,6 +17,6 @@
17
18
def test_quickstart(capsys):
19
TEST_PROPERTY_ID = '222596558'
20
- quickstart_oauth2.sample_run_report(TEST_PROPERTY_ID)
+ quickstart_oauth2.sample_run_report(None, TEST_PROPERTY_ID)
21
out, _ = capsys.readouterr()
22
assert "Report result" in out
0 commit comments