google-analytics-admin 0.18.1__tar.gz → 0.20.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/MANIFEST.in +1 -1
- {google-analytics-admin-0.18.1/google_analytics_admin.egg-info → google-analytics-admin-0.20.0}/PKG-INFO +15 -14
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/README.rst +14 -13
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin/__init__.py +3 -1
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin/gapic_version.py +1 -1
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1alpha/__init__.py +3 -1
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1alpha/gapic_metadata.json +15 -0
- {google-analytics-admin-0.18.1/google/analytics/admin_v1beta → google-analytics-admin-0.20.0/google/analytics/admin_v1alpha}/gapic_version.py +1 -1
- {google-analytics-admin-0.18.1/google/analytics/admin_v1beta → google-analytics-admin-0.20.0/google/analytics/admin_v1alpha}/services/__init__.py +1 -1
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/__init__.py +1 -1
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/async_client.py +145 -12
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/client.py +145 -12
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/pagers.py +1 -1
- {google-analytics-admin-0.18.1/google/analytics/admin_v1beta → google-analytics-admin-0.20.0/google/analytics/admin_v1alpha}/services/analytics_admin_service/transports/__init__.py +1 -1
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/base.py +15 -1
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/grpc.py +37 -4
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/grpc_asyncio.py +38 -4
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/rest.py +147 -2
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1alpha/types/__init__.py +3 -1
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1alpha/types/access_report.py +1 -1
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1alpha/types/analytics_admin.py +57 -15
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1alpha/types/audience.py +1 -1
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1alpha/types/channel_group.py +1 -1
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1alpha/types/event_create_and_edit.py +1 -1
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1alpha/types/expanded_data_set.py +1 -1
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1alpha/types/resources.py +82 -46
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1beta/__init__.py +1 -1
- {google-analytics-admin-0.18.1/google/analytics/admin_v1alpha → google-analytics-admin-0.20.0/google/analytics/admin_v1beta}/gapic_version.py +1 -1
- {google-analytics-admin-0.18.1/tests → google-analytics-admin-0.20.0/google/analytics/admin_v1beta/services}/__init__.py +1 -1
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1beta/services/analytics_admin_service/__init__.py +1 -1
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1beta/services/analytics_admin_service/async_client.py +7 -1
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1beta/services/analytics_admin_service/client.py +7 -1
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1beta/services/analytics_admin_service/pagers.py +1 -1
- {google-analytics-admin-0.18.1/google/analytics/admin_v1alpha → google-analytics-admin-0.20.0/google/analytics/admin_v1beta}/services/analytics_admin_service/transports/__init__.py +1 -1
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/base.py +1 -1
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/grpc.py +3 -1
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/grpc_asyncio.py +3 -1
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/rest.py +1 -1
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1beta/types/__init__.py +1 -1
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1beta/types/access_report.py +1 -1
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1beta/types/analytics_admin.py +12 -7
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1beta/types/resources.py +3 -1
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0/google_analytics_admin.egg-info}/PKG-INFO +15 -14
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/setup.py +1 -1
- {google-analytics-admin-0.18.1/tests/unit → google-analytics-admin-0.20.0/tests}/__init__.py +1 -1
- {google-analytics-admin-0.18.1/google/analytics/admin_v1alpha/services → google-analytics-admin-0.20.0/tests/unit}/__init__.py +1 -1
- google-analytics-admin-0.20.0/tests/unit/gapic/__init__.py +15 -0
- google-analytics-admin-0.20.0/tests/unit/gapic/admin_v1alpha/__init__.py +15 -0
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/tests/unit/gapic/admin_v1alpha/test_analytics_admin_service.py +650 -20
- google-analytics-admin-0.20.0/tests/unit/gapic/admin_v1beta/__init__.py +15 -0
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/tests/unit/gapic/admin_v1beta/test_analytics_admin_service.py +1 -1
- google-analytics-admin-0.18.1/tests/unit/gapic/__init__.py +0 -15
- google-analytics-admin-0.18.1/tests/unit/gapic/admin_v1alpha/__init__.py +0 -15
- google-analytics-admin-0.18.1/tests/unit/gapic/admin_v1beta/__init__.py +0 -15
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/LICENSE +0 -0
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin/py.typed +0 -0
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1alpha/py.typed +0 -0
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1beta/gapic_metadata.json +0 -0
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin_v1beta/py.typed +0 -0
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google_analytics_admin.egg-info/SOURCES.txt +0 -0
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google_analytics_admin.egg-info/dependency_links.txt +0 -0
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google_analytics_admin.egg-info/namespace_packages.txt +0 -0
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google_analytics_admin.egg-info/not-zip-safe +0 -0
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google_analytics_admin.egg-info/requires.txt +0 -0
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google_analytics_admin.egg-info/top_level.txt +0 -0
- {google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: google-analytics-admin
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.20.0
|
|
4
4
|
Summary: Google Analytics Admin API client library
|
|
5
5
|
Home-page: https://github.com/googleapis/python-analytics-admin
|
|
6
6
|
Author: Google LLC
|
|
@@ -60,21 +60,24 @@ In order to use this library, you first need to go through the following steps:
|
|
|
60
60
|
Installation
|
|
61
61
|
~~~~~~~~~~~~
|
|
62
62
|
|
|
63
|
-
Install this library in a `
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
Install this library in a virtual environment using `venv`_. `venv`_ is a tool that
|
|
64
|
+
creates isolated Python environments. These isolated environments can have separate
|
|
65
|
+
versions of Python packages, which allows you to isolate one project's dependencies
|
|
66
|
+
from the dependencies of other projects.
|
|
66
67
|
|
|
67
|
-
With `
|
|
68
|
+
With `venv`_, it's possible to install this library without needing system
|
|
68
69
|
install permissions, and without clashing with the installed system
|
|
69
70
|
dependencies.
|
|
70
71
|
|
|
71
|
-
.. _`
|
|
72
|
+
.. _`venv`: https://docs.python.org/3/library/venv.html
|
|
72
73
|
|
|
73
74
|
|
|
74
75
|
Code samples and snippets
|
|
75
76
|
~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
76
77
|
|
|
77
|
-
Code samples and snippets live in the `samples/` folder.
|
|
78
|
+
Code samples and snippets live in the `samples/`_ folder.
|
|
79
|
+
|
|
80
|
+
.. _samples/: https://github.com/googleapis/python-analytics-admin/tree/main/samples
|
|
78
81
|
|
|
79
82
|
|
|
80
83
|
Supported Python Versions
|
|
@@ -101,10 +104,9 @@ Mac/Linux
|
|
|
101
104
|
|
|
102
105
|
.. code-block:: console
|
|
103
106
|
|
|
104
|
-
|
|
105
|
-
virtualenv <your-env>
|
|
107
|
+
python3 -m venv <your-env>
|
|
106
108
|
source <your-env>/bin/activate
|
|
107
|
-
|
|
109
|
+
pip install google-analytics-admin
|
|
108
110
|
|
|
109
111
|
|
|
110
112
|
Windows
|
|
@@ -112,10 +114,9 @@ Windows
|
|
|
112
114
|
|
|
113
115
|
.. code-block:: console
|
|
114
116
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
<your-env>\Scripts\pip.exe install google-analytics-admin
|
|
117
|
+
py -m venv <your-env>
|
|
118
|
+
.\<your-env>\Scripts\activate
|
|
119
|
+
pip install google-analytics-admin
|
|
119
120
|
|
|
120
121
|
Next Steps
|
|
121
122
|
~~~~~~~~~~
|
|
@@ -36,21 +36,24 @@ In order to use this library, you first need to go through the following steps:
|
|
|
36
36
|
Installation
|
|
37
37
|
~~~~~~~~~~~~
|
|
38
38
|
|
|
39
|
-
Install this library in a `
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
Install this library in a virtual environment using `venv`_. `venv`_ is a tool that
|
|
40
|
+
creates isolated Python environments. These isolated environments can have separate
|
|
41
|
+
versions of Python packages, which allows you to isolate one project's dependencies
|
|
42
|
+
from the dependencies of other projects.
|
|
42
43
|
|
|
43
|
-
With `
|
|
44
|
+
With `venv`_, it's possible to install this library without needing system
|
|
44
45
|
install permissions, and without clashing with the installed system
|
|
45
46
|
dependencies.
|
|
46
47
|
|
|
47
|
-
.. _`
|
|
48
|
+
.. _`venv`: https://docs.python.org/3/library/venv.html
|
|
48
49
|
|
|
49
50
|
|
|
50
51
|
Code samples and snippets
|
|
51
52
|
~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
52
53
|
|
|
53
|
-
Code samples and snippets live in the `samples/` folder.
|
|
54
|
+
Code samples and snippets live in the `samples/`_ folder.
|
|
55
|
+
|
|
56
|
+
.. _samples/: https://github.com/googleapis/python-analytics-admin/tree/main/samples
|
|
54
57
|
|
|
55
58
|
|
|
56
59
|
Supported Python Versions
|
|
@@ -77,10 +80,9 @@ Mac/Linux
|
|
|
77
80
|
|
|
78
81
|
.. code-block:: console
|
|
79
82
|
|
|
80
|
-
|
|
81
|
-
virtualenv <your-env>
|
|
83
|
+
python3 -m venv <your-env>
|
|
82
84
|
source <your-env>/bin/activate
|
|
83
|
-
|
|
85
|
+
pip install google-analytics-admin
|
|
84
86
|
|
|
85
87
|
|
|
86
88
|
Windows
|
|
@@ -88,10 +90,9 @@ Windows
|
|
|
88
90
|
|
|
89
91
|
.. code-block:: console
|
|
90
92
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
<your-env>\Scripts\pip.exe install google-analytics-admin
|
|
93
|
+
py -m venv <your-env>
|
|
94
|
+
.\<your-env>\Scripts\activate
|
|
95
|
+
pip install google-analytics-admin
|
|
95
96
|
|
|
96
97
|
Next Steps
|
|
97
98
|
~~~~~~~~~~
|
{google-analytics-admin-0.18.1 → google-analytics-admin-0.20.0}/google/analytics/admin/__init__.py
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2023 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -192,6 +192,7 @@ from google.analytics.admin_v1alpha.types.analytics_admin import (
|
|
|
192
192
|
UpdateAttributionSettingsRequest,
|
|
193
193
|
UpdateAudienceRequest,
|
|
194
194
|
UpdateChannelGroupRequest,
|
|
195
|
+
UpdateConversionEventRequest,
|
|
195
196
|
UpdateCustomDimensionRequest,
|
|
196
197
|
UpdateCustomMetricRequest,
|
|
197
198
|
UpdateDataRetentionSettingsRequest,
|
|
@@ -447,6 +448,7 @@ __all__ = (
|
|
|
447
448
|
"UpdateAttributionSettingsRequest",
|
|
448
449
|
"UpdateAudienceRequest",
|
|
449
450
|
"UpdateChannelGroupRequest",
|
|
451
|
+
"UpdateConversionEventRequest",
|
|
450
452
|
"UpdateCustomDimensionRequest",
|
|
451
453
|
"UpdateCustomMetricRequest",
|
|
452
454
|
"UpdateDataRetentionSettingsRequest",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2023 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -190,6 +190,7 @@ from .types.analytics_admin import (
|
|
|
190
190
|
UpdateAttributionSettingsRequest,
|
|
191
191
|
UpdateAudienceRequest,
|
|
192
192
|
UpdateChannelGroupRequest,
|
|
193
|
+
UpdateConversionEventRequest,
|
|
193
194
|
UpdateCustomDimensionRequest,
|
|
194
195
|
UpdateCustomMetricRequest,
|
|
195
196
|
UpdateDataRetentionSettingsRequest,
|
|
@@ -505,6 +506,7 @@ __all__ = (
|
|
|
505
506
|
"UpdateAttributionSettingsRequest",
|
|
506
507
|
"UpdateAudienceRequest",
|
|
507
508
|
"UpdateChannelGroupRequest",
|
|
509
|
+
"UpdateConversionEventRequest",
|
|
508
510
|
"UpdateCustomDimensionRequest",
|
|
509
511
|
"UpdateCustomMetricRequest",
|
|
510
512
|
"UpdateDataRetentionSettingsRequest",
|
|
@@ -550,6 +550,11 @@
|
|
|
550
550
|
"update_channel_group"
|
|
551
551
|
]
|
|
552
552
|
},
|
|
553
|
+
"UpdateConversionEvent": {
|
|
554
|
+
"methods": [
|
|
555
|
+
"update_conversion_event"
|
|
556
|
+
]
|
|
557
|
+
},
|
|
553
558
|
"UpdateCustomDimension": {
|
|
554
559
|
"methods": [
|
|
555
560
|
"update_custom_dimension"
|
|
@@ -1165,6 +1170,11 @@
|
|
|
1165
1170
|
"update_channel_group"
|
|
1166
1171
|
]
|
|
1167
1172
|
},
|
|
1173
|
+
"UpdateConversionEvent": {
|
|
1174
|
+
"methods": [
|
|
1175
|
+
"update_conversion_event"
|
|
1176
|
+
]
|
|
1177
|
+
},
|
|
1168
1178
|
"UpdateCustomDimension": {
|
|
1169
1179
|
"methods": [
|
|
1170
1180
|
"update_custom_dimension"
|
|
@@ -1780,6 +1790,11 @@
|
|
|
1780
1790
|
"update_channel_group"
|
|
1781
1791
|
]
|
|
1782
1792
|
},
|
|
1793
|
+
"UpdateConversionEvent": {
|
|
1794
|
+
"methods": [
|
|
1795
|
+
"update_conversion_event"
|
|
1796
|
+
]
|
|
1797
|
+
},
|
|
1783
1798
|
"UpdateCustomDimension": {
|
|
1784
1799
|
"methods": [
|
|
1785
1800
|
"update_custom_dimension"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2023 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -564,6 +564,7 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
564
564
|
) -> None:
|
|
565
565
|
r"""Marks target Account as soft-deleted (ie: "trashed")
|
|
566
566
|
and returns it.
|
|
567
|
+
|
|
567
568
|
This API does not have a method to restore soft-deleted
|
|
568
569
|
accounts. However, they can be restored using the Trash
|
|
569
570
|
Can UI.
|
|
@@ -1245,6 +1246,7 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
1245
1246
|
) -> resources.Property:
|
|
1246
1247
|
r"""Marks target Property as soft-deleted (ie: "trashed")
|
|
1247
1248
|
and returns it.
|
|
1249
|
+
|
|
1248
1250
|
This API does not have a method to restore soft-deleted
|
|
1249
1251
|
properties. However, they can be restored using the
|
|
1250
1252
|
Trash Can UI.
|
|
@@ -3463,6 +3465,7 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
3463
3465
|
name (:class:`str`):
|
|
3464
3466
|
Required. The name of the measurement
|
|
3465
3467
|
protocol secret to lookup. Format:
|
|
3468
|
+
|
|
3466
3469
|
properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
|
|
3467
3470
|
|
|
3468
3471
|
This corresponds to the ``name`` field
|
|
@@ -3570,6 +3573,7 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
3570
3573
|
parent (:class:`str`):
|
|
3571
3574
|
Required. The resource name of the
|
|
3572
3575
|
parent stream. Format:
|
|
3576
|
+
|
|
3573
3577
|
properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
|
|
3574
3578
|
|
|
3575
3579
|
This corresponds to the ``parent`` field
|
|
@@ -3806,6 +3810,7 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
3806
3810
|
Required. The name of the
|
|
3807
3811
|
MeasurementProtocolSecret to delete.
|
|
3808
3812
|
Format:
|
|
3813
|
+
|
|
3809
3814
|
properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
|
|
3810
3815
|
|
|
3811
3816
|
This corresponds to the ``name`` field
|
|
@@ -3913,8 +3918,9 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
3913
3918
|
on the ``request`` instance; if ``request`` is provided, this
|
|
3914
3919
|
should not be set.
|
|
3915
3920
|
update_mask (:class:`google.protobuf.field_mask_pb2.FieldMask`):
|
|
3916
|
-
The list of fields to be
|
|
3917
|
-
Omitted fields will not be
|
|
3921
|
+
Required. The list of fields to be
|
|
3922
|
+
updated. Omitted fields will not be
|
|
3923
|
+
updated.
|
|
3918
3924
|
|
|
3919
3925
|
This corresponds to the ``update_mask`` field
|
|
3920
3926
|
on the ``request`` instance; if ``request`` is provided, this
|
|
@@ -4510,6 +4516,125 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
4510
4516
|
# Done; return the response.
|
|
4511
4517
|
return response
|
|
4512
4518
|
|
|
4519
|
+
async def update_conversion_event(
|
|
4520
|
+
self,
|
|
4521
|
+
request: Optional[
|
|
4522
|
+
Union[analytics_admin.UpdateConversionEventRequest, dict]
|
|
4523
|
+
] = None,
|
|
4524
|
+
*,
|
|
4525
|
+
conversion_event: Optional[resources.ConversionEvent] = None,
|
|
4526
|
+
update_mask: Optional[field_mask_pb2.FieldMask] = None,
|
|
4527
|
+
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
4528
|
+
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
4529
|
+
metadata: Sequence[Tuple[str, str]] = (),
|
|
4530
|
+
) -> resources.ConversionEvent:
|
|
4531
|
+
r"""Updates a conversion event with the specified
|
|
4532
|
+
attributes.
|
|
4533
|
+
|
|
4534
|
+
.. code-block:: python
|
|
4535
|
+
|
|
4536
|
+
# This snippet has been automatically generated and should be regarded as a
|
|
4537
|
+
# code template only.
|
|
4538
|
+
# It will require modifications to work:
|
|
4539
|
+
# - It may require correct/in-range values for request initialization.
|
|
4540
|
+
# - It may require specifying regional endpoints when creating the service
|
|
4541
|
+
# client as shown in:
|
|
4542
|
+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
|
|
4543
|
+
from google.analytics import admin_v1alpha
|
|
4544
|
+
|
|
4545
|
+
async def sample_update_conversion_event():
|
|
4546
|
+
# Create a client
|
|
4547
|
+
client = admin_v1alpha.AnalyticsAdminServiceAsyncClient()
|
|
4548
|
+
|
|
4549
|
+
# Initialize request argument(s)
|
|
4550
|
+
request = admin_v1alpha.UpdateConversionEventRequest(
|
|
4551
|
+
)
|
|
4552
|
+
|
|
4553
|
+
# Make the request
|
|
4554
|
+
response = await client.update_conversion_event(request=request)
|
|
4555
|
+
|
|
4556
|
+
# Handle the response
|
|
4557
|
+
print(response)
|
|
4558
|
+
|
|
4559
|
+
Args:
|
|
4560
|
+
request (Optional[Union[google.analytics.admin_v1alpha.types.UpdateConversionEventRequest, dict]]):
|
|
4561
|
+
The request object. Request message for
|
|
4562
|
+
UpdateConversionEvent RPC
|
|
4563
|
+
conversion_event (:class:`google.analytics.admin_v1alpha.types.ConversionEvent`):
|
|
4564
|
+
Required. The conversion event to update. The ``name``
|
|
4565
|
+
field is used to identify the settings to be updated.
|
|
4566
|
+
|
|
4567
|
+
This corresponds to the ``conversion_event`` field
|
|
4568
|
+
on the ``request`` instance; if ``request`` is provided, this
|
|
4569
|
+
should not be set.
|
|
4570
|
+
update_mask (:class:`google.protobuf.field_mask_pb2.FieldMask`):
|
|
4571
|
+
Required. The list of fields to be updated. Field names
|
|
4572
|
+
must be in snake case (e.g., "field_to_update"). Omitted
|
|
4573
|
+
fields will not be updated. To replace the entire
|
|
4574
|
+
entity, use one path with the string "*" to match all
|
|
4575
|
+
fields.
|
|
4576
|
+
|
|
4577
|
+
This corresponds to the ``update_mask`` field
|
|
4578
|
+
on the ``request`` instance; if ``request`` is provided, this
|
|
4579
|
+
should not be set.
|
|
4580
|
+
retry (google.api_core.retry.Retry): Designation of what errors, if any,
|
|
4581
|
+
should be retried.
|
|
4582
|
+
timeout (float): The timeout for this request.
|
|
4583
|
+
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
4584
|
+
sent along with the request as metadata.
|
|
4585
|
+
|
|
4586
|
+
Returns:
|
|
4587
|
+
google.analytics.admin_v1alpha.types.ConversionEvent:
|
|
4588
|
+
A conversion event in a Google
|
|
4589
|
+
Analytics property.
|
|
4590
|
+
|
|
4591
|
+
"""
|
|
4592
|
+
# Create or coerce a protobuf request object.
|
|
4593
|
+
# Quick check: If we got a request object, we should *not* have
|
|
4594
|
+
# gotten any keyword arguments that map to the request.
|
|
4595
|
+
has_flattened_params = any([conversion_event, update_mask])
|
|
4596
|
+
if request is not None and has_flattened_params:
|
|
4597
|
+
raise ValueError(
|
|
4598
|
+
"If the `request` argument is set, then none of "
|
|
4599
|
+
"the individual field arguments should be set."
|
|
4600
|
+
)
|
|
4601
|
+
|
|
4602
|
+
request = analytics_admin.UpdateConversionEventRequest(request)
|
|
4603
|
+
|
|
4604
|
+
# If we have keyword arguments corresponding to fields on the
|
|
4605
|
+
# request, apply these.
|
|
4606
|
+
if conversion_event is not None:
|
|
4607
|
+
request.conversion_event = conversion_event
|
|
4608
|
+
if update_mask is not None:
|
|
4609
|
+
request.update_mask = update_mask
|
|
4610
|
+
|
|
4611
|
+
# Wrap the RPC method; this adds retry and timeout information,
|
|
4612
|
+
# and friendly error handling.
|
|
4613
|
+
rpc = gapic_v1.method_async.wrap_method(
|
|
4614
|
+
self._client._transport.update_conversion_event,
|
|
4615
|
+
default_timeout=None,
|
|
4616
|
+
client_info=DEFAULT_CLIENT_INFO,
|
|
4617
|
+
)
|
|
4618
|
+
|
|
4619
|
+
# Certain fields should be provided within the metadata header;
|
|
4620
|
+
# add these here.
|
|
4621
|
+
metadata = tuple(metadata) + (
|
|
4622
|
+
gapic_v1.routing_header.to_grpc_metadata(
|
|
4623
|
+
(("conversion_event.name", request.conversion_event.name),)
|
|
4624
|
+
),
|
|
4625
|
+
)
|
|
4626
|
+
|
|
4627
|
+
# Send the request.
|
|
4628
|
+
response = await rpc(
|
|
4629
|
+
request,
|
|
4630
|
+
retry=retry,
|
|
4631
|
+
timeout=timeout,
|
|
4632
|
+
metadata=metadata,
|
|
4633
|
+
)
|
|
4634
|
+
|
|
4635
|
+
# Done; return the response.
|
|
4636
|
+
return response
|
|
4637
|
+
|
|
4513
4638
|
async def get_conversion_event(
|
|
4514
4639
|
self,
|
|
4515
4640
|
request: Optional[
|
|
@@ -5976,10 +6101,12 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
5976
6101
|
) -> resources.DisplayVideo360AdvertiserLinkProposal:
|
|
5977
6102
|
r"""Cancels a DisplayVideo360AdvertiserLinkProposal.
|
|
5978
6103
|
Cancelling can mean either:
|
|
6104
|
+
|
|
5979
6105
|
- Declining a proposal initiated from Display & Video
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
6106
|
+
360
|
|
6107
|
+
- Withdrawing a proposal initiated from Google Analytics
|
|
6108
|
+
After being cancelled, a proposal will eventually be
|
|
6109
|
+
deleted automatically.
|
|
5983
6110
|
|
|
5984
6111
|
.. code-block:: python
|
|
5985
6112
|
|
|
@@ -7192,6 +7319,7 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
7192
7319
|
name (:class:`str`):
|
|
7193
7320
|
Required. The name of the settings to
|
|
7194
7321
|
lookup. Format:
|
|
7322
|
+
|
|
7195
7323
|
properties/{property}/dataRetentionSettings
|
|
7196
7324
|
Example:
|
|
7197
7325
|
"properties/1000/dataRetentionSettings"
|
|
@@ -9129,8 +9257,8 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
9129
9257
|
attribution_settings = admin_v1alpha.AttributionSettings()
|
|
9130
9258
|
attribution_settings.acquisition_conversion_event_lookback_window = "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS"
|
|
9131
9259
|
attribution_settings.other_conversion_event_lookback_window = "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS"
|
|
9132
|
-
attribution_settings.reporting_attribution_model = "
|
|
9133
|
-
attribution_settings.ads_web_conversion_data_export_scope = "
|
|
9260
|
+
attribution_settings.reporting_attribution_model = "GOOGLE_PAID_CHANNELS_LAST_CLICK"
|
|
9261
|
+
attribution_settings.ads_web_conversion_data_export_scope = "GOOGLE_PAID_CHANNELS"
|
|
9134
9262
|
|
|
9135
9263
|
request = admin_v1alpha.UpdateAttributionSettingsRequest(
|
|
9136
9264
|
attribution_settings=attribution_settings,
|
|
@@ -9366,6 +9494,7 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
9366
9494
|
CreateAccessBinding RPC.
|
|
9367
9495
|
parent (:class:`str`):
|
|
9368
9496
|
Required. Formats:
|
|
9497
|
+
|
|
9369
9498
|
- accounts/{account}
|
|
9370
9499
|
- properties/{property}
|
|
9371
9500
|
|
|
@@ -9479,10 +9608,11 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
9479
9608
|
name (:class:`str`):
|
|
9480
9609
|
Required. The name of the access
|
|
9481
9610
|
binding to retrieve. Formats:
|
|
9611
|
+
|
|
9482
9612
|
-
|
|
9483
|
-
|
|
9613
|
+
accounts/{account}/accessBindings/{accessBinding}
|
|
9484
9614
|
-
|
|
9485
|
-
|
|
9615
|
+
properties/{property}/accessBindings/{accessBinding}
|
|
9486
9616
|
|
|
9487
9617
|
This corresponds to the ``name`` field
|
|
9488
9618
|
on the ``request`` instance; if ``request`` is provided, this
|
|
@@ -9692,10 +9822,11 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
9692
9822
|
DeleteAccessBinding RPC.
|
|
9693
9823
|
name (:class:`str`):
|
|
9694
9824
|
Required. Formats:
|
|
9825
|
+
|
|
9695
9826
|
-
|
|
9696
|
-
|
|
9827
|
+
accounts/{account}/accessBindings/{accessBinding}
|
|
9697
9828
|
-
|
|
9698
|
-
|
|
9829
|
+
properties/{property}/accessBindings/{accessBinding}
|
|
9699
9830
|
|
|
9700
9831
|
This corresponds to the ``name`` field
|
|
9701
9832
|
on the ``request`` instance; if ``request`` is provided, this
|
|
@@ -9791,6 +9922,7 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
9791
9922
|
ListAccessBindings RPC.
|
|
9792
9923
|
parent (:class:`str`):
|
|
9793
9924
|
Required. Formats:
|
|
9925
|
+
|
|
9794
9926
|
- accounts/{account}
|
|
9795
9927
|
- properties/{property}
|
|
9796
9928
|
|
|
@@ -13208,6 +13340,7 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
13208
13340
|
DeleteEventCreateRule RPC.
|
|
13209
13341
|
name (:class:`str`):
|
|
13210
13342
|
Required. Example format:
|
|
13343
|
+
|
|
13211
13344
|
properties/123/dataStreams/456/eventCreateRules/789
|
|
13212
13345
|
|
|
13213
13346
|
This corresponds to the ``name`` field
|