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

Commit 9a644b5

Browse files
fix: rename CROSS_CHANNEL_DATA_DRIVEN to PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN (#366)
* fix!: update the `ReportingAttributionModel` enum to rename `CROSS_CHANNEL_DATA_DRIVEN` to `PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN`, `CROSS_CHANNEL_LAST_CLICK` to `PAID_AND_ORGANIC_CHANNELS_LAST_CLICK`, `CROSS_CHANNEL_FIRST_CLICK` to `PAID_AND_ORGANIC_CHANNELS_FIRST_CLICK`, `CROSS_CHANNEL_LINEAR` to `PAID_AND_ORGANIC_CHANNELS_LINEAR`, `CROSS_CHANNEL_POSITION_BASED` to `PAID_AND_ORGANIC_CHANNELS_POSITION_BASED` `CROSS_CHANNEL_TIME_DECAY` to `PAID_AND_ORGANIC_CHANNELS_TIME_DECAY`, `ADS_PREFERRED_LAST_CLICK` to `GOOGLE_PAID_CHANNELS_LAST_CLICK` fix!: update the `AdsWebConversionDataExportScope` enum to rename `CROSS_CHANNEL` to `PAID_AND_ORGANIC_CHANNELS`, `ADS_PREFERRED` to `GOOGLE_PAID_CHANNELS` PiperOrigin-RevId: 551280325 Source-Link: googleapis/googleapis@0d84384 Source-Link: https://github.com/googleapis/googleapis-gen/commit/da9de65834a4b6b7ec4586220500e8cefeb5efd3 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZGE5ZGU2NTgzNGE0YjZiN2VjNDU4NjIyMDUwMGU4Y2VmZWI1ZWZkMyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 335e6b9 commit 9a644b5

8 files changed

Lines changed: 84 additions & 70 deletions

File tree

google/analytics/admin_v1alpha/services/analytics_admin_service/async_client.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3918,8 +3918,9 @@ async def sample_update_measurement_protocol_secret():
39183918
on the ``request`` instance; if ``request`` is provided, this
39193919
should not be set.
39203920
update_mask (:class:`google.protobuf.field_mask_pb2.FieldMask`):
3921-
The list of fields to be updated.
3922-
Omitted fields will not be updated.
3921+
Required. The list of fields to be
3922+
updated. Omitted fields will not be
3923+
updated.
39233924

39243925
This corresponds to the ``update_mask`` field
39253926
on the ``request`` instance; if ``request`` is provided, this
@@ -9137,8 +9138,8 @@ async def sample_update_attribution_settings():
91379138
attribution_settings = admin_v1alpha.AttributionSettings()
91389139
attribution_settings.acquisition_conversion_event_lookback_window = "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS"
91399140
attribution_settings.other_conversion_event_lookback_window = "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS"
9140-
attribution_settings.reporting_attribution_model = "ADS_PREFERRED_LAST_CLICK"
9141-
attribution_settings.ads_web_conversion_data_export_scope = "ADS_PREFERRED"
9141+
attribution_settings.reporting_attribution_model = "GOOGLE_PAID_CHANNELS_LAST_CLICK"
9142+
attribution_settings.ads_web_conversion_data_export_scope = "GOOGLE_PAID_CHANNELS"
91429143

91439144
request = admin_v1alpha.UpdateAttributionSettingsRequest(
91449145
attribution_settings=attribution_settings,

google/analytics/admin_v1alpha/services/analytics_admin_service/client.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4515,8 +4515,9 @@ def sample_update_measurement_protocol_secret():
45154515
on the ``request`` instance; if ``request`` is provided, this
45164516
should not be set.
45174517
update_mask (google.protobuf.field_mask_pb2.FieldMask):
4518-
The list of fields to be updated.
4519-
Omitted fields will not be updated.
4518+
Required. The list of fields to be
4519+
updated. Omitted fields will not be
4520+
updated.
45204521

45214522
This corresponds to the ``update_mask`` field
45224523
on the ``request`` instance; if ``request`` is provided, this
@@ -9821,8 +9822,8 @@ def sample_update_attribution_settings():
98219822
attribution_settings = admin_v1alpha.AttributionSettings()
98229823
attribution_settings.acquisition_conversion_event_lookback_window = "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS"
98239824
attribution_settings.other_conversion_event_lookback_window = "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS"
9824-
attribution_settings.reporting_attribution_model = "ADS_PREFERRED_LAST_CLICK"
9825-
attribution_settings.ads_web_conversion_data_export_scope = "ADS_PREFERRED"
9825+
attribution_settings.reporting_attribution_model = "GOOGLE_PAID_CHANNELS_LAST_CLICK"
9826+
attribution_settings.ads_web_conversion_data_export_scope = "GOOGLE_PAID_CHANNELS"
98269827

98279828
request = admin_v1alpha.UpdateAttributionSettingsRequest(
98289829
attribution_settings=attribution_settings,

google/analytics/admin_v1alpha/services/analytics_admin_service/transports/rest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14917,7 +14917,9 @@ class _UpdateMeasurementProtocolSecret(AnalyticsAdminServiceRestStub):
1491714917
def __hash__(self):
1491814918
return hash("UpdateMeasurementProtocolSecret")
1491914919

14920-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
14920+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
14921+
"updateMask": {},
14922+
}
1492114923

1492214924
@classmethod
1492314925
def _get_unset_required_fields(cls, message_dict):

google/analytics/admin_v1alpha/types/analytics_admin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1623,8 +1623,8 @@ class UpdateMeasurementProtocolSecretRequest(proto.Message):
16231623
Required. The measurement protocol secret to
16241624
update.
16251625
update_mask (google.protobuf.field_mask_pb2.FieldMask):
1626-
The list of fields to be updated. Omitted
1627-
fields will not be updated.
1626+
Required. The list of fields to be updated.
1627+
Omitted fields will not be updated.
16281628
"""
16291629

16301630
measurement_protocol_secret: resources.MeasurementProtocolSecret = proto.Field(

google/analytics/admin_v1alpha/types/resources.py

Lines changed: 46 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2240,69 +2240,69 @@ class ReportingAttributionModel(proto.Enum):
22402240
Values:
22412241
REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED (0):
22422242
Reporting attribution model unspecified.
2243-
CROSS_CHANNEL_DATA_DRIVEN (1):
2244-
Data-driven attribution distributes credit
2245-
for the conversion based on data for each
2246-
conversion event. Each Data-driven model is
2247-
specific to each advertiser and each conversion
2248-
event.
2249-
CROSS_CHANNEL_LAST_CLICK (2):
2250-
Ignores direct traffic and attributes 100% of
2251-
the conversion value to the last channel that
2252-
the customer clicked through (or engaged view
2253-
through for YouTube) before converting.
2254-
CROSS_CHANNEL_FIRST_CLICK (3):
2243+
PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN (1):
2244+
Data-driven attribution distributes credit for the
2245+
conversion based on data for each conversion event. Each
2246+
Data-driven model is specific to each advertiser and each
2247+
conversion event. Previously CROSS_CHANNEL_DATA_DRIVEN
2248+
PAID_AND_ORGANIC_CHANNELS_LAST_CLICK (2):
2249+
Ignores direct traffic and attributes 100% of the conversion
2250+
value to the last channel that the customer clicked through
2251+
(or engaged view through for YouTube) before converting.
2252+
Previously CROSS_CHANNEL_LAST_CLICK
2253+
PAID_AND_ORGANIC_CHANNELS_FIRST_CLICK (3):
22552254
Starting in June 2023, new properties can no longer use this
22562255
model. See `Analytics
2257-
Help <https://support.google.com/analytics/answer/9164320?hl=en#040623>`__
2256+
Help <https://support.google.com/analytics/answer/9164320#040623>`__
22582257
for more details. Starting in September 2023, we will sunset
22592258
this model for all properties.
22602259
22612260
Gives all credit for the conversion to the first channel
22622261
that a customer clicked (or engaged view through for
2263-
YouTube) before converting.
2264-
CROSS_CHANNEL_LINEAR (4):
2262+
YouTube) before converting. Previously
2263+
CROSS_CHANNEL_FIRST_CLICK
2264+
PAID_AND_ORGANIC_CHANNELS_LINEAR (4):
22652265
Starting in June 2023, new properties can no longer use this
22662266
model. See `Analytics
2267-
Help <https://support.google.com/analytics/answer/9164320?hl=en#040623>`__
2267+
Help <https://support.google.com/analytics/answer/9164320#040623>`__
22682268
for more details. Starting in September 2023, we will sunset
22692269
this model for all properties.
22702270
22712271
Distributes the credit for the conversion equally across all
22722272
the channels a customer clicked (or engaged view through for
2273-
YouTube) before converting.
2274-
CROSS_CHANNEL_POSITION_BASED (5):
2273+
YouTube) before converting. Previously CROSS_CHANNEL_LINEAR
2274+
PAID_AND_ORGANIC_CHANNELS_POSITION_BASED (5):
22752275
Starting in June 2023, new properties can no longer use this
22762276
model. See `Analytics
2277-
Help <https://support.google.com/analytics/answer/9164320?hl=en#040623>`__
2277+
Help <https://support.google.com/analytics/answer/9164320#040623>`__
22782278
for more details. Starting in September 2023, we will sunset
22792279
this model for all properties.
22802280
22812281
Attributes 40% credit to the first and last interaction, and
22822282
the remaining 20% credit is distributed evenly to the middle
2283-
interactions.
2284-
CROSS_CHANNEL_TIME_DECAY (6):
2283+
interactions. Previously CROSS_CHANNEL_POSITION_BASED
2284+
PAID_AND_ORGANIC_CHANNELS_TIME_DECAY (6):
22852285
Starting in June 2023, new properties can no longer use this
22862286
model. See `Analytics
2287-
Help <https://support.google.com/analytics/answer/9164320?hl=en#040623>`__
2287+
Help <https://support.google.com/analytics/answer/9164320#040623>`__
22882288
for more details. Starting in September 2023, we will sunset
22892289
this model for all properties.
22902290
22912291
Gives more credit to the touchpoints that happened closer in
2292-
time to the conversion.
2293-
ADS_PREFERRED_LAST_CLICK (7):
2294-
Attributes 100% of the conversion value to
2295-
the last Google Ads channel that the customer
2296-
clicked through before converting.
2292+
time to the conversion. Previously CROSS_CHANNEL_TIME_DECAY
2293+
GOOGLE_PAID_CHANNELS_LAST_CLICK (7):
2294+
Attributes 100% of the conversion value to the last Google
2295+
Paid channel that the customer clicked through before
2296+
converting. Previously ADS_PREFERRED_LAST_CLICK
22972297
"""
22982298
REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED = 0
2299-
CROSS_CHANNEL_DATA_DRIVEN = 1
2300-
CROSS_CHANNEL_LAST_CLICK = 2
2301-
CROSS_CHANNEL_FIRST_CLICK = 3
2302-
CROSS_CHANNEL_LINEAR = 4
2303-
CROSS_CHANNEL_POSITION_BASED = 5
2304-
CROSS_CHANNEL_TIME_DECAY = 6
2305-
ADS_PREFERRED_LAST_CLICK = 7
2299+
PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN = 1
2300+
PAID_AND_ORGANIC_CHANNELS_LAST_CLICK = 2
2301+
PAID_AND_ORGANIC_CHANNELS_FIRST_CLICK = 3
2302+
PAID_AND_ORGANIC_CHANNELS_LINEAR = 4
2303+
PAID_AND_ORGANIC_CHANNELS_POSITION_BASED = 5
2304+
PAID_AND_ORGANIC_CHANNELS_TIME_DECAY = 6
2305+
GOOGLE_PAID_CHANNELS_LAST_CLICK = 7
23062306

23072307
class AdsWebConversionDataExportScope(proto.Enum):
23082308
r"""The Conversion Export Scope for data exported to linked Ads
@@ -2315,17 +2315,21 @@ class AdsWebConversionDataExportScope(proto.Enum):
23152315
No data export scope selected yet.
23162316
Export scope can never be changed back to this
23172317
value.
2318-
CROSS_CHANNEL (2):
2319-
The Ads Web Conversion Data export scope is
2320-
Cross Channel.
2321-
ADS_PREFERRED (3):
2322-
The Ads Web Conversion Data export scope is
2323-
Ads Preferred.
2318+
PAID_AND_ORGANIC_CHANNELS (2):
2319+
Paid and organic channels are eligible to receive conversion
2320+
credit, but only credit assigned to Google Ads channels will
2321+
appear in your Ads accounts. To learn more, see `Paid and
2322+
Organic
2323+
channels <https://support.google.com/analytics/answer/10632359>`__.
2324+
GOOGLE_PAID_CHANNELS (3):
2325+
Only Google Ads paid channels are eligible to receive
2326+
conversion credit. To learn more, see `Google Paid
2327+
channels <https://support.google.com/analytics/answer/10632359>`__.
23242328
"""
23252329
ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED = 0
23262330
NOT_SELECTED_YET = 1
2327-
CROSS_CHANNEL = 2
2328-
ADS_PREFERRED = 3
2331+
PAID_AND_ORGANIC_CHANNELS = 2
2332+
GOOGLE_PAID_CHANNELS = 3
23292333

23302334
name: str = proto.Field(
23312335
proto.STRING,

samples/generated_samples/analyticsadmin_v1alpha_generated_analytics_admin_service_update_attribution_settings_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ async def sample_update_attribution_settings():
4242
attribution_settings = admin_v1alpha.AttributionSettings()
4343
attribution_settings.acquisition_conversion_event_lookback_window = "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS"
4444
attribution_settings.other_conversion_event_lookback_window = "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS"
45-
attribution_settings.reporting_attribution_model = "ADS_PREFERRED_LAST_CLICK"
46-
attribution_settings.ads_web_conversion_data_export_scope = "ADS_PREFERRED"
45+
attribution_settings.reporting_attribution_model = "GOOGLE_PAID_CHANNELS_LAST_CLICK"
46+
attribution_settings.ads_web_conversion_data_export_scope = "GOOGLE_PAID_CHANNELS"
4747

4848
request = admin_v1alpha.UpdateAttributionSettingsRequest(
4949
attribution_settings=attribution_settings,

samples/generated_samples/analyticsadmin_v1alpha_generated_analytics_admin_service_update_attribution_settings_sync.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ def sample_update_attribution_settings():
4242
attribution_settings = admin_v1alpha.AttributionSettings()
4343
attribution_settings.acquisition_conversion_event_lookback_window = "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS"
4444
attribution_settings.other_conversion_event_lookback_window = "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS"
45-
attribution_settings.reporting_attribution_model = "ADS_PREFERRED_LAST_CLICK"
46-
attribution_settings.ads_web_conversion_data_export_scope = "ADS_PREFERRED"
45+
attribution_settings.reporting_attribution_model = "GOOGLE_PAID_CHANNELS_LAST_CLICK"
46+
attribution_settings.ads_web_conversion_data_export_scope = "GOOGLE_PAID_CHANNELS"
4747

4848
request = admin_v1alpha.UpdateAttributionSettingsRequest(
4949
attribution_settings=attribution_settings,

0 commit comments

Comments
 (0)