google-analytics-admin-v1alpha 0.1.0

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.
@@ -0,0 +1,547 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Analytics
22
+ module Admin
23
+ module V1alpha
24
+ # A resource message representing a Google Analytics account.
25
+ # @!attribute [r] name
26
+ # @return [::String]
27
+ # Output only. Resource name of this account.
28
+ # Format: accounts/\\{account}
29
+ # Example: "accounts/100"
30
+ # @!attribute [r] create_time
31
+ # @return [::Google::Protobuf::Timestamp]
32
+ # Output only. Time when this account was originally created.
33
+ # @!attribute [r] update_time
34
+ # @return [::Google::Protobuf::Timestamp]
35
+ # Output only. Time when account payload fields were last updated.
36
+ # @!attribute [rw] display_name
37
+ # @return [::String]
38
+ # Required. Human-readable display name for this account.
39
+ # @!attribute [rw] country_code
40
+ # @return [::String]
41
+ # Country of business. Must be a non-deprecated code for a UN M.49 region.
42
+ # https://unicode.org/cldr/charts/latest/supplemental/territory_containment_un_m_49.html
43
+ # @!attribute [r] deleted
44
+ # @return [::Boolean]
45
+ # Output only. Indicates whether this Account is soft-deleted or not. Deleted
46
+ # accounts are excluded from List results unless specifically requested.
47
+ class Account
48
+ include ::Google::Protobuf::MessageExts
49
+ extend ::Google::Protobuf::MessageExts::ClassMethods
50
+ end
51
+
52
+ # A resource message representing a Google Analytics App+Web property.
53
+ # @!attribute [r] name
54
+ # @return [::String]
55
+ # Output only. Resource name of this property.
56
+ # Format: properties/\\{property_id}
57
+ # Example: "properties/1000"
58
+ # @!attribute [r] create_time
59
+ # @return [::Google::Protobuf::Timestamp]
60
+ # Output only. Time when the entity was originally created.
61
+ # @!attribute [r] update_time
62
+ # @return [::Google::Protobuf::Timestamp]
63
+ # Output only. Time when entity payload fields were last updated.
64
+ # @!attribute [rw] parent
65
+ # @return [::String]
66
+ # Immutable. Resource name of this property's logical parent.
67
+ #
68
+ # Note: The Property-Moving UI can be used to change the parent.
69
+ # Format: accounts/\\{account}
70
+ # Example: "accounts/100"
71
+ # @!attribute [rw] display_name
72
+ # @return [::String]
73
+ # Required. Human-readable display name for this property.
74
+ #
75
+ # The max allowed display name length is 100 UTF-16 code units.
76
+ # @!attribute [rw] industry_category
77
+ # @return [::Google::Analytics::Admin::V1alpha::IndustryCategory]
78
+ # Industry associated with this property
79
+ # Example: AUTOMOTIVE, FOOD_AND_DRINK
80
+ # @!attribute [rw] time_zone
81
+ # @return [::String]
82
+ # Reporting Time Zone, used as the day boundary for reports, regardless of
83
+ # where the data originates. If the time zone honors DST, Analytics will
84
+ # automatically adjust for the changes.
85
+ #
86
+ # NOTE: Changing the time zone only affects data going forward, and is not
87
+ # applied retroactively.
88
+ #
89
+ # Format: https://www.iana.org/time-zones
90
+ # Example: "America/Los_Angeles"
91
+ # @!attribute [rw] currency_code
92
+ # @return [::String]
93
+ # The currency type used in reports involving monetary values.
94
+ #
95
+ #
96
+ # Format: https://en.wikipedia.org/wiki/ISO_4217
97
+ # Examples: "USD", "EUR", "JPY"
98
+ # @!attribute [r] deleted
99
+ # @return [::Boolean]
100
+ # Output only. Indicates whether this Property is soft-deleted or not. Deleted properties
101
+ # are excluded from List results unless specifically requested.
102
+ class Property
103
+ include ::Google::Protobuf::MessageExts
104
+ extend ::Google::Protobuf::MessageExts::ClassMethods
105
+ end
106
+
107
+ # A resource message representing a Google Analytics Android app stream.
108
+ # @!attribute [r] name
109
+ # @return [::String]
110
+ # Output only. Resource name of this Data Stream.
111
+ # Format: properties/\\{property_id}/androidAppDataStreams/\\{stream_id}
112
+ # Example: "properties/1000/androidAppDataStreams/2000"
113
+ # @!attribute [r] firebase_app_id
114
+ # @return [::String]
115
+ # Output only. ID of the corresponding Android app in Firebase, if any.
116
+ # This ID can change if the Android app is deleted and recreated.
117
+ # @!attribute [r] create_time
118
+ # @return [::Google::Protobuf::Timestamp]
119
+ # Output only. Time when this stream was originally created.
120
+ # @!attribute [r] update_time
121
+ # @return [::Google::Protobuf::Timestamp]
122
+ # Output only. Time when stream payload fields were last updated.
123
+ # @!attribute [rw] package_name
124
+ # @return [::String]
125
+ # Immutable. The package name for the app being measured.
126
+ # Example: "com.example.myandroidapp"
127
+ # @!attribute [rw] display_name
128
+ # @return [::String]
129
+ # Human-readable display name for the Data Stream.
130
+ #
131
+ # The max allowed display name length is 255 UTF-16 code units.
132
+ class AndroidAppDataStream
133
+ include ::Google::Protobuf::MessageExts
134
+ extend ::Google::Protobuf::MessageExts::ClassMethods
135
+ end
136
+
137
+ # A resource message representing a Google Analytics IOS app stream.
138
+ # @!attribute [r] name
139
+ # @return [::String]
140
+ # Output only. Resource name of this Data Stream.
141
+ # Format: properties/\\{property_id}/iosAppDataStreams/\\{stream_id}
142
+ # Example: "properties/1000/iosAppDataStreams/2000"
143
+ # @!attribute [r] firebase_app_id
144
+ # @return [::String]
145
+ # Output only. ID of the corresponding iOS app in Firebase, if any.
146
+ # This ID can change if the iOS app is deleted and recreated.
147
+ # @!attribute [r] create_time
148
+ # @return [::Google::Protobuf::Timestamp]
149
+ # Output only. Time when this stream was originally created.
150
+ # @!attribute [r] update_time
151
+ # @return [::Google::Protobuf::Timestamp]
152
+ # Output only. Time when stream payload fields were last updated.
153
+ # @!attribute [rw] bundle_id
154
+ # @return [::String]
155
+ # Required. Immutable. The Apple App Store Bundle ID for the app
156
+ # Example: "com.example.myiosapp"
157
+ # @!attribute [rw] display_name
158
+ # @return [::String]
159
+ # Human-readable display name for the Data Stream.
160
+ #
161
+ # The max allowed display name length is 255 UTF-16 code units.
162
+ class IosAppDataStream
163
+ include ::Google::Protobuf::MessageExts
164
+ extend ::Google::Protobuf::MessageExts::ClassMethods
165
+ end
166
+
167
+ # A resource message representing a Google Analytics web stream.
168
+ # @!attribute [r] name
169
+ # @return [::String]
170
+ # Output only. Resource name of this Data Stream.
171
+ # Format: properties/\\{property_id}/webDataStreams/\\{stream_id}
172
+ # Example: "properties/1000/webDataStreams/2000"
173
+ # @!attribute [r] measurement_id
174
+ # @return [::String]
175
+ # Output only. Analytics "Measurement ID", without the "G-" prefix.
176
+ # Example: "G-1A2BCD345E" would just be "1A2BCD345E"
177
+ # @!attribute [r] firebase_app_id
178
+ # @return [::String]
179
+ # Output only. ID of the corresponding web app in Firebase, if any.
180
+ # This ID can change if the web app is deleted and recreated.
181
+ # @!attribute [r] create_time
182
+ # @return [::Google::Protobuf::Timestamp]
183
+ # Output only. Time when this stream was originally created.
184
+ # @!attribute [r] update_time
185
+ # @return [::Google::Protobuf::Timestamp]
186
+ # Output only. Time when stream payload fields were last updated.
187
+ # @!attribute [rw] default_uri
188
+ # @return [::String]
189
+ # Immutable. Domain name of the web app being measured, or empty.
190
+ # Example: "http://www.google.com", "https://www.google.com"
191
+ # @!attribute [rw] display_name
192
+ # @return [::String]
193
+ # Required. Human-readable display name for the Data Stream.
194
+ #
195
+ # The max allowed display name length is 100 UTF-16 code units.
196
+ class WebDataStream
197
+ include ::Google::Protobuf::MessageExts
198
+ extend ::Google::Protobuf::MessageExts::ClassMethods
199
+ end
200
+
201
+ # A resource message representing a user's permissions on an Account or
202
+ # Property resource.
203
+ # @!attribute [rw] name
204
+ # @return [::String]
205
+ # Example format: properties/1234/userLinks/5678
206
+ # @!attribute [rw] email_address
207
+ # @return [::String]
208
+ # Email address of the user to link
209
+ # @!attribute [rw] direct_roles
210
+ # @return [::Array<::String>]
211
+ # Roles directly assigned to this user for this account or property.
212
+ #
213
+ # Valid values:
214
+ # predefinedRoles/read
215
+ # predefinedRoles/collaborate
216
+ # predefinedRoles/edit
217
+ # predefinedRoles/manage-users
218
+ #
219
+ # Excludes roles that are inherited from a higher-level entity, group,
220
+ # or organization admin role.
221
+ #
222
+ # A UserLink that is updated to have an empty list of direct_roles will be
223
+ # deleted.
224
+ class UserLink
225
+ include ::Google::Protobuf::MessageExts
226
+ extend ::Google::Protobuf::MessageExts::ClassMethods
227
+ end
228
+
229
+ # Read-only resource used to summarize a principal's effective roles.
230
+ # @!attribute [rw] name
231
+ # @return [::String]
232
+ # Example format: properties/1234/userLinks/5678
233
+ # @!attribute [rw] email_address
234
+ # @return [::String]
235
+ # Email address of the linked user
236
+ # @!attribute [rw] direct_roles
237
+ # @return [::Array<::String>]
238
+ # Roles directly assigned to this user for this entity.
239
+ #
240
+ # Format: predefinedRoles/read
241
+ #
242
+ # Excludes roles that are inherited from an account (if this is for a
243
+ # property), group, or organization admin role.
244
+ # @!attribute [rw] effective_roles
245
+ # @return [::Array<::String>]
246
+ # Union of all permissions a user has at this account or property (includes
247
+ # direct permissions, group-inherited permissions, etc.).
248
+ #
249
+ # Format: predefinedRoles/read
250
+ class AuditUserLink
251
+ include ::Google::Protobuf::MessageExts
252
+ extend ::Google::Protobuf::MessageExts::ClassMethods
253
+ end
254
+
255
+ # Singleton resource under a WebDataStream, configuring measurement of
256
+ # additional site interactions and content.
257
+ # @!attribute [r] name
258
+ # @return [::String]
259
+ # Output only. Resource name of this Data Stream.
260
+ # Format:
261
+ # properties/\\{property_id}/webDataStreams/\\{stream_id}/enhancedMeasurementSettings
262
+ # Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
263
+ # @!attribute [rw] stream_enabled
264
+ # @return [::Boolean]
265
+ # Indicates whether Enhanced Measurement Settings will be used to
266
+ # automatically measure interactions and content on this web stream.
267
+ #
268
+ # Changing this value does not affect the settings themselves, but determines
269
+ # whether they are respected.
270
+ # @!attribute [r] page_views_enabled
271
+ # @return [::Boolean]
272
+ # Output only. If enabled, capture a page view event each time a page loads or the
273
+ # website changes the browser history state.
274
+ # @!attribute [rw] scrolls_enabled
275
+ # @return [::Boolean]
276
+ # If enabled, capture scroll events each time a visitor gets to the bottom of
277
+ # a page.
278
+ # @!attribute [rw] outbound_clicks_enabled
279
+ # @return [::Boolean]
280
+ # If enabled, capture an outbound click event each time a visitor clicks a
281
+ # link that leads them away from your domain.
282
+ # @!attribute [rw] content_views_enabled
283
+ # @return [::Boolean]
284
+ # Capture events when your visitors view content on your site that has
285
+ # structured data (eg, articles, blog posts, product details screens, etc.).
286
+ # @!attribute [rw] site_search_enabled
287
+ # @return [::Boolean]
288
+ # If enabled, capture a view search results event each time a visitor
289
+ # performs a search on your site (based on a query parameter).
290
+ # @!attribute [rw] form_interactions_enabled
291
+ # @return [::Boolean]
292
+ # If enabled, capture a view search results event each time a visitor
293
+ # interacts with a form on your site.
294
+ # @!attribute [rw] video_engagement_enabled
295
+ # @return [::Boolean]
296
+ # If enabled, capture video play, progress, and complete events as visitors
297
+ # view embedded videos on your site.
298
+ # @!attribute [rw] file_downloads_enabled
299
+ # @return [::Boolean]
300
+ # If enabled, capture a file download event each time a link is clicked with
301
+ # a common document, compressed file, application, video, or audio extension.
302
+ # @!attribute [rw] data_tagged_element_clicks_enabled
303
+ # @return [::Boolean]
304
+ # If enabled, capture a click event each time a visitor clicks a link or
305
+ # element that has data attributes beginning with "data-ga".
306
+ # @!attribute [rw] page_loads_enabled
307
+ # @return [::Boolean]
308
+ # If enabled, capture a page view event each time a page loads.
309
+ # @!attribute [rw] page_changes_enabled
310
+ # @return [::Boolean]
311
+ # If enabled, capture a page view event each time the website changes the
312
+ # browser history state.
313
+ # @!attribute [rw] articles_and_blogs_enabled
314
+ # @return [::Boolean]
315
+ # Capture events when your visitors view content on your site that has
316
+ # articles or blog posts.
317
+ # @!attribute [rw] products_and_ecommerce_enabled
318
+ # @return [::Boolean]
319
+ # Capture events when your visitors view content on your site that has
320
+ # product details screens, etc.
321
+ # @!attribute [rw] search_query_parameter
322
+ # @return [::String]
323
+ # Required. URL query parameters to interpret as site search parameters.
324
+ # Max length is 1024 characters. Must not be empty.
325
+ # @!attribute [rw] url_query_parameter
326
+ # @return [::String]
327
+ # Additional URL query parameters.
328
+ # Max length is 1024 characters.
329
+ # @!attribute [rw] excluded_domains
330
+ # @return [::String]
331
+ # Domains to exclude from measurement. Max length is 1024 characters.
332
+ class EnhancedMeasurementSettings
333
+ include ::Google::Protobuf::MessageExts
334
+ extend ::Google::Protobuf::MessageExts::ClassMethods
335
+ end
336
+
337
+ # A link between an App+Web property and a Firebase project.
338
+ # @!attribute [r] name
339
+ # @return [::String]
340
+ # Output only. Example format: properties/1234/firebaseLinks/5678
341
+ # @!attribute [rw] project
342
+ # @return [::String]
343
+ # Immutable. Firebase project resource name. When creating a FirebaseLink, you may
344
+ # provide this resource name using either a project number or project ID.
345
+ # Once this resource has been created, returned FirebaseLinks will always
346
+ # have a project_name that contains a project number.
347
+ #
348
+ # Format: 'projects/\\{project number}'
349
+ # Example: 'projects/1234'
350
+ # @!attribute [r] create_time
351
+ # @return [::Google::Protobuf::Timestamp]
352
+ # Output only. Time when this FirebaseLink was originally created.
353
+ # @!attribute [rw] maximum_user_access
354
+ # @return [::Google::Analytics::Admin::V1alpha::MaximumUserAccess]
355
+ # Maximum user access to the App + Web property allowed to admins of
356
+ # the linked Firebase project.
357
+ class FirebaseLink
358
+ include ::Google::Protobuf::MessageExts
359
+ extend ::Google::Protobuf::MessageExts::ClassMethods
360
+ end
361
+
362
+ # Read-only resource with the tag for sending data from a website to a
363
+ # WebDataStream.
364
+ # @!attribute [rw] snippet
365
+ # @return [::String]
366
+ # Immutable. JavaScript code snippet to be pasted as the first item into the head tag of
367
+ # every webpage to measure.
368
+ class GlobalSiteTag
369
+ include ::Google::Protobuf::MessageExts
370
+ extend ::Google::Protobuf::MessageExts::ClassMethods
371
+ end
372
+
373
+ # A link between an App+Web property and a Google Ads account.
374
+ # @!attribute [r] name
375
+ # @return [::String]
376
+ # Output only. Format: properties/\\{propertyId}/googleAdsLinks/\\{googleAdsLinkId}
377
+ #
378
+ # Note: googleAdsLinkId is not the Google Ads customer ID.
379
+ # @!attribute [rw] parent
380
+ # @return [::String]
381
+ # Immutable. Format: properties/\\{propertyId}
382
+ # @!attribute [rw] customer_id
383
+ # @return [::String]
384
+ # Immutable. Google Ads customer ID.
385
+ # @!attribute [r] can_manage_clients
386
+ # @return [::Boolean]
387
+ # Output only. If true, this link is for a Google Ads manager account.
388
+ # @!attribute [rw] ads_personalization_enabled
389
+ # @return [::Google::Protobuf::BoolValue]
390
+ # Enable personalized advertising features with this integration.
391
+ # Automatically publish my Google Analytics audience lists and Google
392
+ # Analytics remarketing events/parameters to the linked Google Ads account.
393
+ # If this field is not set on create/update it will be defaulted to true.
394
+ # @!attribute [r] email_address
395
+ # @return [::String]
396
+ # Output only. Email address of the user that created the link.
397
+ # An empty string will be returned if the email address can't be retrieved.
398
+ # @!attribute [r] create_time
399
+ # @return [::Google::Protobuf::Timestamp]
400
+ # Output only. Time when this link was originally created.
401
+ # @!attribute [r] update_time
402
+ # @return [::Google::Protobuf::Timestamp]
403
+ # Output only. Time when this link was last updated.
404
+ class GoogleAdsLink
405
+ include ::Google::Protobuf::MessageExts
406
+ extend ::Google::Protobuf::MessageExts::ClassMethods
407
+ end
408
+
409
+ # A resource message representing data sharing settings of a Google Analytics
410
+ # account.
411
+ # @!attribute [r] name
412
+ # @return [::String]
413
+ # Output only. Resource name.
414
+ # Format: accounts/\\{account}/dataSharingSettings
415
+ # Example: "accounts/1000/dataSharingSettings"
416
+ # @!attribute [rw] sharing_with_google_support_enabled
417
+ # @return [::Boolean]
418
+ # Allows Google support to access the data in order to help troubleshoot
419
+ # issues.
420
+ # @!attribute [rw] sharing_with_google_assigned_sales_enabled
421
+ # @return [::Boolean]
422
+ # Allows Google sales teams that are assigned to the customer to access the
423
+ # data in order to suggest configuration changes to improve results.
424
+ # Sales team restrictions still apply when enabled.
425
+ # @!attribute [rw] sharing_with_google_any_sales_enabled
426
+ # @return [::Boolean]
427
+ # Allows any of Google sales to access the data in order to suggest
428
+ # configuration changes to improve results.
429
+ # @!attribute [rw] sharing_with_google_products_enabled
430
+ # @return [::Boolean]
431
+ # Allows Google to use the data to improve other Google products or services.
432
+ # @!attribute [rw] sharing_with_others_enabled
433
+ # @return [::Boolean]
434
+ # Allows Google to share the data anonymously in aggregate form with others.
435
+ class DataSharingSettings
436
+ include ::Google::Protobuf::MessageExts
437
+ extend ::Google::Protobuf::MessageExts::ClassMethods
438
+ end
439
+
440
+ # The category selected for this property, used for industry benchmarking.
441
+ module IndustryCategory
442
+ # Industry category unspecified
443
+ INDUSTRY_CATEGORY_UNSPECIFIED = 0
444
+
445
+ # Automotive
446
+ AUTOMOTIVE = 1
447
+
448
+ # Business and industrial markets
449
+ BUSINESS_AND_INDUSTRIAL_MARKETS = 2
450
+
451
+ # Finance
452
+ FINANCE = 3
453
+
454
+ # Healthcare
455
+ HEALTHCARE = 4
456
+
457
+ # Technology
458
+ TECHNOLOGY = 5
459
+
460
+ # Travel
461
+ TRAVEL = 6
462
+
463
+ # Other
464
+ OTHER = 7
465
+
466
+ # Arts and entertainment
467
+ ARTS_AND_ENTERTAINMENT = 8
468
+
469
+ # Beauty and fitness
470
+ BEAUTY_AND_FITNESS = 9
471
+
472
+ # Books and literature
473
+ BOOKS_AND_LITERATURE = 10
474
+
475
+ # Food and drink
476
+ FOOD_AND_DRINK = 11
477
+
478
+ # Games
479
+ GAMES = 12
480
+
481
+ # Hobbies and leisure
482
+ HOBBIES_AND_LEISURE = 13
483
+
484
+ # Home and garden
485
+ HOME_AND_GARDEN = 14
486
+
487
+ # Internet and telecom
488
+ INTERNET_AND_TELECOM = 15
489
+
490
+ # Law and government
491
+ LAW_AND_GOVERNMENT = 16
492
+
493
+ # News
494
+ NEWS = 17
495
+
496
+ # Online communities
497
+ ONLINE_COMMUNITIES = 18
498
+
499
+ # People and society
500
+ PEOPLE_AND_SOCIETY = 19
501
+
502
+ # Pets and animals
503
+ PETS_AND_ANIMALS = 20
504
+
505
+ # Real estate
506
+ REAL_ESTATE = 21
507
+
508
+ # Reference
509
+ REFERENCE = 22
510
+
511
+ # Science
512
+ SCIENCE = 23
513
+
514
+ # Sports
515
+ SPORTS = 24
516
+
517
+ # Jobs and education
518
+ JOBS_AND_EDUCATION = 25
519
+
520
+ # Shopping
521
+ SHOPPING = 26
522
+ end
523
+
524
+ # Maximum access settings that Firebase user receive on the linked Analytics
525
+ # property.
526
+ module MaximumUserAccess
527
+ # Unspecified maximum user access.
528
+ MAXIMUM_USER_ACCESS_UNSPECIFIED = 0
529
+
530
+ # Firebase users have no access to the Analytics property.
531
+ NO_ACCESS = 1
532
+
533
+ # Firebase users have Read & Analyze access to the Analytics property.
534
+ READ_AND_ANALYZE = 2
535
+
536
+ # Firebase users have edit access to the Analytics property, but may not
537
+ # manage the Firebase link.
538
+ EDITOR_WITHOUT_LINK_MANAGEMENT = 3
539
+
540
+ # Firebase users have edit access to the Analytics property and may manage
541
+ # the Firebase link.
542
+ EDITOR_INCLUDING_LINK_MANAGEMENT = 4
543
+ end
544
+ end
545
+ end
546
+ end
547
+ end