Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

chore: delete owlbot.py #152

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,33 @@

.. include:: multiprocessing.rst

This package includes clients for multiple versions of Analytics Data API.
By default, you will get version ``data_v1beta``.


API Reference
-------------
.. toctree::
:maxdepth: 2

data_v1beta/services
data_v1beta/types

API Reference
-------------
.. toctree::
:maxdepth: 2

data_v1alpha/services
data_v1alpha/types


Changelog
---------

For a list of all ``google-analytics-data`` releases:

.. toctree::
:maxdepth: 2
:maxdepth: 2

changelog
changelog
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def cover(session):
test runs (not system test runs), and then erases coverage data.
"""
session.install("coverage", "pytest-cov")
session.run("coverage", "report", "--show-missing", "--fail-under=99")
session.run("coverage", "report", "--show-missing", "--fail-under=100")

session.run("coverage", "erase")

Expand Down
71 changes: 0 additions & 71 deletions owlbot.py

This file was deleted.

4 changes: 1 addition & 3 deletions samples/snippets/run_batch_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ def run_batch_report(property_id="YOUR-GA4-PROPERTY-ID"):
date_ranges=[DateRange(start_date="2021-01-03", end_date="2021-01-09")],
),
RunReportRequest(
dimensions=[
Dimension(name="browser"),
],
dimensions=[Dimension(name="browser")],
metrics=[Metric(name="activeUsers")],
date_ranges=[DateRange(start_date="2021-01-01", end_date="2021-01-31")],
),
Expand Down
9 changes: 2 additions & 7 deletions samples/snippets/run_pivot_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ def run_pivot_report(property_id="YOUR-GA4-PROPERTY-ID"):

request = RunPivotReportRequest(
property=f"properties/{property_id}",
date_ranges=[
DateRange(start_date="2021-01-01", end_date="2021-01-30"),
],
date_ranges=[DateRange(start_date="2021-01-01", end_date="2021-01-30")],
pivots=[
Pivot(
field_names=["country"],
Expand All @@ -70,10 +68,7 @@ def run_pivot_report(property_id="YOUR-GA4-PROPERTY-ID"):
),
],
metrics=[Metric(name="sessions")],
dimensions=[
Dimension(name="country"),
Dimension(name="browser"),
],
dimensions=[Dimension(name="country"), Dimension(name="browser")],
)
response = client.run_pivot_report(request)
print_run_pivot_report_response(response)
Expand Down
4 changes: 1 addition & 3 deletions samples/snippets/run_report_with_property_quota.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ def run_report_with_property_quota(property_id="YOUR-GA4-PROPERTY-ID"):
property=f"properties/{property_id}",
return_property_quota=True,
dimensions=[Dimension(name="country")],
metrics=[
Metric(name="activeUsers"),
],
metrics=[Metric(name="activeUsers")],
date_ranges=[DateRange(start_date="7daysAgo", end_date="today")],
)
response = client.run_report(request)
Expand Down