google-ads-data_manager-v1 0.5.0 → 0.7.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/README.md +1 -1
- data/lib/google/ads/data_manager/v1/ingestion_service/client.rb +95 -0
- data/lib/google/ads/data_manager/v1/ingestion_service/rest/client.rb +96 -0
- data/lib/google/ads/data_manager/v1/ingestion_service/rest/service_stub.rb +60 -0
- data/lib/google/ads/data_manager/v1/marketing_data_insights_service/client.rb +2 -0
- data/lib/google/ads/data_manager/v1/marketing_data_insights_service/rest/client.rb +2 -0
- data/lib/google/ads/data_manager/v1/partner_link_service/client.rb +2 -0
- data/lib/google/ads/data_manager/v1/partner_link_service/rest/client.rb +2 -0
- data/lib/google/ads/data_manager/v1/user_list_direct_license_service/client.rb +2 -0
- data/lib/google/ads/data_manager/v1/user_list_direct_license_service/rest/client.rb +2 -0
- data/lib/google/ads/data_manager/v1/user_list_global_license_service/client.rb +2 -0
- data/lib/google/ads/data_manager/v1/user_list_global_license_service/rest/client.rb +2 -0
- data/lib/google/ads/data_manager/v1/user_list_service/client.rb +2 -0
- data/lib/google/ads/data_manager/v1/user_list_service/rest/client.rb +2 -0
- data/lib/google/ads/data_manager/v1/version.rb +1 -1
- data/lib/google/ads/datamanager/v1/ad_event_pb.rb +36 -0
- data/lib/google/ads/datamanager/v1/destination_pb.rb +1 -1
- data/lib/google/ads/datamanager/v1/device_info_pb.rb +2 -1
- data/lib/google/ads/datamanager/v1/encryption_info_pb.rb +2 -1
- data/lib/google/ads/datamanager/v1/ingestion_service_pb.rb +4 -1
- data/lib/google/ads/datamanager/v1/ingestion_service_services_pb.rb +6 -0
- data/lib/google/ads/datamanager/v1/partner_link_service_pb.rb +4 -1
- data/lib/google/ads/datamanager/v1/viewability_info_pb.rb +26 -0
- data/proto_docs/google/ads/datamanager/v1/ad_event.rb +405 -0
- data/proto_docs/google/ads/datamanager/v1/destination.rb +1 -1
- data/proto_docs/google/ads/datamanager/v1/encryption_info.rb +23 -2
- data/proto_docs/google/ads/datamanager/v1/error.rb +2 -0
- data/proto_docs/google/ads/datamanager/v1/ingestion_service.rb +22 -0
- data/proto_docs/google/ads/datamanager/v1/partner_link_service.rb +54 -0
- data/proto_docs/google/ads/datamanager/v1/viewability_info.rb +91 -0
- metadata +7 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1917d73d1f27158e244ef7b420959f33ff3eddc56693447480a1bdddb71b2128
|
|
4
|
+
data.tar.gz: ce9ff68f5942e02688dbeca34a8bcd456285d2dc64969974737e5318f1a76101
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 897587ce64d531710d66536c8d1f224f00e7dc22f969c8eb86e0effb9fcc1efc3840521582f09e7fcb0f4f4803f664e92a517b8c893544d81f396eb31687df4c
|
|
7
|
+
data.tar.gz: 8c6ab2d2da4bfa3a39855a01e9e020ec18aab7cb7172ce50ec4118c5725cf5bbe82ac46f03e9f1de05c4c5fffe54db9cb025d4366a14e33a23d973c53fe895e0
|
data/README.md
CHANGED
|
@@ -86,7 +86,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
|
86
86
|
|
|
87
87
|
## Supported Ruby Versions
|
|
88
88
|
|
|
89
|
-
This library is supported on Ruby 3.
|
|
89
|
+
This library is supported on Ruby 3.2+.
|
|
90
90
|
|
|
91
91
|
Google provides official support for Ruby versions that are actively supported
|
|
92
92
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
|
@@ -483,6 +483,92 @@ module Google
|
|
|
483
483
|
raise ::Google::Cloud::Error.from_error(e)
|
|
484
484
|
end
|
|
485
485
|
|
|
486
|
+
##
|
|
487
|
+
# Uploads a list of
|
|
488
|
+
# {::Google::Ads::DataManager::V1::AdEvent AdEvent} resources to Google
|
|
489
|
+
# Analytics.
|
|
490
|
+
#
|
|
491
|
+
# This feature is only available to accounts on an allowlist.
|
|
492
|
+
#
|
|
493
|
+
# @overload ingest_ad_events(request, options = nil)
|
|
494
|
+
# Pass arguments to `ingest_ad_events` via a request object, either of type
|
|
495
|
+
# {::Google::Ads::DataManager::V1::IngestAdEventsRequest} or an equivalent Hash.
|
|
496
|
+
#
|
|
497
|
+
# @param request [::Google::Ads::DataManager::V1::IngestAdEventsRequest, ::Hash]
|
|
498
|
+
# A request object representing the call parameters. Required. To specify no
|
|
499
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
500
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
501
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
502
|
+
#
|
|
503
|
+
# @overload ingest_ad_events(ad_events: nil, encryption_info: nil, validate_only: nil)
|
|
504
|
+
# Pass arguments to `ingest_ad_events` via keyword arguments. Note that at
|
|
505
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
506
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
507
|
+
#
|
|
508
|
+
# @param ad_events [::Array<::Google::Ads::DataManager::V1::AdEvent, ::Hash>]
|
|
509
|
+
# Required. Required (at least 1). A list of ad events.
|
|
510
|
+
# @param encryption_info [::Google::Ads::DataManager::V1::EncryptionInfo, ::Hash]
|
|
511
|
+
# Optional. Information about encryption keys which are used to encrypt the
|
|
512
|
+
# data.
|
|
513
|
+
# @param validate_only [::Boolean]
|
|
514
|
+
# Optional. If true, the request is validated, but not executed.
|
|
515
|
+
#
|
|
516
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
517
|
+
# @yieldparam response [::Google::Ads::DataManager::V1::IngestAdEventsResponse]
|
|
518
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
519
|
+
#
|
|
520
|
+
# @return [::Google::Ads::DataManager::V1::IngestAdEventsResponse]
|
|
521
|
+
#
|
|
522
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
523
|
+
#
|
|
524
|
+
# @example Basic example
|
|
525
|
+
# require "google/ads/data_manager/v1"
|
|
526
|
+
#
|
|
527
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
528
|
+
# client = Google::Ads::DataManager::V1::IngestionService::Client.new
|
|
529
|
+
#
|
|
530
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
531
|
+
# request = Google::Ads::DataManager::V1::IngestAdEventsRequest.new
|
|
532
|
+
#
|
|
533
|
+
# # Call the ingest_ad_events method.
|
|
534
|
+
# result = client.ingest_ad_events request
|
|
535
|
+
#
|
|
536
|
+
# # The returned object is of type Google::Ads::DataManager::V1::IngestAdEventsResponse.
|
|
537
|
+
# p result
|
|
538
|
+
#
|
|
539
|
+
def ingest_ad_events request, options = nil
|
|
540
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
541
|
+
|
|
542
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::DataManager::V1::IngestAdEventsRequest
|
|
543
|
+
|
|
544
|
+
# Converts hash and nil to an options object
|
|
545
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
546
|
+
|
|
547
|
+
# Customize the options with defaults
|
|
548
|
+
metadata = @config.rpcs.ingest_ad_events.metadata.to_h
|
|
549
|
+
|
|
550
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
551
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
552
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
553
|
+
gapic_version: ::Google::Ads::DataManager::V1::VERSION
|
|
554
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
555
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
556
|
+
|
|
557
|
+
options.apply_defaults timeout: @config.rpcs.ingest_ad_events.timeout,
|
|
558
|
+
metadata: metadata,
|
|
559
|
+
retry_policy: @config.rpcs.ingest_ad_events.retry_policy
|
|
560
|
+
|
|
561
|
+
options.apply_defaults timeout: @config.timeout,
|
|
562
|
+
metadata: @config.metadata,
|
|
563
|
+
retry_policy: @config.retry_policy
|
|
564
|
+
|
|
565
|
+
@ingestion_service_stub.call_rpc :ingest_ad_events, request, options: options do |response, operation|
|
|
566
|
+
yield response, operation if block_given?
|
|
567
|
+
end
|
|
568
|
+
rescue ::GRPC::BadStatus => e
|
|
569
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
570
|
+
end
|
|
571
|
+
|
|
486
572
|
##
|
|
487
573
|
# Gets the status of a request given request id.
|
|
488
574
|
#
|
|
@@ -656,6 +742,7 @@ module Google
|
|
|
656
742
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
657
743
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
658
744
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
745
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
659
746
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
660
747
|
# trigger a retry.
|
|
661
748
|
# @return [::Hash]
|
|
@@ -739,6 +826,7 @@ module Google
|
|
|
739
826
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
740
827
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
741
828
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
829
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
742
830
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
743
831
|
# trigger a retry.
|
|
744
832
|
#
|
|
@@ -759,6 +847,11 @@ module Google
|
|
|
759
847
|
#
|
|
760
848
|
attr_reader :ingest_events
|
|
761
849
|
##
|
|
850
|
+
# RPC-specific configuration for `ingest_ad_events`
|
|
851
|
+
# @return [::Gapic::Config::Method]
|
|
852
|
+
#
|
|
853
|
+
attr_reader :ingest_ad_events
|
|
854
|
+
##
|
|
762
855
|
# RPC-specific configuration for `retrieve_request_status`
|
|
763
856
|
# @return [::Gapic::Config::Method]
|
|
764
857
|
#
|
|
@@ -772,6 +865,8 @@ module Google
|
|
|
772
865
|
@remove_audience_members = ::Gapic::Config::Method.new remove_audience_members_config
|
|
773
866
|
ingest_events_config = parent_rpcs.ingest_events if parent_rpcs.respond_to? :ingest_events
|
|
774
867
|
@ingest_events = ::Gapic::Config::Method.new ingest_events_config
|
|
868
|
+
ingest_ad_events_config = parent_rpcs.ingest_ad_events if parent_rpcs.respond_to? :ingest_ad_events
|
|
869
|
+
@ingest_ad_events = ::Gapic::Config::Method.new ingest_ad_events_config
|
|
775
870
|
retrieve_request_status_config = parent_rpcs.retrieve_request_status if parent_rpcs.respond_to? :retrieve_request_status
|
|
776
871
|
@retrieve_request_status = ::Gapic::Config::Method.new retrieve_request_status_config
|
|
777
872
|
|
|
@@ -479,6 +479,93 @@ module Google
|
|
|
479
479
|
raise ::Google::Cloud::Error.from_error(e)
|
|
480
480
|
end
|
|
481
481
|
|
|
482
|
+
##
|
|
483
|
+
# Uploads a list of
|
|
484
|
+
# {::Google::Ads::DataManager::V1::AdEvent AdEvent} resources to Google
|
|
485
|
+
# Analytics.
|
|
486
|
+
#
|
|
487
|
+
# This feature is only available to accounts on an allowlist.
|
|
488
|
+
#
|
|
489
|
+
# @overload ingest_ad_events(request, options = nil)
|
|
490
|
+
# Pass arguments to `ingest_ad_events` via a request object, either of type
|
|
491
|
+
# {::Google::Ads::DataManager::V1::IngestAdEventsRequest} or an equivalent Hash.
|
|
492
|
+
#
|
|
493
|
+
# @param request [::Google::Ads::DataManager::V1::IngestAdEventsRequest, ::Hash]
|
|
494
|
+
# A request object representing the call parameters. Required. To specify no
|
|
495
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
496
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
497
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
498
|
+
#
|
|
499
|
+
# @overload ingest_ad_events(ad_events: nil, encryption_info: nil, validate_only: nil)
|
|
500
|
+
# Pass arguments to `ingest_ad_events` via keyword arguments. Note that at
|
|
501
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
502
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
503
|
+
#
|
|
504
|
+
# @param ad_events [::Array<::Google::Ads::DataManager::V1::AdEvent, ::Hash>]
|
|
505
|
+
# Required. Required (at least 1). A list of ad events.
|
|
506
|
+
# @param encryption_info [::Google::Ads::DataManager::V1::EncryptionInfo, ::Hash]
|
|
507
|
+
# Optional. Information about encryption keys which are used to encrypt the
|
|
508
|
+
# data.
|
|
509
|
+
# @param validate_only [::Boolean]
|
|
510
|
+
# Optional. If true, the request is validated, but not executed.
|
|
511
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
512
|
+
# @yieldparam result [::Google::Ads::DataManager::V1::IngestAdEventsResponse]
|
|
513
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
514
|
+
#
|
|
515
|
+
# @return [::Google::Ads::DataManager::V1::IngestAdEventsResponse]
|
|
516
|
+
#
|
|
517
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
518
|
+
#
|
|
519
|
+
# @example Basic example
|
|
520
|
+
# require "google/ads/data_manager/v1"
|
|
521
|
+
#
|
|
522
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
523
|
+
# client = Google::Ads::DataManager::V1::IngestionService::Rest::Client.new
|
|
524
|
+
#
|
|
525
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
526
|
+
# request = Google::Ads::DataManager::V1::IngestAdEventsRequest.new
|
|
527
|
+
#
|
|
528
|
+
# # Call the ingest_ad_events method.
|
|
529
|
+
# result = client.ingest_ad_events request
|
|
530
|
+
#
|
|
531
|
+
# # The returned object is of type Google::Ads::DataManager::V1::IngestAdEventsResponse.
|
|
532
|
+
# p result
|
|
533
|
+
#
|
|
534
|
+
def ingest_ad_events request, options = nil
|
|
535
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
536
|
+
|
|
537
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::DataManager::V1::IngestAdEventsRequest
|
|
538
|
+
|
|
539
|
+
# Converts hash and nil to an options object
|
|
540
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
541
|
+
|
|
542
|
+
# Customize the options with defaults
|
|
543
|
+
call_metadata = @config.rpcs.ingest_ad_events.metadata.to_h
|
|
544
|
+
|
|
545
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
546
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
547
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
548
|
+
gapic_version: ::Google::Ads::DataManager::V1::VERSION,
|
|
549
|
+
transports_version_send: [:rest]
|
|
550
|
+
|
|
551
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
552
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
553
|
+
|
|
554
|
+
options.apply_defaults timeout: @config.rpcs.ingest_ad_events.timeout,
|
|
555
|
+
metadata: call_metadata,
|
|
556
|
+
retry_policy: @config.rpcs.ingest_ad_events.retry_policy
|
|
557
|
+
|
|
558
|
+
options.apply_defaults timeout: @config.timeout,
|
|
559
|
+
metadata: @config.metadata,
|
|
560
|
+
retry_policy: @config.retry_policy
|
|
561
|
+
|
|
562
|
+
@ingestion_service_stub.ingest_ad_events request, options do |result, operation|
|
|
563
|
+
yield result, operation if block_given?
|
|
564
|
+
end
|
|
565
|
+
rescue ::Gapic::Rest::Error => e
|
|
566
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
567
|
+
end
|
|
568
|
+
|
|
482
569
|
##
|
|
483
570
|
# Gets the status of a request given request id.
|
|
484
571
|
#
|
|
@@ -627,6 +714,7 @@ module Google
|
|
|
627
714
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
628
715
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
629
716
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
717
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
630
718
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
631
719
|
# trigger a retry.
|
|
632
720
|
# @return [::Hash]
|
|
@@ -699,6 +787,7 @@ module Google
|
|
|
699
787
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
700
788
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
701
789
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
790
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
702
791
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
703
792
|
# trigger a retry.
|
|
704
793
|
#
|
|
@@ -719,6 +808,11 @@ module Google
|
|
|
719
808
|
#
|
|
720
809
|
attr_reader :ingest_events
|
|
721
810
|
##
|
|
811
|
+
# RPC-specific configuration for `ingest_ad_events`
|
|
812
|
+
# @return [::Gapic::Config::Method]
|
|
813
|
+
#
|
|
814
|
+
attr_reader :ingest_ad_events
|
|
815
|
+
##
|
|
722
816
|
# RPC-specific configuration for `retrieve_request_status`
|
|
723
817
|
# @return [::Gapic::Config::Method]
|
|
724
818
|
#
|
|
@@ -732,6 +826,8 @@ module Google
|
|
|
732
826
|
@remove_audience_members = ::Gapic::Config::Method.new remove_audience_members_config
|
|
733
827
|
ingest_events_config = parent_rpcs.ingest_events if parent_rpcs.respond_to? :ingest_events
|
|
734
828
|
@ingest_events = ::Gapic::Config::Method.new ingest_events_config
|
|
829
|
+
ingest_ad_events_config = parent_rpcs.ingest_ad_events if parent_rpcs.respond_to? :ingest_ad_events
|
|
830
|
+
@ingest_ad_events = ::Gapic::Config::Method.new ingest_ad_events_config
|
|
735
831
|
retrieve_request_status_config = parent_rpcs.retrieve_request_status if parent_rpcs.respond_to? :retrieve_request_status
|
|
736
832
|
@retrieve_request_status = ::Gapic::Config::Method.new retrieve_request_status_config
|
|
737
833
|
|
|
@@ -193,6 +193,46 @@ module Google
|
|
|
193
193
|
end
|
|
194
194
|
end
|
|
195
195
|
|
|
196
|
+
##
|
|
197
|
+
# Baseline implementation for the ingest_ad_events REST call
|
|
198
|
+
#
|
|
199
|
+
# @param request_pb [::Google::Ads::DataManager::V1::IngestAdEventsRequest]
|
|
200
|
+
# A request object representing the call parameters. Required.
|
|
201
|
+
# @param options [::Gapic::CallOptions]
|
|
202
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
203
|
+
#
|
|
204
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
205
|
+
# @yieldparam result [::Google::Ads::DataManager::V1::IngestAdEventsResponse]
|
|
206
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
207
|
+
#
|
|
208
|
+
# @return [::Google::Ads::DataManager::V1::IngestAdEventsResponse]
|
|
209
|
+
# A result object deserialized from the server's reply
|
|
210
|
+
def ingest_ad_events request_pb, options = nil
|
|
211
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
212
|
+
|
|
213
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_ingest_ad_events_request request_pb
|
|
214
|
+
query_string_params = if query_string_params.any?
|
|
215
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
216
|
+
else
|
|
217
|
+
{}
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
response = @client_stub.make_http_request(
|
|
221
|
+
verb,
|
|
222
|
+
uri: uri,
|
|
223
|
+
body: body || "",
|
|
224
|
+
params: query_string_params,
|
|
225
|
+
method_name: "ingest_ad_events",
|
|
226
|
+
options: options
|
|
227
|
+
)
|
|
228
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
229
|
+
result = ::Google::Ads::DataManager::V1::IngestAdEventsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
230
|
+
catch :response do
|
|
231
|
+
yield result, operation if block_given?
|
|
232
|
+
result
|
|
233
|
+
end
|
|
234
|
+
end
|
|
235
|
+
|
|
196
236
|
##
|
|
197
237
|
# Baseline implementation for the retrieve_request_status REST call
|
|
198
238
|
#
|
|
@@ -293,6 +333,26 @@ module Google
|
|
|
293
333
|
transcoder.transcode request_pb
|
|
294
334
|
end
|
|
295
335
|
|
|
336
|
+
##
|
|
337
|
+
# @private
|
|
338
|
+
#
|
|
339
|
+
# GRPC transcoding helper method for the ingest_ad_events REST call
|
|
340
|
+
#
|
|
341
|
+
# @param request_pb [::Google::Ads::DataManager::V1::IngestAdEventsRequest]
|
|
342
|
+
# A request object representing the call parameters. Required.
|
|
343
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
344
|
+
# Uri, Body, Query string parameters
|
|
345
|
+
def self.transcode_ingest_ad_events_request request_pb
|
|
346
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
347
|
+
.with_bindings(
|
|
348
|
+
uri_method: :post,
|
|
349
|
+
uri_template: "/v1/adEvents:ingest",
|
|
350
|
+
body: "*",
|
|
351
|
+
matches: []
|
|
352
|
+
)
|
|
353
|
+
transcoder.transcode request_pb
|
|
354
|
+
end
|
|
355
|
+
|
|
296
356
|
##
|
|
297
357
|
# @private
|
|
298
358
|
#
|
|
@@ -384,6 +384,7 @@ module Google
|
|
|
384
384
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
385
385
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
386
386
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
387
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
387
388
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
388
389
|
# trigger a retry.
|
|
389
390
|
# @return [::Hash]
|
|
@@ -467,6 +468,7 @@ module Google
|
|
|
467
468
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
468
469
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
469
470
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
471
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
470
472
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
471
473
|
# trigger a retry.
|
|
472
474
|
#
|
|
@@ -344,6 +344,7 @@ module Google
|
|
|
344
344
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
345
345
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
346
346
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
347
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
347
348
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
348
349
|
# trigger a retry.
|
|
349
350
|
# @return [::Hash]
|
|
@@ -416,6 +417,7 @@ module Google
|
|
|
416
417
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
417
418
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
418
419
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
420
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
419
421
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
420
422
|
# trigger a retry.
|
|
421
423
|
#
|
|
@@ -615,6 +615,7 @@ module Google
|
|
|
615
615
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
616
616
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
617
617
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
618
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
618
619
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
619
620
|
# trigger a retry.
|
|
620
621
|
# @return [::Hash]
|
|
@@ -698,6 +699,7 @@ module Google
|
|
|
698
699
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
699
700
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
700
701
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
702
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
701
703
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
702
704
|
# trigger a retry.
|
|
703
705
|
#
|
|
@@ -561,6 +561,7 @@ module Google
|
|
|
561
561
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
562
562
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
563
563
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
564
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
564
565
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
565
566
|
# trigger a retry.
|
|
566
567
|
# @return [::Hash]
|
|
@@ -633,6 +634,7 @@ module Google
|
|
|
633
634
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
634
635
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
635
636
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
637
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
636
638
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
637
639
|
# trigger a retry.
|
|
638
640
|
#
|
|
@@ -682,6 +682,7 @@ module Google
|
|
|
682
682
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
683
683
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
684
684
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
685
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
685
686
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
686
687
|
# trigger a retry.
|
|
687
688
|
# @return [::Hash]
|
|
@@ -765,6 +766,7 @@ module Google
|
|
|
765
766
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
766
767
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
767
768
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
769
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
768
770
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
769
771
|
# trigger a retry.
|
|
770
772
|
#
|
|
@@ -621,6 +621,7 @@ module Google
|
|
|
621
621
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
622
622
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
623
623
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
624
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
624
625
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
625
626
|
# trigger a retry.
|
|
626
627
|
# @return [::Hash]
|
|
@@ -693,6 +694,7 @@ module Google
|
|
|
693
694
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
694
695
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
695
696
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
697
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
696
698
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
697
699
|
# trigger a retry.
|
|
698
700
|
#
|
|
@@ -817,6 +817,7 @@ module Google
|
|
|
817
817
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
818
818
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
819
819
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
820
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
820
821
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
821
822
|
# trigger a retry.
|
|
822
823
|
# @return [::Hash]
|
|
@@ -900,6 +901,7 @@ module Google
|
|
|
900
901
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
901
902
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
902
903
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
904
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
903
905
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
904
906
|
# trigger a retry.
|
|
905
907
|
#
|
|
@@ -749,6 +749,7 @@ module Google
|
|
|
749
749
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
750
750
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
751
751
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
752
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
752
753
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
753
754
|
# trigger a retry.
|
|
754
755
|
# @return [::Hash]
|
|
@@ -821,6 +822,7 @@ module Google
|
|
|
821
822
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
822
823
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
823
824
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
825
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
824
826
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
825
827
|
# trigger a retry.
|
|
826
828
|
#
|
|
@@ -834,6 +834,7 @@ module Google
|
|
|
834
834
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
835
835
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
836
836
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
837
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
837
838
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
838
839
|
# trigger a retry.
|
|
839
840
|
# @return [::Hash]
|
|
@@ -917,6 +918,7 @@ module Google
|
|
|
917
918
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
918
919
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
919
920
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
921
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
920
922
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
921
923
|
# trigger a retry.
|
|
922
924
|
#
|
|
@@ -766,6 +766,7 @@ module Google
|
|
|
766
766
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
767
767
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
768
768
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
769
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
769
770
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
770
771
|
# trigger a retry.
|
|
771
772
|
# @return [::Hash]
|
|
@@ -838,6 +839,7 @@ module Google
|
|
|
838
839
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
839
840
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
840
841
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
842
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
841
843
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
842
844
|
# trigger a retry.
|
|
843
845
|
#
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/ads/datamanager/v1/ad_event.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/ads/datamanager/v1/device_info_pb'
|
|
8
|
+
require 'google/ads/datamanager/v1/user_data_pb'
|
|
9
|
+
require 'google/ads/datamanager/v1/viewability_info_pb'
|
|
10
|
+
require 'google/api/field_behavior_pb'
|
|
11
|
+
require 'google/protobuf/timestamp_pb'
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
descriptor_data = "\n(google/ads/datamanager/v1/ad_event.proto\x12\x19google.ads.datamanager.v1\x1a+google/ads/datamanager/v1/device_info.proto\x1a)google/ads/datamanager/v1/user_data.proto\x1a\x30google/ads/datamanager/v1/viewability_info.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa0\x0e\n\x07\x41\x64\x45vent\x12\x1a\n\radvertiser_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x45\n\nevent_type\x18\x02 \x01(\x0e\x32,.google.ads.datamanager.v1.AdEvent.EventTypeB\x03\xe0\x41\x02\x12H\n\revent_subtype\x18\x03 \x01(\x0e\x32/.google.ads.datamanager.v1.AdEvent.EventSubtypeH\x00\x12\x1e\n\x14\x65vent_subtype_string\x18\x04 \x01(\tH\x00\x12\x32\n\ttimestamp\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x15\n\x08\x65vent_id\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12;\n\tuser_data\x18\x07 \x01(\x0b\x32#.google.ads.datamanager.v1.UserDataB\x03\xe0\x41\x01\x12?\n\x0b\x64\x65vice_info\x18\x08 \x01(\x0b\x32%.google.ads.datamanager.v1.DeviceInfoB\x03\xe0\x41\x01\x12\x1d\n\x10mobile_device_id\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x63\x61mpaign_id\x18\n \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rcampaign_name\x18\x0b \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x61\x64_group_id\x18\x0c \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x61\x64_id\x18\r \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x07\x61\x64_type\x18\x0e \x01(\x0e\x32!.google.ads.datamanager.v1.AdTypeH\x01\x12\x18\n\x0e\x61\x64_type_string\x18\x0f \x01(\tH\x01\x12\x38\n\tad_format\x18\x10 \x01(\x0e\x32#.google.ads.datamanager.v1.AdFormatH\x02\x12\x1a\n\x10\x61\x64_format_string\x18\x11 \x01(\tH\x02\x12>\n\x0c\x61\x64_placement\x18\x12 \x01(\x0e\x32&.google.ads.datamanager.v1.AdPlacementH\x03\x12\x1d\n\x13\x61\x64_placement_string\x18\x13 \x01(\tH\x03\x12\x16\n\tad_height\x18\x14 \x01(\x05\x42\x03\xe0\x41\x01\x12\x15\n\x08\x61\x64_width\x18\x15 \x01(\x05\x42\x03\xe0\x41\x01\x12\x18\n\x0bregion_code\x18\x16 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06source\x18\x17 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06medium\x18\x18 \x01(\tB\x03\xe0\x41\x02\x12\x42\n\x0etargeting_type\x18\x19 \x01(\x0e\x32(.google.ads.datamanager.v1.TargetingTypeH\x04\x12\x1f\n\x15targeting_type_string\x18\x1a \x01(\tH\x04\x12@\n\rplatform_type\x18\x1b \x01(\x0e\x32\'.google.ads.datamanager.v1.PlatformTypeH\x05\x12\x1e\n\x14platform_type_string\x18\x1c \x01(\tH\x05\x12\x37\n\x08platform\x18\x1d \x01(\x0e\x32#.google.ads.datamanager.v1.PlatformH\x06\x12\x19\n\x0fplatform_string\x18\x1e \x01(\tH\x06\x12I\n\x10\x61ttribution_hint\x18\x1f \x01(\x0e\x32*.google.ads.datamanager.v1.AttributionHintB\x03\xe0\x41\x01\x12I\n\x10viewability_info\x18 \x01(\x0b\x32*.google.ads.datamanager.v1.ViewabilityInfoB\x03\xe0\x41\x02\x12%\n\x13measurement_allowed\x18! \x01(\x08\x42\x03\xe0\x41\x01H\x07\x88\x01\x01\"R\n\tEventType\x12\x1a\n\x16\x45VENT_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x45VENT_TYPE_VIEW\x10\x01\x12\x14\n\x10\x45VENT_TYPE_CLICK\x10\x02\"\xad\x01\n\x0c\x45ventSubtype\x12\x1d\n\x19\x45VENT_SUBTYPE_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x45VENT_SUBTYPE_IMPRESSION\x10\x01\x12\x1e\n\x1a\x45VENT_SUBTYPE_ENGAGED_VIEW\x10\x02\x12\x1e\n\x1a\x45VENT_SUBTYPE_ONSITE_CLICK\x10\x03\x12 \n\x1c\x45VENT_SUBTYPE_OUTBOUND_CLICK\x10\x04\x42\x15\n\x13\x65vent_subtype_oneofB\x0f\n\rad_type_oneofB\x11\n\x0f\x61\x64_format_oneofB\x14\n\x12\x61\x64_placement_oneofB\x16\n\x14targeting_type_oneofB\x15\n\x13platform_type_oneofB\x10\n\x0eplatform_oneofB\x16\n\x14_measurement_allowed*\xab\x01\n\x06\x41\x64Type\x12\x17\n\x13\x41\x44_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x41\x44_TYPE_DISPLAY\x10\x01\x12\x10\n\x0c\x41\x44_TYPE_TEXT\x10\x02\x12\x11\n\rAD_TYPE_IMAGE\x10\x03\x12\x16\n\x12\x41\x44_TYPE_RICH_MEDIA\x10\x04\x12\x10\n\x0c\x41\x44_TYPE_HTML\x10\x05\x12\x11\n\rAD_TYPE_AUDIO\x10\x06\x12\x11\n\rAD_TYPE_VIDEO\x10\x07*\xdf\x03\n\x08\x41\x64\x46ormat\x12\x19\n\x15\x41\x44_FORMAT_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x41\x44_FORMAT_AR\x10\x01\x12\x13\n\x0f\x41\x44_FORMAT_AUDIO\x10\x02\x12\x14\n\x10\x41\x44_FORMAT_BANNER\x10\x03\x12\x14\n\x10\x41\x44_FORMAT_BUMPER\x10\x04\x12\x16\n\x12\x41\x44_FORMAT_CAROUSEL\x10\x05\x12\x18\n\x14\x41\x44_FORMAT_COLLECTION\x10\x06\x12\x13\n\x0f\x41\x44_FORMAT_IMAGE\x10\x07\x12\x19\n\x15\x41\x44_FORMAT_INTERACTIVE\x10\x08\x12\x1a\n\x16\x41\x44_FORMAT_INTERSTITIAL\x10\t\x12\x15\n\x11\x41\x44_FORMAT_IN_FEED\x10\n\x12\x17\n\x13\x41\x44_FORMAT_IN_STREAM\x10\x0b\x12!\n\x1d\x41\x44_FORMAT_IN_STREAM_SKIPPABLE\x10\x0c\x12%\n!AD_FORMAT_IN_STREAM_NON_SKIPPABLE\x10\r\x12\x14\n\x10\x41\x44_FORMAT_NATIVE\x10\x0e\x12\x14\n\x10\x41\x44_FORMAT_SHORTS\x10\x0f\x12\x13\n\x0f\x41\x44_FORMAT_STORY\x10\x10\x12\x17\n\x13\x41\x44_FORMAT_SPONSORED\x10\x11\x12\x13\n\x0f\x41\x44_FORMAT_VIDEO\x10\x12*\x8f\x02\n\x0b\x41\x64Placement\x12\x1c\n\x18\x41\x44_PLACEMENT_UNSPECIFIED\x10\x00\x12\x19\n\x15\x41\x44_PLACEMENT_DISCOVER\x10\x01\x12\x15\n\x11\x41\x44_PLACEMENT_FEED\x10\x02\x12\x17\n\x13\x41\x44_PLACEMENT_FOOTER\x10\x03\x12\x17\n\x13\x41\x44_PLACEMENT_HEADER\x10\x04\x12\x15\n\x11\x41\x44_PLACEMENT_HOME\x10\x05\x12\x1b\n\x17\x41\x44_PLACEMENT_IN_CONTENT\x10\x06\x12\x19\n\x15\x41\x44_PLACEMENT_PROMOTED\x10\x07\x12\x17\n\x13\x41\x44_PLACEMENT_SEARCH\x10\x08\x12\x16\n\x12\x41\x44_PLACEMENT_STORY\x10\t*\x9f\x02\n\rTargetingType\x12\x1e\n\x1aTARGETING_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n\x17TARGETING_TYPE_AUDIENCE\x10\x01\x12\x1d\n\x19TARGETING_TYPE_CONTEXTUAL\x10\x02\x12\x1e\n\x1aTARGETING_TYPE_DEMOGRAPHIC\x10\x03\x12\x19\n\x15TARGETING_TYPE_DEVICE\x10\x04\x12\x16\n\x12TARGETING_TYPE_GEO\x10\x05\x12\x1b\n\x17TARGETING_TYPE_INTEREST\x10\x06\x12\"\n\x1eTARGETING_TYPE_PURCHASE_INTENT\x10\x07\x12\x1e\n\x1aTARGETING_TYPE_REMARKETING\x10\x08*\xac\x01\n\x0cPlatformType\x12\x1d\n\x19PLATFORM_TYPE_UNSPECIFIED\x10\x00\x12\x18\n\x14PLATFORM_TYPE_MOBILE\x10\x01\x12\x19\n\x15PLATFORM_TYPE_DESKTOP\x10\x02\x12\x15\n\x11PLATFORM_TYPE_CTV\x10\x03\x12\x17\n\x13PLATFORM_TYPE_PHONE\x10\x04\x12\x18\n\x14PLATFORM_TYPE_TABLET\x10\x05*^\n\x08Platform\x12\x18\n\x14PLATFORM_UNSPECIFIED\x10\x00\x12\x10\n\x0cPLATFORM_IOS\x10\x01\x12\x14\n\x10PLATFORM_ANDROID\x10\x02\x12\x10\n\x0cPLATFORM_WEB\x10\x03*w\n\x0f\x41ttributionHint\x12 \n\x1c\x41TTRIBUTION_HINT_UNSPECIFIED\x10\x00\x12\x1e\n\x1a\x41TTRIBUTION_HINT_CONVERTED\x10\x01\x12\"\n\x1e\x41TTRIBUTION_HINT_NOT_CONVERTED\x10\x02\x42\xc9\x01\n\x1d\x63om.google.ads.datamanager.v1B\x0c\x41\x64\x45ventProtoP\x01ZAcloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb\xaa\x02\x19Google.Ads.DataManager.V1\xca\x02\x19Google\\Ads\\DataManager\\V1\xea\x02\x1cGoogle::Ads::DataManager::V1b\x06proto3"
|
|
15
|
+
|
|
16
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
|
18
|
+
|
|
19
|
+
module Google
|
|
20
|
+
module Ads
|
|
21
|
+
module DataManager
|
|
22
|
+
module V1
|
|
23
|
+
AdEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.datamanager.v1.AdEvent").msgclass
|
|
24
|
+
AdEvent::EventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.datamanager.v1.AdEvent.EventType").enummodule
|
|
25
|
+
AdEvent::EventSubtype = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.datamanager.v1.AdEvent.EventSubtype").enummodule
|
|
26
|
+
AdType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.datamanager.v1.AdType").enummodule
|
|
27
|
+
AdFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.datamanager.v1.AdFormat").enummodule
|
|
28
|
+
AdPlacement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.datamanager.v1.AdPlacement").enummodule
|
|
29
|
+
TargetingType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.datamanager.v1.TargetingType").enummodule
|
|
30
|
+
PlatformType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.datamanager.v1.PlatformType").enummodule
|
|
31
|
+
Platform = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.datamanager.v1.Platform").enummodule
|
|
32
|
+
AttributionHint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.datamanager.v1.AttributionHint").enummodule
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -8,7 +8,7 @@ require 'google/api/field_behavior_pb'
|
|
|
8
8
|
require 'google/api/resource_pb'
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
descriptor_data = "\n+google/ads/datamanager/v1/destination.proto\x12\x19google.ads.datamanager.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xa4\x02\n\x0b\x44\x65stination\x12\x16\n\treference\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x45\n\rlogin_account\x18\x02 \x01(\x0b\x32).google.ads.datamanager.v1.ProductAccountB\x03\xe0\x41\x01\x12\x46\n\x0elinked_account\x18\x03 \x01(\x0b\x32).google.ads.datamanager.v1.ProductAccountB\x03\xe0\x41\x01\x12I\n\x11operating_account\x18\x04 \x01(\x0b\x32).google.ads.datamanager.v1.ProductAccountB\x03\xe0\x41\x02\x12#\n\x16product_destination_id\x18\x05 \x01(\tB\x03\xe0\x41\x02\"\x98\x03\n\x0eProductAccount\x12\x37\n\x07product\x18\x01 \x01(\x0e\x32\".google.ads.datamanager.v1.ProductB\x02\x18\x01\x12\x17\n\naccount_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12P\n\x0c\x61\x63\x63ount_type\x18\x03 \x01(\x0e\x32\x35.google.ads.datamanager.v1.ProductAccount.AccountTypeB\x03\xe0\x41\
|
|
11
|
+
descriptor_data = "\n+google/ads/datamanager/v1/destination.proto\x12\x19google.ads.datamanager.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xa4\x02\n\x0b\x44\x65stination\x12\x16\n\treference\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x45\n\rlogin_account\x18\x02 \x01(\x0b\x32).google.ads.datamanager.v1.ProductAccountB\x03\xe0\x41\x01\x12\x46\n\x0elinked_account\x18\x03 \x01(\x0b\x32).google.ads.datamanager.v1.ProductAccountB\x03\xe0\x41\x01\x12I\n\x11operating_account\x18\x04 \x01(\x0b\x32).google.ads.datamanager.v1.ProductAccountB\x03\xe0\x41\x02\x12#\n\x16product_destination_id\x18\x05 \x01(\tB\x03\xe0\x41\x02\"\x98\x03\n\x0eProductAccount\x12\x37\n\x07product\x18\x01 \x01(\x0e\x32\".google.ads.datamanager.v1.ProductB\x02\x18\x01\x12\x17\n\naccount_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12P\n\x0c\x61\x63\x63ount_type\x18\x03 \x01(\x0e\x32\x35.google.ads.datamanager.v1.ProductAccount.AccountTypeB\x03\xe0\x41\x02\"\xe1\x01\n\x0b\x41\x63\x63ountType\x12\x1c\n\x18\x41\x43\x43OUNT_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nGOOGLE_ADS\x10\x01\x12\x19\n\x15\x44ISPLAY_VIDEO_PARTNER\x10\x02\x12\x1c\n\x18\x44ISPLAY_VIDEO_ADVERTISER\x10\x03\x12\x10\n\x0c\x44\x41TA_PARTNER\x10\x04\x12\x1d\n\x19GOOGLE_ANALYTICS_PROPERTY\x10\x05\x12#\n\x1fGOOGLE_AD_MANAGER_AUDIENCE_LINK\x10\x06\x12\x15\n\x11\x46LOODLIGHT_CONFIG\x10\x07*\x81\x01\n\x07Product\x12\x17\n\x13PRODUCT_UNSPECIFIED\x10\x00\x12\x0e\n\nGOOGLE_ADS\x10\x01\x12\x19\n\x15\x44ISPLAY_VIDEO_PARTNER\x10\x02\x12\x1c\n\x18\x44ISPLAY_VIDEO_ADVERTISER\x10\x03\x12\x10\n\x0c\x44\x41TA_PARTNER\x10\x04\x1a\x02\x18\x01\x42\xa4\x02\n\x1d\x63om.google.ads.datamanager.v1B\x10\x44\x65stinationProtoP\x01ZAcloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb\xaa\x02\x19Google.Ads.DataManager.V1\xca\x02\x19Google\\Ads\\DataManager\\V1\xea\x02\x1cGoogle::Ads::DataManager::V1\xea\x41T\n\"datamanager.googleapis.com/Account\x12.accountTypes/{account_type}/accounts/{account}b\x06proto3"
|
|
12
12
|
|
|
13
13
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
14
14
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -5,9 +5,10 @@
|
|
|
5
5
|
require 'google/protobuf'
|
|
6
6
|
|
|
7
7
|
require 'google/api/field_behavior_pb'
|
|
8
|
+
require 'google/api/field_info_pb'
|
|
8
9
|
|
|
9
10
|
|
|
10
|
-
descriptor_data = "\n+google/ads/datamanager/v1/device_info.proto\x12\x19google.ads.datamanager.v1\x1a\x1fgoogle/api/field_behavior.proto\"\
|
|
11
|
+
descriptor_data = "\n+google/ads/datamanager/v1/device_info.proto\x12\x19google.ads.datamanager.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\"\xd2\x02\n\nDeviceInfo\x12\x17\n\nuser_agent\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\nip_address\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x04\x12\x15\n\x08\x63\x61tegory\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rlanguage_code\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rscreen_height\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\x12\x19\n\x0cscreen_width\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1d\n\x10operating_system\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12%\n\x18operating_system_version\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05model\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x62rand\x18\n \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x07\x62rowser\x18\x0b \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0f\x62rowser_version\x18\x0c \x01(\tB\x03\xe0\x41\x01\x42\xcc\x01\n\x1d\x63om.google.ads.datamanager.v1B\x0f\x44\x65viceInfoProtoP\x01ZAcloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb\xaa\x02\x19Google.Ads.DataManager.V1\xca\x02\x19Google\\Ads\\DataManager\\V1\xea\x02\x1cGoogle::Ads::DataManager::V1b\x06proto3"
|
|
11
12
|
|
|
12
13
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
14
|
pool.add_serialized_file(descriptor_data)
|