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
data/lib/google/ads/marketing_platform/admin/v1alpha/marketingplatform_admin_service/rest/client.rb
CHANGED
|
@@ -261,6 +261,185 @@ module Google
|
|
|
261
261
|
raise ::Google::Cloud::Error.from_error(e)
|
|
262
262
|
end
|
|
263
263
|
|
|
264
|
+
##
|
|
265
|
+
# Returns a list of organizations that the user has access to.
|
|
266
|
+
#
|
|
267
|
+
# @overload list_organizations(request, options = nil)
|
|
268
|
+
# Pass arguments to `list_organizations` via a request object, either of type
|
|
269
|
+
# {::Google::Ads::MarketingPlatform::Admin::V1alpha::ListOrganizationsRequest} or an equivalent Hash.
|
|
270
|
+
#
|
|
271
|
+
# @param request [::Google::Ads::MarketingPlatform::Admin::V1alpha::ListOrganizationsRequest, ::Hash]
|
|
272
|
+
# A request object representing the call parameters. Required. To specify no
|
|
273
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
274
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
275
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
276
|
+
#
|
|
277
|
+
# @overload list_organizations(page_size: nil, page_token: nil)
|
|
278
|
+
# Pass arguments to `list_organizations` via keyword arguments. Note that at
|
|
279
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
280
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
281
|
+
#
|
|
282
|
+
# @param page_size [::Integer]
|
|
283
|
+
# Optional. The maximum number of organizations to return in one call. The
|
|
284
|
+
# service may return fewer than this value.
|
|
285
|
+
#
|
|
286
|
+
# If unspecified, at most 50 organizations will be returned. The
|
|
287
|
+
# maximum value is 1000; values above 1000 will be coerced to 1000.
|
|
288
|
+
# @param page_token [::String]
|
|
289
|
+
# Optional. A page token, received from a previous ListOrganizations call.
|
|
290
|
+
# Provide this to retrieve the subsequent page.
|
|
291
|
+
#
|
|
292
|
+
# When paginating, all other parameters provided to
|
|
293
|
+
# `ListOrganizations` must match the call that provided the page
|
|
294
|
+
# token.
|
|
295
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
296
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Ads::MarketingPlatform::Admin::V1alpha::Organization>]
|
|
297
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
298
|
+
#
|
|
299
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Ads::MarketingPlatform::Admin::V1alpha::Organization>]
|
|
300
|
+
#
|
|
301
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
302
|
+
#
|
|
303
|
+
# @example Basic example
|
|
304
|
+
# require "google/ads/marketing_platform/admin/v1alpha"
|
|
305
|
+
#
|
|
306
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
307
|
+
# client = Google::Ads::MarketingPlatform::Admin::V1alpha::MarketingplatformAdminService::Rest::Client.new
|
|
308
|
+
#
|
|
309
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
310
|
+
# request = Google::Ads::MarketingPlatform::Admin::V1alpha::ListOrganizationsRequest.new
|
|
311
|
+
#
|
|
312
|
+
# # Call the list_organizations method.
|
|
313
|
+
# result = client.list_organizations request
|
|
314
|
+
#
|
|
315
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
316
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
317
|
+
# result.each do |item|
|
|
318
|
+
# # Each element is of type ::Google::Ads::MarketingPlatform::Admin::V1alpha::Organization.
|
|
319
|
+
# p item
|
|
320
|
+
# end
|
|
321
|
+
#
|
|
322
|
+
def list_organizations request, options = nil
|
|
323
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
324
|
+
|
|
325
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::MarketingPlatform::Admin::V1alpha::ListOrganizationsRequest
|
|
326
|
+
|
|
327
|
+
# Converts hash and nil to an options object
|
|
328
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
329
|
+
|
|
330
|
+
# Customize the options with defaults
|
|
331
|
+
call_metadata = @config.rpcs.list_organizations.metadata.to_h
|
|
332
|
+
|
|
333
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
334
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
335
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
336
|
+
gapic_version: ::Google::Ads::MarketingPlatform::Admin::V1alpha::VERSION,
|
|
337
|
+
transports_version_send: [:rest]
|
|
338
|
+
|
|
339
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
340
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
341
|
+
|
|
342
|
+
options.apply_defaults timeout: @config.rpcs.list_organizations.timeout,
|
|
343
|
+
metadata: call_metadata,
|
|
344
|
+
retry_policy: @config.rpcs.list_organizations.retry_policy
|
|
345
|
+
|
|
346
|
+
options.apply_defaults timeout: @config.timeout,
|
|
347
|
+
metadata: @config.metadata,
|
|
348
|
+
retry_policy: @config.retry_policy
|
|
349
|
+
|
|
350
|
+
@marketingplatform_admin_service_stub.list_organizations request, options do |result, operation|
|
|
351
|
+
result = ::Gapic::Rest::PagedEnumerable.new @marketingplatform_admin_service_stub, :list_organizations, "organizations", request, result, options
|
|
352
|
+
yield result, operation if block_given?
|
|
353
|
+
throw :response, result
|
|
354
|
+
end
|
|
355
|
+
rescue ::Gapic::Rest::Error => e
|
|
356
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
##
|
|
360
|
+
# Returns a list of clients managed by the sales partner organization.
|
|
361
|
+
#
|
|
362
|
+
# User needs to be an OrgAdmin/BillingAdmin on the sales partner organization
|
|
363
|
+
# in order to view the end clients.
|
|
364
|
+
#
|
|
365
|
+
# @overload find_sales_partner_managed_clients(request, options = nil)
|
|
366
|
+
# Pass arguments to `find_sales_partner_managed_clients` via a request object, either of type
|
|
367
|
+
# {::Google::Ads::MarketingPlatform::Admin::V1alpha::FindSalesPartnerManagedClientsRequest} or an equivalent Hash.
|
|
368
|
+
#
|
|
369
|
+
# @param request [::Google::Ads::MarketingPlatform::Admin::V1alpha::FindSalesPartnerManagedClientsRequest, ::Hash]
|
|
370
|
+
# A request object representing the call parameters. Required. To specify no
|
|
371
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
372
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
373
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
374
|
+
#
|
|
375
|
+
# @overload find_sales_partner_managed_clients(organization: nil, is_active: nil)
|
|
376
|
+
# Pass arguments to `find_sales_partner_managed_clients` via keyword arguments. Note that at
|
|
377
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
378
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
379
|
+
#
|
|
380
|
+
# @param organization [::String]
|
|
381
|
+
# Required. The name of the sales partner organization.
|
|
382
|
+
# Format: organizations/\\{org_id}
|
|
383
|
+
# @param is_active [::Boolean]
|
|
384
|
+
# Optional. If set, only active and just ended clients will be returned.
|
|
385
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
386
|
+
# @yieldparam result [::Google::Ads::MarketingPlatform::Admin::V1alpha::FindSalesPartnerManagedClientsResponse]
|
|
387
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
388
|
+
#
|
|
389
|
+
# @return [::Google::Ads::MarketingPlatform::Admin::V1alpha::FindSalesPartnerManagedClientsResponse]
|
|
390
|
+
#
|
|
391
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
392
|
+
#
|
|
393
|
+
# @example Basic example
|
|
394
|
+
# require "google/ads/marketing_platform/admin/v1alpha"
|
|
395
|
+
#
|
|
396
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
397
|
+
# client = Google::Ads::MarketingPlatform::Admin::V1alpha::MarketingplatformAdminService::Rest::Client.new
|
|
398
|
+
#
|
|
399
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
400
|
+
# request = Google::Ads::MarketingPlatform::Admin::V1alpha::FindSalesPartnerManagedClientsRequest.new
|
|
401
|
+
#
|
|
402
|
+
# # Call the find_sales_partner_managed_clients method.
|
|
403
|
+
# result = client.find_sales_partner_managed_clients request
|
|
404
|
+
#
|
|
405
|
+
# # The returned object is of type Google::Ads::MarketingPlatform::Admin::V1alpha::FindSalesPartnerManagedClientsResponse.
|
|
406
|
+
# p result
|
|
407
|
+
#
|
|
408
|
+
def find_sales_partner_managed_clients request, options = nil
|
|
409
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
410
|
+
|
|
411
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::MarketingPlatform::Admin::V1alpha::FindSalesPartnerManagedClientsRequest
|
|
412
|
+
|
|
413
|
+
# Converts hash and nil to an options object
|
|
414
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
415
|
+
|
|
416
|
+
# Customize the options with defaults
|
|
417
|
+
call_metadata = @config.rpcs.find_sales_partner_managed_clients.metadata.to_h
|
|
418
|
+
|
|
419
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
420
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
421
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
422
|
+
gapic_version: ::Google::Ads::MarketingPlatform::Admin::V1alpha::VERSION,
|
|
423
|
+
transports_version_send: [:rest]
|
|
424
|
+
|
|
425
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
426
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
427
|
+
|
|
428
|
+
options.apply_defaults timeout: @config.rpcs.find_sales_partner_managed_clients.timeout,
|
|
429
|
+
metadata: call_metadata,
|
|
430
|
+
retry_policy: @config.rpcs.find_sales_partner_managed_clients.retry_policy
|
|
431
|
+
|
|
432
|
+
options.apply_defaults timeout: @config.timeout,
|
|
433
|
+
metadata: @config.metadata,
|
|
434
|
+
retry_policy: @config.retry_policy
|
|
435
|
+
|
|
436
|
+
@marketingplatform_admin_service_stub.find_sales_partner_managed_clients request, options do |result, operation|
|
|
437
|
+
yield result, operation if block_given?
|
|
438
|
+
end
|
|
439
|
+
rescue ::Gapic::Rest::Error => e
|
|
440
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
441
|
+
end
|
|
442
|
+
|
|
264
443
|
##
|
|
265
444
|
# Lists the Google Analytics accounts link to the specified Google Marketing
|
|
266
445
|
# Platform organization.
|
|
@@ -617,6 +796,99 @@ module Google
|
|
|
617
796
|
raise ::Google::Cloud::Error.from_error(e)
|
|
618
797
|
end
|
|
619
798
|
|
|
799
|
+
##
|
|
800
|
+
# Get the usage and billing data for properties within the organization for
|
|
801
|
+
# the specified month.
|
|
802
|
+
#
|
|
803
|
+
# Per direct client org, user needs to be OrgAdmin/BillingAdmin on the
|
|
804
|
+
# organization in order to view the billing and usage data.
|
|
805
|
+
#
|
|
806
|
+
# Per sales partner client org, user needs to be OrgAdmin/BillingAdmin on
|
|
807
|
+
# the sales partner org in order to view the billing and usage data, or
|
|
808
|
+
# OrgAdmin/BillingAdmin on the sales partner client org in order to view the
|
|
809
|
+
# usage data only.
|
|
810
|
+
#
|
|
811
|
+
# @overload report_property_usage(request, options = nil)
|
|
812
|
+
# Pass arguments to `report_property_usage` via a request object, either of type
|
|
813
|
+
# {::Google::Ads::MarketingPlatform::Admin::V1alpha::ReportPropertyUsageRequest} or an equivalent Hash.
|
|
814
|
+
#
|
|
815
|
+
# @param request [::Google::Ads::MarketingPlatform::Admin::V1alpha::ReportPropertyUsageRequest, ::Hash]
|
|
816
|
+
# A request object representing the call parameters. Required. To specify no
|
|
817
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
818
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
819
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
820
|
+
#
|
|
821
|
+
# @overload report_property_usage(organization: nil, month: nil)
|
|
822
|
+
# Pass arguments to `report_property_usage` via keyword arguments. Note that at
|
|
823
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
824
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
825
|
+
#
|
|
826
|
+
# @param organization [::String]
|
|
827
|
+
# Required. Specifies the organization whose property usage will be listed.
|
|
828
|
+
#
|
|
829
|
+
# Format: organizations/\\{org_id}
|
|
830
|
+
# @param month [::String]
|
|
831
|
+
# Required. The target month to list property usages.
|
|
832
|
+
#
|
|
833
|
+
# Format: YYYY-MM. For example, "2025-05"
|
|
834
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
835
|
+
# @yieldparam result [::Google::Ads::MarketingPlatform::Admin::V1alpha::ReportPropertyUsageResponse]
|
|
836
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
837
|
+
#
|
|
838
|
+
# @return [::Google::Ads::MarketingPlatform::Admin::V1alpha::ReportPropertyUsageResponse]
|
|
839
|
+
#
|
|
840
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
841
|
+
#
|
|
842
|
+
# @example Basic example
|
|
843
|
+
# require "google/ads/marketing_platform/admin/v1alpha"
|
|
844
|
+
#
|
|
845
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
846
|
+
# client = Google::Ads::MarketingPlatform::Admin::V1alpha::MarketingplatformAdminService::Rest::Client.new
|
|
847
|
+
#
|
|
848
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
849
|
+
# request = Google::Ads::MarketingPlatform::Admin::V1alpha::ReportPropertyUsageRequest.new
|
|
850
|
+
#
|
|
851
|
+
# # Call the report_property_usage method.
|
|
852
|
+
# result = client.report_property_usage request
|
|
853
|
+
#
|
|
854
|
+
# # The returned object is of type Google::Ads::MarketingPlatform::Admin::V1alpha::ReportPropertyUsageResponse.
|
|
855
|
+
# p result
|
|
856
|
+
#
|
|
857
|
+
def report_property_usage request, options = nil
|
|
858
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
859
|
+
|
|
860
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::MarketingPlatform::Admin::V1alpha::ReportPropertyUsageRequest
|
|
861
|
+
|
|
862
|
+
# Converts hash and nil to an options object
|
|
863
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
864
|
+
|
|
865
|
+
# Customize the options with defaults
|
|
866
|
+
call_metadata = @config.rpcs.report_property_usage.metadata.to_h
|
|
867
|
+
|
|
868
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
869
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
870
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
871
|
+
gapic_version: ::Google::Ads::MarketingPlatform::Admin::V1alpha::VERSION,
|
|
872
|
+
transports_version_send: [:rest]
|
|
873
|
+
|
|
874
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
875
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
876
|
+
|
|
877
|
+
options.apply_defaults timeout: @config.rpcs.report_property_usage.timeout,
|
|
878
|
+
metadata: call_metadata,
|
|
879
|
+
retry_policy: @config.rpcs.report_property_usage.retry_policy
|
|
880
|
+
|
|
881
|
+
options.apply_defaults timeout: @config.timeout,
|
|
882
|
+
metadata: @config.metadata,
|
|
883
|
+
retry_policy: @config.retry_policy
|
|
884
|
+
|
|
885
|
+
@marketingplatform_admin_service_stub.report_property_usage request, options do |result, operation|
|
|
886
|
+
yield result, operation if block_given?
|
|
887
|
+
end
|
|
888
|
+
rescue ::Gapic::Rest::Error => e
|
|
889
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
890
|
+
end
|
|
891
|
+
|
|
620
892
|
##
|
|
621
893
|
# Configuration class for the MarketingplatformAdminService REST API.
|
|
622
894
|
#
|
|
@@ -769,6 +1041,16 @@ module Google
|
|
|
769
1041
|
#
|
|
770
1042
|
attr_reader :get_organization
|
|
771
1043
|
##
|
|
1044
|
+
# RPC-specific configuration for `list_organizations`
|
|
1045
|
+
# @return [::Gapic::Config::Method]
|
|
1046
|
+
#
|
|
1047
|
+
attr_reader :list_organizations
|
|
1048
|
+
##
|
|
1049
|
+
# RPC-specific configuration for `find_sales_partner_managed_clients`
|
|
1050
|
+
# @return [::Gapic::Config::Method]
|
|
1051
|
+
#
|
|
1052
|
+
attr_reader :find_sales_partner_managed_clients
|
|
1053
|
+
##
|
|
772
1054
|
# RPC-specific configuration for `list_analytics_account_links`
|
|
773
1055
|
# @return [::Gapic::Config::Method]
|
|
774
1056
|
#
|
|
@@ -788,11 +1070,20 @@ module Google
|
|
|
788
1070
|
# @return [::Gapic::Config::Method]
|
|
789
1071
|
#
|
|
790
1072
|
attr_reader :set_property_service_level
|
|
1073
|
+
##
|
|
1074
|
+
# RPC-specific configuration for `report_property_usage`
|
|
1075
|
+
# @return [::Gapic::Config::Method]
|
|
1076
|
+
#
|
|
1077
|
+
attr_reader :report_property_usage
|
|
791
1078
|
|
|
792
1079
|
# @private
|
|
793
1080
|
def initialize parent_rpcs = nil
|
|
794
1081
|
get_organization_config = parent_rpcs.get_organization if parent_rpcs.respond_to? :get_organization
|
|
795
1082
|
@get_organization = ::Gapic::Config::Method.new get_organization_config
|
|
1083
|
+
list_organizations_config = parent_rpcs.list_organizations if parent_rpcs.respond_to? :list_organizations
|
|
1084
|
+
@list_organizations = ::Gapic::Config::Method.new list_organizations_config
|
|
1085
|
+
find_sales_partner_managed_clients_config = parent_rpcs.find_sales_partner_managed_clients if parent_rpcs.respond_to? :find_sales_partner_managed_clients
|
|
1086
|
+
@find_sales_partner_managed_clients = ::Gapic::Config::Method.new find_sales_partner_managed_clients_config
|
|
796
1087
|
list_analytics_account_links_config = parent_rpcs.list_analytics_account_links if parent_rpcs.respond_to? :list_analytics_account_links
|
|
797
1088
|
@list_analytics_account_links = ::Gapic::Config::Method.new list_analytics_account_links_config
|
|
798
1089
|
create_analytics_account_link_config = parent_rpcs.create_analytics_account_link if parent_rpcs.respond_to? :create_analytics_account_link
|
|
@@ -801,6 +1092,8 @@ module Google
|
|
|
801
1092
|
@delete_analytics_account_link = ::Gapic::Config::Method.new delete_analytics_account_link_config
|
|
802
1093
|
set_property_service_level_config = parent_rpcs.set_property_service_level if parent_rpcs.respond_to? :set_property_service_level
|
|
803
1094
|
@set_property_service_level = ::Gapic::Config::Method.new set_property_service_level_config
|
|
1095
|
+
report_property_usage_config = parent_rpcs.report_property_usage if parent_rpcs.respond_to? :report_property_usage
|
|
1096
|
+
@report_property_usage = ::Gapic::Config::Method.new report_property_usage_config
|
|
804
1097
|
|
|
805
1098
|
yield self if block_given?
|
|
806
1099
|
end
|
|
@@ -114,6 +114,86 @@ module Google
|
|
|
114
114
|
end
|
|
115
115
|
end
|
|
116
116
|
|
|
117
|
+
##
|
|
118
|
+
# Baseline implementation for the list_organizations REST call
|
|
119
|
+
#
|
|
120
|
+
# @param request_pb [::Google::Ads::MarketingPlatform::Admin::V1alpha::ListOrganizationsRequest]
|
|
121
|
+
# A request object representing the call parameters. Required.
|
|
122
|
+
# @param options [::Gapic::CallOptions]
|
|
123
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
124
|
+
#
|
|
125
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
126
|
+
# @yieldparam result [::Google::Ads::MarketingPlatform::Admin::V1alpha::ListOrganizationsResponse]
|
|
127
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
128
|
+
#
|
|
129
|
+
# @return [::Google::Ads::MarketingPlatform::Admin::V1alpha::ListOrganizationsResponse]
|
|
130
|
+
# A result object deserialized from the server's reply
|
|
131
|
+
def list_organizations request_pb, options = nil
|
|
132
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
133
|
+
|
|
134
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_organizations_request request_pb
|
|
135
|
+
query_string_params = if query_string_params.any?
|
|
136
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
137
|
+
else
|
|
138
|
+
{}
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
response = @client_stub.make_http_request(
|
|
142
|
+
verb,
|
|
143
|
+
uri: uri,
|
|
144
|
+
body: body || "",
|
|
145
|
+
params: query_string_params,
|
|
146
|
+
method_name: "list_organizations",
|
|
147
|
+
options: options
|
|
148
|
+
)
|
|
149
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
150
|
+
result = ::Google::Ads::MarketingPlatform::Admin::V1alpha::ListOrganizationsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
151
|
+
catch :response do
|
|
152
|
+
yield result, operation if block_given?
|
|
153
|
+
result
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
##
|
|
158
|
+
# Baseline implementation for the find_sales_partner_managed_clients REST call
|
|
159
|
+
#
|
|
160
|
+
# @param request_pb [::Google::Ads::MarketingPlatform::Admin::V1alpha::FindSalesPartnerManagedClientsRequest]
|
|
161
|
+
# A request object representing the call parameters. Required.
|
|
162
|
+
# @param options [::Gapic::CallOptions]
|
|
163
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
164
|
+
#
|
|
165
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
166
|
+
# @yieldparam result [::Google::Ads::MarketingPlatform::Admin::V1alpha::FindSalesPartnerManagedClientsResponse]
|
|
167
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
168
|
+
#
|
|
169
|
+
# @return [::Google::Ads::MarketingPlatform::Admin::V1alpha::FindSalesPartnerManagedClientsResponse]
|
|
170
|
+
# A result object deserialized from the server's reply
|
|
171
|
+
def find_sales_partner_managed_clients request_pb, options = nil
|
|
172
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
173
|
+
|
|
174
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_find_sales_partner_managed_clients_request request_pb
|
|
175
|
+
query_string_params = if query_string_params.any?
|
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
177
|
+
else
|
|
178
|
+
{}
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
response = @client_stub.make_http_request(
|
|
182
|
+
verb,
|
|
183
|
+
uri: uri,
|
|
184
|
+
body: body || "",
|
|
185
|
+
params: query_string_params,
|
|
186
|
+
method_name: "find_sales_partner_managed_clients",
|
|
187
|
+
options: options
|
|
188
|
+
)
|
|
189
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
190
|
+
result = ::Google::Ads::MarketingPlatform::Admin::V1alpha::FindSalesPartnerManagedClientsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
191
|
+
catch :response do
|
|
192
|
+
yield result, operation if block_given?
|
|
193
|
+
result
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
|
|
117
197
|
##
|
|
118
198
|
# Baseline implementation for the list_analytics_account_links REST call
|
|
119
199
|
#
|
|
@@ -274,6 +354,46 @@ module Google
|
|
|
274
354
|
end
|
|
275
355
|
end
|
|
276
356
|
|
|
357
|
+
##
|
|
358
|
+
# Baseline implementation for the report_property_usage REST call
|
|
359
|
+
#
|
|
360
|
+
# @param request_pb [::Google::Ads::MarketingPlatform::Admin::V1alpha::ReportPropertyUsageRequest]
|
|
361
|
+
# A request object representing the call parameters. Required.
|
|
362
|
+
# @param options [::Gapic::CallOptions]
|
|
363
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
364
|
+
#
|
|
365
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
366
|
+
# @yieldparam result [::Google::Ads::MarketingPlatform::Admin::V1alpha::ReportPropertyUsageResponse]
|
|
367
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
368
|
+
#
|
|
369
|
+
# @return [::Google::Ads::MarketingPlatform::Admin::V1alpha::ReportPropertyUsageResponse]
|
|
370
|
+
# A result object deserialized from the server's reply
|
|
371
|
+
def report_property_usage request_pb, options = nil
|
|
372
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
373
|
+
|
|
374
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_report_property_usage_request request_pb
|
|
375
|
+
query_string_params = if query_string_params.any?
|
|
376
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
377
|
+
else
|
|
378
|
+
{}
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
response = @client_stub.make_http_request(
|
|
382
|
+
verb,
|
|
383
|
+
uri: uri,
|
|
384
|
+
body: body || "",
|
|
385
|
+
params: query_string_params,
|
|
386
|
+
method_name: "report_property_usage",
|
|
387
|
+
options: options
|
|
388
|
+
)
|
|
389
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
390
|
+
result = ::Google::Ads::MarketingPlatform::Admin::V1alpha::ReportPropertyUsageResponse.decode_json response.body, ignore_unknown_fields: true
|
|
391
|
+
catch :response do
|
|
392
|
+
yield result, operation if block_given?
|
|
393
|
+
result
|
|
394
|
+
end
|
|
395
|
+
end
|
|
396
|
+
|
|
277
397
|
##
|
|
278
398
|
# @private
|
|
279
399
|
#
|
|
@@ -295,6 +415,47 @@ module Google
|
|
|
295
415
|
transcoder.transcode request_pb
|
|
296
416
|
end
|
|
297
417
|
|
|
418
|
+
##
|
|
419
|
+
# @private
|
|
420
|
+
#
|
|
421
|
+
# GRPC transcoding helper method for the list_organizations REST call
|
|
422
|
+
#
|
|
423
|
+
# @param request_pb [::Google::Ads::MarketingPlatform::Admin::V1alpha::ListOrganizationsRequest]
|
|
424
|
+
# A request object representing the call parameters. Required.
|
|
425
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
426
|
+
# Uri, Body, Query string parameters
|
|
427
|
+
def self.transcode_list_organizations_request request_pb
|
|
428
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
429
|
+
.with_bindings(
|
|
430
|
+
uri_method: :get,
|
|
431
|
+
uri_template: "/v1alpha/organizations",
|
|
432
|
+
matches: []
|
|
433
|
+
)
|
|
434
|
+
transcoder.transcode request_pb
|
|
435
|
+
end
|
|
436
|
+
|
|
437
|
+
##
|
|
438
|
+
# @private
|
|
439
|
+
#
|
|
440
|
+
# GRPC transcoding helper method for the find_sales_partner_managed_clients REST call
|
|
441
|
+
#
|
|
442
|
+
# @param request_pb [::Google::Ads::MarketingPlatform::Admin::V1alpha::FindSalesPartnerManagedClientsRequest]
|
|
443
|
+
# A request object representing the call parameters. Required.
|
|
444
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
445
|
+
# Uri, Body, Query string parameters
|
|
446
|
+
def self.transcode_find_sales_partner_managed_clients_request request_pb
|
|
447
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
448
|
+
.with_bindings(
|
|
449
|
+
uri_method: :post,
|
|
450
|
+
uri_template: "/v1alpha/{organization}:findSalesPartnerManagedClients",
|
|
451
|
+
body: "*",
|
|
452
|
+
matches: [
|
|
453
|
+
["organization", %r{^organizations/[^/]+/?$}, false]
|
|
454
|
+
]
|
|
455
|
+
)
|
|
456
|
+
transcoder.transcode request_pb
|
|
457
|
+
end
|
|
458
|
+
|
|
298
459
|
##
|
|
299
460
|
# @private
|
|
300
461
|
#
|
|
@@ -380,6 +541,28 @@ module Google
|
|
|
380
541
|
)
|
|
381
542
|
transcoder.transcode request_pb
|
|
382
543
|
end
|
|
544
|
+
|
|
545
|
+
##
|
|
546
|
+
# @private
|
|
547
|
+
#
|
|
548
|
+
# GRPC transcoding helper method for the report_property_usage REST call
|
|
549
|
+
#
|
|
550
|
+
# @param request_pb [::Google::Ads::MarketingPlatform::Admin::V1alpha::ReportPropertyUsageRequest]
|
|
551
|
+
# A request object representing the call parameters. Required.
|
|
552
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
553
|
+
# Uri, Body, Query string parameters
|
|
554
|
+
def self.transcode_report_property_usage_request request_pb
|
|
555
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
556
|
+
.with_bindings(
|
|
557
|
+
uri_method: :post,
|
|
558
|
+
uri_template: "/v1alpha/{organization}:reportPropertyUsage",
|
|
559
|
+
body: "*",
|
|
560
|
+
matches: [
|
|
561
|
+
["organization", %r{^organizations/[^/]+/?$}, false]
|
|
562
|
+
]
|
|
563
|
+
)
|
|
564
|
+
transcoder.transcode request_pb
|
|
565
|
+
end
|
|
383
566
|
end
|
|
384
567
|
end
|
|
385
568
|
end
|
|
@@ -10,9 +10,11 @@ require 'google/api/field_behavior_pb'
|
|
|
10
10
|
require 'google/api/resource_pb'
|
|
11
11
|
require 'google/marketingplatform/admin/v1alpha/resources_pb'
|
|
12
12
|
require 'google/protobuf/empty_pb'
|
|
13
|
+
require 'google/type/date_pb'
|
|
14
|
+
require 'google/type/money_pb'
|
|
13
15
|
|
|
14
16
|
|
|
15
|
-
descriptor_data = "\nDgoogle/marketingplatform/admin/v1alpha/marketingplatform_admin.proto\x12&google.marketingplatform.admin.v1alpha\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x36google/marketingplatform/admin/v1alpha/resources.proto\x1a\x1bgoogle/protobuf/empty.proto\"b\n\x16GetOrganizationRequest\x12H\n\x04name\x18\x01 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\n2marketingplatformadmin.googleapis.com/Organization\"\xa7\x01\n ListAnalyticsAccountLinksRequest\x12R\n\x06parent\x18\x01 \x01(\tBB\xe0\x41\x02\xfa\x41<\x12:marketingplatformadmin.googleapis.com/AnalyticsAccountLink\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x9b\x01\n!ListAnalyticsAccountLinksResponse\x12]\n\x17\x61nalytics_account_links\x18\x01 \x03(\x0b\x32<.google.marketingplatform.admin.v1alpha.AnalyticsAccountLink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xda\x01\n!CreateAnalyticsAccountLinkRequest\x12R\n\x06parent\x18\x01 \x01(\tBB\xe0\x41\x02\xfa\x41<\x12:marketingplatformadmin.googleapis.com/AnalyticsAccountLink\x12\x61\n\x16\x61nalytics_account_link\x18\x02 \x01(\x0b\x32<.google.marketingplatform.admin.v1alpha.AnalyticsAccountLinkB\x03\xe0\x41\x02\"u\n!DeleteAnalyticsAccountLinkRequest\x12P\n\x04name\x18\x01 \x01(\tBB\xe0\x41\x02\xfa\x41<\n:marketingplatformadmin.googleapis.com/AnalyticsAccountLink\"\xec\x01\n\x1eSetPropertyServiceLevelRequest\x12#\n\x16\x61nalytics_account_link\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12J\n\x12\x61nalytics_property\x18\x02 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/Property\x12Y\n\rservice_level\x18\x03 \x01(\x0e\x32=.google.marketingplatform.admin.v1alpha.AnalyticsServiceLevelB\x03\xe0\x41\x02\"!\n\x1fSetPropertyServiceLevelResponse
|
|
17
|
+
descriptor_data = "\nDgoogle/marketingplatform/admin/v1alpha/marketingplatform_admin.proto\x12&google.marketingplatform.admin.v1alpha\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x36google/marketingplatform/admin/v1alpha/resources.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x16google/type/date.proto\x1a\x17google/type/money.proto\"b\n\x16GetOrganizationRequest\x12H\n\x04name\x18\x01 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\n2marketingplatformadmin.googleapis.com/Organization\"K\n\x18ListOrganizationsRequest\x12\x16\n\tpage_size\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x81\x01\n\x19ListOrganizationsResponse\x12K\n\rorganizations\x18\x01 \x03(\x0b\x32\x34.google.marketingplatform.admin.v1alpha.Organization\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x91\x01\n%FindSalesPartnerManagedClientsRequest\x12P\n\x0corganization\x18\x01 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\n2marketingplatformadmin.googleapis.com/Organization\x12\x16\n\tis_active\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\xbf\x02\n&FindSalesPartnerManagedClientsResponse\x12n\n\x0b\x63lient_data\x18\x01 \x03(\x0b\x32Y.google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData\x1a\xa4\x01\n\nClientData\x12J\n\x0corganization\x18\x01 \x01(\x0b\x32\x34.google.marketingplatform.admin.v1alpha.Organization\x12%\n\nstart_date\x18\x02 \x01(\x0b\x32\x11.google.type.Date\x12#\n\x08\x65nd_date\x18\x03 \x01(\x0b\x32\x11.google.type.Date\"\xa7\x01\n ListAnalyticsAccountLinksRequest\x12R\n\x06parent\x18\x01 \x01(\tBB\xe0\x41\x02\xfa\x41<\x12:marketingplatformadmin.googleapis.com/AnalyticsAccountLink\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x9b\x01\n!ListAnalyticsAccountLinksResponse\x12]\n\x17\x61nalytics_account_links\x18\x01 \x03(\x0b\x32<.google.marketingplatform.admin.v1alpha.AnalyticsAccountLink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xda\x01\n!CreateAnalyticsAccountLinkRequest\x12R\n\x06parent\x18\x01 \x01(\tBB\xe0\x41\x02\xfa\x41<\x12:marketingplatformadmin.googleapis.com/AnalyticsAccountLink\x12\x61\n\x16\x61nalytics_account_link\x18\x02 \x01(\x0b\x32<.google.marketingplatform.admin.v1alpha.AnalyticsAccountLinkB\x03\xe0\x41\x02\"u\n!DeleteAnalyticsAccountLinkRequest\x12P\n\x04name\x18\x01 \x01(\tBB\xe0\x41\x02\xfa\x41<\n:marketingplatformadmin.googleapis.com/AnalyticsAccountLink\"\xec\x01\n\x1eSetPropertyServiceLevelRequest\x12#\n\x16\x61nalytics_account_link\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12J\n\x12\x61nalytics_property\x18\x02 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/Property\x12Y\n\rservice_level\x18\x03 \x01(\x0e\x32=.google.marketingplatform.admin.v1alpha.AnalyticsServiceLevelB\x03\xe0\x41\x02\"!\n\x1fSetPropertyServiceLevelResponse\"K\n\x1aReportPropertyUsageRequest\x12\x19\n\x0corganization\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05month\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xcf\x05\n\x1bReportPropertyUsageResponse\x12j\n\x0fproperty_usages\x18\x01 \x03(\x0b\x32Q.google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage\x12_\n\tbill_info\x18\x02 \x01(\x0b\x32L.google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo\x1a\xb0\x02\n\rPropertyUsage\x12\x10\n\x08property\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x12\n\naccount_id\x18\x03 \x01(\x03\x12T\n\rservice_level\x18\x04 \x01(\x0e\x32=.google.marketingplatform.admin.v1alpha.AnalyticsServiceLevel\x12T\n\rproperty_type\x18\x05 \x01(\x0e\x32=.google.marketingplatform.admin.v1alpha.AnalyticsPropertyType\x12\x19\n\x11total_event_count\x18\x06 \x01(\x03\x12\x1c\n\x14\x62illable_event_count\x18\x07 \x01(\x03\x1a\xaf\x01\n\x08\x42illInfo\x12$\n\x08\x62\x61se_fee\x18\x01 \x01(\x0b\x32\x12.google.type.Money\x12%\n\tevent_fee\x18\x02 \x01(\x0b\x32\x12.google.type.Money\x12\x33\n\x17price_protection_credit\x18\x03 \x01(\x0b\x32\x12.google.type.Money\x12!\n\x05total\x18\x04 \x01(\x0b\x32\x12.google.type.Money2\xfa\x10\n\x1dMarketingplatformAdminService\x12\xb7\x01\n\x0fGetOrganization\x12>.google.marketingplatform.admin.v1alpha.GetOrganizationRequest\x1a\x34.google.marketingplatform.admin.v1alpha.Organization\".\xda\x41\x04name\x82\xd3\xe4\x93\x02!\x12\x1f/v1alpha/{name=organizations/*}\x12\xb8\x01\n\x11ListOrganizations\x12@.google.marketingplatform.admin.v1alpha.ListOrganizationsRequest\x1a\x41.google.marketingplatform.admin.v1alpha.ListOrganizationsResponse\"\x1e\x82\xd3\xe4\x93\x02\x18\x12\x16/v1alpha/organizations\x12\x92\x02\n\x1e\x46indSalesPartnerManagedClients\x12M.google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest\x1aN.google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse\"Q\x82\xd3\xe4\x93\x02K\"F/v1alpha/{organization=organizations/*}:findSalesPartnerManagedClients:\x01*\x12\xfa\x01\n\x19ListAnalyticsAccountLinks\x12H.google.marketingplatform.admin.v1alpha.ListAnalyticsAccountLinksRequest\x1aI.google.marketingplatform.admin.v1alpha.ListAnalyticsAccountLinksResponse\"H\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x39\x12\x37/v1alpha/{parent=organizations/*}/analyticsAccountLinks\x12\x9e\x02\n\x1a\x43reateAnalyticsAccountLink\x12I.google.marketingplatform.admin.v1alpha.CreateAnalyticsAccountLinkRequest\x1a<.google.marketingplatform.admin.v1alpha.AnalyticsAccountLink\"w\xda\x41\x1dparent,analytics_account_link\x82\xd3\xe4\x93\x02Q\"7/v1alpha/{parent=organizations/*}/analyticsAccountLinks:\x16\x61nalytics_account_link\x12\xc7\x01\n\x1a\x44\x65leteAnalyticsAccountLink\x12I.google.marketingplatform.admin.v1alpha.DeleteAnalyticsAccountLinkRequest\x1a\x16.google.protobuf.Empty\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39*7/v1alpha/{name=organizations/*/analyticsAccountLinks/*}\x12\xb2\x02\n\x17SetPropertyServiceLevel\x12\x46.google.marketingplatform.admin.v1alpha.SetPropertyServiceLevelRequest\x1aG.google.marketingplatform.admin.v1alpha.SetPropertyServiceLevelResponse\"\x85\x01\xda\x41\x16\x61nalytics_account_link\x82\xd3\xe4\x93\x02\x66\"a/v1alpha/{analytics_account_link=organizations/*/analyticsAccountLinks/*}:setPropertyServiceLevel:\x01*\x12\xf5\x01\n\x13ReportPropertyUsage\x12\x42.google.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest\x1a\x43.google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse\"U\xda\x41\x0corganization\x82\xd3\xe4\x93\x02@\";/v1alpha/{organization=organizations/*}:reportPropertyUsage:\x01*\x1a\xb9\x01\xca\x41%marketingplatformadmin.googleapis.com\xd2\x41\x8d\x01https://www.googleapis.com/auth/marketingplatformadmin.analytics.read,https://www.googleapis.com/auth/marketingplatformadmin.analytics.updateB\xe9\x02\n.com.google.ads.marketingplatform.admin.v1alphaB\x1bMarketingplatformAdminProtoP\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/Property\x12\x15properties/{property}b\x06proto3"
|
|
16
18
|
|
|
17
19
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
18
20
|
|
|
@@ -27,7 +29,9 @@ rescue TypeError
|
|
|
27
29
|
file = pool.add_serialized_file(serialized)
|
|
28
30
|
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
29
31
|
imports = [
|
|
30
|
-
["google.marketingplatform.admin.v1alpha.
|
|
32
|
+
["google.marketingplatform.admin.v1alpha.Organization", "google/marketingplatform/admin/v1alpha/resources.proto"],
|
|
33
|
+
["google.type.Date", "google/type/date.proto"],
|
|
34
|
+
["google.type.Money", "google/type/money.proto"],
|
|
31
35
|
]
|
|
32
36
|
imports.each do |type_name, expected_filename|
|
|
33
37
|
import_file = pool.lookup(type_name).file_descriptor
|
|
@@ -45,13 +49,21 @@ module Google
|
|
|
45
49
|
module Admin
|
|
46
50
|
module V1alpha
|
|
47
51
|
GetOrganizationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.GetOrganizationRequest").msgclass
|
|
52
|
+
ListOrganizationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.ListOrganizationsRequest").msgclass
|
|
53
|
+
ListOrganizationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.ListOrganizationsResponse").msgclass
|
|
54
|
+
FindSalesPartnerManagedClientsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest").msgclass
|
|
55
|
+
FindSalesPartnerManagedClientsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse").msgclass
|
|
56
|
+
FindSalesPartnerManagedClientsResponse::ClientData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData").msgclass
|
|
48
57
|
ListAnalyticsAccountLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.ListAnalyticsAccountLinksRequest").msgclass
|
|
49
58
|
ListAnalyticsAccountLinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.ListAnalyticsAccountLinksResponse").msgclass
|
|
50
59
|
CreateAnalyticsAccountLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.CreateAnalyticsAccountLinkRequest").msgclass
|
|
51
60
|
DeleteAnalyticsAccountLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.DeleteAnalyticsAccountLinkRequest").msgclass
|
|
52
61
|
SetPropertyServiceLevelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.SetPropertyServiceLevelRequest").msgclass
|
|
53
62
|
SetPropertyServiceLevelResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.SetPropertyServiceLevelResponse").msgclass
|
|
54
|
-
|
|
63
|
+
ReportPropertyUsageRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest").msgclass
|
|
64
|
+
ReportPropertyUsageResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse").msgclass
|
|
65
|
+
ReportPropertyUsageResponse::PropertyUsage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage").msgclass
|
|
66
|
+
ReportPropertyUsageResponse::BillInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo").msgclass
|
|
55
67
|
end
|
|
56
68
|
end
|
|
57
69
|
end
|