google-ads-marketing_platform-admin-v1alpha 0.2.1 → 0.3.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.
- checksums.yaml +4 -4
- data/lib/google/ads/marketing_platform/admin/v1alpha/marketingplatform_admin_service/client.rb +306 -0
- data/lib/google/ads/marketing_platform/admin/v1alpha/marketingplatform_admin_service/rest/client.rb +293 -0
- data/lib/google/ads/marketing_platform/admin/v1alpha/marketingplatform_admin_service/rest/service_stub.rb +183 -0
- data/lib/google/ads/marketing_platform/admin/v1alpha/version.rb +1 -1
- data/lib/google/marketingplatform/admin/v1alpha/marketingplatform_admin_pb.rb +15 -3
- data/lib/google/marketingplatform/admin/v1alpha/marketingplatform_admin_services_pb.rb +18 -0
- data/lib/google/marketingplatform/admin/v1alpha/resources_pb.rb +3 -1
- data/proto_docs/google/marketingplatform/admin/v1alpha/marketingplatform_admin.rb +149 -8
- data/proto_docs/google/marketingplatform/admin/v1alpha/resources.rb +27 -0
- data/proto_docs/google/type/date.rb +53 -0
- data/proto_docs/google/type/money.rb +43 -0
- metadata +3 -1
|
@@ -36,6 +36,13 @@ module Google
|
|
|
36
36
|
|
|
37
37
|
# Lookup for a single organization.
|
|
38
38
|
rpc :GetOrganization, ::Google::Ads::MarketingPlatform::Admin::V1alpha::GetOrganizationRequest, ::Google::Ads::MarketingPlatform::Admin::V1alpha::Organization
|
|
39
|
+
# Returns a list of organizations that the user has access to.
|
|
40
|
+
rpc :ListOrganizations, ::Google::Ads::MarketingPlatform::Admin::V1alpha::ListOrganizationsRequest, ::Google::Ads::MarketingPlatform::Admin::V1alpha::ListOrganizationsResponse
|
|
41
|
+
# Returns a list of clients managed by the sales partner organization.
|
|
42
|
+
#
|
|
43
|
+
# User needs to be an OrgAdmin/BillingAdmin on the sales partner organization
|
|
44
|
+
# in order to view the end clients.
|
|
45
|
+
rpc :FindSalesPartnerManagedClients, ::Google::Ads::MarketingPlatform::Admin::V1alpha::FindSalesPartnerManagedClientsRequest, ::Google::Ads::MarketingPlatform::Admin::V1alpha::FindSalesPartnerManagedClientsResponse
|
|
39
46
|
# Lists the Google Analytics accounts link to the specified Google Marketing
|
|
40
47
|
# Platform organization.
|
|
41
48
|
rpc :ListAnalyticsAccountLinks, ::Google::Ads::MarketingPlatform::Admin::V1alpha::ListAnalyticsAccountLinksRequest, ::Google::Ads::MarketingPlatform::Admin::V1alpha::ListAnalyticsAccountLinksResponse
|
|
@@ -54,6 +61,17 @@ module Google
|
|
|
54
61
|
rpc :DeleteAnalyticsAccountLink, ::Google::Ads::MarketingPlatform::Admin::V1alpha::DeleteAnalyticsAccountLinkRequest, ::Google::Protobuf::Empty
|
|
55
62
|
# Updates the service level for an Analytics property.
|
|
56
63
|
rpc :SetPropertyServiceLevel, ::Google::Ads::MarketingPlatform::Admin::V1alpha::SetPropertyServiceLevelRequest, ::Google::Ads::MarketingPlatform::Admin::V1alpha::SetPropertyServiceLevelResponse
|
|
64
|
+
# Get the usage and billing data for properties within the organization for
|
|
65
|
+
# the specified month.
|
|
66
|
+
#
|
|
67
|
+
# Per direct client org, user needs to be OrgAdmin/BillingAdmin on the
|
|
68
|
+
# organization in order to view the billing and usage data.
|
|
69
|
+
#
|
|
70
|
+
# Per sales partner client org, user needs to be OrgAdmin/BillingAdmin on
|
|
71
|
+
# the sales partner org in order to view the billing and usage data, or
|
|
72
|
+
# OrgAdmin/BillingAdmin on the sales partner client org in order to view the
|
|
73
|
+
# usage data only.
|
|
74
|
+
rpc :ReportPropertyUsage, ::Google::Ads::MarketingPlatform::Admin::V1alpha::ReportPropertyUsageRequest, ::Google::Ads::MarketingPlatform::Admin::V1alpha::ReportPropertyUsageResponse
|
|
57
75
|
end
|
|
58
76
|
|
|
59
77
|
Stub = Service.rpc_stub_class
|
|
@@ -8,7 +8,7 @@ require 'google/api/field_behavior_pb'
|
|
|
8
8
|
require 'google/api/resource_pb'
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
descriptor_data = "\n6google/marketingplatform/admin/v1alpha/resources.proto\x12&google.marketingplatform.admin.v1alpha\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xab\x01\n\x0cOrganization\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t:r\xea\x41o\n2marketingplatformadmin.googleapis.com/Organization\x12\x1corganizations/{organization}*\rorganizations2\x0corganization\"\xb3\x03\n\x14\x41nalyticsAccountLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12K\n\x11\x61nalytics_account\x18\x02 \x01(\tB0\xe0\x41\x02\xe0\x41\x05\xfa\x41\'\n%analyticsadmin.googleapis.com/Account\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x63\n\x17link_verification_state\x18\x04 \x01(\x0e\x32=.google.marketingplatform.admin.v1alpha.LinkVerificationStateB\x03\xe0\x41\x03:\xba\x01\xea\x41\xb6\x01\n:marketingplatformadmin.googleapis.com/AnalyticsAccountLink\x12Korganizations/{organization}/analyticsAccountLinks/{analytics_account_link}*\x15\x61nalyticsAccountLinks2\x14\x61nalyticsAccountLink*\x90\x01\n\x15LinkVerificationState\x12\'\n#LINK_VERIFICATION_STATE_UNSPECIFIED\x10\x00\x12$\n LINK_VERIFICATION_STATE_VERIFIED\x10\x01\x12(\n$LINK_VERIFICATION_STATE_NOT_VERIFIED\x10\x02\x42\xd8\x02\n.com.google.ads.marketingplatform.admin.v1alphaB\x0eResourcesProtoP\x01ZKgoogle.golang.org/genproto/googleapis/marketingplatform/admin/v1alpha;admin\xaa\x02*Google.Ads.MarketingPlatform.Admin.V1Alpha\xca\x02*Google\\Ads\\MarketingPlatform\\Admin\\V1alpha\xea\x02.Google::Ads::MarketingPlatform::Admin::V1alpha\xea\x41;\n%analyticsadmin.googleapis.com/Account\x12\x12\x61\x63\x63ounts/{account}b\x06proto3"
|
|
11
|
+
descriptor_data = "\n6google/marketingplatform/admin/v1alpha/resources.proto\x12&google.marketingplatform.admin.v1alpha\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xab\x01\n\x0cOrganization\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t:r\xea\x41o\n2marketingplatformadmin.googleapis.com/Organization\x12\x1corganizations/{organization}*\rorganizations2\x0corganization\"\xb3\x03\n\x14\x41nalyticsAccountLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12K\n\x11\x61nalytics_account\x18\x02 \x01(\tB0\xe0\x41\x02\xe0\x41\x05\xfa\x41\'\n%analyticsadmin.googleapis.com/Account\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x63\n\x17link_verification_state\x18\x04 \x01(\x0e\x32=.google.marketingplatform.admin.v1alpha.LinkVerificationStateB\x03\xe0\x41\x03:\xba\x01\xea\x41\xb6\x01\n:marketingplatformadmin.googleapis.com/AnalyticsAccountLink\x12Korganizations/{organization}/analyticsAccountLinks/{analytics_account_link}*\x15\x61nalyticsAccountLinks2\x14\x61nalyticsAccountLink*\x90\x01\n\x15LinkVerificationState\x12\'\n#LINK_VERIFICATION_STATE_UNSPECIFIED\x10\x00\x12$\n LINK_VERIFICATION_STATE_VERIFIED\x10\x01\x12(\n$LINK_VERIFICATION_STATE_NOT_VERIFIED\x10\x02*\x87\x01\n\x15\x41nalyticsServiceLevel\x12\'\n#ANALYTICS_SERVICE_LEVEL_UNSPECIFIED\x10\x00\x12$\n ANALYTICS_SERVICE_LEVEL_STANDARD\x10\x01\x12\x1f\n\x1b\x41NALYTICS_SERVICE_LEVEL_360\x10\x02*\xb3\x01\n\x15\x41nalyticsPropertyType\x12\'\n#ANALYTICS_PROPERTY_TYPE_UNSPECIFIED\x10\x00\x12$\n ANALYTICS_PROPERTY_TYPE_ORDINARY\x10\x01\x12\'\n#ANALYTICS_PROPERTY_TYPE_SUBPROPERTY\x10\x02\x12\"\n\x1e\x41NALYTICS_PROPERTY_TYPE_ROLLUP\x10\x03\x42\xd8\x02\n.com.google.ads.marketingplatform.admin.v1alphaB\x0eResourcesProtoP\x01ZKgoogle.golang.org/genproto/googleapis/marketingplatform/admin/v1alpha;admin\xaa\x02*Google.Ads.MarketingPlatform.Admin.V1Alpha\xca\x02*Google\\Ads\\MarketingPlatform\\Admin\\V1alpha\xea\x02.Google::Ads::MarketingPlatform::Admin::V1alpha\xea\x41;\n%analyticsadmin.googleapis.com/Account\x12\x12\x61\x63\x63ounts/{account}b\x06proto3"
|
|
12
12
|
|
|
13
13
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
14
14
|
|
|
@@ -42,6 +42,8 @@ module Google
|
|
|
42
42
|
Organization = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.Organization").msgclass
|
|
43
43
|
AnalyticsAccountLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.AnalyticsAccountLink").msgclass
|
|
44
44
|
LinkVerificationState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.LinkVerificationState").enummodule
|
|
45
|
+
AnalyticsServiceLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.AnalyticsServiceLevel").enummodule
|
|
46
|
+
AnalyticsPropertyType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.AnalyticsPropertyType").enummodule
|
|
45
47
|
end
|
|
46
48
|
end
|
|
47
49
|
end
|
|
@@ -32,6 +32,78 @@ module Google
|
|
|
32
32
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
+
# Request message for ListOrganizations RPC.
|
|
36
|
+
# @!attribute [rw] page_size
|
|
37
|
+
# @return [::Integer]
|
|
38
|
+
# Optional. The maximum number of organizations to return in one call. The
|
|
39
|
+
# service may return fewer than this value.
|
|
40
|
+
#
|
|
41
|
+
# If unspecified, at most 50 organizations will be returned. The
|
|
42
|
+
# maximum value is 1000; values above 1000 will be coerced to 1000.
|
|
43
|
+
# @!attribute [rw] page_token
|
|
44
|
+
# @return [::String]
|
|
45
|
+
# Optional. A page token, received from a previous ListOrganizations call.
|
|
46
|
+
# Provide this to retrieve the subsequent page.
|
|
47
|
+
#
|
|
48
|
+
# When paginating, all other parameters provided to
|
|
49
|
+
# `ListOrganizations` must match the call that provided the page
|
|
50
|
+
# token.
|
|
51
|
+
class ListOrganizationsRequest
|
|
52
|
+
include ::Google::Protobuf::MessageExts
|
|
53
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Response message for ListOrganizations RPC.
|
|
57
|
+
# @!attribute [rw] organizations
|
|
58
|
+
# @return [::Array<::Google::Ads::MarketingPlatform::Admin::V1alpha::Organization>]
|
|
59
|
+
# The Organization resource that the user has access to, which includes the
|
|
60
|
+
# org id and display name.
|
|
61
|
+
# @!attribute [rw] next_page_token
|
|
62
|
+
# @return [::String]
|
|
63
|
+
# A token, which can be sent as `page_token` to retrieve the next page.
|
|
64
|
+
# If this field is omitted, there are no subsequent pages.
|
|
65
|
+
class ListOrganizationsResponse
|
|
66
|
+
include ::Google::Protobuf::MessageExts
|
|
67
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Request message for FindSalesPartnerManagedClients RPC.
|
|
71
|
+
# @!attribute [rw] organization
|
|
72
|
+
# @return [::String]
|
|
73
|
+
# Required. The name of the sales partner organization.
|
|
74
|
+
# Format: organizations/\\{org_id}
|
|
75
|
+
# @!attribute [rw] is_active
|
|
76
|
+
# @return [::Boolean]
|
|
77
|
+
# Optional. If set, only active and just ended clients will be returned.
|
|
78
|
+
class FindSalesPartnerManagedClientsRequest
|
|
79
|
+
include ::Google::Protobuf::MessageExts
|
|
80
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Response message for FindSalesPartnerManagedClients RPC.
|
|
84
|
+
# @!attribute [rw] client_data
|
|
85
|
+
# @return [::Array<::Google::Ads::MarketingPlatform::Admin::V1alpha::FindSalesPartnerManagedClientsResponse::ClientData>]
|
|
86
|
+
# The clients managed by the sales org.
|
|
87
|
+
class FindSalesPartnerManagedClientsResponse
|
|
88
|
+
include ::Google::Protobuf::MessageExts
|
|
89
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
90
|
+
|
|
91
|
+
# Contains the client data.
|
|
92
|
+
# @!attribute [rw] organization
|
|
93
|
+
# @return [::Google::Ads::MarketingPlatform::Admin::V1alpha::Organization]
|
|
94
|
+
# The end client that has/had contract with the requested sales org.
|
|
95
|
+
# @!attribute [rw] start_date
|
|
96
|
+
# @return [::Google::Type::Date]
|
|
97
|
+
# The start date of the contract between the sales org and the end client.
|
|
98
|
+
# @!attribute [rw] end_date
|
|
99
|
+
# @return [::Google::Type::Date]
|
|
100
|
+
# The end date of the contract between the sales org and the end client.
|
|
101
|
+
class ClientData
|
|
102
|
+
include ::Google::Protobuf::MessageExts
|
|
103
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
|
|
35
107
|
# Request message for ListAnalyticsAccountLinks RPC.
|
|
36
108
|
# @!attribute [rw] parent
|
|
37
109
|
# @return [::String]
|
|
@@ -120,16 +192,85 @@ module Google
|
|
|
120
192
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
121
193
|
end
|
|
122
194
|
|
|
123
|
-
#
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
195
|
+
# Request message for ReportPropertyUsage RPC.
|
|
196
|
+
# @!attribute [rw] organization
|
|
197
|
+
# @return [::String]
|
|
198
|
+
# Required. Specifies the organization whose property usage will be listed.
|
|
199
|
+
#
|
|
200
|
+
# Format: organizations/\\{org_id}
|
|
201
|
+
# @!attribute [rw] month
|
|
202
|
+
# @return [::String]
|
|
203
|
+
# Required. The target month to list property usages.
|
|
204
|
+
#
|
|
205
|
+
# Format: YYYY-MM. For example, "2025-05"
|
|
206
|
+
class ReportPropertyUsageRequest
|
|
207
|
+
include ::Google::Protobuf::MessageExts
|
|
208
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# Response message for ReportPropertyUsage RPC.
|
|
212
|
+
# @!attribute [rw] property_usages
|
|
213
|
+
# @return [::Array<::Google::Ads::MarketingPlatform::Admin::V1alpha::ReportPropertyUsageResponse::PropertyUsage>]
|
|
214
|
+
# Usage data for all properties in the specified organization and month.
|
|
215
|
+
# @!attribute [rw] bill_info
|
|
216
|
+
# @return [::Google::Ads::MarketingPlatform::Admin::V1alpha::ReportPropertyUsageResponse::BillInfo]
|
|
217
|
+
# Bill amount in the specified organization and month.
|
|
218
|
+
#
|
|
219
|
+
# Will be empty if user only has access to usage data.
|
|
220
|
+
class ReportPropertyUsageResponse
|
|
221
|
+
include ::Google::Protobuf::MessageExts
|
|
222
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
127
223
|
|
|
128
|
-
#
|
|
129
|
-
|
|
224
|
+
# Contains the count of events received by the property, along with metadata
|
|
225
|
+
# that influences the volume of `billable` events.
|
|
226
|
+
# @!attribute [rw] property
|
|
227
|
+
# @return [::String]
|
|
228
|
+
# The name of the Google Analytics Admin API property resource.
|
|
229
|
+
#
|
|
230
|
+
# Format: analyticsadmin.googleapis.com/properties/\\{property_id}
|
|
231
|
+
# @!attribute [rw] display_name
|
|
232
|
+
# @return [::String]
|
|
233
|
+
# The display name of the property.
|
|
234
|
+
# @!attribute [rw] account_id
|
|
235
|
+
# @return [::Integer]
|
|
236
|
+
# The ID of the property's parent account.
|
|
237
|
+
# @!attribute [rw] service_level
|
|
238
|
+
# @return [::Google::Ads::MarketingPlatform::Admin::V1alpha::AnalyticsServiceLevel]
|
|
239
|
+
# The service level of the property.
|
|
240
|
+
# @!attribute [rw] property_type
|
|
241
|
+
# @return [::Google::Ads::MarketingPlatform::Admin::V1alpha::AnalyticsPropertyType]
|
|
242
|
+
# The subtype of the analytics property. This affects the billable event
|
|
243
|
+
# count.
|
|
244
|
+
# @!attribute [rw] total_event_count
|
|
245
|
+
# @return [::Integer]
|
|
246
|
+
# Total event count that the property received during the requested month.
|
|
247
|
+
# @!attribute [rw] billable_event_count
|
|
248
|
+
# @return [::Integer]
|
|
249
|
+
# The number of events for which the property is billed in the requested
|
|
250
|
+
# month.
|
|
251
|
+
class PropertyUsage
|
|
252
|
+
include ::Google::Protobuf::MessageExts
|
|
253
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
254
|
+
end
|
|
130
255
|
|
|
131
|
-
#
|
|
132
|
-
|
|
256
|
+
# Contains the bill amount.
|
|
257
|
+
# @!attribute [rw] base_fee
|
|
258
|
+
# @return [::Google::Type::Money]
|
|
259
|
+
# The amount of the monthly base fee.
|
|
260
|
+
# @!attribute [rw] event_fee
|
|
261
|
+
# @return [::Google::Type::Money]
|
|
262
|
+
# The amount of the event fee.
|
|
263
|
+
# @!attribute [rw] price_protection_credit
|
|
264
|
+
# @return [::Google::Type::Money]
|
|
265
|
+
# The amount of the price protection credit, this is only available for
|
|
266
|
+
# eligible customers.
|
|
267
|
+
# @!attribute [rw] total
|
|
268
|
+
# @return [::Google::Type::Money]
|
|
269
|
+
# The total amount of the bill.
|
|
270
|
+
class BillInfo
|
|
271
|
+
include ::Google::Protobuf::MessageExts
|
|
272
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
273
|
+
end
|
|
133
274
|
end
|
|
134
275
|
end
|
|
135
276
|
end
|
|
@@ -77,6 +77,33 @@ module Google
|
|
|
77
77
|
# admin.
|
|
78
78
|
LINK_VERIFICATION_STATE_NOT_VERIFIED = 2
|
|
79
79
|
end
|
|
80
|
+
|
|
81
|
+
# Various levels of service for Google Analytics.
|
|
82
|
+
module AnalyticsServiceLevel
|
|
83
|
+
# Service level unspecified.
|
|
84
|
+
ANALYTICS_SERVICE_LEVEL_UNSPECIFIED = 0
|
|
85
|
+
|
|
86
|
+
# The standard version of Google Analytics.
|
|
87
|
+
ANALYTICS_SERVICE_LEVEL_STANDARD = 1
|
|
88
|
+
|
|
89
|
+
# The premium version of Google Analytics.
|
|
90
|
+
ANALYTICS_SERVICE_LEVEL_360 = 2
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Types of the Google Analytics Property.
|
|
94
|
+
module AnalyticsPropertyType
|
|
95
|
+
# Unknown or unspecified property type
|
|
96
|
+
ANALYTICS_PROPERTY_TYPE_UNSPECIFIED = 0
|
|
97
|
+
|
|
98
|
+
# Ordinary Google Analytics property
|
|
99
|
+
ANALYTICS_PROPERTY_TYPE_ORDINARY = 1
|
|
100
|
+
|
|
101
|
+
# Google Analytics subproperty
|
|
102
|
+
ANALYTICS_PROPERTY_TYPE_SUBPROPERTY = 2
|
|
103
|
+
|
|
104
|
+
# Google Analytics rollup property
|
|
105
|
+
ANALYTICS_PROPERTY_TYPE_ROLLUP = 3
|
|
106
|
+
end
|
|
80
107
|
end
|
|
81
108
|
end
|
|
82
109
|
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2025 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 Type
|
|
22
|
+
# Represents a whole or partial calendar date, such as a birthday. The time of
|
|
23
|
+
# day and time zone are either specified elsewhere or are insignificant. The
|
|
24
|
+
# date is relative to the Gregorian Calendar. This can represent one of the
|
|
25
|
+
# following:
|
|
26
|
+
#
|
|
27
|
+
# * A full date, with non-zero year, month, and day values
|
|
28
|
+
# * A month and day value, with a zero year, such as an anniversary
|
|
29
|
+
# * A year on its own, with zero month and day values
|
|
30
|
+
# * A year and month value, with a zero day, such as a credit card expiration
|
|
31
|
+
# date
|
|
32
|
+
#
|
|
33
|
+
# Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and
|
|
34
|
+
# `google.protobuf.Timestamp`.
|
|
35
|
+
# @!attribute [rw] year
|
|
36
|
+
# @return [::Integer]
|
|
37
|
+
# Year of the date. Must be from 1 to 9999, or 0 to specify a date without
|
|
38
|
+
# a year.
|
|
39
|
+
# @!attribute [rw] month
|
|
40
|
+
# @return [::Integer]
|
|
41
|
+
# Month of a year. Must be from 1 to 12, or 0 to specify a year without a
|
|
42
|
+
# month and day.
|
|
43
|
+
# @!attribute [rw] day
|
|
44
|
+
# @return [::Integer]
|
|
45
|
+
# Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
|
|
46
|
+
# to specify a year by itself or a year and month where the day isn't
|
|
47
|
+
# significant.
|
|
48
|
+
class Date
|
|
49
|
+
include ::Google::Protobuf::MessageExts
|
|
50
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2025 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 Type
|
|
22
|
+
# Represents an amount of money with its currency type.
|
|
23
|
+
# @!attribute [rw] currency_code
|
|
24
|
+
# @return [::String]
|
|
25
|
+
# The three-letter currency code defined in ISO 4217.
|
|
26
|
+
# @!attribute [rw] units
|
|
27
|
+
# @return [::Integer]
|
|
28
|
+
# The whole units of the amount.
|
|
29
|
+
# For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
|
|
30
|
+
# @!attribute [rw] nanos
|
|
31
|
+
# @return [::Integer]
|
|
32
|
+
# Number of nano (10^-9) units of the amount.
|
|
33
|
+
# The value must be between -999,999,999 and +999,999,999 inclusive.
|
|
34
|
+
# If `units` is positive, `nanos` must be positive or zero.
|
|
35
|
+
# If `units` is zero, `nanos` can be positive, zero, or negative.
|
|
36
|
+
# If `units` is negative, `nanos` must be negative or zero.
|
|
37
|
+
# For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
|
|
38
|
+
class Money
|
|
39
|
+
include ::Google::Protobuf::MessageExts
|
|
40
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-ads-marketing_platform-admin-v1alpha
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -76,6 +76,8 @@ files:
|
|
|
76
76
|
- proto_docs/google/marketingplatform/admin/v1alpha/resources.rb
|
|
77
77
|
- proto_docs/google/protobuf/duration.rb
|
|
78
78
|
- proto_docs/google/protobuf/empty.rb
|
|
79
|
+
- proto_docs/google/type/date.rb
|
|
80
|
+
- proto_docs/google/type/money.rb
|
|
79
81
|
homepage: https://github.com/googleapis/google-cloud-ruby
|
|
80
82
|
licenses:
|
|
81
83
|
- Apache-2.0
|