diff --git a/google-ads-ad_manager-v1/gapic_metadata.json b/google-ads-ad_manager-v1/gapic_metadata.json index 6933de047502..5dc759e7daf8 100644 --- a/google-ads-ad_manager-v1/gapic_metadata.json +++ b/google-ads-ad_manager-v1/gapic_metadata.json @@ -389,6 +389,45 @@ } } }, + "ChildPublisherService": { + "clients": { + "grpc": { + "libraryClient": "::Google::Ads::AdManager::V1::ChildPublisherService::Client", + "rpcs": { + "GetChildPublisher": { + "methods": [ + "get_child_publisher" + ] + }, + "ListChildPublishers": { + "methods": [ + "list_child_publishers" + ] + }, + "CreateChildPublisher": { + "methods": [ + "create_child_publisher" + ] + }, + "BatchCreateChildPublishers": { + "methods": [ + "batch_create_child_publishers" + ] + }, + "UpdateChildPublisher": { + "methods": [ + "update_child_publisher" + ] + }, + "BatchUpdateChildPublishers": { + "methods": [ + "batch_update_child_publishers" + ] + } + } + } + } + }, "CmsMetadataKeyService": { "clients": { "grpc": { @@ -461,6 +500,26 @@ "methods": [ "list_companies" ] + }, + "CreateCompany": { + "methods": [ + "create_company" + ] + }, + "BatchCreateCompanies": { + "methods": [ + "batch_create_companies" + ] + }, + "UpdateCompany": { + "methods": [ + "update_company" + ] + }, + "BatchUpdateCompanies": { + "methods": [ + "batch_update_companies" + ] } } } @@ -620,6 +679,55 @@ } } }, + "CreativeWrapperService": { + "clients": { + "grpc": { + "libraryClient": "::Google::Ads::AdManager::V1::CreativeWrapperService::Client", + "rpcs": { + "GetCreativeWrapper": { + "methods": [ + "get_creative_wrapper" + ] + }, + "ListCreativeWrappers": { + "methods": [ + "list_creative_wrappers" + ] + }, + "CreateCreativeWrapper": { + "methods": [ + "create_creative_wrapper" + ] + }, + "BatchCreateCreativeWrappers": { + "methods": [ + "batch_create_creative_wrappers" + ] + }, + "UpdateCreativeWrapper": { + "methods": [ + "update_creative_wrapper" + ] + }, + "BatchUpdateCreativeWrappers": { + "methods": [ + "batch_update_creative_wrappers" + ] + }, + "BatchActivateCreativeWrappers": { + "methods": [ + "batch_activate_creative_wrappers" + ] + }, + "BatchDeactivateCreativeWrappers": { + "methods": [ + "batch_deactivate_creative_wrappers" + ] + } + } + } + } + }, "CustomFieldService": { "clients": { "grpc": { @@ -767,6 +875,104 @@ } } }, + "DaiAuthenticationKeyService": { + "clients": { + "grpc": { + "libraryClient": "::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Client", + "rpcs": { + "GetDaiAuthenticationKey": { + "methods": [ + "get_dai_authentication_key" + ] + }, + "ListDaiAuthenticationKeys": { + "methods": [ + "list_dai_authentication_keys" + ] + }, + "CreateDaiAuthenticationKey": { + "methods": [ + "create_dai_authentication_key" + ] + }, + "BatchCreateDaiAuthenticationKeys": { + "methods": [ + "batch_create_dai_authentication_keys" + ] + }, + "UpdateDaiAuthenticationKey": { + "methods": [ + "update_dai_authentication_key" + ] + }, + "BatchUpdateDaiAuthenticationKeys": { + "methods": [ + "batch_update_dai_authentication_keys" + ] + }, + "BatchActivateDaiAuthenticationKeys": { + "methods": [ + "batch_activate_dai_authentication_keys" + ] + }, + "BatchDeactivateDaiAuthenticationKeys": { + "methods": [ + "batch_deactivate_dai_authentication_keys" + ] + } + } + } + } + }, + "DaiEncodingProfileService": { + "clients": { + "grpc": { + "libraryClient": "::Google::Ads::AdManager::V1::DaiEncodingProfileService::Client", + "rpcs": { + "GetDaiEncodingProfile": { + "methods": [ + "get_dai_encoding_profile" + ] + }, + "ListDaiEncodingProfiles": { + "methods": [ + "list_dai_encoding_profiles" + ] + }, + "CreateDaiEncodingProfile": { + "methods": [ + "create_dai_encoding_profile" + ] + }, + "BatchCreateDaiEncodingProfiles": { + "methods": [ + "batch_create_dai_encoding_profiles" + ] + }, + "UpdateDaiEncodingProfile": { + "methods": [ + "update_dai_encoding_profile" + ] + }, + "BatchUpdateDaiEncodingProfiles": { + "methods": [ + "batch_update_dai_encoding_profiles" + ] + }, + "BatchActivateDaiEncodingProfiles": { + "methods": [ + "batch_activate_dai_encoding_profiles" + ] + }, + "BatchArchiveDaiEncodingProfiles": { + "methods": [ + "batch_archive_dai_encoding_profiles" + ] + } + } + } + } + }, "DeviceCapabilityService": { "clients": { "grpc": { @@ -1270,6 +1476,35 @@ } } }, + "PartnerService": { + "clients": { + "grpc": { + "libraryClient": "::Google::Ads::AdManager::V1::PartnerService::Client", + "rpcs": { + "GetPartner": { + "methods": [ + "get_partner" + ] + }, + "ListPartners": { + "methods": [ + "list_partners" + ] + }, + "UpdatePartner": { + "methods": [ + "update_partner" + ] + }, + "BatchUpdatePartners": { + "methods": [ + "batch_update_partners" + ] + } + } + } + } + }, "PlacementService": { "clients": { "grpc": { @@ -1744,6 +1979,45 @@ } } } + }, + "ViewabilityProviderService": { + "clients": { + "grpc": { + "libraryClient": "::Google::Ads::AdManager::V1::ViewabilityProviderService::Client", + "rpcs": { + "GetViewabilityProvider": { + "methods": [ + "get_viewability_provider" + ] + }, + "ListViewabilityProviders": { + "methods": [ + "list_viewability_providers" + ] + }, + "CreateViewabilityProvider": { + "methods": [ + "create_viewability_provider" + ] + }, + "BatchCreateViewabilityProviders": { + "methods": [ + "batch_create_viewability_providers" + ] + }, + "UpdateViewabilityProvider": { + "methods": [ + "update_viewability_provider" + ] + }, + "BatchUpdateViewabilityProviders": { + "methods": [ + "batch_update_viewability_providers" + ] + } + } + } + } } } } diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1.rb index 16811365cdba..16505bdfc8a2 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1.rb @@ -27,6 +27,7 @@ require "google/ads/ad_manager/v1/browser_language_service" require "google/ads/ad_manager/v1/browser_service" require "google/ads/ad_manager/v1/cdn_config_service" +require "google/ads/ad_manager/v1/child_publisher_service" require "google/ads/ad_manager/v1/cms_metadata_key_service" require "google/ads/ad_manager/v1/cms_metadata_value_service" require "google/ads/ad_manager/v1/company_service" @@ -36,9 +37,12 @@ require "google/ads/ad_manager/v1/content_service" require "google/ads/ad_manager/v1/creative_set_service" require "google/ads/ad_manager/v1/creative_template_service" +require "google/ads/ad_manager/v1/creative_wrapper_service" require "google/ads/ad_manager/v1/custom_field_service" require "google/ads/ad_manager/v1/custom_targeting_key_service" require "google/ads/ad_manager/v1/custom_targeting_value_service" +require "google/ads/ad_manager/v1/dai_authentication_key_service" +require "google/ads/ad_manager/v1/dai_encoding_profile_service" require "google/ads/ad_manager/v1/device_capability_service" require "google/ads/ad_manager/v1/device_category_service" require "google/ads/ad_manager/v1/device_manufacturer_service" @@ -56,6 +60,7 @@ require "google/ads/ad_manager/v1/operating_system_service" require "google/ads/ad_manager/v1/operating_system_version_service" require "google/ads/ad_manager/v1/order_service" +require "google/ads/ad_manager/v1/partner_service" require "google/ads/ad_manager/v1/placement_service" require "google/ads/ad_manager/v1/private_auction_deal_service" require "google/ads/ad_manager/v1/private_auction_service" @@ -71,6 +76,7 @@ require "google/ads/ad_manager/v1/team_service" require "google/ads/ad_manager/v1/third_party_company_service" require "google/ads/ad_manager/v1/user_service" +require "google/ads/ad_manager/v1/viewability_provider_service" require "google/ads/ad_manager/v1/version" module Google diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/ad_rule_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/ad_rule_service/rest/client.rb index 1cb8e95334ee..678803b56401 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/ad_rule_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/ad_rule_service/rest/client.rb @@ -292,13 +292,12 @@ def get_ad_rule request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - # + # **Filterable fields:** + # + # * `displayName` + # * `name` + # * `priority` + # * `status` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/ad_spot_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/ad_spot_service/rest/client.rb index da6d88340e34..a15511e86c25 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/ad_spot_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/ad_spot_service/rest/client.rb @@ -292,14 +292,13 @@ def get_ad_spot request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - # + # **Filterable fields:** + # + # * `canonicalDisplayName` + # * `customSpot` + # * `displayName` + # * `flexible` + # * `name` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/ad_unit_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/ad_unit_service/rest/client.rb index b492927964fa..32e8342c0ee2 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/ad_unit_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/ad_unit_service/rest/client.rb @@ -292,21 +292,20 @@ def get_ad_unit request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - # + # **Filterable fields:** + # + # * `adUnitCode` + # * `adUnitSizes.canonicalName` + # * `displayName` + # * `effectiveAdsenseEnabled` + # * `explicitlyTargeted` + # * `externalSetTopBoxChannelId` + # * `hasChildren` + # * `name` + # * `parentAdUnit` + # * `status` + # * `teams` + # * `updateTime` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/application_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/application_service/rest/client.rb index 6c20a99c3516..7c404572a52a 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/application_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/application_service/rest/client.rb @@ -292,18 +292,17 @@ def get_application request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - # + # **Filterable fields:** + # + # * `appStoreId` + # * `appStores` + # * `applicationCode` + # * `approvalStatus` + # * `archived` + # * `displayName` + # * `name` + # * `platform` + # * `webviewClaimingStatus` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/audience_segment_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/audience_segment_service/rest/client.rb index 5f8e4deff132..f5d294cf347c 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/audience_segment_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/audience_segment_service/rest/client.rb @@ -177,7 +177,7 @@ def logger # Service calls ## - # API to retrieve an `AudienceSegment` object. + # Retrieves an `AudienceSegment` object. # # @overload get_audience_segment(request, options = nil) # Pass arguments to `get_audience_segment` via a request object, either of type @@ -256,7 +256,7 @@ def get_audience_segment request, options = nil end ## - # API to retrieve a list of `AudienceSegment` objects. + # Lists `AudienceSegment` objects. # # @overload list_audience_segments(request, options = nil) # Pass arguments to `list_audience_segments` via a request object, either of type @@ -292,10 +292,9 @@ def get_audience_segment request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - # + # **Filterable fields:** + # + # * `displayName` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/bandwidth_group_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/bandwidth_group_service/rest/client.rb index a3b28e915b0b..7aadec16cdef 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/bandwidth_group_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/bandwidth_group_service/rest/client.rb @@ -292,11 +292,10 @@ def get_bandwidth_group request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - # + # **Filterable fields:** + # + # * `displayName` + # * `name` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/browser_language_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/browser_language_service/rest/client.rb index 64a77953bb8e..3f4012a48234 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/browser_language_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/browser_language_service/rest/client.rb @@ -292,11 +292,10 @@ def get_browser_language request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - # + # **Filterable fields:** + # + # * `displayName` + # * `name` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/browser_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/browser_service/rest/client.rb index 29d96aec628f..45a0aacb03e2 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/browser_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/browser_service/rest/client.rb @@ -292,13 +292,12 @@ def get_browser request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - # + # **Filterable fields:** + # + # * `displayName` + # * `majorVersion` + # * `minorVersion` + # * `name` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/cdn_config_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/cdn_config_service/rest/client.rb index 0ce98667864b..67accc6dc443 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/cdn_config_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/cdn_config_service/rest/client.rb @@ -292,14 +292,13 @@ def get_cdn_config request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - # + # **Filterable fields:** + # + # * `cdnConfigStatus` + # * `cdnConfigType` + # * `displayName` + # * `name` + # * `sourceContentConfig.ingestSettings.urlPrefix` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/child_publisher_service.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/child_publisher_service.rb new file mode 100644 index 000000000000..739be4950147 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/child_publisher_service.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/config" +require "gapic/config/method" + +require "google/ads/ad_manager/v1/version" + +require "google/ads/ad_manager/v1/child_publisher_service/credentials" +require "google/ads/ad_manager/v1/child_publisher_service/paths" +require "google/ads/ad_manager/v1/child_publisher_service/rest" + +module Google + module Ads + module AdManager + module V1 + ## + # Provides methods for handling + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher} objects. + # + # @example Load this service and instantiate a REST client + # + # require "google/ads/ad_manager/v1/child_publisher_service/rest" + # client = ::Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client.new + # + module ChildPublisherService + end + end + end + end +end + +helper_path = ::File.join __dir__, "child_publisher_service", "helpers.rb" +require "google/ads/ad_manager/v1/child_publisher_service/helpers" if ::File.file? helper_path diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/child_publisher_service/credentials.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/child_publisher_service/credentials.rb new file mode 100644 index 000000000000..64b8a9bbf8cc --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/child_publisher_service/credentials.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module AdManager + module V1 + module ChildPublisherService + # Credentials for the ChildPublisherService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/admanager", + "https://www.googleapis.com/auth/admanager.readonly" + ] + self.env_vars = [ + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/child_publisher_service/paths.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/child_publisher_service/paths.rb new file mode 100644 index 000000000000..b4ca86876201 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/child_publisher_service/paths.rb @@ -0,0 +1,64 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module AdManager + module V1 + module ChildPublisherService + # Path helper methods for the ChildPublisherService API. + module Paths + ## + # Create a fully-qualified ChildPublisher resource string. + # + # The resource will be in the following format: + # + # `networks/{network_code}/childPublishers/{child_publisher}` + # + # @param network_code [String] + # @param child_publisher [String] + # + # @return [::String] + def child_publisher_path network_code:, child_publisher: + raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" + + "networks/#{network_code}/childPublishers/#{child_publisher}" + end + + ## + # Create a fully-qualified Network resource string. + # + # The resource will be in the following format: + # + # `networks/{network_code}` + # + # @param network_code [String] + # + # @return [::String] + def network_path network_code: + "networks/#{network_code}" + end + + extend self + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/child_publisher_service/rest.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/child_publisher_service/rest.rb new file mode 100644 index 000000000000..71173e0eb8b2 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/child_publisher_service/rest.rb @@ -0,0 +1,53 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/ad_manager/v1/version" + +require "google/ads/ad_manager/v1/child_publisher_service/credentials" +require "google/ads/ad_manager/v1/child_publisher_service/paths" +require "google/ads/ad_manager/v1/child_publisher_service/rest/client" + +module Google + module Ads + module AdManager + module V1 + ## + # Provides methods for handling + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher} objects. + # + # To load this service and instantiate a REST client: + # + # require "google/ads/ad_manager/v1/child_publisher_service/rest" + # client = ::Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client.new + # + module ChildPublisherService + # Client for the REST transport + module Rest + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "rest", "helpers.rb" +require "google/ads/ad_manager/v1/child_publisher_service/rest/helpers" if ::File.file? helper_path diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/child_publisher_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/child_publisher_service/rest/client.rb new file mode 100644 index 000000000000..490cf330fecd --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/child_publisher_service/rest/client.rb @@ -0,0 +1,931 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/ads/admanager/v1/child_publisher_service_pb" +require "google/ads/ad_manager/v1/child_publisher_service/rest/service_stub" + +module Google + module Ads + module AdManager + module V1 + module ChildPublisherService + module Rest + ## + # REST client for the ChildPublisherService service. + # + # Provides methods for handling + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher} objects. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "admanager.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :child_publisher_service_stub + + ## + # Configure the ChildPublisherService Client class. + # + # See {::Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all ChildPublisherService clients + # ::Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Ads", "AdManager", "V1"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the ChildPublisherService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @child_publisher_service_stub.universe_domain + end + + ## + # Create a new ChildPublisherService REST client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the ChildPublisherService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @child_publisher_service_stub = ::Google::Ads::AdManager::V1::ChildPublisherService::Rest::ServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials, + logger: @config.logger + ) + + @child_publisher_service_stub.logger(stub: true)&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @child_publisher_service_stub.logger + end + + # Service calls + + ## + # Retrieves a {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher} + # object. + # + # @overload get_child_publisher(request, options = nil) + # Pass arguments to `get_child_publisher` via a request object, either of type + # {::Google::Ads::AdManager::V1::GetChildPublisherRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::GetChildPublisherRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_child_publisher(name: nil) + # Pass arguments to `get_child_publisher` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher}. Format: + # `networks/{network_code}/childPublishers/{child_publisher_id}` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::ChildPublisher] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::ChildPublisher] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::GetChildPublisherRequest.new + # + # # Call the get_child_publisher method. + # result = client.get_child_publisher request + # + # # The returned object is of type Google::Ads::AdManager::V1::ChildPublisher. + # p result + # + def get_child_publisher request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::GetChildPublisherRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_child_publisher.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_child_publisher.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_child_publisher.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @child_publisher_service_stub.get_child_publisher request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher} objects. + # + # @overload list_child_publishers(request, options = nil) + # Pass arguments to `list_child_publishers` via a request object, either of type + # {::Google::Ads::AdManager::V1::ListChildPublishersRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::ListChildPublishersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_child_publishers(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil, skip: nil) + # Pass arguments to `list_child_publishers` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent, which owns this collection of + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher}s. Format: + # `networks/{network_code}` + # @param page_size [::Integer] + # Optional. The maximum number of + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher}s to return. The + # service may return fewer than this value. If unspecified, at most 50 + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher}s will be returned. + # The maximum value is 1000; values greater than 1000 will be coerced to + # 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous [ListChildPublishers][] + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to [ListChildPublishers][] + # must match the call that provided the page token. + # @param filter [::String] + # Optional. Expression to filter the response. + # See syntax details at + # https://developers.google.com/ad-manager/api/beta/filters + # + # **Filterable fields:** + # + # * `accountStatus` + # * `addressVerificationStatus` + # * `approvalStatus` + # * `approvedManageAccountRevenueShareMillipercent` + # * `childNetwork` + # * `delegationType` + # * `displayName` + # * `email` + # * `identityVerificationStatus` + # * `invitationStatus` + # * `name` + # * `parentRevenueShareMillipercent` + # * `pendingOnboardingTasks` + # * `readinessStatus` + # * `sellerId` + # @param order_by [::String] + # Optional. Expression to specify sorting order. + # See syntax details at + # https://developers.google.com/ad-manager/api/beta/filters#order + # @param skip [::Integer] + # Optional. Number of individual resources to skip while paginating. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Ads::AdManager::V1::ChildPublisher>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Ads::AdManager::V1::ChildPublisher>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::ListChildPublishersRequest.new + # + # # Call the list_child_publishers method. + # result = client.list_child_publishers request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Ads::AdManager::V1::ChildPublisher. + # p item + # end + # + def list_child_publishers request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::ListChildPublishersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_child_publishers.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_child_publishers.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_child_publishers.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @child_publisher_service_stub.list_child_publishers request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @child_publisher_service_stub, :list_child_publishers, "child_publishers", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher} object. + # + # @overload create_child_publisher(request, options = nil) + # Pass arguments to `create_child_publisher` via a request object, either of type + # {::Google::Ads::AdManager::V1::CreateChildPublisherRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::CreateChildPublisherRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_child_publisher(parent: nil, child_publisher: nil) + # Pass arguments to `create_child_publisher` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where this + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher} will be created. + # Format: `networks/{network_code}` + # @param child_publisher [::Google::Ads::AdManager::V1::ChildPublisher, ::Hash] + # Required. The {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher} to + # create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::ChildPublisher] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::ChildPublisher] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::CreateChildPublisherRequest.new + # + # # Call the create_child_publisher method. + # result = client.create_child_publisher request + # + # # The returned object is of type Google::Ads::AdManager::V1::ChildPublisher. + # p result + # + def create_child_publisher request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::CreateChildPublisherRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_child_publisher.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_child_publisher.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_child_publisher.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @child_publisher_service_stub.create_child_publisher request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher} objects. + # + # @overload batch_create_child_publishers(request, options = nil) + # Pass arguments to `batch_create_child_publishers` via a request object, either of type + # {::Google::Ads::AdManager::V1::BatchCreateChildPublishersRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::BatchCreateChildPublishersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload batch_create_child_publishers(parent: nil, requests: nil) + # Pass arguments to `batch_create_child_publishers` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher}s will be created. + # Format: `networks/{network_code}` + # The parent field in the CreateChildPublisherRequest must match this + # field. + # @param requests [::Array<::Google::Ads::AdManager::V1::CreateChildPublisherRequest, ::Hash>] + # Required. The {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher} + # objects to create. A maximum of 100 objects can be created in a batch. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchCreateChildPublishersResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchCreateChildPublishersResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::BatchCreateChildPublishersRequest.new + # + # # Call the batch_create_child_publishers method. + # result = client.batch_create_child_publishers request + # + # # The returned object is of type Google::Ads::AdManager::V1::BatchCreateChildPublishersResponse. + # p result + # + def batch_create_child_publishers request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchCreateChildPublishersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.batch_create_child_publishers.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.batch_create_child_publishers.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.batch_create_child_publishers.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @child_publisher_service_stub.batch_create_child_publishers request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher} object. + # + # @overload update_child_publisher(request, options = nil) + # Pass arguments to `update_child_publisher` via a request object, either of type + # {::Google::Ads::AdManager::V1::UpdateChildPublisherRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::UpdateChildPublisherRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_child_publisher(child_publisher: nil, update_mask: nil) + # Pass arguments to `update_child_publisher` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param child_publisher [::Google::Ads::AdManager::V1::ChildPublisher, ::Hash] + # Required. The {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher} to + # update. + # + # The {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher}'s `name` is + # used to identify the + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher} to update. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to update. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::ChildPublisher] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::ChildPublisher] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::UpdateChildPublisherRequest.new + # + # # Call the update_child_publisher method. + # result = client.update_child_publisher request + # + # # The returned object is of type Google::Ads::AdManager::V1::ChildPublisher. + # p result + # + def update_child_publisher request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::UpdateChildPublisherRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_child_publisher.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_child_publisher.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_child_publisher.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @child_publisher_service_stub.update_child_publisher request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Batch updates {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher} + # objects. + # + # @overload batch_update_child_publishers(request, options = nil) + # Pass arguments to `batch_update_child_publishers` via a request object, either of type + # {::Google::Ads::AdManager::V1::BatchUpdateChildPublishersRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::BatchUpdateChildPublishersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload batch_update_child_publishers(parent: nil, requests: nil) + # Pass arguments to `batch_update_child_publishers` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher}s will be updated. + # Format: `networks/{network_code}` + # The parent field in the UpdateChildPublisherRequest must match this + # field. + # @param requests [::Array<::Google::Ads::AdManager::V1::UpdateChildPublisherRequest, ::Hash>] + # Required. The {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher} + # objects to update. A maximum of 100 objects can be updated in a batch. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchUpdateChildPublishersResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchUpdateChildPublishersResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::BatchUpdateChildPublishersRequest.new + # + # # Call the batch_update_child_publishers method. + # result = client.batch_update_child_publishers request + # + # # The returned object is of type Google::Ads::AdManager::V1::BatchUpdateChildPublishersResponse. + # p result + # + def batch_update_child_publishers request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchUpdateChildPublishersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.batch_update_child_publishers.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.batch_update_child_publishers.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.batch_update_child_publishers.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @child_publisher_service_stub.batch_update_child_publishers request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the ChildPublisherService REST API. + # + # This class represents the configuration for ChildPublisherService REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # get_child_publisher to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.get_child_publisher.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.get_child_publisher.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "admanager.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the ChildPublisherService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `get_child_publisher` + # @return [::Gapic::Config::Method] + # + attr_reader :get_child_publisher + ## + # RPC-specific configuration for `list_child_publishers` + # @return [::Gapic::Config::Method] + # + attr_reader :list_child_publishers + ## + # RPC-specific configuration for `create_child_publisher` + # @return [::Gapic::Config::Method] + # + attr_reader :create_child_publisher + ## + # RPC-specific configuration for `batch_create_child_publishers` + # @return [::Gapic::Config::Method] + # + attr_reader :batch_create_child_publishers + ## + # RPC-specific configuration for `update_child_publisher` + # @return [::Gapic::Config::Method] + # + attr_reader :update_child_publisher + ## + # RPC-specific configuration for `batch_update_child_publishers` + # @return [::Gapic::Config::Method] + # + attr_reader :batch_update_child_publishers + + # @private + def initialize parent_rpcs = nil + get_child_publisher_config = parent_rpcs.get_child_publisher if parent_rpcs.respond_to? :get_child_publisher + @get_child_publisher = ::Gapic::Config::Method.new get_child_publisher_config + list_child_publishers_config = parent_rpcs.list_child_publishers if parent_rpcs.respond_to? :list_child_publishers + @list_child_publishers = ::Gapic::Config::Method.new list_child_publishers_config + create_child_publisher_config = parent_rpcs.create_child_publisher if parent_rpcs.respond_to? :create_child_publisher + @create_child_publisher = ::Gapic::Config::Method.new create_child_publisher_config + batch_create_child_publishers_config = parent_rpcs.batch_create_child_publishers if parent_rpcs.respond_to? :batch_create_child_publishers + @batch_create_child_publishers = ::Gapic::Config::Method.new batch_create_child_publishers_config + update_child_publisher_config = parent_rpcs.update_child_publisher if parent_rpcs.respond_to? :update_child_publisher + @update_child_publisher = ::Gapic::Config::Method.new update_child_publisher_config + batch_update_child_publishers_config = parent_rpcs.batch_update_child_publishers if parent_rpcs.respond_to? :batch_update_child_publishers + @batch_update_child_publishers = ::Gapic::Config::Method.new batch_update_child_publishers_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/child_publisher_service/rest/service_stub.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/child_publisher_service/rest/service_stub.rb new file mode 100644 index 000000000000..eba5ffd8ff98 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/child_publisher_service/rest/service_stub.rb @@ -0,0 +1,451 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/ads/admanager/v1/child_publisher_service_pb" + +module Google + module Ads + module AdManager + module V1 + module ChildPublisherService + module Rest + ## + # REST service stub for the ChildPublisherService service. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + # + class ServiceStub + # @private + def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, + numeric_enums: true, + service_name: self.class, + raise_faraday_errors: false, + logger: logger + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain + end + + ## + # The effective endpoint + # + # @return [String] + # + def endpoint + @client_stub.endpoint + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger stub: false + stub ? @client_stub.stub_logger : @client_stub.logger + end + + ## + # Baseline implementation for the get_child_publisher REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::GetChildPublisherRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::ChildPublisher] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::ChildPublisher] + # A result object deserialized from the server's reply + def get_child_publisher request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_child_publisher_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_child_publisher", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::ChildPublisher.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_child_publishers REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::ListChildPublishersRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::ListChildPublishersResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::ListChildPublishersResponse] + # A result object deserialized from the server's reply + def list_child_publishers request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_child_publishers_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_child_publishers", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::ListChildPublishersResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_child_publisher REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::CreateChildPublisherRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::ChildPublisher] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::ChildPublisher] + # A result object deserialized from the server's reply + def create_child_publisher request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_child_publisher_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_child_publisher", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::ChildPublisher.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the batch_create_child_publishers REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchCreateChildPublishersRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchCreateChildPublishersResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchCreateChildPublishersResponse] + # A result object deserialized from the server's reply + def batch_create_child_publishers request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_batch_create_child_publishers_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "batch_create_child_publishers", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::BatchCreateChildPublishersResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_child_publisher REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::UpdateChildPublisherRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::ChildPublisher] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::ChildPublisher] + # A result object deserialized from the server's reply + def update_child_publisher request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_child_publisher_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_child_publisher", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::ChildPublisher.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the batch_update_child_publishers REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchUpdateChildPublishersRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchUpdateChildPublishersResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchUpdateChildPublishersResponse] + # A result object deserialized from the server's reply + def batch_update_child_publishers request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_batch_update_child_publishers_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "batch_update_child_publishers", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::BatchUpdateChildPublishersResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the get_child_publisher REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::GetChildPublisherRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_child_publisher_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^networks/[^/]+/childPublishers/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_child_publishers REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::ListChildPublishersRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_child_publishers_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/childPublishers", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_child_publisher REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::CreateChildPublisherRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_child_publisher_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/childPublishers", + body: "child_publisher", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the batch_create_child_publishers REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchCreateChildPublishersRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_batch_create_child_publishers_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/childPublishers:batchCreate", + body: "*", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_child_publisher REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::UpdateChildPublisherRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_child_publisher_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{child_publisher.name}", + body: "child_publisher", + matches: [ + ["child_publisher.name", %r{^networks/[^/]+/childPublishers/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the batch_update_child_publishers REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchUpdateChildPublishersRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_batch_update_child_publishers_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/childPublishers:batchUpdate", + body: "*", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/cms_metadata_key_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/cms_metadata_key_service/rest/client.rb index 2023b9a7ab37..36deaab9bd7c 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/cms_metadata_key_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/cms_metadata_key_service/rest/client.rb @@ -292,12 +292,11 @@ def get_cms_metadata_key request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - # + # **Filterable fields:** + # + # * `displayName` + # * `name` + # * `status` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/cms_metadata_value_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/cms_metadata_value_service/rest/client.rb index a4f26137e822..5434fb243949 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/cms_metadata_value_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/cms_metadata_value_service/rest/client.rb @@ -292,13 +292,12 @@ def get_cms_metadata_value request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - # + # **Filterable fields:** + # + # * `displayName` + # * `key` + # * `name` + # * `status` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/company_service.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/company_service.rb index 973f78e8c19f..f060fec26aa8 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/company_service.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/company_service.rb @@ -30,7 +30,8 @@ module Ads module AdManager module V1 ## - # Provides methods for handling `Company` objects. + # Provides methods for handling {::Google::Ads::AdManager::V1::Company Company} + # objects. # # @example Load this service and instantiate a REST client # diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/company_service/paths.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/company_service/paths.rb index ec0bc25eac38..eb84562a6b40 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/company_service/paths.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/company_service/paths.rb @@ -41,6 +41,40 @@ def company_path network_code:, company: "networks/#{network_code}/companies/#{company}" end + ## + # Create a fully-qualified Contact resource string. + # + # The resource will be in the following format: + # + # `networks/{network_code}/contacts/{contact}` + # + # @param network_code [String] + # @param contact [String] + # + # @return [::String] + def contact_path network_code:, contact: + raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" + + "networks/#{network_code}/contacts/#{contact}" + end + + ## + # Create a fully-qualified Label resource string. + # + # The resource will be in the following format: + # + # `networks/{network_code}/labels/{label}` + # + # @param network_code [String] + # @param label [String] + # + # @return [::String] + def label_path network_code:, label: + raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" + + "networks/#{network_code}/labels/#{label}" + end + ## # Create a fully-qualified Network resource string. # @@ -55,6 +89,23 @@ def network_path network_code: "networks/#{network_code}" end + ## + # Create a fully-qualified Team resource string. + # + # The resource will be in the following format: + # + # `networks/{network_code}/teams/{team}` + # + # @param network_code [String] + # @param team [String] + # + # @return [::String] + def team_path network_code:, team: + raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" + + "networks/#{network_code}/teams/#{team}" + end + extend self end end diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/company_service/rest.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/company_service/rest.rb index a5b64e38b72b..471c5c615bcf 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/company_service/rest.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/company_service/rest.rb @@ -31,7 +31,8 @@ module Ads module AdManager module V1 ## - # Provides methods for handling `Company` objects. + # Provides methods for handling {::Google::Ads::AdManager::V1::Company Company} + # objects. # # To load this service and instantiate a REST client: # diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/company_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/company_service/rest/client.rb index eb93f302a3cf..1e60b6ce001c 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/company_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/company_service/rest/client.rb @@ -29,7 +29,8 @@ module Rest ## # REST client for the CompanyService service. # - # Provides methods for handling `Company` objects. + # Provides methods for handling {::Google::Ads::AdManager::V1::Company Company} + # objects. # class Client # @private @@ -177,7 +178,7 @@ def logger # Service calls ## - # Retrieves a `Company` object. + # Retrieves a {::Google::Ads::AdManager::V1::Company Company} object. # # @overload get_company(request, options = nil) # Pass arguments to `get_company` via a request object, either of type @@ -256,7 +257,7 @@ def get_company request, options = nil end ## - # Lists `Company` objects. + # Lists {::Google::Ads::AdManager::V1::Company Company} objects. # # @overload list_companies(request, options = nil) # Pass arguments to `list_companies` via a request object, either of type @@ -274,40 +275,39 @@ def get_company request, options = nil # the default parameter values, pass an empty Hash as a request object (see above). # # @param parent [::String] - # Required. The parent, which owns this collection of Companies. + # Required. The parent, which owns this collection of [Companies][]. # Format: `networks/{network_code}` # @param page_size [::Integer] - # Optional. The maximum number of `Companies` to return. The service may - # return fewer than this value. If unspecified, at most 50 `Companies` will + # Optional. The maximum number of [Companies][] to return. The service may + # return fewer than this value. If unspecified, at most 50 [Companies][] will # be returned. The maximum value is 1000; values greater than 1000 will be # coerced to 1000. # @param page_token [::String] - # Optional. A page token, received from a previous `ListCompanies` call. + # Optional. A page token, received from a previous [ListCompanies][] call. # Provide this to retrieve the subsequent page. # - # When paginating, all other parameters provided to `ListCompanies` must + # When paginating, all other parameters provided to [ListCompanies][] must # match the call that provided the page token. # @param filter [::String] # Optional. Expression to filter the response. # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - # + # **Filterable fields:** + # + # * `address` + # * `comment` + # * `companyId` + # * `creditStatus` + # * `displayName` + # * `email` + # * `externalId` + # * `fax` + # * `name` + # * `phone` + # * `thirdPartyCompanyId` + # * `type` + # * `updateTime` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at @@ -378,6 +378,339 @@ def list_companies request, options = nil raise ::Google::Cloud::Error.from_error(e) end + ## + # Creates a {::Google::Ads::AdManager::V1::Company Company} object. + # + # @overload create_company(request, options = nil) + # Pass arguments to `create_company` via a request object, either of type + # {::Google::Ads::AdManager::V1::CreateCompanyRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::CreateCompanyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_company(parent: nil, company: nil) + # Pass arguments to `create_company` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where this + # {::Google::Ads::AdManager::V1::Company Company} will be created. Format: + # `networks/{network_code}` + # @param company [::Google::Ads::AdManager::V1::Company, ::Hash] + # Required. The {::Google::Ads::AdManager::V1::Company Company} to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::Company] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::Company] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::CompanyService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::CreateCompanyRequest.new + # + # # Call the create_company method. + # result = client.create_company request + # + # # The returned object is of type Google::Ads::AdManager::V1::Company. + # p result + # + def create_company request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::CreateCompanyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_company.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_company.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_company.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @company_service_stub.create_company request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates {::Google::Ads::AdManager::V1::Company Company} objects. + # + # @overload batch_create_companies(request, options = nil) + # Pass arguments to `batch_create_companies` via a request object, either of type + # {::Google::Ads::AdManager::V1::BatchCreateCompaniesRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::BatchCreateCompaniesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload batch_create_companies(parent: nil, requests: nil) + # Pass arguments to `batch_create_companies` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where [Companies][] will be created. + # Format: `networks/{network_code}` + # The parent field in the CreateCompanyRequest must match this + # field. + # @param requests [::Array<::Google::Ads::AdManager::V1::CreateCompanyRequest, ::Hash>] + # Required. The {::Google::Ads::AdManager::V1::Company Company} objects to create. + # A maximum of 100 objects can be created in a batch. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchCreateCompaniesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchCreateCompaniesResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::CompanyService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::BatchCreateCompaniesRequest.new + # + # # Call the batch_create_companies method. + # result = client.batch_create_companies request + # + # # The returned object is of type Google::Ads::AdManager::V1::BatchCreateCompaniesResponse. + # p result + # + def batch_create_companies request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchCreateCompaniesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.batch_create_companies.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.batch_create_companies.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.batch_create_companies.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @company_service_stub.batch_create_companies request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a {::Google::Ads::AdManager::V1::Company Company} object. + # + # @overload update_company(request, options = nil) + # Pass arguments to `update_company` via a request object, either of type + # {::Google::Ads::AdManager::V1::UpdateCompanyRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::UpdateCompanyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_company(company: nil, update_mask: nil) + # Pass arguments to `update_company` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param company [::Google::Ads::AdManager::V1::Company, ::Hash] + # Required. The {::Google::Ads::AdManager::V1::Company Company} to update. + # + # The {::Google::Ads::AdManager::V1::Company Company}'s `name` is used to identify + # the {::Google::Ads::AdManager::V1::Company Company} to update. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to update. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::Company] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::Company] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::CompanyService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::UpdateCompanyRequest.new + # + # # Call the update_company method. + # result = client.update_company request + # + # # The returned object is of type Google::Ads::AdManager::V1::Company. + # p result + # + def update_company request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::UpdateCompanyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_company.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_company.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_company.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @company_service_stub.update_company request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Batch updates {::Google::Ads::AdManager::V1::Company Company} objects. + # + # @overload batch_update_companies(request, options = nil) + # Pass arguments to `batch_update_companies` via a request object, either of type + # {::Google::Ads::AdManager::V1::BatchUpdateCompaniesRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::BatchUpdateCompaniesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload batch_update_companies(parent: nil, requests: nil) + # Pass arguments to `batch_update_companies` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where [Companies][] will be updated. + # Format: `networks/{network_code}` + # The parent field in the UpdateCompanyRequest must match this + # field. + # @param requests [::Array<::Google::Ads::AdManager::V1::UpdateCompanyRequest, ::Hash>] + # Required. The {::Google::Ads::AdManager::V1::Company Company} objects to update. + # A maximum of 100 objects can be updated in a batch. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchUpdateCompaniesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchUpdateCompaniesResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::CompanyService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::BatchUpdateCompaniesRequest.new + # + # # Call the batch_update_companies method. + # result = client.batch_update_companies request + # + # # The returned object is of type Google::Ads::AdManager::V1::BatchUpdateCompaniesResponse. + # p result + # + def batch_update_companies request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchUpdateCompaniesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.batch_update_companies.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.batch_update_companies.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.batch_update_companies.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @company_service_stub.batch_update_companies request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + ## # Configuration class for the CompanyService REST API. # @@ -536,6 +869,26 @@ class Rpcs # @return [::Gapic::Config::Method] # attr_reader :list_companies + ## + # RPC-specific configuration for `create_company` + # @return [::Gapic::Config::Method] + # + attr_reader :create_company + ## + # RPC-specific configuration for `batch_create_companies` + # @return [::Gapic::Config::Method] + # + attr_reader :batch_create_companies + ## + # RPC-specific configuration for `update_company` + # @return [::Gapic::Config::Method] + # + attr_reader :update_company + ## + # RPC-specific configuration for `batch_update_companies` + # @return [::Gapic::Config::Method] + # + attr_reader :batch_update_companies # @private def initialize parent_rpcs = nil @@ -543,6 +896,14 @@ def initialize parent_rpcs = nil @get_company = ::Gapic::Config::Method.new get_company_config list_companies_config = parent_rpcs.list_companies if parent_rpcs.respond_to? :list_companies @list_companies = ::Gapic::Config::Method.new list_companies_config + create_company_config = parent_rpcs.create_company if parent_rpcs.respond_to? :create_company + @create_company = ::Gapic::Config::Method.new create_company_config + batch_create_companies_config = parent_rpcs.batch_create_companies if parent_rpcs.respond_to? :batch_create_companies + @batch_create_companies = ::Gapic::Config::Method.new batch_create_companies_config + update_company_config = parent_rpcs.update_company if parent_rpcs.respond_to? :update_company + @update_company = ::Gapic::Config::Method.new update_company_config + batch_update_companies_config = parent_rpcs.batch_update_companies if parent_rpcs.respond_to? :batch_update_companies + @batch_update_companies = ::Gapic::Config::Method.new batch_update_companies_config yield self if block_given? end diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/company_service/rest/service_stub.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/company_service/rest/service_stub.rb index 1d3bb9b0afb5..9eb6fe741daa 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/company_service/rest/service_stub.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/company_service/rest/service_stub.rb @@ -153,6 +153,166 @@ def list_companies request_pb, options = nil end end + ## + # Baseline implementation for the create_company REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::CreateCompanyRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::Company] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::Company] + # A result object deserialized from the server's reply + def create_company request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_company_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_company", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::Company.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the batch_create_companies REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchCreateCompaniesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchCreateCompaniesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchCreateCompaniesResponse] + # A result object deserialized from the server's reply + def batch_create_companies request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_batch_create_companies_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "batch_create_companies", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::BatchCreateCompaniesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_company REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::UpdateCompanyRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::Company] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::Company] + # A result object deserialized from the server's reply + def update_company request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_company_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_company", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::Company.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the batch_update_companies REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchUpdateCompaniesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchUpdateCompaniesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchUpdateCompaniesResponse] + # A result object deserialized from the server's reply + def batch_update_companies request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_batch_update_companies_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "batch_update_companies", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::BatchUpdateCompaniesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + ## # @private # @@ -194,6 +354,94 @@ def self.transcode_list_companies_request request_pb ) transcoder.transcode request_pb end + + ## + # @private + # + # GRPC transcoding helper method for the create_company REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::CreateCompanyRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_company_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/companies", + body: "company", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the batch_create_companies REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchCreateCompaniesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_batch_create_companies_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/companies:batchCreate", + body: "*", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_company REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::UpdateCompanyRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_company_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{company.name}", + body: "company", + matches: [ + ["company.name", %r{^networks/[^/]+/companies/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the batch_update_companies REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchUpdateCompaniesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_batch_update_companies_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/companies:batchUpdate", + body: "*", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end end end end diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/contact_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/contact_service/rest/client.rb index 970cb7009ee2..52d374b19246 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/contact_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/contact_service/rest/client.rb @@ -292,20 +292,19 @@ def get_contact request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - # + # **Filterable fields:** + # + # * `address` + # * `cellPhone` + # * `comment` + # * `company` + # * `displayName` + # * `email` + # * `fax` + # * `name` + # * `status` + # * `title` + # * `workPhone` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/content_bundle_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/content_bundle_service/rest/client.rb index 96912cc569e6..6f5ff8bb0bef 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/content_bundle_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/content_bundle_service/rest/client.rb @@ -292,13 +292,12 @@ def get_content_bundle request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - # + # **Filterable fields:** + # + # * `displayName` + # * `name` + # * `status` + # * `updateTime` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/content_label_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/content_label_service/rest/client.rb index 993da2ba94f3..7119a0d20c93 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/content_label_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/content_label_service/rest/client.rb @@ -292,11 +292,10 @@ def get_content_label request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - # + # **Filterable fields:** + # + # * `displayName` + # * `name` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/content_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/content_service/rest/client.rb index a99d2638a9b9..d789c9533e72 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/content_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/content_service/rest/client.rb @@ -292,24 +292,23 @@ def get_content request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - # + # **Filterable fields:** + # + # * `cmsMetadataValues` + # * `cmsSources.contentSource` + # * `cmsSources.contentSourceDisplayName` + # * `contentBundles` + # * `contentStatusSource` + # * `dashIngestStatus` + # * `displayName` + # * `duration` + # * `hlsIngestStatus` + # * `importTime` + # * `lastDashIngestTime` + # * `lastHlsIngestTime` + # * `name` + # * `status` + # * `updateTime` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/creative_set_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/creative_set_service/rest/client.rb index bd21d9ee0bfb..c9fb63fdc9d1 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/creative_set_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/creative_set_service/rest/client.rb @@ -292,14 +292,13 @@ def get_creative_set request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - # + # **Filterable fields:** + # + # * `companionCreatives` + # * `displayName` + # * `masterCreative` + # * `name` + # * `updateTime` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/creative_template_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/creative_template_service/rest/client.rb index 01c9ba1fe03f..59b8a1f6f48a 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/creative_template_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/creative_template_service/rest/client.rb @@ -292,18 +292,17 @@ def get_creative_template request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - # + # **Filterable fields:** + # + # * `description` + # * `displayName` + # * `interstitial` + # * `name` + # * `nativeEligible` + # * `nativeVideoEligible` + # * `safeFrameCompatible` + # * `status` + # * `type` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/creative_wrapper_service.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/creative_wrapper_service.rb new file mode 100644 index 000000000000..e69f80526e64 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/creative_wrapper_service.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/config" +require "gapic/config/method" + +require "google/ads/ad_manager/v1/version" + +require "google/ads/ad_manager/v1/creative_wrapper_service/credentials" +require "google/ads/ad_manager/v1/creative_wrapper_service/paths" +require "google/ads/ad_manager/v1/creative_wrapper_service/rest" + +module Google + module Ads + module AdManager + module V1 + ## + # Provides methods for handling `CreativeWrapper` objects. + # + # @example Load this service and instantiate a REST client + # + # require "google/ads/ad_manager/v1/creative_wrapper_service/rest" + # client = ::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new + # + module CreativeWrapperService + end + end + end + end +end + +helper_path = ::File.join __dir__, "creative_wrapper_service", "helpers.rb" +require "google/ads/ad_manager/v1/creative_wrapper_service/helpers" if ::File.file? helper_path diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/creative_wrapper_service/credentials.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/creative_wrapper_service/credentials.rb new file mode 100644 index 000000000000..ceb79695d166 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/creative_wrapper_service/credentials.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module AdManager + module V1 + module CreativeWrapperService + # Credentials for the CreativeWrapperService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/admanager", + "https://www.googleapis.com/auth/admanager.readonly" + ] + self.env_vars = [ + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/creative_wrapper_service/paths.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/creative_wrapper_service/paths.rb new file mode 100644 index 000000000000..725ad20abc1a --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/creative_wrapper_service/paths.rb @@ -0,0 +1,115 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module AdManager + module V1 + module CreativeWrapperService + # Path helper methods for the CreativeWrapperService API. + module Paths + ## + # Create a fully-qualified Creative resource string. + # + # The resource will be in the following format: + # + # `networks/{network_code}/creatives/{creative}` + # + # @param network_code [String] + # @param creative [String] + # + # @return [::String] + def creative_path network_code:, creative: + raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" + + "networks/#{network_code}/creatives/#{creative}" + end + + ## + # Create a fully-qualified CreativeWrapper resource string. + # + # The resource will be in the following format: + # + # `networks/{network_code}/creativeWrappers/{creative_wrapper}` + # + # @param network_code [String] + # @param creative_wrapper [String] + # + # @return [::String] + def creative_wrapper_path network_code:, creative_wrapper: + raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" + + "networks/#{network_code}/creativeWrappers/#{creative_wrapper}" + end + + ## + # Create a fully-qualified Label resource string. + # + # The resource will be in the following format: + # + # `networks/{network_code}/labels/{label}` + # + # @param network_code [String] + # @param label [String] + # + # @return [::String] + def label_path network_code:, label: + raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" + + "networks/#{network_code}/labels/#{label}" + end + + ## + # Create a fully-qualified Network resource string. + # + # The resource will be in the following format: + # + # `networks/{network_code}` + # + # @param network_code [String] + # + # @return [::String] + def network_path network_code: + "networks/#{network_code}" + end + + ## + # Create a fully-qualified ThirdPartyCompany resource string. + # + # The resource will be in the following format: + # + # `networks/{network_code}/thirdPartyCompanies/{third_party_company}` + # + # @param network_code [String] + # @param third_party_company [String] + # + # @return [::String] + def third_party_company_path network_code:, third_party_company: + raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" + + "networks/#{network_code}/thirdPartyCompanies/#{third_party_company}" + end + + extend self + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/creative_wrapper_service/rest.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/creative_wrapper_service/rest.rb new file mode 100644 index 000000000000..2765e3405f88 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/creative_wrapper_service/rest.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/ad_manager/v1/version" + +require "google/ads/ad_manager/v1/creative_wrapper_service/credentials" +require "google/ads/ad_manager/v1/creative_wrapper_service/paths" +require "google/ads/ad_manager/v1/creative_wrapper_service/rest/client" + +module Google + module Ads + module AdManager + module V1 + ## + # Provides methods for handling `CreativeWrapper` objects. + # + # To load this service and instantiate a REST client: + # + # require "google/ads/ad_manager/v1/creative_wrapper_service/rest" + # client = ::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new + # + module CreativeWrapperService + # Client for the REST transport + module Rest + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "rest", "helpers.rb" +require "google/ads/ad_manager/v1/creative_wrapper_service/rest/helpers" if ::File.file? helper_path diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/creative_wrapper_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/creative_wrapper_service/rest/client.rb new file mode 100644 index 000000000000..103a9144f811 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/creative_wrapper_service/rest/client.rb @@ -0,0 +1,1085 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/ads/admanager/v1/creative_wrapper_service_pb" +require "google/ads/ad_manager/v1/creative_wrapper_service/rest/service_stub" + +module Google + module Ads + module AdManager + module V1 + module CreativeWrapperService + module Rest + ## + # REST client for the CreativeWrapperService service. + # + # Provides methods for handling `CreativeWrapper` objects. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "admanager.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :creative_wrapper_service_stub + + ## + # Configure the CreativeWrapperService Client class. + # + # See {::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CreativeWrapperService clients + # ::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Ads", "AdManager", "V1"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CreativeWrapperService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @creative_wrapper_service_stub.universe_domain + end + + ## + # Create a new CreativeWrapperService REST client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CreativeWrapperService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @creative_wrapper_service_stub = ::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::ServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials, + logger: @config.logger + ) + + @creative_wrapper_service_stub.logger(stub: true)&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @creative_wrapper_service_stub.logger + end + + # Service calls + + ## + # Retrieves a `CreativeWrapper` object. + # + # @overload get_creative_wrapper(request, options = nil) + # Pass arguments to `get_creative_wrapper` via a request object, either of type + # {::Google::Ads::AdManager::V1::GetCreativeWrapperRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::GetCreativeWrapperRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_creative_wrapper(name: nil) + # Pass arguments to `get_creative_wrapper` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the CreativeWrapper. + # Format: `networks/{network_code}/creativeWrappers/{creative_wrapper_id}` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::CreativeWrapper] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::CreativeWrapper] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::GetCreativeWrapperRequest.new + # + # # Call the get_creative_wrapper method. + # result = client.get_creative_wrapper request + # + # # The returned object is of type Google::Ads::AdManager::V1::CreativeWrapper. + # p result + # + def get_creative_wrapper request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::GetCreativeWrapperRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_creative_wrapper.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_creative_wrapper.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_creative_wrapper.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @creative_wrapper_service_stub.get_creative_wrapper request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists `CreativeWrapper` objects. + # + # @overload list_creative_wrappers(request, options = nil) + # Pass arguments to `list_creative_wrappers` via a request object, either of type + # {::Google::Ads::AdManager::V1::ListCreativeWrappersRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::ListCreativeWrappersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_creative_wrappers(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil, skip: nil) + # Pass arguments to `list_creative_wrappers` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent, which owns this collection of CreativeWrappers. + # Format: `networks/{network_code}` + # @param page_size [::Integer] + # Optional. The maximum number of `CreativeWrappers` to return. The service + # may return fewer than this value. If unspecified, at most 50 + # `CreativeWrappers` will be returned. The maximum value is 1000; values + # greater than 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous `ListCreativeWrappers` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListCreativeWrappers` + # must match the call that provided the page token. + # @param filter [::String] + # Optional. Expression to filter the response. + # See syntax details at + # https://developers.google.com/ad-manager/api/beta/filters + # + # **Filterable fields:** + # + # * `creativeWrapperType` + # * `label` + # * `name` + # * `ordering` + # * `status` + # @param order_by [::String] + # Optional. Expression to specify sorting order. + # See syntax details at + # https://developers.google.com/ad-manager/api/beta/filters#order + # @param skip [::Integer] + # Optional. Number of individual resources to skip while paginating. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Ads::AdManager::V1::CreativeWrapper>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Ads::AdManager::V1::CreativeWrapper>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::ListCreativeWrappersRequest.new + # + # # Call the list_creative_wrappers method. + # result = client.list_creative_wrappers request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Ads::AdManager::V1::CreativeWrapper. + # p item + # end + # + def list_creative_wrappers request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::ListCreativeWrappersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_creative_wrappers.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_creative_wrappers.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_creative_wrappers.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @creative_wrapper_service_stub.list_creative_wrappers request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @creative_wrapper_service_stub, :list_creative_wrappers, "creative_wrappers", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a `CreativeWrapper` object. + # + # @overload create_creative_wrapper(request, options = nil) + # Pass arguments to `create_creative_wrapper` via a request object, either of type + # {::Google::Ads::AdManager::V1::CreateCreativeWrapperRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::CreateCreativeWrapperRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_creative_wrapper(parent: nil, creative_wrapper: nil) + # Pass arguments to `create_creative_wrapper` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where this `CreativeWrapper` will be created. + # Format: `networks/{network_code}` + # @param creative_wrapper [::Google::Ads::AdManager::V1::CreativeWrapper, ::Hash] + # Required. The `CreativeWrapper` to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::CreativeWrapper] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::CreativeWrapper] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::CreateCreativeWrapperRequest.new + # + # # Call the create_creative_wrapper method. + # result = client.create_creative_wrapper request + # + # # The returned object is of type Google::Ads::AdManager::V1::CreativeWrapper. + # p result + # + def create_creative_wrapper request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::CreateCreativeWrapperRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_creative_wrapper.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_creative_wrapper.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_creative_wrapper.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @creative_wrapper_service_stub.create_creative_wrapper request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates `CreativeWrapper` objects. + # + # @overload batch_create_creative_wrappers(request, options = nil) + # Pass arguments to `batch_create_creative_wrappers` via a request object, either of type + # {::Google::Ads::AdManager::V1::BatchCreateCreativeWrappersRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::BatchCreateCreativeWrappersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload batch_create_creative_wrappers(parent: nil, requests: nil) + # Pass arguments to `batch_create_creative_wrappers` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where `CreativeWrappers` will be created. + # Format: `networks/{network_code}` + # The parent field in the CreateCreativeWrapperRequest must match this + # field. + # @param requests [::Array<::Google::Ads::AdManager::V1::CreateCreativeWrapperRequest, ::Hash>] + # Required. The `CreativeWrapper` objects to create. + # A maximum of 100 objects can be created in a batch. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchCreateCreativeWrappersResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchCreateCreativeWrappersResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::BatchCreateCreativeWrappersRequest.new + # + # # Call the batch_create_creative_wrappers method. + # result = client.batch_create_creative_wrappers request + # + # # The returned object is of type Google::Ads::AdManager::V1::BatchCreateCreativeWrappersResponse. + # p result + # + def batch_create_creative_wrappers request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchCreateCreativeWrappersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.batch_create_creative_wrappers.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.batch_create_creative_wrappers.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.batch_create_creative_wrappers.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @creative_wrapper_service_stub.batch_create_creative_wrappers request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a `CreativeWrapper` object. + # + # @overload update_creative_wrapper(request, options = nil) + # Pass arguments to `update_creative_wrapper` via a request object, either of type + # {::Google::Ads::AdManager::V1::UpdateCreativeWrapperRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::UpdateCreativeWrapperRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_creative_wrapper(creative_wrapper: nil, update_mask: nil) + # Pass arguments to `update_creative_wrapper` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param creative_wrapper [::Google::Ads::AdManager::V1::CreativeWrapper, ::Hash] + # Required. The `CreativeWrapper` to update. + # + # The `CreativeWrapper`'s `name` is used to identify the `CreativeWrapper` to + # update. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to update. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::CreativeWrapper] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::CreativeWrapper] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::UpdateCreativeWrapperRequest.new + # + # # Call the update_creative_wrapper method. + # result = client.update_creative_wrapper request + # + # # The returned object is of type Google::Ads::AdManager::V1::CreativeWrapper. + # p result + # + def update_creative_wrapper request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::UpdateCreativeWrapperRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_creative_wrapper.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_creative_wrapper.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_creative_wrapper.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @creative_wrapper_service_stub.update_creative_wrapper request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Batch updates `CreativeWrapper` objects. + # + # @overload batch_update_creative_wrappers(request, options = nil) + # Pass arguments to `batch_update_creative_wrappers` via a request object, either of type + # {::Google::Ads::AdManager::V1::BatchUpdateCreativeWrappersRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::BatchUpdateCreativeWrappersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload batch_update_creative_wrappers(parent: nil, requests: nil) + # Pass arguments to `batch_update_creative_wrappers` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where `CreativeWrappers` will be updated. + # Format: `networks/{network_code}` + # The parent field in the UpdateCreativeWrapperRequest must match this + # field. + # @param requests [::Array<::Google::Ads::AdManager::V1::UpdateCreativeWrapperRequest, ::Hash>] + # Required. The `CreativeWrapper` objects to update. + # A maximum of 100 objects can be updated in a batch. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchUpdateCreativeWrappersResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchUpdateCreativeWrappersResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::BatchUpdateCreativeWrappersRequest.new + # + # # Call the batch_update_creative_wrappers method. + # result = client.batch_update_creative_wrappers request + # + # # The returned object is of type Google::Ads::AdManager::V1::BatchUpdateCreativeWrappersResponse. + # p result + # + def batch_update_creative_wrappers request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchUpdateCreativeWrappersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.batch_update_creative_wrappers.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.batch_update_creative_wrappers.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.batch_update_creative_wrappers.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @creative_wrapper_service_stub.batch_update_creative_wrappers request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Batch activates `CreativeWrapper` objects. + # + # @overload batch_activate_creative_wrappers(request, options = nil) + # Pass arguments to `batch_activate_creative_wrappers` via a request object, either of type + # {::Google::Ads::AdManager::V1::BatchActivateCreativeWrappersRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::BatchActivateCreativeWrappersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload batch_activate_creative_wrappers(parent: nil, names: nil) + # Pass arguments to `batch_activate_creative_wrappers` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Format: `networks/{network_code}` + # @param names [::Array<::String>] + # Required. The resource names of the `CreativeWrapper` objects to activate. + # Format: `networks/{network_code}/creativeWrappers/{creative_wrapper_id}` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchActivateCreativeWrappersResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchActivateCreativeWrappersResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::BatchActivateCreativeWrappersRequest.new + # + # # Call the batch_activate_creative_wrappers method. + # result = client.batch_activate_creative_wrappers request + # + # # The returned object is of type Google::Ads::AdManager::V1::BatchActivateCreativeWrappersResponse. + # p result + # + def batch_activate_creative_wrappers request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchActivateCreativeWrappersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.batch_activate_creative_wrappers.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.batch_activate_creative_wrappers.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.batch_activate_creative_wrappers.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @creative_wrapper_service_stub.batch_activate_creative_wrappers request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deactivates a list of `CreativeWrapper` objects. + # + # @overload batch_deactivate_creative_wrappers(request, options = nil) + # Pass arguments to `batch_deactivate_creative_wrappers` via a request object, either of type + # {::Google::Ads::AdManager::V1::BatchDeactivateCreativeWrappersRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::BatchDeactivateCreativeWrappersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload batch_deactivate_creative_wrappers(parent: nil, names: nil) + # Pass arguments to `batch_deactivate_creative_wrappers` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Format: `networks/{network_code}` + # @param names [::Array<::String>] + # Required. The resource names of the `CreativeWrapper` objects to + # deactivate. Format: + # `networks/{network_code}/creativeWrappers/{creative_wrapper_id}` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchDeactivateCreativeWrappersResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchDeactivateCreativeWrappersResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::BatchDeactivateCreativeWrappersRequest.new + # + # # Call the batch_deactivate_creative_wrappers method. + # result = client.batch_deactivate_creative_wrappers request + # + # # The returned object is of type Google::Ads::AdManager::V1::BatchDeactivateCreativeWrappersResponse. + # p result + # + def batch_deactivate_creative_wrappers request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchDeactivateCreativeWrappersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.batch_deactivate_creative_wrappers.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.batch_deactivate_creative_wrappers.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.batch_deactivate_creative_wrappers.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @creative_wrapper_service_stub.batch_deactivate_creative_wrappers request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the CreativeWrapperService REST API. + # + # This class represents the configuration for CreativeWrapperService REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # get_creative_wrapper to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.get_creative_wrapper.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.get_creative_wrapper.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "admanager.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the CreativeWrapperService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `get_creative_wrapper` + # @return [::Gapic::Config::Method] + # + attr_reader :get_creative_wrapper + ## + # RPC-specific configuration for `list_creative_wrappers` + # @return [::Gapic::Config::Method] + # + attr_reader :list_creative_wrappers + ## + # RPC-specific configuration for `create_creative_wrapper` + # @return [::Gapic::Config::Method] + # + attr_reader :create_creative_wrapper + ## + # RPC-specific configuration for `batch_create_creative_wrappers` + # @return [::Gapic::Config::Method] + # + attr_reader :batch_create_creative_wrappers + ## + # RPC-specific configuration for `update_creative_wrapper` + # @return [::Gapic::Config::Method] + # + attr_reader :update_creative_wrapper + ## + # RPC-specific configuration for `batch_update_creative_wrappers` + # @return [::Gapic::Config::Method] + # + attr_reader :batch_update_creative_wrappers + ## + # RPC-specific configuration for `batch_activate_creative_wrappers` + # @return [::Gapic::Config::Method] + # + attr_reader :batch_activate_creative_wrappers + ## + # RPC-specific configuration for `batch_deactivate_creative_wrappers` + # @return [::Gapic::Config::Method] + # + attr_reader :batch_deactivate_creative_wrappers + + # @private + def initialize parent_rpcs = nil + get_creative_wrapper_config = parent_rpcs.get_creative_wrapper if parent_rpcs.respond_to? :get_creative_wrapper + @get_creative_wrapper = ::Gapic::Config::Method.new get_creative_wrapper_config + list_creative_wrappers_config = parent_rpcs.list_creative_wrappers if parent_rpcs.respond_to? :list_creative_wrappers + @list_creative_wrappers = ::Gapic::Config::Method.new list_creative_wrappers_config + create_creative_wrapper_config = parent_rpcs.create_creative_wrapper if parent_rpcs.respond_to? :create_creative_wrapper + @create_creative_wrapper = ::Gapic::Config::Method.new create_creative_wrapper_config + batch_create_creative_wrappers_config = parent_rpcs.batch_create_creative_wrappers if parent_rpcs.respond_to? :batch_create_creative_wrappers + @batch_create_creative_wrappers = ::Gapic::Config::Method.new batch_create_creative_wrappers_config + update_creative_wrapper_config = parent_rpcs.update_creative_wrapper if parent_rpcs.respond_to? :update_creative_wrapper + @update_creative_wrapper = ::Gapic::Config::Method.new update_creative_wrapper_config + batch_update_creative_wrappers_config = parent_rpcs.batch_update_creative_wrappers if parent_rpcs.respond_to? :batch_update_creative_wrappers + @batch_update_creative_wrappers = ::Gapic::Config::Method.new batch_update_creative_wrappers_config + batch_activate_creative_wrappers_config = parent_rpcs.batch_activate_creative_wrappers if parent_rpcs.respond_to? :batch_activate_creative_wrappers + @batch_activate_creative_wrappers = ::Gapic::Config::Method.new batch_activate_creative_wrappers_config + batch_deactivate_creative_wrappers_config = parent_rpcs.batch_deactivate_creative_wrappers if parent_rpcs.respond_to? :batch_deactivate_creative_wrappers + @batch_deactivate_creative_wrappers = ::Gapic::Config::Method.new batch_deactivate_creative_wrappers_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/creative_wrapper_service/rest/service_stub.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/creative_wrapper_service/rest/service_stub.rb new file mode 100644 index 000000000000..44f057c96a08 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/creative_wrapper_service/rest/service_stub.rb @@ -0,0 +1,575 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/ads/admanager/v1/creative_wrapper_service_pb" + +module Google + module Ads + module AdManager + module V1 + module CreativeWrapperService + module Rest + ## + # REST service stub for the CreativeWrapperService service. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + # + class ServiceStub + # @private + def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, + numeric_enums: true, + service_name: self.class, + raise_faraday_errors: false, + logger: logger + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain + end + + ## + # The effective endpoint + # + # @return [String] + # + def endpoint + @client_stub.endpoint + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger stub: false + stub ? @client_stub.stub_logger : @client_stub.logger + end + + ## + # Baseline implementation for the get_creative_wrapper REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::GetCreativeWrapperRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::CreativeWrapper] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::CreativeWrapper] + # A result object deserialized from the server's reply + def get_creative_wrapper request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_creative_wrapper_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_creative_wrapper", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::CreativeWrapper.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_creative_wrappers REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::ListCreativeWrappersRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::ListCreativeWrappersResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::ListCreativeWrappersResponse] + # A result object deserialized from the server's reply + def list_creative_wrappers request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_creative_wrappers_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_creative_wrappers", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::ListCreativeWrappersResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_creative_wrapper REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::CreateCreativeWrapperRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::CreativeWrapper] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::CreativeWrapper] + # A result object deserialized from the server's reply + def create_creative_wrapper request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_creative_wrapper_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_creative_wrapper", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::CreativeWrapper.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the batch_create_creative_wrappers REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchCreateCreativeWrappersRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchCreateCreativeWrappersResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchCreateCreativeWrappersResponse] + # A result object deserialized from the server's reply + def batch_create_creative_wrappers request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_batch_create_creative_wrappers_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "batch_create_creative_wrappers", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::BatchCreateCreativeWrappersResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_creative_wrapper REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::UpdateCreativeWrapperRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::CreativeWrapper] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::CreativeWrapper] + # A result object deserialized from the server's reply + def update_creative_wrapper request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_creative_wrapper_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_creative_wrapper", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::CreativeWrapper.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the batch_update_creative_wrappers REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchUpdateCreativeWrappersRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchUpdateCreativeWrappersResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchUpdateCreativeWrappersResponse] + # A result object deserialized from the server's reply + def batch_update_creative_wrappers request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_batch_update_creative_wrappers_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "batch_update_creative_wrappers", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::BatchUpdateCreativeWrappersResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the batch_activate_creative_wrappers REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchActivateCreativeWrappersRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchActivateCreativeWrappersResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchActivateCreativeWrappersResponse] + # A result object deserialized from the server's reply + def batch_activate_creative_wrappers request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_batch_activate_creative_wrappers_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "batch_activate_creative_wrappers", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::BatchActivateCreativeWrappersResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the batch_deactivate_creative_wrappers REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchDeactivateCreativeWrappersRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchDeactivateCreativeWrappersResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchDeactivateCreativeWrappersResponse] + # A result object deserialized from the server's reply + def batch_deactivate_creative_wrappers request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_batch_deactivate_creative_wrappers_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "batch_deactivate_creative_wrappers", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::BatchDeactivateCreativeWrappersResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the get_creative_wrapper REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::GetCreativeWrapperRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_creative_wrapper_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^networks/[^/]+/creativeWrappers/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_creative_wrappers REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::ListCreativeWrappersRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_creative_wrappers_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/creativeWrappers", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_creative_wrapper REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::CreateCreativeWrapperRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_creative_wrapper_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/creativeWrappers", + body: "creative_wrapper", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the batch_create_creative_wrappers REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchCreateCreativeWrappersRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_batch_create_creative_wrappers_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/creativeWrappers:batchCreate", + body: "*", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_creative_wrapper REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::UpdateCreativeWrapperRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_creative_wrapper_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{creative_wrapper.name}", + body: "creative_wrapper", + matches: [ + ["creative_wrapper.name", %r{^networks/[^/]+/creativeWrappers/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the batch_update_creative_wrappers REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchUpdateCreativeWrappersRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_batch_update_creative_wrappers_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/creativeWrappers:batchUpdate", + body: "*", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the batch_activate_creative_wrappers REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchActivateCreativeWrappersRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_batch_activate_creative_wrappers_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/creativeWrappers:batchActivate", + body: "*", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the batch_deactivate_creative_wrappers REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchDeactivateCreativeWrappersRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_batch_deactivate_creative_wrappers_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/creativeWrappers:batchDeactivate", + body: "*", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/custom_field_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/custom_field_service/rest/client.rb index 53064c017c1c..e06c0586a990 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/custom_field_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/custom_field_service/rest/client.rb @@ -292,18 +292,17 @@ def get_custom_field request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • dataType
  • - #
  • description
  • - #
  • displayName
  • - #
  • entityType
  • - #
  • name
  • - #
  • options.customFieldOptionId
  • - #
  • options.displayName
  • - #
  • status
  • - #
  • visibility
  • - #
+ # **Filterable fields:** + # + # * `dataType` + # * `description` + # * `displayName` + # * `entityType` + # * `name` + # * `options.customFieldOptionId` + # * `options.displayName` + # * `status` + # * `visibility` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/custom_targeting_key_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/custom_targeting_key_service/rest/client.rb index d255fbb611f5..da90c91842d9 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/custom_targeting_key_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/custom_targeting_key_service/rest/client.rb @@ -293,15 +293,14 @@ def get_custom_targeting_key request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • adTagName
  • - #
  • displayName
  • - #
  • name
  • - #
  • reportableType
  • - #
  • status
  • - #
  • type
  • - #
+ # **Filterable fields:** + # + # * `adTagName` + # * `displayName` + # * `name` + # * `reportableType` + # * `status` + # * `type` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/custom_targeting_value_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/custom_targeting_value_service/rest/client.rb index b8d361a8bb58..76ef5cbee84c 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/custom_targeting_value_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/custom_targeting_value_service/rest/client.rb @@ -296,15 +296,14 @@ def get_custom_targeting_value request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • adTagName
  • - #
  • customTargetingKey
  • - #
  • displayName
  • - #
  • matchType
  • - #
  • name
  • - #
  • status
  • - #
+ # **Filterable fields:** + # + # * `adTagName` + # * `customTargetingKey` + # * `displayName` + # * `matchType` + # * `name` + # * `status` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_authentication_key_service.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_authentication_key_service.rb new file mode 100644 index 000000000000..266aa278d140 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_authentication_key_service.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/config" +require "gapic/config/method" + +require "google/ads/ad_manager/v1/version" + +require "google/ads/ad_manager/v1/dai_authentication_key_service/credentials" +require "google/ads/ad_manager/v1/dai_authentication_key_service/paths" +require "google/ads/ad_manager/v1/dai_authentication_key_service/rest" + +module Google + module Ads + module AdManager + module V1 + ## + # Provides methods for handling `DaiAuthenticationKey` objects. + # + # @example Load this service and instantiate a REST client + # + # require "google/ads/ad_manager/v1/dai_authentication_key_service/rest" + # client = ::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new + # + module DaiAuthenticationKeyService + end + end + end + end +end + +helper_path = ::File.join __dir__, "dai_authentication_key_service", "helpers.rb" +require "google/ads/ad_manager/v1/dai_authentication_key_service/helpers" if ::File.file? helper_path diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_authentication_key_service/credentials.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_authentication_key_service/credentials.rb new file mode 100644 index 000000000000..c901609a22c5 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_authentication_key_service/credentials.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module AdManager + module V1 + module DaiAuthenticationKeyService + # Credentials for the DaiAuthenticationKeyService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/admanager", + "https://www.googleapis.com/auth/admanager.readonly" + ] + self.env_vars = [ + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_authentication_key_service/paths.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_authentication_key_service/paths.rb new file mode 100644 index 000000000000..e6a40a1b6d76 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_authentication_key_service/paths.rb @@ -0,0 +1,64 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module AdManager + module V1 + module DaiAuthenticationKeyService + # Path helper methods for the DaiAuthenticationKeyService API. + module Paths + ## + # Create a fully-qualified DaiAuthenticationKey resource string. + # + # The resource will be in the following format: + # + # `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}` + # + # @param network_code [String] + # @param dai_authentication_key [String] + # + # @return [::String] + def dai_authentication_key_path network_code:, dai_authentication_key: + raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" + + "networks/#{network_code}/daiAuthenticationKeys/#{dai_authentication_key}" + end + + ## + # Create a fully-qualified Network resource string. + # + # The resource will be in the following format: + # + # `networks/{network_code}` + # + # @param network_code [String] + # + # @return [::String] + def network_path network_code: + "networks/#{network_code}" + end + + extend self + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_authentication_key_service/rest.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_authentication_key_service/rest.rb new file mode 100644 index 000000000000..c1e92d732ccb --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_authentication_key_service/rest.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/ad_manager/v1/version" + +require "google/ads/ad_manager/v1/dai_authentication_key_service/credentials" +require "google/ads/ad_manager/v1/dai_authentication_key_service/paths" +require "google/ads/ad_manager/v1/dai_authentication_key_service/rest/client" + +module Google + module Ads + module AdManager + module V1 + ## + # Provides methods for handling `DaiAuthenticationKey` objects. + # + # To load this service and instantiate a REST client: + # + # require "google/ads/ad_manager/v1/dai_authentication_key_service/rest" + # client = ::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new + # + module DaiAuthenticationKeyService + # Client for the REST transport + module Rest + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "rest", "helpers.rb" +require "google/ads/ad_manager/v1/dai_authentication_key_service/rest/helpers" if ::File.file? helper_path diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_authentication_key_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_authentication_key_service/rest/client.rb new file mode 100644 index 000000000000..01a33fc747e4 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_authentication_key_service/rest/client.rb @@ -0,0 +1,1085 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/ads/admanager/v1/dai_authentication_key_service_pb" +require "google/ads/ad_manager/v1/dai_authentication_key_service/rest/service_stub" + +module Google + module Ads + module AdManager + module V1 + module DaiAuthenticationKeyService + module Rest + ## + # REST client for the DaiAuthenticationKeyService service. + # + # Provides methods for handling `DaiAuthenticationKey` objects. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "admanager.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :dai_authentication_key_service_stub + + ## + # Configure the DaiAuthenticationKeyService Client class. + # + # See {::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all DaiAuthenticationKeyService clients + # ::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Ads", "AdManager", "V1"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the DaiAuthenticationKeyService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @dai_authentication_key_service_stub.universe_domain + end + + ## + # Create a new DaiAuthenticationKeyService REST client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the DaiAuthenticationKeyService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @dai_authentication_key_service_stub = ::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::ServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials, + logger: @config.logger + ) + + @dai_authentication_key_service_stub.logger(stub: true)&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @dai_authentication_key_service_stub.logger + end + + # Service calls + + ## + # Retrieves a `DaiAuthenticationKey` object. + # + # @overload get_dai_authentication_key(request, options = nil) + # Pass arguments to `get_dai_authentication_key` via a request object, either of type + # {::Google::Ads::AdManager::V1::GetDaiAuthenticationKeyRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::GetDaiAuthenticationKeyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_dai_authentication_key(name: nil) + # Pass arguments to `get_dai_authentication_key` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the `DaiAuthenticationKey`. + # Format: + # `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key_id}` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::DaiAuthenticationKey] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::DaiAuthenticationKey] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::GetDaiAuthenticationKeyRequest.new + # + # # Call the get_dai_authentication_key method. + # result = client.get_dai_authentication_key request + # + # # The returned object is of type Google::Ads::AdManager::V1::DaiAuthenticationKey. + # p result + # + def get_dai_authentication_key request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::GetDaiAuthenticationKeyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_dai_authentication_key.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_dai_authentication_key.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_dai_authentication_key.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dai_authentication_key_service_stub.get_dai_authentication_key request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists `DaiAuthenticationKey` objects. + # + # @overload list_dai_authentication_keys(request, options = nil) + # Pass arguments to `list_dai_authentication_keys` via a request object, either of type + # {::Google::Ads::AdManager::V1::ListDaiAuthenticationKeysRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::ListDaiAuthenticationKeysRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_dai_authentication_keys(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil, skip: nil) + # Pass arguments to `list_dai_authentication_keys` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent, which owns this collection of DaiAuthenticationKeys. + # Format: `networks/{network_code}` + # @param page_size [::Integer] + # Optional. The maximum number of `DaiAuthenticationKeys` to return. The + # service may return fewer than this value. If unspecified, at most 50 + # `DaiAuthenticationKeys` will be returned. The maximum value is 1000; values + # greater than 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous + # `ListDaiAuthenticationKeys` call. Provide this to retrieve the subsequent + # page. + # + # When paginating, all other parameters provided to + # `ListDaiAuthenticationKeys` must match the call that provided the page + # token. + # @param filter [::String] + # Optional. Expression to filter the response. + # See syntax details at + # https://developers.google.com/ad-manager/api/beta/filters + # + # **Filterable fields:** + # + # * `displayName` + # * `name` + # * `status` + # @param order_by [::String] + # Optional. Expression to specify sorting order. + # See syntax details at + # https://developers.google.com/ad-manager/api/beta/filters#order + # @param skip [::Integer] + # Optional. Number of individual resources to skip while paginating. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Ads::AdManager::V1::DaiAuthenticationKey>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Ads::AdManager::V1::DaiAuthenticationKey>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::ListDaiAuthenticationKeysRequest.new + # + # # Call the list_dai_authentication_keys method. + # result = client.list_dai_authentication_keys request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Ads::AdManager::V1::DaiAuthenticationKey. + # p item + # end + # + def list_dai_authentication_keys request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::ListDaiAuthenticationKeysRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_dai_authentication_keys.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_dai_authentication_keys.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_dai_authentication_keys.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dai_authentication_key_service_stub.list_dai_authentication_keys request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dai_authentication_key_service_stub, :list_dai_authentication_keys, "dai_authentication_keys", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a `DaiAuthenticationKey` object. + # + # @overload create_dai_authentication_key(request, options = nil) + # Pass arguments to `create_dai_authentication_key` via a request object, either of type + # {::Google::Ads::AdManager::V1::CreateDaiAuthenticationKeyRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::CreateDaiAuthenticationKeyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_dai_authentication_key(parent: nil, dai_authentication_key: nil) + # Pass arguments to `create_dai_authentication_key` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where this `DaiAuthenticationKey` will be + # created. Format: `networks/{network_code}` + # @param dai_authentication_key [::Google::Ads::AdManager::V1::DaiAuthenticationKey, ::Hash] + # Required. The `DaiAuthenticationKey` to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::DaiAuthenticationKey] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::DaiAuthenticationKey] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::CreateDaiAuthenticationKeyRequest.new + # + # # Call the create_dai_authentication_key method. + # result = client.create_dai_authentication_key request + # + # # The returned object is of type Google::Ads::AdManager::V1::DaiAuthenticationKey. + # p result + # + def create_dai_authentication_key request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::CreateDaiAuthenticationKeyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_dai_authentication_key.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_dai_authentication_key.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_dai_authentication_key.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dai_authentication_key_service_stub.create_dai_authentication_key request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Batch creates `DaiAuthenticationKey` objects. + # + # @overload batch_create_dai_authentication_keys(request, options = nil) + # Pass arguments to `batch_create_dai_authentication_keys` via a request object, either of type + # {::Google::Ads::AdManager::V1::BatchCreateDaiAuthenticationKeysRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::BatchCreateDaiAuthenticationKeysRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload batch_create_dai_authentication_keys(parent: nil, requests: nil) + # Pass arguments to `batch_create_dai_authentication_keys` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where `DaiAuthenticationKeys` will be + # created. Format: `networks/{network_code}` The parent field in the + # CreateDaiAuthenticationKeyRequest must match this field. + # @param requests [::Array<::Google::Ads::AdManager::V1::CreateDaiAuthenticationKeyRequest, ::Hash>] + # Required. The `DaiAuthenticationKey` objects to create. + # A maximum of 100 objects can be created in a batch. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchCreateDaiAuthenticationKeysResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchCreateDaiAuthenticationKeysResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::BatchCreateDaiAuthenticationKeysRequest.new + # + # # Call the batch_create_dai_authentication_keys method. + # result = client.batch_create_dai_authentication_keys request + # + # # The returned object is of type Google::Ads::AdManager::V1::BatchCreateDaiAuthenticationKeysResponse. + # p result + # + def batch_create_dai_authentication_keys request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchCreateDaiAuthenticationKeysRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.batch_create_dai_authentication_keys.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.batch_create_dai_authentication_keys.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.batch_create_dai_authentication_keys.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dai_authentication_key_service_stub.batch_create_dai_authentication_keys request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a `DaiAuthenticationKey` object. + # + # @overload update_dai_authentication_key(request, options = nil) + # Pass arguments to `update_dai_authentication_key` via a request object, either of type + # {::Google::Ads::AdManager::V1::UpdateDaiAuthenticationKeyRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::UpdateDaiAuthenticationKeyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_dai_authentication_key(dai_authentication_key: nil, update_mask: nil) + # Pass arguments to `update_dai_authentication_key` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param dai_authentication_key [::Google::Ads::AdManager::V1::DaiAuthenticationKey, ::Hash] + # Required. The `DaiAuthenticationKey` to update. + # + # The `DaiAuthenticationKey`'s `name` is used to identify the + # `DaiAuthenticationKey` to update. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to update. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::DaiAuthenticationKey] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::DaiAuthenticationKey] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::UpdateDaiAuthenticationKeyRequest.new + # + # # Call the update_dai_authentication_key method. + # result = client.update_dai_authentication_key request + # + # # The returned object is of type Google::Ads::AdManager::V1::DaiAuthenticationKey. + # p result + # + def update_dai_authentication_key request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::UpdateDaiAuthenticationKeyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_dai_authentication_key.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_dai_authentication_key.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_dai_authentication_key.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dai_authentication_key_service_stub.update_dai_authentication_key request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Batch updates `DaiAuthenticationKey` objects. + # + # @overload batch_update_dai_authentication_keys(request, options = nil) + # Pass arguments to `batch_update_dai_authentication_keys` via a request object, either of type + # {::Google::Ads::AdManager::V1::BatchUpdateDaiAuthenticationKeysRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::BatchUpdateDaiAuthenticationKeysRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload batch_update_dai_authentication_keys(parent: nil, requests: nil) + # Pass arguments to `batch_update_dai_authentication_keys` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where `DaiAuthenticationKeys` will be + # updated. Format: `networks/{network_code}` The parent field in the + # UpdateDaiAuthenticationKeyRequest must match this field. + # @param requests [::Array<::Google::Ads::AdManager::V1::UpdateDaiAuthenticationKeyRequest, ::Hash>] + # Required. The `DaiAuthenticationKey` objects to update. + # A maximum of 100 objects can be updated in a batch. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchUpdateDaiAuthenticationKeysResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchUpdateDaiAuthenticationKeysResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::BatchUpdateDaiAuthenticationKeysRequest.new + # + # # Call the batch_update_dai_authentication_keys method. + # result = client.batch_update_dai_authentication_keys request + # + # # The returned object is of type Google::Ads::AdManager::V1::BatchUpdateDaiAuthenticationKeysResponse. + # p result + # + def batch_update_dai_authentication_keys request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchUpdateDaiAuthenticationKeysRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.batch_update_dai_authentication_keys.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.batch_update_dai_authentication_keys.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.batch_update_dai_authentication_keys.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dai_authentication_key_service_stub.batch_update_dai_authentication_keys request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Activates a list of `DaiAuthenticationKey` objects. + # + # @overload batch_activate_dai_authentication_keys(request, options = nil) + # Pass arguments to `batch_activate_dai_authentication_keys` via a request object, either of type + # {::Google::Ads::AdManager::V1::BatchActivateDaiAuthenticationKeysRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::BatchActivateDaiAuthenticationKeysRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload batch_activate_dai_authentication_keys(parent: nil, names: nil) + # Pass arguments to `batch_activate_dai_authentication_keys` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Format: `networks/{network_code}` + # @param names [::Array<::String>] + # Required. Resource names for the DaiAuthenticationKey. + # Format: + # `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchActivateDaiAuthenticationKeysResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchActivateDaiAuthenticationKeysResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::BatchActivateDaiAuthenticationKeysRequest.new + # + # # Call the batch_activate_dai_authentication_keys method. + # result = client.batch_activate_dai_authentication_keys request + # + # # The returned object is of type Google::Ads::AdManager::V1::BatchActivateDaiAuthenticationKeysResponse. + # p result + # + def batch_activate_dai_authentication_keys request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchActivateDaiAuthenticationKeysRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.batch_activate_dai_authentication_keys.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.batch_activate_dai_authentication_keys.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.batch_activate_dai_authentication_keys.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dai_authentication_key_service_stub.batch_activate_dai_authentication_keys request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deactivates a list of `DaiAuthenticationKey` objects. + # + # @overload batch_deactivate_dai_authentication_keys(request, options = nil) + # Pass arguments to `batch_deactivate_dai_authentication_keys` via a request object, either of type + # {::Google::Ads::AdManager::V1::BatchDeactivateDaiAuthenticationKeysRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::BatchDeactivateDaiAuthenticationKeysRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload batch_deactivate_dai_authentication_keys(parent: nil, names: nil) + # Pass arguments to `batch_deactivate_dai_authentication_keys` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Format: `networks/{network_code}` + # @param names [::Array<::String>] + # Required. Resource names for the DaiAuthenticationKey. + # Format: + # `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchDeactivateDaiAuthenticationKeysResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchDeactivateDaiAuthenticationKeysResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::BatchDeactivateDaiAuthenticationKeysRequest.new + # + # # Call the batch_deactivate_dai_authentication_keys method. + # result = client.batch_deactivate_dai_authentication_keys request + # + # # The returned object is of type Google::Ads::AdManager::V1::BatchDeactivateDaiAuthenticationKeysResponse. + # p result + # + def batch_deactivate_dai_authentication_keys request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchDeactivateDaiAuthenticationKeysRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.batch_deactivate_dai_authentication_keys.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.batch_deactivate_dai_authentication_keys.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.batch_deactivate_dai_authentication_keys.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dai_authentication_key_service_stub.batch_deactivate_dai_authentication_keys request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the DaiAuthenticationKeyService REST API. + # + # This class represents the configuration for DaiAuthenticationKeyService REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # get_dai_authentication_key to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.get_dai_authentication_key.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.get_dai_authentication_key.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "admanager.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the DaiAuthenticationKeyService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `get_dai_authentication_key` + # @return [::Gapic::Config::Method] + # + attr_reader :get_dai_authentication_key + ## + # RPC-specific configuration for `list_dai_authentication_keys` + # @return [::Gapic::Config::Method] + # + attr_reader :list_dai_authentication_keys + ## + # RPC-specific configuration for `create_dai_authentication_key` + # @return [::Gapic::Config::Method] + # + attr_reader :create_dai_authentication_key + ## + # RPC-specific configuration for `batch_create_dai_authentication_keys` + # @return [::Gapic::Config::Method] + # + attr_reader :batch_create_dai_authentication_keys + ## + # RPC-specific configuration for `update_dai_authentication_key` + # @return [::Gapic::Config::Method] + # + attr_reader :update_dai_authentication_key + ## + # RPC-specific configuration for `batch_update_dai_authentication_keys` + # @return [::Gapic::Config::Method] + # + attr_reader :batch_update_dai_authentication_keys + ## + # RPC-specific configuration for `batch_activate_dai_authentication_keys` + # @return [::Gapic::Config::Method] + # + attr_reader :batch_activate_dai_authentication_keys + ## + # RPC-specific configuration for `batch_deactivate_dai_authentication_keys` + # @return [::Gapic::Config::Method] + # + attr_reader :batch_deactivate_dai_authentication_keys + + # @private + def initialize parent_rpcs = nil + get_dai_authentication_key_config = parent_rpcs.get_dai_authentication_key if parent_rpcs.respond_to? :get_dai_authentication_key + @get_dai_authentication_key = ::Gapic::Config::Method.new get_dai_authentication_key_config + list_dai_authentication_keys_config = parent_rpcs.list_dai_authentication_keys if parent_rpcs.respond_to? :list_dai_authentication_keys + @list_dai_authentication_keys = ::Gapic::Config::Method.new list_dai_authentication_keys_config + create_dai_authentication_key_config = parent_rpcs.create_dai_authentication_key if parent_rpcs.respond_to? :create_dai_authentication_key + @create_dai_authentication_key = ::Gapic::Config::Method.new create_dai_authentication_key_config + batch_create_dai_authentication_keys_config = parent_rpcs.batch_create_dai_authentication_keys if parent_rpcs.respond_to? :batch_create_dai_authentication_keys + @batch_create_dai_authentication_keys = ::Gapic::Config::Method.new batch_create_dai_authentication_keys_config + update_dai_authentication_key_config = parent_rpcs.update_dai_authentication_key if parent_rpcs.respond_to? :update_dai_authentication_key + @update_dai_authentication_key = ::Gapic::Config::Method.new update_dai_authentication_key_config + batch_update_dai_authentication_keys_config = parent_rpcs.batch_update_dai_authentication_keys if parent_rpcs.respond_to? :batch_update_dai_authentication_keys + @batch_update_dai_authentication_keys = ::Gapic::Config::Method.new batch_update_dai_authentication_keys_config + batch_activate_dai_authentication_keys_config = parent_rpcs.batch_activate_dai_authentication_keys if parent_rpcs.respond_to? :batch_activate_dai_authentication_keys + @batch_activate_dai_authentication_keys = ::Gapic::Config::Method.new batch_activate_dai_authentication_keys_config + batch_deactivate_dai_authentication_keys_config = parent_rpcs.batch_deactivate_dai_authentication_keys if parent_rpcs.respond_to? :batch_deactivate_dai_authentication_keys + @batch_deactivate_dai_authentication_keys = ::Gapic::Config::Method.new batch_deactivate_dai_authentication_keys_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_authentication_key_service/rest/service_stub.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_authentication_key_service/rest/service_stub.rb new file mode 100644 index 000000000000..fe7f49aba3fe --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_authentication_key_service/rest/service_stub.rb @@ -0,0 +1,575 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/ads/admanager/v1/dai_authentication_key_service_pb" + +module Google + module Ads + module AdManager + module V1 + module DaiAuthenticationKeyService + module Rest + ## + # REST service stub for the DaiAuthenticationKeyService service. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + # + class ServiceStub + # @private + def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, + numeric_enums: true, + service_name: self.class, + raise_faraday_errors: false, + logger: logger + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain + end + + ## + # The effective endpoint + # + # @return [String] + # + def endpoint + @client_stub.endpoint + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger stub: false + stub ? @client_stub.stub_logger : @client_stub.logger + end + + ## + # Baseline implementation for the get_dai_authentication_key REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::GetDaiAuthenticationKeyRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::DaiAuthenticationKey] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::DaiAuthenticationKey] + # A result object deserialized from the server's reply + def get_dai_authentication_key request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_dai_authentication_key_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_dai_authentication_key", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::DaiAuthenticationKey.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_dai_authentication_keys REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::ListDaiAuthenticationKeysRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::ListDaiAuthenticationKeysResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::ListDaiAuthenticationKeysResponse] + # A result object deserialized from the server's reply + def list_dai_authentication_keys request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_dai_authentication_keys_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_dai_authentication_keys", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::ListDaiAuthenticationKeysResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_dai_authentication_key REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::CreateDaiAuthenticationKeyRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::DaiAuthenticationKey] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::DaiAuthenticationKey] + # A result object deserialized from the server's reply + def create_dai_authentication_key request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_dai_authentication_key_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_dai_authentication_key", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::DaiAuthenticationKey.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the batch_create_dai_authentication_keys REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchCreateDaiAuthenticationKeysRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchCreateDaiAuthenticationKeysResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchCreateDaiAuthenticationKeysResponse] + # A result object deserialized from the server's reply + def batch_create_dai_authentication_keys request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_batch_create_dai_authentication_keys_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "batch_create_dai_authentication_keys", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::BatchCreateDaiAuthenticationKeysResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_dai_authentication_key REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::UpdateDaiAuthenticationKeyRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::DaiAuthenticationKey] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::DaiAuthenticationKey] + # A result object deserialized from the server's reply + def update_dai_authentication_key request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_dai_authentication_key_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_dai_authentication_key", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::DaiAuthenticationKey.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the batch_update_dai_authentication_keys REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchUpdateDaiAuthenticationKeysRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchUpdateDaiAuthenticationKeysResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchUpdateDaiAuthenticationKeysResponse] + # A result object deserialized from the server's reply + def batch_update_dai_authentication_keys request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_batch_update_dai_authentication_keys_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "batch_update_dai_authentication_keys", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::BatchUpdateDaiAuthenticationKeysResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the batch_activate_dai_authentication_keys REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchActivateDaiAuthenticationKeysRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchActivateDaiAuthenticationKeysResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchActivateDaiAuthenticationKeysResponse] + # A result object deserialized from the server's reply + def batch_activate_dai_authentication_keys request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_batch_activate_dai_authentication_keys_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "batch_activate_dai_authentication_keys", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::BatchActivateDaiAuthenticationKeysResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the batch_deactivate_dai_authentication_keys REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchDeactivateDaiAuthenticationKeysRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchDeactivateDaiAuthenticationKeysResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchDeactivateDaiAuthenticationKeysResponse] + # A result object deserialized from the server's reply + def batch_deactivate_dai_authentication_keys request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_batch_deactivate_dai_authentication_keys_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "batch_deactivate_dai_authentication_keys", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::BatchDeactivateDaiAuthenticationKeysResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the get_dai_authentication_key REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::GetDaiAuthenticationKeyRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_dai_authentication_key_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^networks/[^/]+/daiAuthenticationKeys/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_dai_authentication_keys REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::ListDaiAuthenticationKeysRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_dai_authentication_keys_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/daiAuthenticationKeys", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_dai_authentication_key REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::CreateDaiAuthenticationKeyRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_dai_authentication_key_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/daiAuthenticationKeys", + body: "dai_authentication_key", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the batch_create_dai_authentication_keys REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchCreateDaiAuthenticationKeysRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_batch_create_dai_authentication_keys_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/daiAuthenticationKeys:batchCreate", + body: "*", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_dai_authentication_key REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::UpdateDaiAuthenticationKeyRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_dai_authentication_key_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{dai_authentication_key.name}", + body: "dai_authentication_key", + matches: [ + ["dai_authentication_key.name", %r{^networks/[^/]+/daiAuthenticationKeys/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the batch_update_dai_authentication_keys REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchUpdateDaiAuthenticationKeysRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_batch_update_dai_authentication_keys_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/daiAuthenticationKeys:batchUpdate", + body: "*", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the batch_activate_dai_authentication_keys REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchActivateDaiAuthenticationKeysRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_batch_activate_dai_authentication_keys_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/daiAuthenticationKeys:batchActivate", + body: "*", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the batch_deactivate_dai_authentication_keys REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchDeactivateDaiAuthenticationKeysRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_batch_deactivate_dai_authentication_keys_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/daiAuthenticationKeys:batchDeactivate", + body: "*", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_encoding_profile_service.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_encoding_profile_service.rb new file mode 100644 index 000000000000..39d18778de31 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_encoding_profile_service.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/config" +require "gapic/config/method" + +require "google/ads/ad_manager/v1/version" + +require "google/ads/ad_manager/v1/dai_encoding_profile_service/credentials" +require "google/ads/ad_manager/v1/dai_encoding_profile_service/paths" +require "google/ads/ad_manager/v1/dai_encoding_profile_service/rest" + +module Google + module Ads + module AdManager + module V1 + ## + # Provides methods for handling `DaiEncodingProfile` objects. + # + # @example Load this service and instantiate a REST client + # + # require "google/ads/ad_manager/v1/dai_encoding_profile_service/rest" + # client = ::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new + # + module DaiEncodingProfileService + end + end + end + end +end + +helper_path = ::File.join __dir__, "dai_encoding_profile_service", "helpers.rb" +require "google/ads/ad_manager/v1/dai_encoding_profile_service/helpers" if ::File.file? helper_path diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_encoding_profile_service/credentials.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_encoding_profile_service/credentials.rb new file mode 100644 index 000000000000..4867daa0f64f --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_encoding_profile_service/credentials.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module AdManager + module V1 + module DaiEncodingProfileService + # Credentials for the DaiEncodingProfileService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/admanager", + "https://www.googleapis.com/auth/admanager.readonly" + ] + self.env_vars = [ + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_encoding_profile_service/paths.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_encoding_profile_service/paths.rb new file mode 100644 index 000000000000..f85b199c7e88 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_encoding_profile_service/paths.rb @@ -0,0 +1,64 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module AdManager + module V1 + module DaiEncodingProfileService + # Path helper methods for the DaiEncodingProfileService API. + module Paths + ## + # Create a fully-qualified DaiEncodingProfile resource string. + # + # The resource will be in the following format: + # + # `networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile}` + # + # @param network_code [String] + # @param dai_encoding_profile [String] + # + # @return [::String] + def dai_encoding_profile_path network_code:, dai_encoding_profile: + raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" + + "networks/#{network_code}/daiEncodingProfiles/#{dai_encoding_profile}" + end + + ## + # Create a fully-qualified Network resource string. + # + # The resource will be in the following format: + # + # `networks/{network_code}` + # + # @param network_code [String] + # + # @return [::String] + def network_path network_code: + "networks/#{network_code}" + end + + extend self + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_encoding_profile_service/rest.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_encoding_profile_service/rest.rb new file mode 100644 index 000000000000..7507e05e7c7e --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_encoding_profile_service/rest.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/ad_manager/v1/version" + +require "google/ads/ad_manager/v1/dai_encoding_profile_service/credentials" +require "google/ads/ad_manager/v1/dai_encoding_profile_service/paths" +require "google/ads/ad_manager/v1/dai_encoding_profile_service/rest/client" + +module Google + module Ads + module AdManager + module V1 + ## + # Provides methods for handling `DaiEncodingProfile` objects. + # + # To load this service and instantiate a REST client: + # + # require "google/ads/ad_manager/v1/dai_encoding_profile_service/rest" + # client = ::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new + # + module DaiEncodingProfileService + # Client for the REST transport + module Rest + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "rest", "helpers.rb" +require "google/ads/ad_manager/v1/dai_encoding_profile_service/rest/helpers" if ::File.file? helper_path diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_encoding_profile_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_encoding_profile_service/rest/client.rb new file mode 100644 index 000000000000..dc25e1ef6c99 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_encoding_profile_service/rest/client.rb @@ -0,0 +1,1085 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/ads/admanager/v1/dai_encoding_profile_service_pb" +require "google/ads/ad_manager/v1/dai_encoding_profile_service/rest/service_stub" + +module Google + module Ads + module AdManager + module V1 + module DaiEncodingProfileService + module Rest + ## + # REST client for the DaiEncodingProfileService service. + # + # Provides methods for handling `DaiEncodingProfile` objects. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "admanager.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :dai_encoding_profile_service_stub + + ## + # Configure the DaiEncodingProfileService Client class. + # + # See {::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all DaiEncodingProfileService clients + # ::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Ads", "AdManager", "V1"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the DaiEncodingProfileService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @dai_encoding_profile_service_stub.universe_domain + end + + ## + # Create a new DaiEncodingProfileService REST client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the DaiEncodingProfileService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @dai_encoding_profile_service_stub = ::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::ServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials, + logger: @config.logger + ) + + @dai_encoding_profile_service_stub.logger(stub: true)&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @dai_encoding_profile_service_stub.logger + end + + # Service calls + + ## + # Retrieves a `DaiEncodingProfile` object. + # + # @overload get_dai_encoding_profile(request, options = nil) + # Pass arguments to `get_dai_encoding_profile` via a request object, either of type + # {::Google::Ads::AdManager::V1::GetDaiEncodingProfileRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::GetDaiEncodingProfileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_dai_encoding_profile(name: nil) + # Pass arguments to `get_dai_encoding_profile` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the DaiEncodingProfile. + # Format: + # `networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile_id}` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::DaiEncodingProfile] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::DaiEncodingProfile] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::GetDaiEncodingProfileRequest.new + # + # # Call the get_dai_encoding_profile method. + # result = client.get_dai_encoding_profile request + # + # # The returned object is of type Google::Ads::AdManager::V1::DaiEncodingProfile. + # p result + # + def get_dai_encoding_profile request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::GetDaiEncodingProfileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_dai_encoding_profile.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_dai_encoding_profile.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_dai_encoding_profile.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dai_encoding_profile_service_stub.get_dai_encoding_profile request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists `DaiEncodingProfile` objects. + # + # @overload list_dai_encoding_profiles(request, options = nil) + # Pass arguments to `list_dai_encoding_profiles` via a request object, either of type + # {::Google::Ads::AdManager::V1::ListDaiEncodingProfilesRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::ListDaiEncodingProfilesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_dai_encoding_profiles(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil, skip: nil) + # Pass arguments to `list_dai_encoding_profiles` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent, which owns this collection of DaiEncodingProfiles. + # Format: `networks/{network_code}` + # @param page_size [::Integer] + # Optional. The maximum number of `DaiEncodingProfiles` to return. The + # service may return fewer than this value. If unspecified, at most 50 + # `DaiEncodingProfiles` will be returned. The maximum value is 1000; values + # above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous `ListDaiEncodingProfiles` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListDaiEncodingProfiles` + # must match the call that provided the page token. + # @param filter [::String] + # Optional. Expression to filter the response. + # See syntax details at + # https://developers.google.com/ad-manager/api/beta/filters + # + # **Filterable fields:** + # + # * `containerType` + # * `displayName` + # * `name` + # * `status` + # * `variantType` + # @param order_by [::String] + # Optional. Expression to specify sorting order. + # See syntax details at + # https://developers.google.com/ad-manager/api/beta/filters#order + # @param skip [::Integer] + # Optional. Number of individual resources to skip while paginating. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Ads::AdManager::V1::DaiEncodingProfile>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Ads::AdManager::V1::DaiEncodingProfile>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::ListDaiEncodingProfilesRequest.new + # + # # Call the list_dai_encoding_profiles method. + # result = client.list_dai_encoding_profiles request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Ads::AdManager::V1::DaiEncodingProfile. + # p item + # end + # + def list_dai_encoding_profiles request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::ListDaiEncodingProfilesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_dai_encoding_profiles.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_dai_encoding_profiles.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_dai_encoding_profiles.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dai_encoding_profile_service_stub.list_dai_encoding_profiles request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dai_encoding_profile_service_stub, :list_dai_encoding_profiles, "dai_encoding_profiles", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a `DaiEncodingProfile` object. + # + # @overload create_dai_encoding_profile(request, options = nil) + # Pass arguments to `create_dai_encoding_profile` via a request object, either of type + # {::Google::Ads::AdManager::V1::CreateDaiEncodingProfileRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::CreateDaiEncodingProfileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_dai_encoding_profile(parent: nil, dai_encoding_profile: nil) + # Pass arguments to `create_dai_encoding_profile` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where this `DaiEncodingProfile` will be + # created. Format: `networks/{network_code}` + # @param dai_encoding_profile [::Google::Ads::AdManager::V1::DaiEncodingProfile, ::Hash] + # Required. The `DaiEncodingProfile` to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::DaiEncodingProfile] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::DaiEncodingProfile] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::CreateDaiEncodingProfileRequest.new + # + # # Call the create_dai_encoding_profile method. + # result = client.create_dai_encoding_profile request + # + # # The returned object is of type Google::Ads::AdManager::V1::DaiEncodingProfile. + # p result + # + def create_dai_encoding_profile request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::CreateDaiEncodingProfileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_dai_encoding_profile.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_dai_encoding_profile.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_dai_encoding_profile.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dai_encoding_profile_service_stub.create_dai_encoding_profile request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Batch creates `DaiEncodingProfile` objects. + # + # @overload batch_create_dai_encoding_profiles(request, options = nil) + # Pass arguments to `batch_create_dai_encoding_profiles` via a request object, either of type + # {::Google::Ads::AdManager::V1::BatchCreateDaiEncodingProfilesRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::BatchCreateDaiEncodingProfilesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload batch_create_dai_encoding_profiles(parent: nil, requests: nil) + # Pass arguments to `batch_create_dai_encoding_profiles` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where `DaiEncodingProfiles` will be created. + # Format: `networks/{network_code}` + # The parent field in the CreateDaiEncodingProfileRequest must match this + # field. + # @param requests [::Array<::Google::Ads::AdManager::V1::CreateDaiEncodingProfileRequest, ::Hash>] + # Required. The `DaiEncodingProfile` objects to create. + # A maximum of 100 objects can be created in a batch. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchCreateDaiEncodingProfilesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchCreateDaiEncodingProfilesResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::BatchCreateDaiEncodingProfilesRequest.new + # + # # Call the batch_create_dai_encoding_profiles method. + # result = client.batch_create_dai_encoding_profiles request + # + # # The returned object is of type Google::Ads::AdManager::V1::BatchCreateDaiEncodingProfilesResponse. + # p result + # + def batch_create_dai_encoding_profiles request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchCreateDaiEncodingProfilesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.batch_create_dai_encoding_profiles.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.batch_create_dai_encoding_profiles.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.batch_create_dai_encoding_profiles.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dai_encoding_profile_service_stub.batch_create_dai_encoding_profiles request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a `DaiEncodingProfile` object. + # + # @overload update_dai_encoding_profile(request, options = nil) + # Pass arguments to `update_dai_encoding_profile` via a request object, either of type + # {::Google::Ads::AdManager::V1::UpdateDaiEncodingProfileRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::UpdateDaiEncodingProfileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_dai_encoding_profile(dai_encoding_profile: nil, update_mask: nil) + # Pass arguments to `update_dai_encoding_profile` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param dai_encoding_profile [::Google::Ads::AdManager::V1::DaiEncodingProfile, ::Hash] + # Required. The `DaiEncodingProfile` to update. + # + # The `DaiEncodingProfile`'s `name` is used to identify the + # `DaiEncodingProfile` to update. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to update. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::DaiEncodingProfile] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::DaiEncodingProfile] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::UpdateDaiEncodingProfileRequest.new + # + # # Call the update_dai_encoding_profile method. + # result = client.update_dai_encoding_profile request + # + # # The returned object is of type Google::Ads::AdManager::V1::DaiEncodingProfile. + # p result + # + def update_dai_encoding_profile request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::UpdateDaiEncodingProfileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_dai_encoding_profile.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_dai_encoding_profile.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_dai_encoding_profile.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dai_encoding_profile_service_stub.update_dai_encoding_profile request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Batch updates `DaiEncodingProfile` objects. + # + # @overload batch_update_dai_encoding_profiles(request, options = nil) + # Pass arguments to `batch_update_dai_encoding_profiles` via a request object, either of type + # {::Google::Ads::AdManager::V1::BatchUpdateDaiEncodingProfilesRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::BatchUpdateDaiEncodingProfilesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload batch_update_dai_encoding_profiles(parent: nil, requests: nil) + # Pass arguments to `batch_update_dai_encoding_profiles` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where `DaiEncodingProfiles` will be updated. + # Format: `networks/{network_code}` + # The parent field in the UpdateDaiEncodingProfileRequest must match this + # field. + # @param requests [::Array<::Google::Ads::AdManager::V1::UpdateDaiEncodingProfileRequest, ::Hash>] + # Required. The `DaiEncodingProfile` objects to update. + # A maximum of 100 objects can be updated in a batch. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchUpdateDaiEncodingProfilesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchUpdateDaiEncodingProfilesResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::BatchUpdateDaiEncodingProfilesRequest.new + # + # # Call the batch_update_dai_encoding_profiles method. + # result = client.batch_update_dai_encoding_profiles request + # + # # The returned object is of type Google::Ads::AdManager::V1::BatchUpdateDaiEncodingProfilesResponse. + # p result + # + def batch_update_dai_encoding_profiles request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchUpdateDaiEncodingProfilesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.batch_update_dai_encoding_profiles.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.batch_update_dai_encoding_profiles.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.batch_update_dai_encoding_profiles.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dai_encoding_profile_service_stub.batch_update_dai_encoding_profiles request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Activates a list of `DaiEncodingProfile` objects. + # + # @overload batch_activate_dai_encoding_profiles(request, options = nil) + # Pass arguments to `batch_activate_dai_encoding_profiles` via a request object, either of type + # {::Google::Ads::AdManager::V1::BatchActivateDaiEncodingProfilesRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::BatchActivateDaiEncodingProfilesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload batch_activate_dai_encoding_profiles(parent: nil, requests: nil) + # Pass arguments to `batch_activate_dai_encoding_profiles` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Format: `networks/{network_code}` + # @param requests [::Array<::Google::Ads::AdManager::V1::ActivateDaiEncodingProfileRequest, ::Hash>] + # Required. The `DaiEncodingProfile` objects to activate. + # A maximum of 100 objects can be activated in a batch. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchActivateDaiEncodingProfilesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchActivateDaiEncodingProfilesResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::BatchActivateDaiEncodingProfilesRequest.new + # + # # Call the batch_activate_dai_encoding_profiles method. + # result = client.batch_activate_dai_encoding_profiles request + # + # # The returned object is of type Google::Ads::AdManager::V1::BatchActivateDaiEncodingProfilesResponse. + # p result + # + def batch_activate_dai_encoding_profiles request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchActivateDaiEncodingProfilesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.batch_activate_dai_encoding_profiles.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.batch_activate_dai_encoding_profiles.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.batch_activate_dai_encoding_profiles.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dai_encoding_profile_service_stub.batch_activate_dai_encoding_profiles request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Archives a list of `DaiEncodingProfile` objects. + # + # @overload batch_archive_dai_encoding_profiles(request, options = nil) + # Pass arguments to `batch_archive_dai_encoding_profiles` via a request object, either of type + # {::Google::Ads::AdManager::V1::BatchArchiveDaiEncodingProfilesRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::BatchArchiveDaiEncodingProfilesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload batch_archive_dai_encoding_profiles(parent: nil, requests: nil) + # Pass arguments to `batch_archive_dai_encoding_profiles` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Format: `networks/{network_code}` + # @param requests [::Array<::Google::Ads::AdManager::V1::ArchiveDaiEncodingProfileRequest, ::Hash>] + # Required. The `DaiEncodingProfile` objects to archive. + # A maximum of 100 objects can be archived in a batch. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchArchiveDaiEncodingProfilesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchArchiveDaiEncodingProfilesResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::BatchArchiveDaiEncodingProfilesRequest.new + # + # # Call the batch_archive_dai_encoding_profiles method. + # result = client.batch_archive_dai_encoding_profiles request + # + # # The returned object is of type Google::Ads::AdManager::V1::BatchArchiveDaiEncodingProfilesResponse. + # p result + # + def batch_archive_dai_encoding_profiles request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchArchiveDaiEncodingProfilesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.batch_archive_dai_encoding_profiles.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.batch_archive_dai_encoding_profiles.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.batch_archive_dai_encoding_profiles.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dai_encoding_profile_service_stub.batch_archive_dai_encoding_profiles request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the DaiEncodingProfileService REST API. + # + # This class represents the configuration for DaiEncodingProfileService REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # get_dai_encoding_profile to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.get_dai_encoding_profile.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.get_dai_encoding_profile.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "admanager.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the DaiEncodingProfileService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `get_dai_encoding_profile` + # @return [::Gapic::Config::Method] + # + attr_reader :get_dai_encoding_profile + ## + # RPC-specific configuration for `list_dai_encoding_profiles` + # @return [::Gapic::Config::Method] + # + attr_reader :list_dai_encoding_profiles + ## + # RPC-specific configuration for `create_dai_encoding_profile` + # @return [::Gapic::Config::Method] + # + attr_reader :create_dai_encoding_profile + ## + # RPC-specific configuration for `batch_create_dai_encoding_profiles` + # @return [::Gapic::Config::Method] + # + attr_reader :batch_create_dai_encoding_profiles + ## + # RPC-specific configuration for `update_dai_encoding_profile` + # @return [::Gapic::Config::Method] + # + attr_reader :update_dai_encoding_profile + ## + # RPC-specific configuration for `batch_update_dai_encoding_profiles` + # @return [::Gapic::Config::Method] + # + attr_reader :batch_update_dai_encoding_profiles + ## + # RPC-specific configuration for `batch_activate_dai_encoding_profiles` + # @return [::Gapic::Config::Method] + # + attr_reader :batch_activate_dai_encoding_profiles + ## + # RPC-specific configuration for `batch_archive_dai_encoding_profiles` + # @return [::Gapic::Config::Method] + # + attr_reader :batch_archive_dai_encoding_profiles + + # @private + def initialize parent_rpcs = nil + get_dai_encoding_profile_config = parent_rpcs.get_dai_encoding_profile if parent_rpcs.respond_to? :get_dai_encoding_profile + @get_dai_encoding_profile = ::Gapic::Config::Method.new get_dai_encoding_profile_config + list_dai_encoding_profiles_config = parent_rpcs.list_dai_encoding_profiles if parent_rpcs.respond_to? :list_dai_encoding_profiles + @list_dai_encoding_profiles = ::Gapic::Config::Method.new list_dai_encoding_profiles_config + create_dai_encoding_profile_config = parent_rpcs.create_dai_encoding_profile if parent_rpcs.respond_to? :create_dai_encoding_profile + @create_dai_encoding_profile = ::Gapic::Config::Method.new create_dai_encoding_profile_config + batch_create_dai_encoding_profiles_config = parent_rpcs.batch_create_dai_encoding_profiles if parent_rpcs.respond_to? :batch_create_dai_encoding_profiles + @batch_create_dai_encoding_profiles = ::Gapic::Config::Method.new batch_create_dai_encoding_profiles_config + update_dai_encoding_profile_config = parent_rpcs.update_dai_encoding_profile if parent_rpcs.respond_to? :update_dai_encoding_profile + @update_dai_encoding_profile = ::Gapic::Config::Method.new update_dai_encoding_profile_config + batch_update_dai_encoding_profiles_config = parent_rpcs.batch_update_dai_encoding_profiles if parent_rpcs.respond_to? :batch_update_dai_encoding_profiles + @batch_update_dai_encoding_profiles = ::Gapic::Config::Method.new batch_update_dai_encoding_profiles_config + batch_activate_dai_encoding_profiles_config = parent_rpcs.batch_activate_dai_encoding_profiles if parent_rpcs.respond_to? :batch_activate_dai_encoding_profiles + @batch_activate_dai_encoding_profiles = ::Gapic::Config::Method.new batch_activate_dai_encoding_profiles_config + batch_archive_dai_encoding_profiles_config = parent_rpcs.batch_archive_dai_encoding_profiles if parent_rpcs.respond_to? :batch_archive_dai_encoding_profiles + @batch_archive_dai_encoding_profiles = ::Gapic::Config::Method.new batch_archive_dai_encoding_profiles_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_encoding_profile_service/rest/service_stub.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_encoding_profile_service/rest/service_stub.rb new file mode 100644 index 000000000000..e9df5260f243 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/dai_encoding_profile_service/rest/service_stub.rb @@ -0,0 +1,575 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/ads/admanager/v1/dai_encoding_profile_service_pb" + +module Google + module Ads + module AdManager + module V1 + module DaiEncodingProfileService + module Rest + ## + # REST service stub for the DaiEncodingProfileService service. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + # + class ServiceStub + # @private + def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, + numeric_enums: true, + service_name: self.class, + raise_faraday_errors: false, + logger: logger + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain + end + + ## + # The effective endpoint + # + # @return [String] + # + def endpoint + @client_stub.endpoint + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger stub: false + stub ? @client_stub.stub_logger : @client_stub.logger + end + + ## + # Baseline implementation for the get_dai_encoding_profile REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::GetDaiEncodingProfileRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::DaiEncodingProfile] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::DaiEncodingProfile] + # A result object deserialized from the server's reply + def get_dai_encoding_profile request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_dai_encoding_profile_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_dai_encoding_profile", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::DaiEncodingProfile.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_dai_encoding_profiles REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::ListDaiEncodingProfilesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::ListDaiEncodingProfilesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::ListDaiEncodingProfilesResponse] + # A result object deserialized from the server's reply + def list_dai_encoding_profiles request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_dai_encoding_profiles_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_dai_encoding_profiles", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::ListDaiEncodingProfilesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_dai_encoding_profile REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::CreateDaiEncodingProfileRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::DaiEncodingProfile] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::DaiEncodingProfile] + # A result object deserialized from the server's reply + def create_dai_encoding_profile request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_dai_encoding_profile_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_dai_encoding_profile", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::DaiEncodingProfile.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the batch_create_dai_encoding_profiles REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchCreateDaiEncodingProfilesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchCreateDaiEncodingProfilesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchCreateDaiEncodingProfilesResponse] + # A result object deserialized from the server's reply + def batch_create_dai_encoding_profiles request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_batch_create_dai_encoding_profiles_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "batch_create_dai_encoding_profiles", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::BatchCreateDaiEncodingProfilesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_dai_encoding_profile REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::UpdateDaiEncodingProfileRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::DaiEncodingProfile] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::DaiEncodingProfile] + # A result object deserialized from the server's reply + def update_dai_encoding_profile request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_dai_encoding_profile_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_dai_encoding_profile", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::DaiEncodingProfile.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the batch_update_dai_encoding_profiles REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchUpdateDaiEncodingProfilesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchUpdateDaiEncodingProfilesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchUpdateDaiEncodingProfilesResponse] + # A result object deserialized from the server's reply + def batch_update_dai_encoding_profiles request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_batch_update_dai_encoding_profiles_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "batch_update_dai_encoding_profiles", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::BatchUpdateDaiEncodingProfilesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the batch_activate_dai_encoding_profiles REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchActivateDaiEncodingProfilesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchActivateDaiEncodingProfilesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchActivateDaiEncodingProfilesResponse] + # A result object deserialized from the server's reply + def batch_activate_dai_encoding_profiles request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_batch_activate_dai_encoding_profiles_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "batch_activate_dai_encoding_profiles", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::BatchActivateDaiEncodingProfilesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the batch_archive_dai_encoding_profiles REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchArchiveDaiEncodingProfilesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchArchiveDaiEncodingProfilesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchArchiveDaiEncodingProfilesResponse] + # A result object deserialized from the server's reply + def batch_archive_dai_encoding_profiles request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_batch_archive_dai_encoding_profiles_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "batch_archive_dai_encoding_profiles", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::BatchArchiveDaiEncodingProfilesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the get_dai_encoding_profile REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::GetDaiEncodingProfileRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_dai_encoding_profile_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^networks/[^/]+/daiEncodingProfiles/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_dai_encoding_profiles REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::ListDaiEncodingProfilesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_dai_encoding_profiles_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/daiEncodingProfiles", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_dai_encoding_profile REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::CreateDaiEncodingProfileRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_dai_encoding_profile_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/daiEncodingProfiles", + body: "dai_encoding_profile", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the batch_create_dai_encoding_profiles REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchCreateDaiEncodingProfilesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_batch_create_dai_encoding_profiles_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/daiEncodingProfiles:batchCreate", + body: "*", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_dai_encoding_profile REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::UpdateDaiEncodingProfileRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_dai_encoding_profile_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{dai_encoding_profile.name}", + body: "dai_encoding_profile", + matches: [ + ["dai_encoding_profile.name", %r{^networks/[^/]+/daiEncodingProfiles/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the batch_update_dai_encoding_profiles REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchUpdateDaiEncodingProfilesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_batch_update_dai_encoding_profiles_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/daiEncodingProfiles:batchUpdate", + body: "*", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the batch_activate_dai_encoding_profiles REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchActivateDaiEncodingProfilesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_batch_activate_dai_encoding_profiles_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/daiEncodingProfiles:batchActivate", + body: "*", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the batch_archive_dai_encoding_profiles REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchArchiveDaiEncodingProfilesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_batch_archive_dai_encoding_profiles_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/daiEncodingProfiles:batchArchive", + body: "*", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/device_capability_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/device_capability_service/rest/client.rb index 0d8958ee49aa..c0aa3d15d7bd 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/device_capability_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/device_capability_service/rest/client.rb @@ -292,11 +292,10 @@ def get_device_capability request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • name
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `name` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/device_category_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/device_category_service/rest/client.rb index a243c46b4ebb..8124aa83bd57 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/device_category_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/device_category_service/rest/client.rb @@ -292,11 +292,10 @@ def get_device_category request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • name
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `name` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/device_manufacturer_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/device_manufacturer_service/rest/client.rb index 6e71f7b85f21..12b153074700 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/device_manufacturer_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/device_manufacturer_service/rest/client.rb @@ -293,11 +293,10 @@ def get_device_manufacturer request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • name
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `name` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/entity_signals_mapping_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/entity_signals_mapping_service/rest/client.rb index ffdedd5705e3..42289f1bbee0 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/entity_signals_mapping_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/entity_signals_mapping_service/rest/client.rb @@ -177,7 +177,7 @@ def logger # Service calls ## - # API to retrieve a `EntitySignalsMapping` object. + # Retrieves a `EntitySignalsMapping` object. # # @overload get_entity_signals_mapping(request, options = nil) # Pass arguments to `get_entity_signals_mapping` via a request object, either of type @@ -257,7 +257,7 @@ def get_entity_signals_mapping request, options = nil end ## - # API to retrieve a list of `EntitySignalsMapping` objects. + # Lists `EntitySignalsMapping` objects. # # @overload list_entity_signals_mappings(request, options = nil) # Pass arguments to `list_entity_signals_mappings` via a request object, either of type @@ -365,7 +365,7 @@ def list_entity_signals_mappings request, options = nil end ## - # API to create an `EntitySignalsMapping` object. + # Creates an `EntitySignalsMapping` object. # # @overload create_entity_signals_mapping(request, options = nil) # Pass arguments to `create_entity_signals_mapping` via a request object, either of type @@ -446,7 +446,7 @@ def create_entity_signals_mapping request, options = nil end ## - # API to update an `EntitySignalsMapping` object. + # Updates an `EntitySignalsMapping` object. # # @overload update_entity_signals_mapping(request, options = nil) # Pass arguments to `update_entity_signals_mapping` via a request object, either of type @@ -531,7 +531,7 @@ def update_entity_signals_mapping request, options = nil end ## - # API to batch create `EntitySignalsMapping` objects. + # Creates `EntitySignalsMapping` objects. # # @overload batch_create_entity_signals_mappings(request, options = nil) # Pass arguments to `batch_create_entity_signals_mappings` via a request object, either of type @@ -614,7 +614,7 @@ def batch_create_entity_signals_mappings request, options = nil end ## - # API to batch update `EntitySignalsMapping` objects. + # Batch updates `EntitySignalsMapping` objects. # # @overload batch_update_entity_signals_mappings(request, options = nil) # Pass arguments to `batch_update_entity_signals_mappings` via a request object, either of type diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/geo_target_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/geo_target_service/rest/client.rb index 059e82be4027..8b8fd4f98924 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/geo_target_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/geo_target_service/rest/client.rb @@ -292,14 +292,13 @@ def get_geo_target request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • canonicalParent
  • - #
  • displayName
  • - #
  • name
  • - #
  • regionCode
  • - #
  • type
  • - #
+ # **Filterable fields:** + # + # * `canonicalParent` + # * `displayName` + # * `name` + # * `regionCode` + # * `type` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/label_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/label_service/rest/client.rb index 20bd19849fdd..0692db166fc7 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/label_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/label_service/rest/client.rb @@ -292,14 +292,13 @@ def get_label request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • active
  • - #
  • description
  • - #
  • displayName
  • - #
  • name
  • - #
  • types
  • - #
+ # **Filterable fields:** + # + # * `active` + # * `description` + # * `displayName` + # * `name` + # * `types` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/line_item_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/line_item_service/rest/client.rb index fe99db179d4a..c74b53b75879 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/line_item_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/line_item_service/rest/client.rb @@ -292,43 +292,42 @@ def get_line_item request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • archived
  • - #
  • contractedUnitsBought
  • - #
  • costType
  • - #
  • createTime
  • - #
  • creativePlaceholders.size.canonicalName
  • - #
  • dealInfo.externalDealId
  • - #
  • deliveryRateType
  • - #
  • displayName
  • - #
  • endTime
  • - #
  • environmentType
  • - #
  • externalLineItemId
  • - #
  • goal.units
  • - #
  • grpSettings.growbirdNielsenEnabled
  • - #
  • grpSettings.inTargetRatioEstimateMilliPercent
  • - #
  • lineItemType
  • - #
  • missingCreatives
  • - #
  • name
  • - #
  • notes
  • - #
  • order
  • - #
  • orderDisplayName
  • - #
  • priority
  • - #
  • roadblockingType
  • - #
  • startTime
  • - #
  • stats.clickThroughRate
  • - #
  • stats.clicksDelivered
  • - #
  • stats.impressionsDelivered
  • - #
  • stats.viewableImpressionsDelivered
  • - #
  • status
  • - #
  • targeting.inventoryTargeting.targetedAdUnits.adUnit
  • - #
  • targeting.inventoryTargeting.targetedPlacements
  • - #
  • targeting.mobileApplicationTargeting.firstPartyTargeting.targetedApplications
  • - #
  • updateSource
  • - #
  • updateTime
  • - #
  • webPropertyCode
  • - #
+ # **Filterable fields:** + # + # * `archived` + # * `contractedUnitsBought` + # * `costType` + # * `createTime` + # * `creativePlaceholders.size.canonicalName` + # * `dealInfo.externalDealId` + # * `deliveryRateType` + # * `displayName` + # * `endTime` + # * `environmentType` + # * `externalLineItemId` + # * `goal.units` + # * `grpSettings.growbirdNielsenEnabled` + # * `grpSettings.inTargetRatioEstimateMilliPercent` + # * `lineItemType` + # * `missingCreatives` + # * `name` + # * `notes` + # * `order` + # * `orderDisplayName` + # * `priority` + # * `roadblockingType` + # * `startTime` + # * `stats.clickThroughRate` + # * `stats.clicksDelivered` + # * `stats.impressionsDelivered` + # * `stats.viewableImpressionsDelivered` + # * `status` + # * `targeting.inventoryTargeting.targetedAdUnits.adUnit` + # * `targeting.inventoryTargeting.targetedPlacements` + # * `targeting.mobileApplicationTargeting.firstPartyTargeting.targetedApplications` + # * `updateSource` + # * `updateTime` + # * `webPropertyCode` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/linked_device_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/linked_device_service/rest/client.rb index 83b6defd8542..db7372e64878 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/linked_device_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/linked_device_service/rest/client.rb @@ -292,13 +292,12 @@ def get_linked_device request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • name
  • - #
  • owner
  • - #
  • visibility
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `name` + # * `owner` + # * `visibility` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/live_stream_service/paths.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/live_stream_service/paths.rb index df49f133a027..a64d143f1f4c 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/live_stream_service/paths.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/live_stream_service/paths.rb @@ -41,6 +41,40 @@ def cdn_config_path network_code:, cdn_config: "networks/#{network_code}/cdnConfigs/#{cdn_config}" end + ## + # Create a fully-qualified DaiAuthenticationKey resource string. + # + # The resource will be in the following format: + # + # `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}` + # + # @param network_code [String] + # @param dai_authentication_key [String] + # + # @return [::String] + def dai_authentication_key_path network_code:, dai_authentication_key: + raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" + + "networks/#{network_code}/daiAuthenticationKeys/#{dai_authentication_key}" + end + + ## + # Create a fully-qualified DaiEncodingProfile resource string. + # + # The resource will be in the following format: + # + # `networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile}` + # + # @param network_code [String] + # @param dai_encoding_profile [String] + # + # @return [::String] + def dai_encoding_profile_path network_code:, dai_encoding_profile: + raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" + + "networks/#{network_code}/daiEncodingProfiles/#{dai_encoding_profile}" + end + ## # Create a fully-qualified LiveStream resource string. # @@ -72,6 +106,23 @@ def network_path network_code: "networks/#{network_code}" end + ## + # Create a fully-qualified Slate resource string. + # + # The resource will be in the following format: + # + # `networks/{network_code}/slates/{slate}` + # + # @param network_code [String] + # @param slate [String] + # + # @return [::String] + def slate_path network_code:, slate: + raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" + + "networks/#{network_code}/slates/#{slate}" + end + extend self end end diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/live_stream_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/live_stream_service/rest/client.rb index afd6be9fe262..c87b539dbb45 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/live_stream_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/live_stream_service/rest/client.rb @@ -292,21 +292,24 @@ def get_live_stream request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • assetKey
  • - #
  • createTime
  • - #
  • customAssetKey
  • - #
  • displayName
  • - #
  • dynamicAdInsertionType
  • - #
  • effectiveAssetKey
  • - #
  • endTime
  • - #
  • sourceContentConfigurations
  • - #
  • startTime
  • - #
  • status
  • - #
  • streamingFormat
  • - #
  • updateTime
  • - #
+ # **Filterable fields:** + # + # * `assetKey` + # * `createTime` + # * `customAssetKey` + # * `daiAuthenticationKeys` + # * `daiEncodingProfiles` + # * `displayName` + # * `dynamicAdInsertionType` + # * `effectiveAssetKey` + # * `endTime` + # * `segmentUrlAuthenticationKeys` + # * `slate` + # * `sourceContentConfigurations` + # * `startTime` + # * `status` + # * `streamingFormat` + # * `updateTime` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/mobile_carrier_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/mobile_carrier_service/rest/client.rb index d4e52e507de2..a81a91b4fa77 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/mobile_carrier_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/mobile_carrier_service/rest/client.rb @@ -292,12 +292,11 @@ def get_mobile_carrier request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • name
  • - #
  • regionCode
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `name` + # * `regionCode` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/mobile_device_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/mobile_device_service/rest/client.rb index 6c4d2d3c9852..55a5e0ca2e52 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/mobile_device_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/mobile_device_service/rest/client.rb @@ -292,12 +292,11 @@ def get_mobile_device request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • manufacturer
  • - #
  • name
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `manufacturer` + # * `name` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/mobile_device_submodel_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/mobile_device_submodel_service/rest/client.rb index f4d9bc96cef7..df0fc1087326 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/mobile_device_submodel_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/mobile_device_submodel_service/rest/client.rb @@ -295,12 +295,11 @@ def get_mobile_device_submodel request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • mobileDevice
  • - #
  • name
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `mobileDevice` + # * `name` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/operating_system_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/operating_system_service/rest/client.rb index 4ca594822e00..7d108933f57d 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/operating_system_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/operating_system_service/rest/client.rb @@ -292,11 +292,10 @@ def get_operating_system request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • name
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `name` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/operating_system_version_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/operating_system_version_service/rest/client.rb index 8c38947b8b63..42c3101169b9 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/operating_system_version_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/operating_system_version_service/rest/client.rb @@ -295,13 +295,12 @@ def get_operating_system_version request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • majorVersion
  • - #
  • microVersion
  • - #
  • minorVersion
  • - #
  • name
  • - #
+ # **Filterable fields:** + # + # * `majorVersion` + # * `microVersion` + # * `minorVersion` + # * `name` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/order_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/order_service/rest/client.rb index c356450b2d77..76d32be35afa 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/order_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/order_service/rest/client.rb @@ -302,31 +302,30 @@ def get_order request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • advertiser
  • - #
  • agency
  • - #
  • appliedTeams
  • - #
  • archived
  • - #
  • creator
  • - #
  • displayName
  • - #
  • endTime
  • - #
  • externalOrderId
  • - #
  • impressionsDelivered
  • - #
  • name
  • - #
  • orderId
  • - #
  • poNumber
  • - #
  • programmatic
  • - #
  • salesperson
  • - #
  • secondarySalespeople
  • - #
  • secondaryTraffickers
  • - #
  • startTime
  • - #
  • status
  • - #
  • totalClicksDelivered
  • - #
  • totalViewableImpressionsDelivered
  • - #
  • trafficker
  • - #
  • updateTime
  • - #
+ # **Filterable fields:** + # + # * `advertiser` + # * `agency` + # * `appliedTeams` + # * `archived` + # * `creator` + # * `displayName` + # * `endTime` + # * `externalOrderId` + # * `impressionsDelivered` + # * `name` + # * `orderId` + # * `poNumber` + # * `programmatic` + # * `salesperson` + # * `secondarySalespeople` + # * `secondaryTraffickers` + # * `startTime` + # * `status` + # * `totalClicksDelivered` + # * `totalViewableImpressionsDelivered` + # * `trafficker` + # * `updateTime` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/partner_service.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/partner_service.rb new file mode 100644 index 000000000000..41729124c10f --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/partner_service.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/config" +require "gapic/config/method" + +require "google/ads/ad_manager/v1/version" + +require "google/ads/ad_manager/v1/partner_service/credentials" +require "google/ads/ad_manager/v1/partner_service/paths" +require "google/ads/ad_manager/v1/partner_service/rest" + +module Google + module Ads + module AdManager + module V1 + ## + # Provides methods for handling {::Google::Ads::AdManager::V1::Partner Partner} + # objects. + # + # @example Load this service and instantiate a REST client + # + # require "google/ads/ad_manager/v1/partner_service/rest" + # client = ::Google::Ads::AdManager::V1::PartnerService::Rest::Client.new + # + module PartnerService + end + end + end + end +end + +helper_path = ::File.join __dir__, "partner_service", "helpers.rb" +require "google/ads/ad_manager/v1/partner_service/helpers" if ::File.file? helper_path diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/partner_service/credentials.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/partner_service/credentials.rb new file mode 100644 index 000000000000..d71c436cc763 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/partner_service/credentials.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module AdManager + module V1 + module PartnerService + # Credentials for the PartnerService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/admanager", + "https://www.googleapis.com/auth/admanager.readonly" + ] + self.env_vars = [ + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/partner_service/paths.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/partner_service/paths.rb new file mode 100644 index 000000000000..7be7cfeb805b --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/partner_service/paths.rb @@ -0,0 +1,115 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module AdManager + module V1 + module PartnerService + # Path helper methods for the PartnerService API. + module Paths + ## + # Create a fully-qualified Contact resource string. + # + # The resource will be in the following format: + # + # `networks/{network_code}/contacts/{contact}` + # + # @param network_code [String] + # @param contact [String] + # + # @return [::String] + def contact_path network_code:, contact: + raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" + + "networks/#{network_code}/contacts/#{contact}" + end + + ## + # Create a fully-qualified Label resource string. + # + # The resource will be in the following format: + # + # `networks/{network_code}/labels/{label}` + # + # @param network_code [String] + # @param label [String] + # + # @return [::String] + def label_path network_code:, label: + raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" + + "networks/#{network_code}/labels/#{label}" + end + + ## + # Create a fully-qualified Network resource string. + # + # The resource will be in the following format: + # + # `networks/{network_code}` + # + # @param network_code [String] + # + # @return [::String] + def network_path network_code: + "networks/#{network_code}" + end + + ## + # Create a fully-qualified Partner resource string. + # + # The resource will be in the following format: + # + # `networks/{network_code}/partners/{partner}` + # + # @param network_code [String] + # @param partner [String] + # + # @return [::String] + def partner_path network_code:, partner: + raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" + + "networks/#{network_code}/partners/#{partner}" + end + + ## + # Create a fully-qualified Team resource string. + # + # The resource will be in the following format: + # + # `networks/{network_code}/teams/{team}` + # + # @param network_code [String] + # @param team [String] + # + # @return [::String] + def team_path network_code:, team: + raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" + + "networks/#{network_code}/teams/#{team}" + end + + extend self + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/partner_service/rest.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/partner_service/rest.rb new file mode 100644 index 000000000000..bdac78bf1e13 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/partner_service/rest.rb @@ -0,0 +1,53 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/ad_manager/v1/version" + +require "google/ads/ad_manager/v1/partner_service/credentials" +require "google/ads/ad_manager/v1/partner_service/paths" +require "google/ads/ad_manager/v1/partner_service/rest/client" + +module Google + module Ads + module AdManager + module V1 + ## + # Provides methods for handling {::Google::Ads::AdManager::V1::Partner Partner} + # objects. + # + # To load this service and instantiate a REST client: + # + # require "google/ads/ad_manager/v1/partner_service/rest" + # client = ::Google::Ads::AdManager::V1::PartnerService::Rest::Client.new + # + module PartnerService + # Client for the REST transport + module Rest + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "rest", "helpers.rb" +require "google/ads/ad_manager/v1/partner_service/rest/helpers" if ::File.file? helper_path diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/partner_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/partner_service/rest/client.rb new file mode 100644 index 000000000000..d822f9137c23 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/partner_service/rest/client.rb @@ -0,0 +1,737 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/ads/admanager/v1/partner_service_pb" +require "google/ads/ad_manager/v1/partner_service/rest/service_stub" + +module Google + module Ads + module AdManager + module V1 + module PartnerService + module Rest + ## + # REST client for the PartnerService service. + # + # Provides methods for handling {::Google::Ads::AdManager::V1::Partner Partner} + # objects. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "admanager.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :partner_service_stub + + ## + # Configure the PartnerService Client class. + # + # See {::Google::Ads::AdManager::V1::PartnerService::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all PartnerService clients + # ::Google::Ads::AdManager::V1::PartnerService::Rest::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Ads", "AdManager", "V1"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the PartnerService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::AdManager::V1::PartnerService::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @partner_service_stub.universe_domain + end + + ## + # Create a new PartnerService REST client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::AdManager::V1::PartnerService::Rest::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::AdManager::V1::PartnerService::Rest::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the PartnerService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @partner_service_stub = ::Google::Ads::AdManager::V1::PartnerService::Rest::ServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials, + logger: @config.logger + ) + + @partner_service_stub.logger(stub: true)&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @partner_service_stub.logger + end + + # Service calls + + ## + # Retrieves a {::Google::Ads::AdManager::V1::Partner Partner} object. + # + # @overload get_partner(request, options = nil) + # Pass arguments to `get_partner` via a request object, either of type + # {::Google::Ads::AdManager::V1::GetPartnerRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::GetPartnerRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_partner(name: nil) + # Pass arguments to `get_partner` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the + # {::Google::Ads::AdManager::V1::Partner Partner}. Format: + # `networks/{network_code}/partners/{partner_id}` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::Partner] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::Partner] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::PartnerService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::GetPartnerRequest.new + # + # # Call the get_partner method. + # result = client.get_partner request + # + # # The returned object is of type Google::Ads::AdManager::V1::Partner. + # p result + # + def get_partner request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::GetPartnerRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_partner.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_partner.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_partner.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @partner_service_stub.get_partner request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists {::Google::Ads::AdManager::V1::Partner Partner} objects. + # + # @overload list_partners(request, options = nil) + # Pass arguments to `list_partners` via a request object, either of type + # {::Google::Ads::AdManager::V1::ListPartnersRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::ListPartnersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_partners(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil, skip: nil) + # Pass arguments to `list_partners` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent, which owns this collection of + # {::Google::Ads::AdManager::V1::Partner Partner}s. Format: + # `networks/{network_code}` + # @param page_size [::Integer] + # Optional. The maximum number of {::Google::Ads::AdManager::V1::Partner Partner}s + # to return. The service may return fewer than this value. If unspecified, at + # most 50 {::Google::Ads::AdManager::V1::Partner Partner}s will be returned. The + # maximum value is 1000; values greater than 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous [ListPartners][] call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to [ListPartners][] must + # match the call that provided the page token. + # @param filter [::String] + # Optional. Expression to filter the response. + # See syntax details at + # https://developers.google.com/ad-manager/api/beta/filters + # + # **Filterable fields:** + # + # * `address` + # * `comment` + # * `creditStatus` + # * `displayName` + # * `email` + # * `externalId` + # * `fax` + # * `name` + # * `phone` + # @param order_by [::String] + # Optional. Expression to specify sorting order. + # See syntax details at + # https://developers.google.com/ad-manager/api/beta/filters#order + # @param skip [::Integer] + # Optional. Number of individual resources to skip while paginating. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Ads::AdManager::V1::Partner>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Ads::AdManager::V1::Partner>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::PartnerService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::ListPartnersRequest.new + # + # # Call the list_partners method. + # result = client.list_partners request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Ads::AdManager::V1::Partner. + # p item + # end + # + def list_partners request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::ListPartnersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_partners.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_partners.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_partners.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @partner_service_stub.list_partners request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @partner_service_stub, :list_partners, "partners", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a {::Google::Ads::AdManager::V1::Partner Partner} object. + # + # @overload update_partner(request, options = nil) + # Pass arguments to `update_partner` via a request object, either of type + # {::Google::Ads::AdManager::V1::UpdatePartnerRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::UpdatePartnerRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_partner(partner: nil, update_mask: nil) + # Pass arguments to `update_partner` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param partner [::Google::Ads::AdManager::V1::Partner, ::Hash] + # Required. The {::Google::Ads::AdManager::V1::Partner Partner} to update. + # + # The {::Google::Ads::AdManager::V1::Partner Partner}'s `name` is used to identify + # the {::Google::Ads::AdManager::V1::Partner Partner} to update. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to update. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::Partner] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::Partner] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::PartnerService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::UpdatePartnerRequest.new + # + # # Call the update_partner method. + # result = client.update_partner request + # + # # The returned object is of type Google::Ads::AdManager::V1::Partner. + # p result + # + def update_partner request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::UpdatePartnerRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_partner.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_partner.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_partner.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @partner_service_stub.update_partner request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Batch updates {::Google::Ads::AdManager::V1::Partner Partner} objects. + # + # @overload batch_update_partners(request, options = nil) + # Pass arguments to `batch_update_partners` via a request object, either of type + # {::Google::Ads::AdManager::V1::BatchUpdatePartnersRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::BatchUpdatePartnersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload batch_update_partners(parent: nil, requests: nil) + # Pass arguments to `batch_update_partners` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where + # {::Google::Ads::AdManager::V1::Partner Partner}s will be updated. Format: + # `networks/{network_code}` The parent field in the + # {::Google::Ads::AdManager::V1::UpdatePartnerRequest UpdatePartnerRequest} must + # match this field. + # @param requests [::Array<::Google::Ads::AdManager::V1::UpdatePartnerRequest, ::Hash>] + # Required. The {::Google::Ads::AdManager::V1::Partner Partner} objects to update. + # A maximum of 100 objects can be updated in a batch. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchUpdatePartnersResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchUpdatePartnersResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::PartnerService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::BatchUpdatePartnersRequest.new + # + # # Call the batch_update_partners method. + # result = client.batch_update_partners request + # + # # The returned object is of type Google::Ads::AdManager::V1::BatchUpdatePartnersResponse. + # p result + # + def batch_update_partners request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchUpdatePartnersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.batch_update_partners.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.batch_update_partners.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.batch_update_partners.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @partner_service_stub.batch_update_partners request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the PartnerService REST API. + # + # This class represents the configuration for PartnerService REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::AdManager::V1::PartnerService::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # get_partner to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::AdManager::V1::PartnerService::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.get_partner.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::AdManager::V1::PartnerService::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.get_partner.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "admanager.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the PartnerService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `get_partner` + # @return [::Gapic::Config::Method] + # + attr_reader :get_partner + ## + # RPC-specific configuration for `list_partners` + # @return [::Gapic::Config::Method] + # + attr_reader :list_partners + ## + # RPC-specific configuration for `update_partner` + # @return [::Gapic::Config::Method] + # + attr_reader :update_partner + ## + # RPC-specific configuration for `batch_update_partners` + # @return [::Gapic::Config::Method] + # + attr_reader :batch_update_partners + + # @private + def initialize parent_rpcs = nil + get_partner_config = parent_rpcs.get_partner if parent_rpcs.respond_to? :get_partner + @get_partner = ::Gapic::Config::Method.new get_partner_config + list_partners_config = parent_rpcs.list_partners if parent_rpcs.respond_to? :list_partners + @list_partners = ::Gapic::Config::Method.new list_partners_config + update_partner_config = parent_rpcs.update_partner if parent_rpcs.respond_to? :update_partner + @update_partner = ::Gapic::Config::Method.new update_partner_config + batch_update_partners_config = parent_rpcs.batch_update_partners if parent_rpcs.respond_to? :batch_update_partners + @batch_update_partners = ::Gapic::Config::Method.new batch_update_partners_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/partner_service/rest/service_stub.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/partner_service/rest/service_stub.rb new file mode 100644 index 000000000000..77c930dbea98 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/partner_service/rest/service_stub.rb @@ -0,0 +1,327 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/ads/admanager/v1/partner_service_pb" + +module Google + module Ads + module AdManager + module V1 + module PartnerService + module Rest + ## + # REST service stub for the PartnerService service. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + # + class ServiceStub + # @private + def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, + numeric_enums: true, + service_name: self.class, + raise_faraday_errors: false, + logger: logger + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain + end + + ## + # The effective endpoint + # + # @return [String] + # + def endpoint + @client_stub.endpoint + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger stub: false + stub ? @client_stub.stub_logger : @client_stub.logger + end + + ## + # Baseline implementation for the get_partner REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::GetPartnerRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::Partner] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::Partner] + # A result object deserialized from the server's reply + def get_partner request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_partner_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_partner", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::Partner.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_partners REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::ListPartnersRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::ListPartnersResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::ListPartnersResponse] + # A result object deserialized from the server's reply + def list_partners request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_partners_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_partners", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::ListPartnersResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_partner REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::UpdatePartnerRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::Partner] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::Partner] + # A result object deserialized from the server's reply + def update_partner request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_partner_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_partner", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::Partner.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the batch_update_partners REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchUpdatePartnersRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchUpdatePartnersResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchUpdatePartnersResponse] + # A result object deserialized from the server's reply + def batch_update_partners request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_batch_update_partners_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "batch_update_partners", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::BatchUpdatePartnersResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the get_partner REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::GetPartnerRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_partner_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^networks/[^/]+/partners/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_partners REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::ListPartnersRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_partners_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/partners", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_partner REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::UpdatePartnerRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_partner_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{partner.name}", + body: "partner", + matches: [ + ["partner.name", %r{^networks/[^/]+/partners/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the batch_update_partners REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchUpdatePartnersRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_batch_update_partners_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/partners:batchUpdate", + body: "*", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/placement_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/placement_service/rest/client.rb index c1cdac6733e1..3e9b9b075e1f 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/placement_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/placement_service/rest/client.rb @@ -292,16 +292,15 @@ def get_placement request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • description
  • - #
  • displayName
  • - #
  • name
  • - #
  • placementCode
  • - #
  • status
  • - #
  • targetedAdUnits
  • - #
  • updateTime
  • - #
+ # **Filterable fields:** + # + # * `description` + # * `displayName` + # * `name` + # * `placementCode` + # * `status` + # * `targetedAdUnits` + # * `updateTime` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/private_auction_deal_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/private_auction_deal_service/rest/client.rb index ee254999e7bf..3680e2133279 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/private_auction_deal_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/private_auction_deal_service/rest/client.rb @@ -295,22 +295,21 @@ def get_private_auction_deal request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • auctionPriorityEnabled
  • - #
  • blockOverrideEnabled
  • - #
  • buyerAccountId
  • - #
  • buyerPermissionType
  • - #
  • endTime
  • - #
  • externalDealId
  • - #
  • floorPrice
  • - #
  • name
  • - #
  • privateAuctionDealId
  • - #
  • privateAuctionDisplayName
  • - #
  • privateAuctionId
  • - #
  • status
  • - #
  • updateTime
  • - #
+ # **Filterable fields:** + # + # * `auctionPriorityEnabled` + # * `blockOverrideEnabled` + # * `buyerAccountId` + # * `buyerPermissionType` + # * `endTime` + # * `externalDealId` + # * `floorPrice` + # * `name` + # * `privateAuctionDealId` + # * `privateAuctionDisplayName` + # * `privateAuctionId` + # * `status` + # * `updateTime` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/programmatic_buyer_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/programmatic_buyer_service/rest/client.rb index b4350970a46a..94b8fde27698 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/programmatic_buyer_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/programmatic_buyer_service/rest/client.rb @@ -293,17 +293,16 @@ def get_programmatic_buyer request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • agency
  • - #
  • buyerAccountId
  • - #
  • displayName
  • - #
  • name
  • - #
  • parentAccountId
  • - #
  • partnerClientId
  • - #
  • preferredDealsEnabled
  • - #
  • programmaticGuaranteedEnabled
  • - #
+ # **Filterable fields:** + # + # * `agency` + # * `buyerAccountId` + # * `displayName` + # * `name` + # * `parentAccountId` + # * `partnerClientId` + # * `preferredDealsEnabled` + # * `programmaticGuaranteedEnabled` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/rest.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/rest.rb index 17d3efecd375..f9c550a35c52 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/rest.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/rest.rb @@ -27,6 +27,7 @@ require "google/ads/ad_manager/v1/browser_language_service/rest" require "google/ads/ad_manager/v1/browser_service/rest" require "google/ads/ad_manager/v1/cdn_config_service/rest" +require "google/ads/ad_manager/v1/child_publisher_service/rest" require "google/ads/ad_manager/v1/cms_metadata_key_service/rest" require "google/ads/ad_manager/v1/cms_metadata_value_service/rest" require "google/ads/ad_manager/v1/company_service/rest" @@ -36,9 +37,12 @@ require "google/ads/ad_manager/v1/content_service/rest" require "google/ads/ad_manager/v1/creative_set_service/rest" require "google/ads/ad_manager/v1/creative_template_service/rest" +require "google/ads/ad_manager/v1/creative_wrapper_service/rest" require "google/ads/ad_manager/v1/custom_field_service/rest" require "google/ads/ad_manager/v1/custom_targeting_key_service/rest" require "google/ads/ad_manager/v1/custom_targeting_value_service/rest" +require "google/ads/ad_manager/v1/dai_authentication_key_service/rest" +require "google/ads/ad_manager/v1/dai_encoding_profile_service/rest" require "google/ads/ad_manager/v1/device_capability_service/rest" require "google/ads/ad_manager/v1/device_category_service/rest" require "google/ads/ad_manager/v1/device_manufacturer_service/rest" @@ -56,6 +60,7 @@ require "google/ads/ad_manager/v1/operating_system_service/rest" require "google/ads/ad_manager/v1/operating_system_version_service/rest" require "google/ads/ad_manager/v1/order_service/rest" +require "google/ads/ad_manager/v1/partner_service/rest" require "google/ads/ad_manager/v1/placement_service/rest" require "google/ads/ad_manager/v1/private_auction_deal_service/rest" require "google/ads/ad_manager/v1/private_auction_service/rest" @@ -71,6 +76,7 @@ require "google/ads/ad_manager/v1/team_service/rest" require "google/ads/ad_manager/v1/third_party_company_service/rest" require "google/ads/ad_manager/v1/user_service/rest" +require "google/ads/ad_manager/v1/viewability_provider_service/rest" require "google/ads/ad_manager/v1/version" module Google diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/rich_media_ads_company_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/rich_media_ads_company_service/rest/client.rb index ee6741525d2a..ed3f2016ce3f 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/rich_media_ads_company_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/rich_media_ads_company_service/rest/client.rb @@ -295,14 +295,13 @@ def get_rich_media_ads_company request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • companyGvlId
  • - #
  • displayName
  • - #
  • gdprStatus
  • - #
  • name
  • - #
  • policyUrl
  • - #
+ # **Filterable fields:** + # + # * `companyGvlId` + # * `displayName` + # * `gdprStatus` + # * `name` + # * `policyUrl` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/role_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/role_service/rest/client.rb index bb6a36ce08ac..02c58aa77856 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/role_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/role_service/rest/client.rb @@ -292,14 +292,13 @@ def get_role request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • builtIn
  • - #
  • description
  • - #
  • displayName
  • - #
  • name
  • - #
  • status
  • - #
+ # **Filterable fields:** + # + # * `builtIn` + # * `description` + # * `displayName` + # * `name` + # * `status` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/site_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/site_service/rest/client.rb index 4cca7bf1c780..b0a3327b3082 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/site_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/site_service/rest/client.rb @@ -292,14 +292,13 @@ def get_site request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • approvalStatus
  • - #
  • approvalStatusUpdateTime
  • - #
  • childNetworkCode
  • - #
  • name
  • - #
  • url
  • - #
+ # **Filterable fields:** + # + # * `approvalStatus` + # * `approvalStatusUpdateTime` + # * `childNetworkCode` + # * `name` + # * `url` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/slate_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/slate_service/rest/client.rb index be64726e9fa3..1a5f8e25c557 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/slate_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/slate_service/rest/client.rb @@ -291,12 +291,11 @@ def get_slate request, options = nil # Optional. Expression to filter the response. # See syntax details at https://google.aip.dev/160 # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • name
  • - #
  • status
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `name` + # * `status` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at https://google.aip.dev/132#ordering diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/suggested_ad_unit_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/suggested_ad_unit_service/rest/client.rb index ab464f31a1c3..b81cac405332 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/suggested_ad_unit_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/suggested_ad_unit_service/rest/client.rb @@ -292,12 +292,11 @@ def get_suggested_ad_unit request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • name
  • - #
  • newCodePath
  • - #
  • weeklyRequestCount
  • - #
+ # **Filterable fields:** + # + # * `name` + # * `newCodePath` + # * `weeklyRequestCount` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/suggested_ad_unit_service/rest/service_stub.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/suggested_ad_unit_service/rest/service_stub.rb index 0185c3885059..15ece132f568 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/suggested_ad_unit_service/rest/service_stub.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/suggested_ad_unit_service/rest/service_stub.rb @@ -248,7 +248,7 @@ def self.transcode_batch_approve_suggested_ad_units_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, - uri_template: "/v1/{parent}/suggestedAdUnit:batchApprove", + uri_template: "/v1/{parent}/suggestedAdUnits:batchApprove", body: "*", matches: [ ["parent", %r{^networks/[^/]+/?$}, false] diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/targeting_preset_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/targeting_preset_service/rest/client.rb index 0d5fb2a5f31b..40a203b5770e 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/targeting_preset_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/targeting_preset_service/rest/client.rb @@ -295,12 +295,11 @@ def get_targeting_preset request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • name
  • - #
  • status
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `name` + # * `status` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/taxonomy_category_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/taxonomy_category_service/rest/client.rb index 02a844631d83..f38a2c4b388e 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/taxonomy_category_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/taxonomy_category_service/rest/client.rb @@ -177,7 +177,7 @@ def logger # Service calls ## - # API to retrieve a `TaxonomyCategory` object. + # Retrieves a `TaxonomyCategory` object. # # @overload get_taxonomy_category(request, options = nil) # Pass arguments to `get_taxonomy_category` via a request object, either of type @@ -256,7 +256,7 @@ def get_taxonomy_category request, options = nil end ## - # API to retrieve a list of `TaxonomyCategory` objects. + # Lists `TaxonomyCategory` objects. # # @overload list_taxonomy_categories(request, options = nil) # Pass arguments to `list_taxonomy_categories` via a request object, either of type diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/team_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/team_service/rest/client.rb index a5cd0d7d0b80..5d6a331eb858 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/team_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/team_service/rest/client.rb @@ -292,16 +292,15 @@ def get_team request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • accessType
  • - #
  • allCompaniesAccess
  • - #
  • allInventoryAccess
  • - #
  • description
  • - #
  • displayName
  • - #
  • name
  • - #
  • status
  • - #
+ # **Filterable fields:** + # + # * `accessType` + # * `allCompaniesAccess` + # * `allInventoryAccess` + # * `description` + # * `displayName` + # * `name` + # * `status` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/third_party_company_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/third_party_company_service/rest/client.rb index 28ff8a71d95f..75d8604f5b54 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/third_party_company_service/rest/client.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/third_party_company_service/rest/client.rb @@ -294,13 +294,12 @@ def get_third_party_company request, options = nil # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • name
  • - #
  • status
  • - #
  • type
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `name` + # * `status` + # * `type` # @param order_by [::String] # Optional. Expression to specify sorting order. # See syntax details at diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/viewability_provider_service.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/viewability_provider_service.rb new file mode 100644 index 000000000000..2e01dd3b3817 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/viewability_provider_service.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/config" +require "gapic/config/method" + +require "google/ads/ad_manager/v1/version" + +require "google/ads/ad_manager/v1/viewability_provider_service/credentials" +require "google/ads/ad_manager/v1/viewability_provider_service/paths" +require "google/ads/ad_manager/v1/viewability_provider_service/rest" + +module Google + module Ads + module AdManager + module V1 + ## + # Provides methods for handling + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider} objects. + # + # @example Load this service and instantiate a REST client + # + # require "google/ads/ad_manager/v1/viewability_provider_service/rest" + # client = ::Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client.new + # + module ViewabilityProviderService + end + end + end + end +end + +helper_path = ::File.join __dir__, "viewability_provider_service", "helpers.rb" +require "google/ads/ad_manager/v1/viewability_provider_service/helpers" if ::File.file? helper_path diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/viewability_provider_service/credentials.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/viewability_provider_service/credentials.rb new file mode 100644 index 000000000000..73a5920215b3 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/viewability_provider_service/credentials.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module AdManager + module V1 + module ViewabilityProviderService + # Credentials for the ViewabilityProviderService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/admanager", + "https://www.googleapis.com/auth/admanager.readonly" + ] + self.env_vars = [ + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/viewability_provider_service/paths.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/viewability_provider_service/paths.rb new file mode 100644 index 000000000000..08a10b7d4efe --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/viewability_provider_service/paths.rb @@ -0,0 +1,98 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module AdManager + module V1 + module ViewabilityProviderService + # Path helper methods for the ViewabilityProviderService API. + module Paths + ## + # Create a fully-qualified Contact resource string. + # + # The resource will be in the following format: + # + # `networks/{network_code}/contacts/{contact}` + # + # @param network_code [String] + # @param contact [String] + # + # @return [::String] + def contact_path network_code:, contact: + raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" + + "networks/#{network_code}/contacts/#{contact}" + end + + ## + # Create a fully-qualified Network resource string. + # + # The resource will be in the following format: + # + # `networks/{network_code}` + # + # @param network_code [String] + # + # @return [::String] + def network_path network_code: + "networks/#{network_code}" + end + + ## + # Create a fully-qualified Team resource string. + # + # The resource will be in the following format: + # + # `networks/{network_code}/teams/{team}` + # + # @param network_code [String] + # @param team [String] + # + # @return [::String] + def team_path network_code:, team: + raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" + + "networks/#{network_code}/teams/#{team}" + end + + ## + # Create a fully-qualified ViewabilityProvider resource string. + # + # The resource will be in the following format: + # + # `networks/{network_code}/viewabilityProviders/{viewability_provider}` + # + # @param network_code [String] + # @param viewability_provider [String] + # + # @return [::String] + def viewability_provider_path network_code:, viewability_provider: + raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" + + "networks/#{network_code}/viewabilityProviders/#{viewability_provider}" + end + + extend self + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/viewability_provider_service/rest.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/viewability_provider_service/rest.rb new file mode 100644 index 000000000000..99d0c70959ff --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/viewability_provider_service/rest.rb @@ -0,0 +1,53 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/ad_manager/v1/version" + +require "google/ads/ad_manager/v1/viewability_provider_service/credentials" +require "google/ads/ad_manager/v1/viewability_provider_service/paths" +require "google/ads/ad_manager/v1/viewability_provider_service/rest/client" + +module Google + module Ads + module AdManager + module V1 + ## + # Provides methods for handling + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider} objects. + # + # To load this service and instantiate a REST client: + # + # require "google/ads/ad_manager/v1/viewability_provider_service/rest" + # client = ::Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client.new + # + module ViewabilityProviderService + # Client for the REST transport + module Rest + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "rest", "helpers.rb" +require "google/ads/ad_manager/v1/viewability_provider_service/rest/helpers" if ::File.file? helper_path diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/viewability_provider_service/rest/client.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/viewability_provider_service/rest/client.rb new file mode 100644 index 000000000000..31a9f43f338b --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/viewability_provider_service/rest/client.rb @@ -0,0 +1,938 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/ads/admanager/v1/viewability_provider_service_pb" +require "google/ads/ad_manager/v1/viewability_provider_service/rest/service_stub" + +module Google + module Ads + module AdManager + module V1 + module ViewabilityProviderService + module Rest + ## + # REST client for the ViewabilityProviderService service. + # + # Provides methods for handling + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider} objects. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "admanager.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :viewability_provider_service_stub + + ## + # Configure the ViewabilityProviderService Client class. + # + # See {::Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all ViewabilityProviderService clients + # ::Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Ads", "AdManager", "V1"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the ViewabilityProviderService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @viewability_provider_service_stub.universe_domain + end + + ## + # Create a new ViewabilityProviderService REST client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the ViewabilityProviderService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @viewability_provider_service_stub = ::Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::ServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials, + logger: @config.logger + ) + + @viewability_provider_service_stub.logger(stub: true)&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @viewability_provider_service_stub.logger + end + + # Service calls + + ## + # Retrieves a + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider} object. + # + # @overload get_viewability_provider(request, options = nil) + # Pass arguments to `get_viewability_provider` via a request object, either of type + # {::Google::Ads::AdManager::V1::GetViewabilityProviderRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::GetViewabilityProviderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_viewability_provider(name: nil) + # Pass arguments to `get_viewability_provider` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider}. Format: + # `networks/{network_code}/viewabilityProviders/{viewability_provider}` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::ViewabilityProvider] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::ViewabilityProvider] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::GetViewabilityProviderRequest.new + # + # # Call the get_viewability_provider method. + # result = client.get_viewability_provider request + # + # # The returned object is of type Google::Ads::AdManager::V1::ViewabilityProvider. + # p result + # + def get_viewability_provider request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::GetViewabilityProviderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_viewability_provider.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_viewability_provider.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_viewability_provider.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @viewability_provider_service_stub.get_viewability_provider request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider} + # objects. + # + # @overload list_viewability_providers(request, options = nil) + # Pass arguments to `list_viewability_providers` via a request object, either of type + # {::Google::Ads::AdManager::V1::ListViewabilityProvidersRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::ListViewabilityProvidersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_viewability_providers(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil, skip: nil) + # Pass arguments to `list_viewability_providers` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent, which owns this collection of + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider}s. + # Format: `networks/{network_code}` + # @param page_size [::Integer] + # Optional. The maximum number of + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider}s to + # return. The service may return fewer than this value. If unspecified, at + # most 50 {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider}s + # will be returned. The maximum value is 1000; values above 1000 will be + # coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous + # [ListViewabilityProviders][] call. Provide this to retrieve the subsequent + # page. + # + # When paginating, all other parameters provided to + # [ListViewabilityProviders][] must match the call that provided the page + # token. + # @param filter [::String] + # Optional. Expression to filter the response. + # See syntax details at + # https://developers.google.com/ad-manager/api/beta/filters + # + # **Filterable fields:** + # + # * `address` + # * `comment` + # * `displayName` + # * `email` + # * `externalId` + # * `fax` + # * `name` + # * `phone` + # * `primaryContact` + # * `rejectionTrackerUrl` + # * `vendorKey` + # * `verificationScriptUrl` + # * `verificationScriptUrlParameters` + # @param order_by [::String] + # Optional. Expression to specify sorting order. + # See syntax details at + # https://developers.google.com/ad-manager/api/beta/filters#order + # @param skip [::Integer] + # Optional. Number of individual resources to skip while paginating. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Ads::AdManager::V1::ViewabilityProvider>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Ads::AdManager::V1::ViewabilityProvider>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::ListViewabilityProvidersRequest.new + # + # # Call the list_viewability_providers method. + # result = client.list_viewability_providers request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Ads::AdManager::V1::ViewabilityProvider. + # p item + # end + # + def list_viewability_providers request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::ListViewabilityProvidersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_viewability_providers.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_viewability_providers.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_viewability_providers.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @viewability_provider_service_stub.list_viewability_providers request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @viewability_provider_service_stub, :list_viewability_providers, "viewability_providers", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider} object. + # + # @overload create_viewability_provider(request, options = nil) + # Pass arguments to `create_viewability_provider` via a request object, either of type + # {::Google::Ads::AdManager::V1::CreateViewabilityProviderRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::CreateViewabilityProviderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_viewability_provider(parent: nil, viewability_provider: nil) + # Pass arguments to `create_viewability_provider` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where this + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider} will be + # created. Format: `networks/{network_code}` + # @param viewability_provider [::Google::Ads::AdManager::V1::ViewabilityProvider, ::Hash] + # Required. The + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider} to + # create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::ViewabilityProvider] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::ViewabilityProvider] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::CreateViewabilityProviderRequest.new + # + # # Call the create_viewability_provider method. + # result = client.create_viewability_provider request + # + # # The returned object is of type Google::Ads::AdManager::V1::ViewabilityProvider. + # p result + # + def create_viewability_provider request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::CreateViewabilityProviderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_viewability_provider.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_viewability_provider.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_viewability_provider.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @viewability_provider_service_stub.create_viewability_provider request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider} + # objects. + # + # @overload batch_create_viewability_providers(request, options = nil) + # Pass arguments to `batch_create_viewability_providers` via a request object, either of type + # {::Google::Ads::AdManager::V1::BatchCreateViewabilityProvidersRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::BatchCreateViewabilityProvidersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload batch_create_viewability_providers(parent: nil, requests: nil) + # Pass arguments to `batch_create_viewability_providers` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider}s will be + # created. Format: `networks/{network_code}` The parent field in the + # CreateViewabilityProviderRequest must match this field. + # @param requests [::Array<::Google::Ads::AdManager::V1::CreateViewabilityProviderRequest, ::Hash>] + # Required. The + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider} objects + # to create. A maximum of 100 objects can be created in a batch. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchCreateViewabilityProvidersResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchCreateViewabilityProvidersResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::BatchCreateViewabilityProvidersRequest.new + # + # # Call the batch_create_viewability_providers method. + # result = client.batch_create_viewability_providers request + # + # # The returned object is of type Google::Ads::AdManager::V1::BatchCreateViewabilityProvidersResponse. + # p result + # + def batch_create_viewability_providers request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchCreateViewabilityProvidersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.batch_create_viewability_providers.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.batch_create_viewability_providers.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.batch_create_viewability_providers.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @viewability_provider_service_stub.batch_create_viewability_providers request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider} object. + # + # @overload update_viewability_provider(request, options = nil) + # Pass arguments to `update_viewability_provider` via a request object, either of type + # {::Google::Ads::AdManager::V1::UpdateViewabilityProviderRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::UpdateViewabilityProviderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_viewability_provider(viewability_provider: nil, update_mask: nil) + # Pass arguments to `update_viewability_provider` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param viewability_provider [::Google::Ads::AdManager::V1::ViewabilityProvider, ::Hash] + # Required. The + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider} to + # update. + # + # The {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider}'s + # `name` is used to identify the + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider} to + # update. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to update. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::ViewabilityProvider] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::ViewabilityProvider] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::UpdateViewabilityProviderRequest.new + # + # # Call the update_viewability_provider method. + # result = client.update_viewability_provider request + # + # # The returned object is of type Google::Ads::AdManager::V1::ViewabilityProvider. + # p result + # + def update_viewability_provider request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::UpdateViewabilityProviderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_viewability_provider.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_viewability_provider.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_viewability_provider.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @viewability_provider_service_stub.update_viewability_provider request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Batch updates + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider} objects. + # + # @overload batch_update_viewability_providers(request, options = nil) + # Pass arguments to `batch_update_viewability_providers` via a request object, either of type + # {::Google::Ads::AdManager::V1::BatchUpdateViewabilityProvidersRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::AdManager::V1::BatchUpdateViewabilityProvidersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload batch_update_viewability_providers(parent: nil, requests: nil) + # Pass arguments to `batch_update_viewability_providers` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider}s will be + # updated. Format: `networks/{network_code}` The parent field in the + # UpdateViewabilityProviderRequest must match this field. + # @param requests [::Array<::Google::Ads::AdManager::V1::UpdateViewabilityProviderRequest, ::Hash>] + # Required. The + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider} objects + # to update. A maximum of 100 objects can be updated in a batch. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchUpdateViewabilityProvidersResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchUpdateViewabilityProvidersResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/ads/ad_manager/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::AdManager::V1::BatchUpdateViewabilityProvidersRequest.new + # + # # Call the batch_update_viewability_providers method. + # result = client.batch_update_viewability_providers request + # + # # The returned object is of type Google::Ads::AdManager::V1::BatchUpdateViewabilityProvidersResponse. + # p result + # + def batch_update_viewability_providers request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchUpdateViewabilityProvidersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.batch_update_viewability_providers.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::AdManager::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.batch_update_viewability_providers.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.batch_update_viewability_providers.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @viewability_provider_service_stub.batch_update_viewability_providers request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the ViewabilityProviderService REST API. + # + # This class represents the configuration for ViewabilityProviderService REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # get_viewability_provider to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.get_viewability_provider.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.get_viewability_provider.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "admanager.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the ViewabilityProviderService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `get_viewability_provider` + # @return [::Gapic::Config::Method] + # + attr_reader :get_viewability_provider + ## + # RPC-specific configuration for `list_viewability_providers` + # @return [::Gapic::Config::Method] + # + attr_reader :list_viewability_providers + ## + # RPC-specific configuration for `create_viewability_provider` + # @return [::Gapic::Config::Method] + # + attr_reader :create_viewability_provider + ## + # RPC-specific configuration for `batch_create_viewability_providers` + # @return [::Gapic::Config::Method] + # + attr_reader :batch_create_viewability_providers + ## + # RPC-specific configuration for `update_viewability_provider` + # @return [::Gapic::Config::Method] + # + attr_reader :update_viewability_provider + ## + # RPC-specific configuration for `batch_update_viewability_providers` + # @return [::Gapic::Config::Method] + # + attr_reader :batch_update_viewability_providers + + # @private + def initialize parent_rpcs = nil + get_viewability_provider_config = parent_rpcs.get_viewability_provider if parent_rpcs.respond_to? :get_viewability_provider + @get_viewability_provider = ::Gapic::Config::Method.new get_viewability_provider_config + list_viewability_providers_config = parent_rpcs.list_viewability_providers if parent_rpcs.respond_to? :list_viewability_providers + @list_viewability_providers = ::Gapic::Config::Method.new list_viewability_providers_config + create_viewability_provider_config = parent_rpcs.create_viewability_provider if parent_rpcs.respond_to? :create_viewability_provider + @create_viewability_provider = ::Gapic::Config::Method.new create_viewability_provider_config + batch_create_viewability_providers_config = parent_rpcs.batch_create_viewability_providers if parent_rpcs.respond_to? :batch_create_viewability_providers + @batch_create_viewability_providers = ::Gapic::Config::Method.new batch_create_viewability_providers_config + update_viewability_provider_config = parent_rpcs.update_viewability_provider if parent_rpcs.respond_to? :update_viewability_provider + @update_viewability_provider = ::Gapic::Config::Method.new update_viewability_provider_config + batch_update_viewability_providers_config = parent_rpcs.batch_update_viewability_providers if parent_rpcs.respond_to? :batch_update_viewability_providers + @batch_update_viewability_providers = ::Gapic::Config::Method.new batch_update_viewability_providers_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/viewability_provider_service/rest/service_stub.rb b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/viewability_provider_service/rest/service_stub.rb new file mode 100644 index 000000000000..b00df211cbc1 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/ad_manager/v1/viewability_provider_service/rest/service_stub.rb @@ -0,0 +1,451 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/ads/admanager/v1/viewability_provider_service_pb" + +module Google + module Ads + module AdManager + module V1 + module ViewabilityProviderService + module Rest + ## + # REST service stub for the ViewabilityProviderService service. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + # + class ServiceStub + # @private + def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, + numeric_enums: true, + service_name: self.class, + raise_faraday_errors: false, + logger: logger + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain + end + + ## + # The effective endpoint + # + # @return [String] + # + def endpoint + @client_stub.endpoint + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger stub: false + stub ? @client_stub.stub_logger : @client_stub.logger + end + + ## + # Baseline implementation for the get_viewability_provider REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::GetViewabilityProviderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::ViewabilityProvider] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::ViewabilityProvider] + # A result object deserialized from the server's reply + def get_viewability_provider request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_viewability_provider_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_viewability_provider", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::ViewabilityProvider.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_viewability_providers REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::ListViewabilityProvidersRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::ListViewabilityProvidersResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::ListViewabilityProvidersResponse] + # A result object deserialized from the server's reply + def list_viewability_providers request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_viewability_providers_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_viewability_providers", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::ListViewabilityProvidersResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_viewability_provider REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::CreateViewabilityProviderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::ViewabilityProvider] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::ViewabilityProvider] + # A result object deserialized from the server's reply + def create_viewability_provider request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_viewability_provider_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_viewability_provider", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::ViewabilityProvider.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the batch_create_viewability_providers REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchCreateViewabilityProvidersRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchCreateViewabilityProvidersResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchCreateViewabilityProvidersResponse] + # A result object deserialized from the server's reply + def batch_create_viewability_providers request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_batch_create_viewability_providers_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "batch_create_viewability_providers", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::BatchCreateViewabilityProvidersResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_viewability_provider REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::UpdateViewabilityProviderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::ViewabilityProvider] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::ViewabilityProvider] + # A result object deserialized from the server's reply + def update_viewability_provider request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_viewability_provider_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_viewability_provider", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::ViewabilityProvider.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the batch_update_viewability_providers REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchUpdateViewabilityProvidersRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Ads::AdManager::V1::BatchUpdateViewabilityProvidersResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Ads::AdManager::V1::BatchUpdateViewabilityProvidersResponse] + # A result object deserialized from the server's reply + def batch_update_viewability_providers request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_batch_update_viewability_providers_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "batch_update_viewability_providers", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Ads::AdManager::V1::BatchUpdateViewabilityProvidersResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the get_viewability_provider REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::GetViewabilityProviderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_viewability_provider_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^networks/[^/]+/viewabilityProviders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_viewability_providers REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::ListViewabilityProvidersRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_viewability_providers_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/viewabilityProviders", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_viewability_provider REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::CreateViewabilityProviderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_viewability_provider_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/viewabilityProviders", + body: "viewability_provider", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the batch_create_viewability_providers REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchCreateViewabilityProvidersRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_batch_create_viewability_providers_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/viewabilityProviders:batchCreate", + body: "*", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_viewability_provider REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::UpdateViewabilityProviderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_viewability_provider_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{viewability_provider.name}", + body: "viewability_provider", + matches: [ + ["viewability_provider.name", %r{^networks/[^/]+/viewabilityProviders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the batch_update_viewability_providers REST call + # + # @param request_pb [::Google::Ads::AdManager::V1::BatchUpdateViewabilityProvidersRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_batch_update_viewability_providers_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/viewabilityProviders:batchUpdate", + body: "*", + matches: [ + ["parent", %r{^networks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/ad_unit_enums_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/ad_unit_enums_pb.rb index 3f56793295cc..1bfa5b87369d 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/ad_unit_enums_pb.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/ad_unit_enums_pb.rb @@ -5,7 +5,7 @@ require 'google/protobuf' -descriptor_data = "\n+google/ads/admanager/v1/ad_unit_enums.proto\x12\x17google.ads.admanager.v1\"j\n\x10\x41\x64UnitStatusEnum\"V\n\x0c\x41\x64UnitStatus\x12\x1e\n\x1a\x41\x44_UNIT_STATUS_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0c\n\x08INACTIVE\x10\x02\x12\x0c\n\x08\x41RCHIVED\x10\x03\"s\n\x11SmartSizeModeEnum\"^\n\rSmartSizeMode\x12\x1f\n\x1bSMART_SIZE_MODE_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x10\n\x0cSMART_BANNER\x10\x02\x12\x10\n\x0c\x44YNAMIC_SIZE\x10\x03\"U\n\x10TargetWindowEnum\"A\n\x0cTargetWindow\x12\x1d\n\x19TARGET_WINDOW_UNSPECIFIED\x10\x00\x12\x07\n\x03TOP\x10\x01\x12\t\n\x05\x42LANK\x10\x02\x42\xc4\x01\n\x1b\x63om.google.ads.admanager.v1B\x10\x41\x64UnitEnumsProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" +descriptor_data = "\n+google/ads/admanager/v1/ad_unit_enums.proto\x12\x17google.ads.admanager.v1\"j\n\x10\x41\x64UnitStatusEnum\"V\n\x0c\x41\x64UnitStatus\x12\x1e\n\x1a\x41\x44_UNIT_STATUS_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0c\n\x08INACTIVE\x10\x02\x12\x0c\n\x08\x41RCHIVED\x10\x03\"s\n\x11SmartSizeModeEnum\"^\n\rSmartSizeMode\x12\x1f\n\x1bSMART_SIZE_MODE_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x10\n\x0cSMART_BANNER\x10\x02\x12\x10\n\x0c\x44YNAMIC_SIZE\x10\x03\"U\n\x10TargetWindowEnum\"A\n\x0cTargetWindow\x12\x1d\n\x19TARGET_WINDOW_UNSPECIFIED\x10\x00\x12\x07\n\x03TOP\x10\x01\x12\t\n\x05\x42LANK\x10\x02\"|\n\x13RefreshRateTypeEnum\"e\n\x0fRefreshRateType\x12!\n\x1dREFRESH_RATE_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\r\n\tOPTIMIZED\x10\x02\x12\x12\n\x0e\x46IXED_INTERVAL\x10\x03\x42\xc4\x01\n\x1b\x63om.google.ads.admanager.v1B\x10\x41\x64UnitEnumsProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) @@ -20,6 +20,8 @@ module V1 SmartSizeModeEnum::SmartSizeMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode").enummodule TargetWindowEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.TargetWindowEnum").msgclass TargetWindowEnum::TargetWindow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.TargetWindowEnum.TargetWindow").enummodule + RefreshRateTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.RefreshRateTypeEnum").msgclass + RefreshRateTypeEnum::RefreshRateType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.RefreshRateTypeEnum.RefreshRateType").enummodule end end end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/ad_unit_messages_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/ad_unit_messages_pb.rb index 512317bbc305..b28bde62d08a 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/ad_unit_messages_pb.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/ad_unit_messages_pb.rb @@ -15,7 +15,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n.google/ads/admanager/v1/ad_unit_messages.proto\x12\x17google.ads.admanager.v1\x1a+google/ads/admanager/v1/ad_unit_enums.proto\x1a+google/ads/admanager/v1/applied_label.proto\x1a\x33google/ads/admanager/v1/environment_type_enum.proto\x1a+google/ads/admanager/v1/frequency_cap.proto\x1a\"google/ads/admanager/v1/size.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x82\x0f\n\x06\x41\x64Unit\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\nad_unit_id\x18\x0f \x01(\x03\x42\x05\x18\x01\xe0\x41\x03\x12G\n\x0eparent_ad_unit\x18\n \x01(\tB*\xe0\x41\x02\xe0\x41\x05\xfa\x41!\n\x1f\x61\x64manager.googleapis.com/AdUnitH\x00\x88\x01\x01\x12?\n\x0bparent_path\x18\x0b \x03(\x0b\x32%.google.ads.admanager.v1.AdUnitParentB\x03\xe0\x41\x03\x12\x1e\n\x0c\x64isplay_name\x18\t \x01(\tB\x03\xe0\x41\x02H\x01\x88\x01\x01\x12!\n\x0c\x61\x64_unit_code\x18\x02 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05H\x02\x88\x01\x01\x12P\n\x06status\x18\r \x01(\x0e\x32\x36.google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatusB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12_\n\x15\x61pplied_target_window\x18, \x01(\x0e\x32\x36.google.ads.admanager.v1.TargetWindowEnum.TargetWindowB\x03\xe0\x41\x01H\x04\x88\x01\x01\x12\x64\n\x17\x65\x66\x66\x65\x63tive_target_window\x18- \x01(\x0e\x32\x36.google.ads.admanager.v1.TargetWindowEnum.TargetWindowB\x06\xe0\x41\x07\xe0\x41\x03H\x05\x88\x01\x01\x12<\n\rapplied_teams\x18\x03 \x03(\tB%\xe0\x41\x01\xfa\x41\x1f\n\x1d\x61\x64manager.googleapis.com/Team\x12\x34\n\x05teams\x18\x04 \x03(\tB%\xe0\x41\x03\xfa\x41\x1f\n\x1d\x61\x64manager.googleapis.com/Team\x12\x1d\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x01H\x06\x88\x01\x01\x12%\n\x13\x65xplicitly_targeted\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01H\x07\x88\x01\x01\x12\x1e\n\x0chas_children\x18\x07 \x01(\x08\x42\x03\xe0\x41\x03H\x08\x88\x01\x01\x12\x39\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03H\t\x88\x01\x01\x12?\n\rad_unit_sizes\x18\x0e \x03(\x0b\x32#.google.ads.admanager.v1.AdUnitSizeB\x03\xe0\x41\x01\x12\x33\n\x1f\x65xternal_set_top_box_channel_id\x18\x11 \x01(\tB\x05\x18\x01\xe0\x41\x01H\n\x88\x01\x01\x12:\n\rrefresh_delay\x18\x13 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01H\x0b\x88\x01\x01\x12\x42\n\x0e\x61pplied_labels\x18\x15 \x03(\x0b\x32%.google.ads.admanager.v1.AppliedLabelB\x03\xe0\x41\x01\x12L\n\x18\x65\x66\x66\x65\x63tive_applied_labels\x18\x16 \x03(\x0b\x32%.google.ads.admanager.v1.AppliedLabelB\x03\xe0\x41\x03\x12U\n\x1c\x61pplied_label_frequency_caps\x18\x17 \x03(\x0b\x32*.google.ads.admanager.v1.LabelFrequencyCapB\x03\xe0\x41\x01\x12W\n\x1e\x65\x66\x66\x65\x63tive_label_frequency_caps\x18\x18 \x03(\x0b\x32*.google.ads.admanager.v1.LabelFrequencyCapB\x03\xe0\x41\x03\x12^\n\x0fsmart_size_mode\x18\x19 \x01(\x0e\x32\x38.google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeModeB\x06\xe0\x41\x01\xe0\x41\x07H\x0c\x88\x01\x01\x12)\n\x17\x61pplied_adsense_enabled\x18\x1a \x01(\x08\x42\x03\xe0\x41\x01H\r\x88\x01\x01\x12+\n\x19\x65\x66\x66\x65\x63tive_adsense_enabled\x18\x1b \x01(\x08\x42\x03\xe0\x41\x03H\x0e\x88\x01\x01:`\xea\x41]\n\x1f\x61\x64manager.googleapis.com/AdUnit\x12)networks/{network_code}/adUnits/{ad_unit}*\x07\x61\x64Units2\x06\x61\x64UnitB\x11\n\x0f_parent_ad_unitB\x0f\n\r_display_nameB\x0f\n\r_ad_unit_codeB\t\n\x07_statusB\x18\n\x16_applied_target_windowB\x1a\n\x18_effective_target_windowB\x0e\n\x0c_descriptionB\x16\n\x14_explicitly_targetedB\x0f\n\r_has_childrenB\x0e\n\x0c_update_timeB\"\n _external_set_top_box_channel_idB\x10\n\x0e_refresh_delayB\x12\n\x10_smart_size_modeB\x1a\n\x18_applied_adsense_enabledB\x1c\n\x1a_effective_adsense_enabled\"\xf6\x01\n\nAdUnitSize\x12\x35\n\x04size\x18\x01 \x01(\x0b\x32\x1d.google.ads.admanager.v1.SizeB\x03\xe0\x41\x02H\x00\x88\x01\x01\x12`\n\x10\x65nvironment_type\x18\x02 \x01(\x0e\x32<.google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentTypeB\x03\xe0\x41\x02H\x01\x88\x01\x01\x12\x31\n\ncompanions\x18\x03 \x03(\x0b\x32\x1d.google.ads.admanager.v1.SizeB\x07\n\x05_sizeB\x13\n\x11_environment_type\"\xc9\x01\n\x0c\x41\x64UnitParent\x12\x44\n\x0eparent_ad_unit\x18\x01 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1f\x61\x64manager.googleapis.com/AdUnitH\x00\x88\x01\x01\x12\x1e\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1e\n\x0c\x61\x64_unit_code\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x42\x11\n\x0f_parent_ad_unitB\x0f\n\r_display_nameB\x0f\n\r_ad_unit_code\"\xae\x01\n\x11LabelFrequencyCap\x12:\n\x05label\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x61\x64manager.googleapis.com/LabelH\x00\x88\x01\x01\x12\x41\n\rfrequency_cap\x18\x02 \x01(\x0b\x32%.google.ads.admanager.v1.FrequencyCapH\x01\x88\x01\x01\x42\x08\n\x06_labelB\x10\n\x0e_frequency_capB\xc7\x01\n\x1b\x63om.google.ads.admanager.v1B\x13\x41\x64UnitMessagesProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" +descriptor_data = "\n.google/ads/admanager/v1/ad_unit_messages.proto\x12\x17google.ads.admanager.v1\x1a+google/ads/admanager/v1/ad_unit_enums.proto\x1a+google/ads/admanager/v1/applied_label.proto\x1a\x33google/ads/admanager/v1/environment_type_enum.proto\x1a+google/ads/admanager/v1/frequency_cap.proto\x1a\"google/ads/admanager/v1/size.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfe\x0f\n\x06\x41\x64Unit\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\nad_unit_id\x18\x0f \x01(\x03\x42\x05\x18\x01\xe0\x41\x03\x12G\n\x0eparent_ad_unit\x18\n \x01(\tB*\xe0\x41\x02\xe0\x41\x05\xfa\x41!\n\x1f\x61\x64manager.googleapis.com/AdUnitH\x00\x88\x01\x01\x12?\n\x0bparent_path\x18\x0b \x03(\x0b\x32%.google.ads.admanager.v1.AdUnitParentB\x03\xe0\x41\x03\x12\x1e\n\x0c\x64isplay_name\x18\t \x01(\tB\x03\xe0\x41\x02H\x01\x88\x01\x01\x12!\n\x0c\x61\x64_unit_code\x18\x02 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05H\x02\x88\x01\x01\x12P\n\x06status\x18\r \x01(\x0e\x32\x36.google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatusB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12_\n\x15\x61pplied_target_window\x18, \x01(\x0e\x32\x36.google.ads.admanager.v1.TargetWindowEnum.TargetWindowB\x03\xe0\x41\x01H\x04\x88\x01\x01\x12\x64\n\x17\x65\x66\x66\x65\x63tive_target_window\x18- \x01(\x0e\x32\x36.google.ads.admanager.v1.TargetWindowEnum.TargetWindowB\x06\xe0\x41\x07\xe0\x41\x03H\x05\x88\x01\x01\x12<\n\rapplied_teams\x18\x03 \x03(\tB%\xe0\x41\x01\xfa\x41\x1f\n\x1d\x61\x64manager.googleapis.com/Team\x12\x34\n\x05teams\x18\x04 \x03(\tB%\xe0\x41\x03\xfa\x41\x1f\n\x1d\x61\x64manager.googleapis.com/Team\x12\x1d\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x01H\x06\x88\x01\x01\x12%\n\x13\x65xplicitly_targeted\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01H\x07\x88\x01\x01\x12\x1e\n\x0chas_children\x18\x07 \x01(\x08\x42\x03\xe0\x41\x03H\x08\x88\x01\x01\x12\x39\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03H\t\x88\x01\x01\x12?\n\rad_unit_sizes\x18\x0e \x03(\x0b\x32#.google.ads.admanager.v1.AdUnitSizeB\x03\xe0\x41\x01\x12\x33\n\x1f\x65xternal_set_top_box_channel_id\x18\x11 \x01(\tB\x05\x18\x01\xe0\x41\x01H\n\x88\x01\x01\x12:\n\rrefresh_delay\x18\x13 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01H\x0b\x88\x01\x01\x12\x42\n\x0e\x61pplied_labels\x18\x15 \x03(\x0b\x32%.google.ads.admanager.v1.AppliedLabelB\x03\xe0\x41\x01\x12L\n\x18\x65\x66\x66\x65\x63tive_applied_labels\x18\x16 \x03(\x0b\x32%.google.ads.admanager.v1.AppliedLabelB\x03\xe0\x41\x03\x12U\n\x1c\x61pplied_label_frequency_caps\x18\x17 \x03(\x0b\x32*.google.ads.admanager.v1.LabelFrequencyCapB\x03\xe0\x41\x01\x12W\n\x1e\x65\x66\x66\x65\x63tive_label_frequency_caps\x18\x18 \x03(\x0b\x32*.google.ads.admanager.v1.LabelFrequencyCapB\x03\xe0\x41\x03\x12^\n\x0fsmart_size_mode\x18\x19 \x01(\x0e\x32\x38.google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeModeB\x06\xe0\x41\x01\xe0\x41\x07H\x0c\x88\x01\x01\x12)\n\x17\x61pplied_adsense_enabled\x18\x1a \x01(\x08\x42\x03\xe0\x41\x01H\r\x88\x01\x01\x12+\n\x19\x65\x66\x66\x65\x63tive_adsense_enabled\x18\x1b \x01(\x08\x42\x03\xe0\x41\x03H\x0e\x88\x01\x01\x12\x64\n\x11refresh_rate_type\x18N \x01(\x0e\x32<.google.ads.admanager.v1.RefreshRateTypeEnum.RefreshRateTypeB\x06\xe0\x41\x01\xe0\x41\x07H\x0f\x88\x01\x01:`\xea\x41]\n\x1f\x61\x64manager.googleapis.com/AdUnit\x12)networks/{network_code}/adUnits/{ad_unit}*\x07\x61\x64Units2\x06\x61\x64UnitB\x11\n\x0f_parent_ad_unitB\x0f\n\r_display_nameB\x0f\n\r_ad_unit_codeB\t\n\x07_statusB\x18\n\x16_applied_target_windowB\x1a\n\x18_effective_target_windowB\x0e\n\x0c_descriptionB\x16\n\x14_explicitly_targetedB\x0f\n\r_has_childrenB\x0e\n\x0c_update_timeB\"\n _external_set_top_box_channel_idB\x10\n\x0e_refresh_delayB\x12\n\x10_smart_size_modeB\x1a\n\x18_applied_adsense_enabledB\x1c\n\x1a_effective_adsense_enabledB\x14\n\x12_refresh_rate_type\"\xf6\x01\n\nAdUnitSize\x12\x35\n\x04size\x18\x01 \x01(\x0b\x32\x1d.google.ads.admanager.v1.SizeB\x03\xe0\x41\x02H\x00\x88\x01\x01\x12`\n\x10\x65nvironment_type\x18\x02 \x01(\x0e\x32<.google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentTypeB\x03\xe0\x41\x02H\x01\x88\x01\x01\x12\x31\n\ncompanions\x18\x03 \x03(\x0b\x32\x1d.google.ads.admanager.v1.SizeB\x07\n\x05_sizeB\x13\n\x11_environment_type\"\xc9\x01\n\x0c\x41\x64UnitParent\x12\x44\n\x0eparent_ad_unit\x18\x01 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1f\x61\x64manager.googleapis.com/AdUnitH\x00\x88\x01\x01\x12\x1e\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1e\n\x0c\x61\x64_unit_code\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x42\x11\n\x0f_parent_ad_unitB\x0f\n\r_display_nameB\x0f\n\r_ad_unit_code\"\xae\x01\n\x11LabelFrequencyCap\x12:\n\x05label\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x61\x64manager.googleapis.com/LabelH\x00\x88\x01\x01\x12\x41\n\rfrequency_cap\x18\x02 \x01(\x0b\x32%.google.ads.admanager.v1.FrequencyCapH\x01\x88\x01\x01\x42\x08\n\x06_labelB\x10\n\x0e_frequency_capB\xc7\x01\n\x1b\x63om.google.ads.admanager.v1B\x13\x41\x64UnitMessagesProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/audience_segment_service_services_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/audience_segment_service_services_pb.rb index d530e4e4031c..8fe711b0127c 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/audience_segment_service_services_pb.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/audience_segment_service_services_pb.rb @@ -33,9 +33,9 @@ class Service self.unmarshal_class_method = :decode self.service_name = 'google.ads.admanager.v1.AudienceSegmentService' - # API to retrieve an `AudienceSegment` object. + # Retrieves an `AudienceSegment` object. rpc :GetAudienceSegment, ::Google::Ads::AdManager::V1::GetAudienceSegmentRequest, ::Google::Ads::AdManager::V1::AudienceSegment - # API to retrieve a list of `AudienceSegment` objects. + # Lists `AudienceSegment` objects. rpc :ListAudienceSegments, ::Google::Ads::AdManager::V1::ListAudienceSegmentsRequest, ::Google::Ads::AdManager::V1::ListAudienceSegmentsResponse end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/child_publisher_messages_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/child_publisher_messages_pb.rb index 8cc5e44e95fc..d793d49dffd6 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/child_publisher_messages_pb.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/child_publisher_messages_pb.rb @@ -4,11 +4,12 @@ require 'google/protobuf' +require 'google/ads/admanager/v1/mcm_enums_pb' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' -descriptor_data = "\n6google/ads/admanager/v1/child_publisher_messages.proto\x12\x17google.ads.admanager.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xaf\x01\n\x0e\x43hildPublisher\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08:\x89\x01\xea\x41\x85\x01\n\'admanager.googleapis.com/ChildPublisher\x12\x39networks/{network_code}/childPublishers/{child_publisher}*\x0f\x63hildPublishers2\x0e\x63hildPublisherB\xcf\x01\n\x1b\x63om.google.ads.admanager.v1B\x1b\x43hildPublisherMessagesProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" +descriptor_data = "\n6google/ads/admanager/v1/child_publisher_messages.proto\x12\x17google.ads.admanager.v1\x1a\'google/ads/admanager/v1/mcm_enums.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe6\r\n\x0e\x43hildPublisher\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1e\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02H\x00\x88\x01\x01\x12\x17\n\x05\x65mail\x18\x04 \x01(\tB\x03\xe0\x41\x02H\x01\x88\x01\x01\x12\x44\n\rchild_network\x18\x05 \x01(\tB(\xe0\x41\x05\xfa\x41\"\n admanager.googleapis.com/NetworkH\x02\x88\x01\x01\x12]\n\x0f\x64\x65legation_type\x18\t \x01(\x0e\x32:.google.ads.admanager.v1.DelegationTypeEnum.DelegationTypeB\x03\xe0\x41\x02H\x03\x88\x01\x01\x12\x33\n!parent_revenue_share_millipercent\x18\n \x01(\x03\x42\x03\xe0\x41\x01H\x04\x88\x01\x01\x12\x1b\n\tseller_id\x18\x0b \x01(\tB\x03\xe0\x41\x01H\x05\x88\x01\x01\x12\x66\n\x10readiness_status\x18\x0c \x01(\x0e\x32\x42.google.ads.admanager.v1.McmReadinessStatusEnum.McmReadinessStatusB\x03\xe0\x41\x03H\x06\x88\x01\x01\x12w\n\x11invitation_status\x18\r \x01(\x0e\x32R.google.ads.admanager.v1.DelegationInvitationStatusEnum.DelegationInvitationStatusB\x03\xe0\x41\x03H\x07\x88\x01\x01\x12q\n\x0f\x61pproval_status\x18\x0f \x01(\x0e\x32N.google.ads.admanager.v1.DelegationApprovalStatusEnum.DelegationApprovalStatusB\x03\xe0\x41\x03H\x08\x88\x01\x01\x12\x9e\x01\n\x1cidentity_verification_status\x18\x11 \x01(\x0e\x32n.google.ads.admanager.v1.ChildPublisherIdentityVerificationStatusEnum.ChildPublisherIdentityVerificationStatusB\x03\xe0\x41\x03H\t\x88\x01\x01\x12\x9b\x01\n\x1b\x61\x64\x64ress_verification_status\x18\x13 \x01(\x0e\x32l.google.ads.admanager.v1.ChildPublisherAddressVerificationStatusEnum.ChildPublisherAddressVerificationStatusB\x03\xe0\x41\x03H\n\x88\x01\x01\x12}\n\x18pending_onboarding_tasks\x18\x16 \x03(\x0e\x32V.google.ads.admanager.v1.ChildPublisherOnboardingTaskEnum.ChildPublisherOnboardingTaskB\x03\xe0\x41\x03\x12n\n\x0e\x61\x63\x63ount_status\x18\x1a \x01(\x0e\x32L.google.ads.admanager.v1.DelegationAccountStatusEnum.DelegationAccountStatusB\x03\xe0\x41\x03H\x0b\x88\x01\x01\x12\x44\n2approved_manage_account_revenue_share_millipercent\x18\x1d \x01(\x03\x42\x03\xe0\x41\x03H\x0c\x88\x01\x01:\x89\x01\xea\x41\x85\x01\n\'admanager.googleapis.com/ChildPublisher\x12\x39networks/{network_code}/childPublishers/{child_publisher}*\x0f\x63hildPublishers2\x0e\x63hildPublisherB\x0f\n\r_display_nameB\x08\n\x06_emailB\x10\n\x0e_child_networkB\x12\n\x10_delegation_typeB$\n\"_parent_revenue_share_millipercentB\x0c\n\n_seller_idB\x13\n\x11_readiness_statusB\x14\n\x12_invitation_statusB\x12\n\x10_approval_statusB\x1f\n\x1d_identity_verification_statusB\x1e\n\x1c_address_verification_statusB\x11\n\x0f_account_statusB5\n3_approved_manage_account_revenue_share_millipercentB\xcf\x01\n\x1b\x63om.google.ads.admanager.v1B\x1b\x43hildPublisherMessagesProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/child_publisher_service_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/child_publisher_service_pb.rb new file mode 100644 index 000000000000..0418bac7b806 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/child_publisher_service_pb.rb @@ -0,0 +1,36 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/admanager/v1/child_publisher_service.proto + +require 'google/protobuf' + +require 'google/ads/admanager/v1/child_publisher_messages_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' + + +descriptor_data = "\n5google/ads/admanager/v1/child_publisher_service.proto\x12\x17google.ads.admanager.v1\x1a\x36google/ads/admanager/v1/child_publisher_messages.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"Y\n\x18GetChildPublisherRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'admanager.googleapis.com/ChildPublisher\"\xc6\x01\n\x1aListChildPublishersRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\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\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04skip\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\"\x8d\x01\n\x1bListChildPublishersResponse\x12\x41\n\x10\x63hild_publishers\x18\x01 \x03(\x0b\x32\'.google.ads.admanager.v1.ChildPublisher\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\"\x9e\x01\n\x1b\x43reateChildPublisherRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\x12\x45\n\x0f\x63hild_publisher\x18\x02 \x01(\x0b\x32\'.google.ads.admanager.v1.ChildPublisherB\x03\xe0\x41\x02\"\xaa\x01\n!BatchCreateChildPublishersRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\x12K\n\x08requests\x18\x02 \x03(\x0b\x32\x34.google.ads.admanager.v1.CreateChildPublisherRequestB\x03\xe0\x41\x02\"g\n\"BatchCreateChildPublishersResponse\x12\x41\n\x10\x63hild_publishers\x18\x01 \x03(\x0b\x32\'.google.ads.admanager.v1.ChildPublisher\"\x9a\x01\n\x1bUpdateChildPublisherRequest\x12\x45\n\x0f\x63hild_publisher\x18\x01 \x01(\x0b\x32\'.google.ads.admanager.v1.ChildPublisherB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xaa\x01\n!BatchUpdateChildPublishersRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\x12K\n\x08requests\x18\x02 \x03(\x0b\x32\x34.google.ads.admanager.v1.UpdateChildPublisherRequestB\x03\xe0\x41\x02\"g\n\"BatchUpdateChildPublishersResponse\x12\x41\n\x10\x63hild_publishers\x18\x01 \x03(\x0b\x32\'.google.ads.admanager.v1.ChildPublisher2\x89\x0b\n\x15\x43hildPublisherService\x12\xa7\x01\n\x11GetChildPublisher\x12\x31.google.ads.admanager.v1.GetChildPublisherRequest\x1a\'.google.ads.admanager.v1.ChildPublisher\"6\xda\x41\x04name\x82\xd3\xe4\x93\x02)\x12\'/v1/{name=networks/*/childPublishers/*}\x12\xba\x01\n\x13ListChildPublishers\x12\x33.google.ads.admanager.v1.ListChildPublishersRequest\x1a\x34.google.ads.admanager.v1.ListChildPublishersResponse\"8\xda\x41\x06parent\x82\xd3\xe4\x93\x02)\x12\'/v1/{parent=networks/*}/childPublishers\x12\xd0\x01\n\x14\x43reateChildPublisher\x12\x34.google.ads.admanager.v1.CreateChildPublisherRequest\x1a\'.google.ads.admanager.v1.ChildPublisher\"Y\xda\x41\x16parent,child_publisher\x82\xd3\xe4\x93\x02:\"\'/v1/{parent=networks/*}/childPublishers:\x0f\x63hild_publisher\x12\xe7\x01\n\x1a\x42\x61tchCreateChildPublishers\x12:.google.ads.admanager.v1.BatchCreateChildPublishersRequest\x1a;.google.ads.admanager.v1.BatchCreateChildPublishersResponse\"P\xda\x41\x0fparent,requests\x82\xd3\xe4\x93\x02\x38\"3/v1/{parent=networks/*}/childPublishers:batchCreate:\x01*\x12\xe5\x01\n\x14UpdateChildPublisher\x12\x34.google.ads.admanager.v1.UpdateChildPublisherRequest\x1a\'.google.ads.admanager.v1.ChildPublisher\"n\xda\x41\x1b\x63hild_publisher,update_mask\x82\xd3\xe4\x93\x02J27/v1/{child_publisher.name=networks/*/childPublishers/*}:\x0f\x63hild_publisher\x12\xe7\x01\n\x1a\x42\x61tchUpdateChildPublishers\x12:.google.ads.admanager.v1.BatchUpdateChildPublishersRequest\x1a;.google.ads.admanager.v1.BatchUpdateChildPublishersResponse\"P\xda\x41\x0fparent,requests\x82\xd3\xe4\x93\x02\x38\"3/v1/{parent=networks/*}/childPublishers:batchUpdate:\x01*\x1az\xca\x41\x18\x61\x64manager.googleapis.com\xd2\x41\\https://www.googleapis.com/auth/admanager,https://www.googleapis.com/auth/admanager.readonlyB\xce\x01\n\x1b\x63om.google.ads.admanager.v1B\x1a\x43hildPublisherServiceProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Ads + module AdManager + module V1 + GetChildPublisherRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.GetChildPublisherRequest").msgclass + ListChildPublishersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ListChildPublishersRequest").msgclass + ListChildPublishersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ListChildPublishersResponse").msgclass + CreateChildPublisherRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.CreateChildPublisherRequest").msgclass + BatchCreateChildPublishersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchCreateChildPublishersRequest").msgclass + BatchCreateChildPublishersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchCreateChildPublishersResponse").msgclass + UpdateChildPublisherRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.UpdateChildPublisherRequest").msgclass + BatchUpdateChildPublishersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchUpdateChildPublishersRequest").msgclass + BatchUpdateChildPublishersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchUpdateChildPublishersResponse").msgclass + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/child_publisher_service_services_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/child_publisher_service_services_pb.rb new file mode 100644 index 000000000000..090b5abcbf14 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/child_publisher_service_services_pb.rb @@ -0,0 +1,58 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/ads/admanager/v1/child_publisher_service.proto for package 'Google.Ads.AdManager.V1' +# Original file comments: +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/ads/admanager/v1/child_publisher_service_pb' + +module Google + module Ads + module AdManager + module V1 + module ChildPublisherService + # Provides methods for handling + # [ChildPublisher][google.ads.admanager.v1.ChildPublisher] objects. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.ads.admanager.v1.ChildPublisherService' + + # Retrieves a [ChildPublisher][google.ads.admanager.v1.ChildPublisher] + # object. + rpc :GetChildPublisher, ::Google::Ads::AdManager::V1::GetChildPublisherRequest, ::Google::Ads::AdManager::V1::ChildPublisher + # Lists [ChildPublisher][google.ads.admanager.v1.ChildPublisher] objects. + rpc :ListChildPublishers, ::Google::Ads::AdManager::V1::ListChildPublishersRequest, ::Google::Ads::AdManager::V1::ListChildPublishersResponse + # Creates a [ChildPublisher][google.ads.admanager.v1.ChildPublisher] object. + rpc :CreateChildPublisher, ::Google::Ads::AdManager::V1::CreateChildPublisherRequest, ::Google::Ads::AdManager::V1::ChildPublisher + # Creates [ChildPublisher][google.ads.admanager.v1.ChildPublisher] objects. + rpc :BatchCreateChildPublishers, ::Google::Ads::AdManager::V1::BatchCreateChildPublishersRequest, ::Google::Ads::AdManager::V1::BatchCreateChildPublishersResponse + # Updates a [ChildPublisher][google.ads.admanager.v1.ChildPublisher] object. + rpc :UpdateChildPublisher, ::Google::Ads::AdManager::V1::UpdateChildPublisherRequest, ::Google::Ads::AdManager::V1::ChildPublisher + # Batch updates [ChildPublisher][google.ads.admanager.v1.ChildPublisher] + # objects. + rpc :BatchUpdateChildPublishers, ::Google::Ads::AdManager::V1::BatchUpdateChildPublishersRequest, ::Google::Ads::AdManager::V1::BatchUpdateChildPublishersResponse + end + + Stub = Service.rpc_stub_class + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/company_service_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/company_service_pb.rb index 0e0c955e6dca..429f51fd2834 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/company_service_pb.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/company_service_pb.rb @@ -9,9 +9,10 @@ require 'google/api/client_pb' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' -descriptor_data = "\n-google/ads/admanager/v1/company_service.proto\x12\x17google.ads.admanager.v1\x1a.google/ads/admanager/v1/company_messages.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"K\n\x11GetCompanyRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Company\"\xc0\x01\n\x14ListCompaniesRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\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\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04skip\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\"y\n\x15ListCompaniesResponse\x12\x33\n\tcompanies\x18\x01 \x03(\x0b\x32 .google.ads.admanager.v1.Company\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\x32\xc0\x03\n\x0e\x43ompanyService\x12\x8c\x01\n\nGetCompany\x12*.google.ads.admanager.v1.GetCompanyRequest\x1a .google.ads.admanager.v1.Company\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#\x12!/v1/{name=networks/*/companies/*}\x12\xa2\x01\n\rListCompanies\x12-.google.ads.admanager.v1.ListCompaniesRequest\x1a..google.ads.admanager.v1.ListCompaniesResponse\"2\xda\x41\x06parent\x82\xd3\xe4\x93\x02#\x12!/v1/{parent=networks/*}/companies\x1az\xca\x41\x18\x61\x64manager.googleapis.com\xd2\x41\\https://www.googleapis.com/auth/admanager,https://www.googleapis.com/auth/admanager.readonlyB\xc7\x01\n\x1b\x63om.google.ads.admanager.v1B\x13\x43ompanyServiceProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" +descriptor_data = "\n-google/ads/admanager/v1/company_service.proto\x12\x17google.ads.admanager.v1\x1a.google/ads/admanager/v1/company_messages.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"K\n\x11GetCompanyRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Company\"\xc0\x01\n\x14ListCompaniesRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\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\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04skip\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\"y\n\x15ListCompaniesResponse\x12\x33\n\tcompanies\x18\x01 \x03(\x0b\x32 .google.ads.admanager.v1.Company\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\"\x88\x01\n\x14\x43reateCompanyRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\x12\x36\n\x07\x63ompany\x18\x02 \x01(\x0b\x32 .google.ads.admanager.v1.CompanyB\x03\xe0\x41\x02\"\x9d\x01\n\x1b\x42\x61tchCreateCompaniesRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\x12\x44\n\x08requests\x18\x02 \x03(\x0b\x32-.google.ads.admanager.v1.CreateCompanyRequestB\x03\xe0\x41\x02\"S\n\x1c\x42\x61tchCreateCompaniesResponse\x12\x33\n\tcompanies\x18\x01 \x03(\x0b\x32 .google.ads.admanager.v1.Company\"\x84\x01\n\x14UpdateCompanyRequest\x12\x36\n\x07\x63ompany\x18\x01 \x01(\x0b\x32 .google.ads.admanager.v1.CompanyB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\x9d\x01\n\x1b\x42\x61tchUpdateCompaniesRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\x12\x44\n\x08requests\x18\x02 \x03(\x0b\x32-.google.ads.admanager.v1.UpdateCompanyRequestB\x03\xe0\x41\x02\"S\n\x1c\x42\x61tchUpdateCompaniesResponse\x12\x33\n\tcompanies\x18\x01 \x03(\x0b\x32 .google.ads.admanager.v1.Company2\xc1\t\n\x0e\x43ompanyService\x12\x8c\x01\n\nGetCompany\x12*.google.ads.admanager.v1.GetCompanyRequest\x1a .google.ads.admanager.v1.Company\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#\x12!/v1/{name=networks/*/companies/*}\x12\xa2\x01\n\rListCompanies\x12-.google.ads.admanager.v1.ListCompaniesRequest\x1a..google.ads.admanager.v1.ListCompaniesResponse\"2\xda\x41\x06parent\x82\xd3\xe4\x93\x02#\x12!/v1/{parent=networks/*}/companies\x12\xa5\x01\n\rCreateCompany\x12-.google.ads.admanager.v1.CreateCompanyRequest\x1a .google.ads.admanager.v1.Company\"C\xda\x41\x0eparent,company\x82\xd3\xe4\x93\x02,\"!/v1/{parent=networks/*}/companies:\x07\x63ompany\x12\xcf\x01\n\x14\x42\x61tchCreateCompanies\x12\x34.google.ads.admanager.v1.BatchCreateCompaniesRequest\x1a\x35.google.ads.admanager.v1.BatchCreateCompaniesResponse\"J\xda\x41\x0fparent,requests\x82\xd3\xe4\x93\x02\x32\"-/v1/{parent=networks/*}/companies:batchCreate:\x01*\x12\xb2\x01\n\rUpdateCompany\x12-.google.ads.admanager.v1.UpdateCompanyRequest\x1a .google.ads.admanager.v1.Company\"P\xda\x41\x13\x63ompany,update_mask\x82\xd3\xe4\x93\x02\x34\x32)/v1/{company.name=networks/*/companies/*}:\x07\x63ompany\x12\xcf\x01\n\x14\x42\x61tchUpdateCompanies\x12\x34.google.ads.admanager.v1.BatchUpdateCompaniesRequest\x1a\x35.google.ads.admanager.v1.BatchUpdateCompaniesResponse\"J\xda\x41\x0fparent,requests\x82\xd3\xe4\x93\x02\x32\"-/v1/{parent=networks/*}/companies:batchUpdate:\x01*\x1az\xca\x41\x18\x61\x64manager.googleapis.com\xd2\x41\\https://www.googleapis.com/auth/admanager,https://www.googleapis.com/auth/admanager.readonlyB\xc7\x01\n\x1b\x63om.google.ads.admanager.v1B\x13\x43ompanyServiceProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) @@ -23,6 +24,12 @@ module V1 GetCompanyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.GetCompanyRequest").msgclass ListCompaniesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ListCompaniesRequest").msgclass ListCompaniesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ListCompaniesResponse").msgclass + CreateCompanyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.CreateCompanyRequest").msgclass + BatchCreateCompaniesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchCreateCompaniesRequest").msgclass + BatchCreateCompaniesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchCreateCompaniesResponse").msgclass + UpdateCompanyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.UpdateCompanyRequest").msgclass + BatchUpdateCompaniesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchUpdateCompaniesRequest").msgclass + BatchUpdateCompaniesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchUpdateCompaniesResponse").msgclass end end end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/company_service_services_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/company_service_services_pb.rb index be71ae02de74..b217e3f18f09 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/company_service_services_pb.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/company_service_services_pb.rb @@ -24,7 +24,8 @@ module Ads module AdManager module V1 module CompanyService - # Provides methods for handling `Company` objects. + # Provides methods for handling [Company][google.ads.admanager.v1.Company] + # objects. class Service include ::GRPC::GenericService @@ -33,10 +34,18 @@ class Service self.unmarshal_class_method = :decode self.service_name = 'google.ads.admanager.v1.CompanyService' - # Retrieves a `Company` object. + # Retrieves a [Company][google.ads.admanager.v1.Company] object. rpc :GetCompany, ::Google::Ads::AdManager::V1::GetCompanyRequest, ::Google::Ads::AdManager::V1::Company - # Lists `Company` objects. + # Lists [Company][google.ads.admanager.v1.Company] objects. rpc :ListCompanies, ::Google::Ads::AdManager::V1::ListCompaniesRequest, ::Google::Ads::AdManager::V1::ListCompaniesResponse + # Creates a [Company][google.ads.admanager.v1.Company] object. + rpc :CreateCompany, ::Google::Ads::AdManager::V1::CreateCompanyRequest, ::Google::Ads::AdManager::V1::Company + # Creates [Company][google.ads.admanager.v1.Company] objects. + rpc :BatchCreateCompanies, ::Google::Ads::AdManager::V1::BatchCreateCompaniesRequest, ::Google::Ads::AdManager::V1::BatchCreateCompaniesResponse + # Updates a [Company][google.ads.admanager.v1.Company] object. + rpc :UpdateCompany, ::Google::Ads::AdManager::V1::UpdateCompanyRequest, ::Google::Ads::AdManager::V1::Company + # Batch updates [Company][google.ads.admanager.v1.Company] objects. + rpc :BatchUpdateCompanies, ::Google::Ads::AdManager::V1::BatchUpdateCompaniesRequest, ::Google::Ads::AdManager::V1::BatchUpdateCompaniesResponse end Stub = Service.rpc_stub_class diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/conversion_event_enum_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/conversion_event_enum_pb.rb new file mode 100644 index 000000000000..c390fc36e13d --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/conversion_event_enum_pb.rb @@ -0,0 +1,22 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/admanager/v1/conversion_event_enum.proto + +require 'google/protobuf' + + +descriptor_data = "\n3google/ads/admanager/v1/conversion_event_enum.proto\x12\x17google.ads.admanager.v1\"\x8f\x04\n\x13\x43onversionEventEnum\"\xf7\x03\n\x0f\x43onversionEvent\x12 \n\x1c\x43ONVERSION_EVENT_UNSPECIFIED\x10\x00\x12\x15\n\x11\x41\x43\x43\x45PT_INVITATION\x10\x01\x12\x12\n\x0e\x43LICK_TRACKING\x10\x02\x12\t\n\x05\x43LOSE\x10\x03\x12\x0c\n\x08\x43OLLAPSE\x10\x04\x12\x0c\n\x08\x43OMPLETE\x10\x05\x12\x11\n\rCREATIVE_VIEW\x10\x06\x12\x10\n\x0c\x43USTOM_CLICK\x10\x07\x12\x10\n\x0c\x45NGAGED_VIEW\x10\x08\x12\n\n\x06\x45XPAND\x10\t\x12\x12\n\x0e\x46IRST_QUARTILE\x10\n\x12\x0e\n\nFULLSCREEN\x10\x0b\x12\x33\n/FULLY_VIEWABLE_AUDIBLE_HALF_DURATION_IMPRESSION\x10\x0c\x12\x19\n\x15MEASURABLE_IMPRESSION\x10\r\x12\x0c\n\x08MIDPOINT\x10\x0e\x12\x08\n\x04MUTE\x10\x0f\x12\t\n\x05PAUSE\x10\x10\x12\n\n\x06RESUME\x10\x11\x12\n\n\x06REWIND\x10\x12\x12\x0b\n\x07SKIPPED\x10\x13\x12\x0e\n\nSKIP_SHOWN\x10\x14\x12\t\n\x05START\x10\x15\x12\n\n\x06SURVEY\x10\x16\x12\x12\n\x0eTHIRD_QUARTILE\x10\x17\x12\n\n\x06UNMUTE\x10\x18\x12\x11\n\rVIDEO_ABANDON\x10\x19\x12\x17\n\x13VIEWABLE_IMPRESSION\x10\x1a\x42\xcc\x01\n\x1b\x63om.google.ads.admanager.v1B\x18\x43onversionEventEnumProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Ads + module AdManager + module V1 + ConversionEventEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ConversionEventEnum").msgclass + ConversionEventEnum::ConversionEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ConversionEventEnum.ConversionEvent").enummodule + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/creative_wrapper_enums_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/creative_wrapper_enums_pb.rb new file mode 100644 index 000000000000..899d2441679e --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/creative_wrapper_enums_pb.rb @@ -0,0 +1,26 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/admanager/v1/creative_wrapper_enums.proto + +require 'google/protobuf' + + +descriptor_data = "\n4google/ads/admanager/v1/creative_wrapper_enums.proto\x12\x17google.ads.admanager.v1\"y\n\x17\x43reativeWrapperTypeEnum\"^\n\x13\x43reativeWrapperType\x12%\n!CREATIVE_WRAPPER_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04HTML\x10\x01\x12\x16\n\x12VIDEO_TRACKING_URL\x10\x02\"w\n\x19\x43reativeWrapperStatusEnum\"Z\n\x15\x43reativeWrapperStatus\x12\'\n#CREATIVE_WRAPPER_STATUS_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0c\n\x08INACTIVE\x10\x02\"\x8c\x01\n\x1b\x43reativeWrapperOrderingEnum\"m\n\x17\x43reativeWrapperOrdering\x12)\n%CREATIVE_WRAPPER_ORDERING_UNSPECIFIED\x10\x00\x12\t\n\x05INNER\x10\x01\x12\x11\n\rNO_PREFERENCE\x10\x02\x12\t\n\x05OUTER\x10\x03\x42\xcd\x01\n\x1b\x63om.google.ads.admanager.v1B\x19\x43reativeWrapperEnumsProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Ads + module AdManager + module V1 + CreativeWrapperTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.CreativeWrapperTypeEnum").msgclass + CreativeWrapperTypeEnum::CreativeWrapperType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.CreativeWrapperTypeEnum.CreativeWrapperType").enummodule + CreativeWrapperStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.CreativeWrapperStatusEnum").msgclass + CreativeWrapperStatusEnum::CreativeWrapperStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.CreativeWrapperStatusEnum.CreativeWrapperStatus").enummodule + CreativeWrapperOrderingEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.CreativeWrapperOrderingEnum").msgclass + CreativeWrapperOrderingEnum::CreativeWrapperOrdering = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.CreativeWrapperOrderingEnum.CreativeWrapperOrdering").enummodule + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/creative_wrapper_messages_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/creative_wrapper_messages_pb.rb new file mode 100644 index 000000000000..6e3625038fb6 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/creative_wrapper_messages_pb.rb @@ -0,0 +1,27 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/admanager/v1/creative_wrapper_messages.proto + +require 'google/protobuf' + +require 'google/ads/admanager/v1/creative_wrapper_enums_pb' +require 'google/ads/admanager/v1/third_party_data_declaration_pb' +require 'google/ads/admanager/v1/video_tracking_url_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n7google/ads/admanager/v1/creative_wrapper_messages.proto\x12\x17google.ads.admanager.v1\x1a\x34google/ads/admanager/v1/creative_wrapper_enums.proto\x1a:google/ads/admanager/v1/third_party_data_declaration.proto\x1a\x30google/ads/admanager/v1/video_tracking_url.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xa2\t\n\x0f\x43reativeWrapper\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x38\n\x05label\x18\x04 \x01(\tB)\xe0\x41\x05\xe0\x41\x02\xfa\x41 \n\x1e\x61\x64manager.googleapis.com/Label\x12m\n\x15\x63reative_wrapper_type\x18\x05 \x01(\x0e\x32\x44.google.ads.admanager.v1.CreativeWrapperTypeEnum.CreativeWrapperTypeB\x03\xe0\x41\x02H\x00\x88\x01\x01\x12G\n\x0fheader_creative\x18\x07 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!admanager.googleapis.com/CreativeH\x01\x88\x01\x01\x12G\n\x0f\x66ooter_creative\x18\t \x01(\tB)\xe0\x41\x03\xfa\x41#\n!admanager.googleapis.com/CreativeH\x02\x88\x01\x01\x12\x1d\n\x0bhtml_header\x18\x0b \x01(\tB\x03\xe0\x41\x01H\x03\x88\x01\x01\x12\x1d\n\x0bhtml_footer\x18\x0c \x01(\tB\x03\xe0\x41\x01H\x04\x88\x01\x01\x12\x1c\n\namp_header\x18\r \x01(\tB\x03\xe0\x41\x01H\x05\x88\x01\x01\x12\x1c\n\namp_footer\x18\x0e \x01(\tB\x03\xe0\x41\x01H\x06\x88\x01\x01\x12K\n\x13video_tracking_urls\x18\x0f \x03(\x0b\x32).google.ads.admanager.v1.VideoTrackingUrlB\x03\xe0\x41\x01\x12\x62\n\x1cthird_party_data_declaration\x18\x10 \x01(\x0b\x32\x32.google.ads.admanager.v1.ThirdPartyDataDeclarationB\x03\xe0\x41\x01H\x07\x88\x01\x01\x12h\n\x08ordering\x18\x14 \x01(\x0e\x32L.google.ads.admanager.v1.CreativeWrapperOrderingEnum.CreativeWrapperOrderingB\x03\xe0\x41\x01H\x08\x88\x01\x01\x12\x62\n\x06status\x18\x15 \x01(\x0e\x32H.google.ads.admanager.v1.CreativeWrapperStatusEnum.CreativeWrapperStatusB\x03\xe0\x41\x03H\t\x88\x01\x01:\x8e\x01\xea\x41\x8a\x01\n(admanager.googleapis.com/CreativeWrapper\x12;networks/{network_code}/creativeWrappers/{creative_wrapper}*\x10\x63reativeWrappers2\x0f\x63reativeWrapperB\x18\n\x16_creative_wrapper_typeB\x12\n\x10_header_creativeB\x12\n\x10_footer_creativeB\x0e\n\x0c_html_headerB\x0e\n\x0c_html_footerB\r\n\x0b_amp_headerB\r\n\x0b_amp_footerB\x1f\n\x1d_third_party_data_declarationB\x0b\n\t_orderingB\t\n\x07_statusB\xd0\x01\n\x1b\x63om.google.ads.admanager.v1B\x1c\x43reativeWrapperMessagesProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Ads + module AdManager + module V1 + CreativeWrapper = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.CreativeWrapper").msgclass + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/creative_wrapper_service_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/creative_wrapper_service_pb.rb new file mode 100644 index 000000000000..813177df465f --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/creative_wrapper_service_pb.rb @@ -0,0 +1,40 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/admanager/v1/creative_wrapper_service.proto + +require 'google/protobuf' + +require 'google/ads/admanager/v1/creative_wrapper_messages_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' + + +descriptor_data = "\n6google/ads/admanager/v1/creative_wrapper_service.proto\x12\x17google.ads.admanager.v1\x1a\x37google/ads/admanager/v1/creative_wrapper_messages.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"[\n\x19GetCreativeWrapperRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(admanager.googleapis.com/CreativeWrapper\"\xc7\x01\n\x1bListCreativeWrappersRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\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\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04skip\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\"\x90\x01\n\x1cListCreativeWrappersResponse\x12\x43\n\x11\x63reative_wrappers\x18\x01 \x03(\x0b\x32(.google.ads.admanager.v1.CreativeWrapper\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\"\xa1\x01\n\x1c\x43reateCreativeWrapperRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\x12G\n\x10\x63reative_wrapper\x18\x02 \x01(\x0b\x32(.google.ads.admanager.v1.CreativeWrapperB\x03\xe0\x41\x02\"\xac\x01\n\"BatchCreateCreativeWrappersRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\x12L\n\x08requests\x18\x02 \x03(\x0b\x32\x35.google.ads.admanager.v1.CreateCreativeWrapperRequestB\x03\xe0\x41\x02\"j\n#BatchCreateCreativeWrappersResponse\x12\x43\n\x11\x63reative_wrappers\x18\x01 \x03(\x0b\x32(.google.ads.admanager.v1.CreativeWrapper\"\x9d\x01\n\x1cUpdateCreativeWrapperRequest\x12G\n\x10\x63reative_wrapper\x18\x01 \x01(\x0b\x32(.google.ads.admanager.v1.CreativeWrapperB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xac\x01\n\"BatchUpdateCreativeWrappersRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\x12L\n\x08requests\x18\x02 \x03(\x0b\x32\x35.google.ads.admanager.v1.UpdateCreativeWrapperRequestB\x03\xe0\x41\x02\"j\n#BatchUpdateCreativeWrappersResponse\x12\x43\n\x11\x63reative_wrappers\x18\x01 \x03(\x0b\x32(.google.ads.admanager.v1.CreativeWrapper\"\xa1\x01\n$BatchActivateCreativeWrappersRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\x12?\n\x05names\x18\x02 \x03(\tB0\xe0\x41\x02\xfa\x41*\n(admanager.googleapis.com/CreativeWrapper\"\'\n%BatchActivateCreativeWrappersResponse\"\xa3\x01\n&BatchDeactivateCreativeWrappersRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\x12?\n\x05names\x18\x02 \x03(\tB0\xe0\x41\x02\xfa\x41*\n(admanager.googleapis.com/CreativeWrapper\")\n\'BatchDeactivateCreativeWrappersResponse2\x95\x0f\n\x16\x43reativeWrapperService\x12\xab\x01\n\x12GetCreativeWrapper\x12\x32.google.ads.admanager.v1.GetCreativeWrapperRequest\x1a(.google.ads.admanager.v1.CreativeWrapper\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02*\x12(/v1/{name=networks/*/creativeWrappers/*}\x12\xbe\x01\n\x14ListCreativeWrappers\x12\x34.google.ads.admanager.v1.ListCreativeWrappersRequest\x1a\x35.google.ads.admanager.v1.ListCreativeWrappersResponse\"9\xda\x41\x06parent\x82\xd3\xe4\x93\x02*\x12(/v1/{parent=networks/*}/creativeWrappers\x12\xd6\x01\n\x15\x43reateCreativeWrapper\x12\x35.google.ads.admanager.v1.CreateCreativeWrapperRequest\x1a(.google.ads.admanager.v1.CreativeWrapper\"\\\xda\x41\x17parent,creative_wrapper\x82\xd3\xe4\x93\x02<\"(/v1/{parent=networks/*}/creativeWrappers:\x10\x63reative_wrapper\x12\xeb\x01\n\x1b\x42\x61tchCreateCreativeWrappers\x12;.google.ads.admanager.v1.BatchCreateCreativeWrappersRequest\x1a<.google.ads.admanager.v1.BatchCreateCreativeWrappersResponse\"Q\xda\x41\x0fparent,requests\x82\xd3\xe4\x93\x02\x39\"4/v1/{parent=networks/*}/creativeWrappers:batchCreate:\x01*\x12\xec\x01\n\x15UpdateCreativeWrapper\x12\x35.google.ads.admanager.v1.UpdateCreativeWrapperRequest\x1a(.google.ads.admanager.v1.CreativeWrapper\"r\xda\x41\x1c\x63reative_wrapper,update_mask\x82\xd3\xe4\x93\x02M29/v1/{creative_wrapper.name=networks/*/creativeWrappers/*}:\x10\x63reative_wrapper\x12\xeb\x01\n\x1b\x42\x61tchUpdateCreativeWrappers\x12;.google.ads.admanager.v1.BatchUpdateCreativeWrappersRequest\x1a<.google.ads.admanager.v1.BatchUpdateCreativeWrappersResponse\"Q\xda\x41\x0fparent,requests\x82\xd3\xe4\x93\x02\x39\"4/v1/{parent=networks/*}/creativeWrappers:batchUpdate:\x01*\x12\xf0\x01\n\x1d\x42\x61tchActivateCreativeWrappers\x12=.google.ads.admanager.v1.BatchActivateCreativeWrappersRequest\x1a>.google.ads.admanager.v1.BatchActivateCreativeWrappersResponse\"P\xda\x41\x0cparent,names\x82\xd3\xe4\x93\x02;\"6/v1/{parent=networks/*}/creativeWrappers:batchActivate:\x01*\x12\xf8\x01\n\x1f\x42\x61tchDeactivateCreativeWrappers\x12?.google.ads.admanager.v1.BatchDeactivateCreativeWrappersRequest\x1a@.google.ads.admanager.v1.BatchDeactivateCreativeWrappersResponse\"R\xda\x41\x0cparent,names\x82\xd3\xe4\x93\x02=\"8/v1/{parent=networks/*}/creativeWrappers:batchDeactivate:\x01*\x1az\xca\x41\x18\x61\x64manager.googleapis.com\xd2\x41\\https://www.googleapis.com/auth/admanager,https://www.googleapis.com/auth/admanager.readonlyB\xcf\x01\n\x1b\x63om.google.ads.admanager.v1B\x1b\x43reativeWrapperServiceProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Ads + module AdManager + module V1 + GetCreativeWrapperRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.GetCreativeWrapperRequest").msgclass + ListCreativeWrappersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ListCreativeWrappersRequest").msgclass + ListCreativeWrappersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ListCreativeWrappersResponse").msgclass + CreateCreativeWrapperRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.CreateCreativeWrapperRequest").msgclass + BatchCreateCreativeWrappersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchCreateCreativeWrappersRequest").msgclass + BatchCreateCreativeWrappersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchCreateCreativeWrappersResponse").msgclass + UpdateCreativeWrapperRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.UpdateCreativeWrapperRequest").msgclass + BatchUpdateCreativeWrappersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchUpdateCreativeWrappersRequest").msgclass + BatchUpdateCreativeWrappersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchUpdateCreativeWrappersResponse").msgclass + BatchActivateCreativeWrappersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchActivateCreativeWrappersRequest").msgclass + BatchActivateCreativeWrappersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchActivateCreativeWrappersResponse").msgclass + BatchDeactivateCreativeWrappersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchDeactivateCreativeWrappersRequest").msgclass + BatchDeactivateCreativeWrappersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchDeactivateCreativeWrappersResponse").msgclass + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/creative_wrapper_service_services_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/creative_wrapper_service_services_pb.rb new file mode 100644 index 000000000000..1d7dbb3c84e4 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/creative_wrapper_service_services_pb.rb @@ -0,0 +1,59 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/ads/admanager/v1/creative_wrapper_service.proto for package 'Google.Ads.AdManager.V1' +# Original file comments: +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/ads/admanager/v1/creative_wrapper_service_pb' + +module Google + module Ads + module AdManager + module V1 + module CreativeWrapperService + # Provides methods for handling `CreativeWrapper` objects. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.ads.admanager.v1.CreativeWrapperService' + + # Retrieves a `CreativeWrapper` object. + rpc :GetCreativeWrapper, ::Google::Ads::AdManager::V1::GetCreativeWrapperRequest, ::Google::Ads::AdManager::V1::CreativeWrapper + # Lists `CreativeWrapper` objects. + rpc :ListCreativeWrappers, ::Google::Ads::AdManager::V1::ListCreativeWrappersRequest, ::Google::Ads::AdManager::V1::ListCreativeWrappersResponse + # Creates a `CreativeWrapper` object. + rpc :CreateCreativeWrapper, ::Google::Ads::AdManager::V1::CreateCreativeWrapperRequest, ::Google::Ads::AdManager::V1::CreativeWrapper + # Creates `CreativeWrapper` objects. + rpc :BatchCreateCreativeWrappers, ::Google::Ads::AdManager::V1::BatchCreateCreativeWrappersRequest, ::Google::Ads::AdManager::V1::BatchCreateCreativeWrappersResponse + # Updates a `CreativeWrapper` object. + rpc :UpdateCreativeWrapper, ::Google::Ads::AdManager::V1::UpdateCreativeWrapperRequest, ::Google::Ads::AdManager::V1::CreativeWrapper + # Batch updates `CreativeWrapper` objects. + rpc :BatchUpdateCreativeWrappers, ::Google::Ads::AdManager::V1::BatchUpdateCreativeWrappersRequest, ::Google::Ads::AdManager::V1::BatchUpdateCreativeWrappersResponse + # Batch activates `CreativeWrapper` objects. + rpc :BatchActivateCreativeWrappers, ::Google::Ads::AdManager::V1::BatchActivateCreativeWrappersRequest, ::Google::Ads::AdManager::V1::BatchActivateCreativeWrappersResponse + # Deactivates a list of `CreativeWrapper` objects. + rpc :BatchDeactivateCreativeWrappers, ::Google::Ads::AdManager::V1::BatchDeactivateCreativeWrappersRequest, ::Google::Ads::AdManager::V1::BatchDeactivateCreativeWrappersResponse + end + + Stub = Service.rpc_stub_class + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/dai_authentication_key_enums_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/dai_authentication_key_enums_pb.rb new file mode 100644 index 000000000000..5c359d0acdcb --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/dai_authentication_key_enums_pb.rb @@ -0,0 +1,24 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/admanager/v1/dai_authentication_key_enums.proto + +require 'google/protobuf' + + +descriptor_data = "\n:google/ads/admanager/v1/dai_authentication_key_enums.proto\x12\x17google.ads.admanager.v1\"\x87\x01\n\x1e\x44\x61iAuthenticationKeyStatusEnum\"e\n\x1a\x44\x61iAuthenticationKeyStatus\x12-\n)DAI_AUTHENTICATION_KEY_STATUS_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0c\n\x08INACTIVE\x10\x02\"z\n\x1c\x44\x61iAuthenticationKeyTypeEnum\"Z\n\x18\x44\x61iAuthenticationKeyType\x12+\n\'DAI_AUTHENTICATION_KEY_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41PI\x10\x01\x12\x08\n\x04HMAC\x10\x02\x42\xd2\x01\n\x1b\x63om.google.ads.admanager.v1B\x1e\x44\x61iAuthenticationKeyEnumsProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Ads + module AdManager + module V1 + DaiAuthenticationKeyStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.DaiAuthenticationKeyStatusEnum").msgclass + DaiAuthenticationKeyStatusEnum::DaiAuthenticationKeyStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.DaiAuthenticationKeyStatusEnum.DaiAuthenticationKeyStatus").enummodule + DaiAuthenticationKeyTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.DaiAuthenticationKeyTypeEnum").msgclass + DaiAuthenticationKeyTypeEnum::DaiAuthenticationKeyType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.DaiAuthenticationKeyTypeEnum.DaiAuthenticationKeyType").enummodule + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/dai_authentication_key_messages_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/dai_authentication_key_messages_pb.rb new file mode 100644 index 000000000000..25bf5c2d7327 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/dai_authentication_key_messages_pb.rb @@ -0,0 +1,25 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/admanager/v1/dai_authentication_key_messages.proto + +require 'google/protobuf' + +require 'google/ads/admanager/v1/dai_authentication_key_enums_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n=google/ads/admanager/v1/dai_authentication_key_messages.proto\x12\x17google.ads.admanager.v1\x1a:google/ads/admanager/v1/dai_authentication_key_enums.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf7\x03\n\x14\x44\x61iAuthenticationKey\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12l\n\x06status\x18\x04 \x01(\x0e\x32R.google.ads.admanager.v1.DaiAuthenticationKeyStatusEnum.DaiAuthenticationKeyStatusB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1e\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x03\xe0\x41\x02H\x01\x88\x01\x01\x12j\n\x08key_type\x18\x06 \x01(\x0e\x32N.google.ads.admanager.v1.DaiAuthenticationKeyTypeEnum.DaiAuthenticationKeyTypeB\x03\xe0\x41\x01H\x02\x88\x01\x01:\xa8\x01\xea\x41\xa4\x01\n-admanager.googleapis.com/DaiAuthenticationKey\x12\x46networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}*\x15\x64\x61iAuthenticationKeys2\x14\x64\x61iAuthenticationKeyB\t\n\x07_statusB\x0f\n\r_display_nameB\x0b\n\t_key_typeB\xd5\x01\n\x1b\x63om.google.ads.admanager.v1B!DaiAuthenticationKeyMessagesProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Ads + module AdManager + module V1 + DaiAuthenticationKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.DaiAuthenticationKey").msgclass + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/dai_authentication_key_service_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/dai_authentication_key_service_pb.rb new file mode 100644 index 000000000000..b59636b8d915 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/dai_authentication_key_service_pb.rb @@ -0,0 +1,40 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/admanager/v1/dai_authentication_key_service.proto + +require 'google/protobuf' + +require 'google/ads/admanager/v1/dai_authentication_key_messages_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' + + +descriptor_data = "\n\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=networks/*}/daiAuthenticationKeys\x12\xf6\x01\n\x1a\x43reateDaiAuthenticationKey\x12:.google.ads.admanager.v1.CreateDaiAuthenticationKeyRequest\x1a-.google.ads.admanager.v1.DaiAuthenticationKey\"m\xda\x41\x1dparent,dai_authentication_key\x82\xd3\xe4\x93\x02G\"-/v1/{parent=networks/*}/daiAuthenticationKeys:\x16\x64\x61i_authentication_key\x12\xff\x01\n BatchCreateDaiAuthenticationKeys\x12@.google.ads.admanager.v1.BatchCreateDaiAuthenticationKeysRequest\x1a\x41.google.ads.admanager.v1.BatchCreateDaiAuthenticationKeysResponse\"V\xda\x41\x0fparent,requests\x82\xd3\xe4\x93\x02>\"9/v1/{parent=networks/*}/daiAuthenticationKeys:batchCreate:\x01*\x12\x93\x02\n\x1aUpdateDaiAuthenticationKey\x12:.google.ads.admanager.v1.UpdateDaiAuthenticationKeyRequest\x1a-.google.ads.admanager.v1.DaiAuthenticationKey\"\x89\x01\xda\x41\"dai_authentication_key,update_mask\x82\xd3\xe4\x93\x02^2D/v1/{dai_authentication_key.name=networks/*/daiAuthenticationKeys/*}:\x16\x64\x61i_authentication_key\x12\xff\x01\n BatchUpdateDaiAuthenticationKeys\x12@.google.ads.admanager.v1.BatchUpdateDaiAuthenticationKeysRequest\x1a\x41.google.ads.admanager.v1.BatchUpdateDaiAuthenticationKeysResponse\"V\xda\x41\x0fparent,requests\x82\xd3\xe4\x93\x02>\"9/v1/{parent=networks/*}/daiAuthenticationKeys:batchUpdate:\x01*\x12\x84\x02\n\"BatchActivateDaiAuthenticationKeys\x12\x42.google.ads.admanager.v1.BatchActivateDaiAuthenticationKeysRequest\x1a\x43.google.ads.admanager.v1.BatchActivateDaiAuthenticationKeysResponse\"U\xda\x41\x0cparent,names\x82\xd3\xe4\x93\x02@\";/v1/{parent=networks/*}/daiAuthenticationKeys:batchActivate:\x01*\x12\x8c\x02\n$BatchDeactivateDaiAuthenticationKeys\x12\x44.google.ads.admanager.v1.BatchDeactivateDaiAuthenticationKeysRequest\x1a\x45.google.ads.admanager.v1.BatchDeactivateDaiAuthenticationKeysResponse\"W\xda\x41\x0cparent,names\x82\xd3\xe4\x93\x02\x42\"=/v1/{parent=networks/*}/daiAuthenticationKeys:batchDeactivate:\x01*\x1az\xca\x41\x18\x61\x64manager.googleapis.com\xd2\x41\\https://www.googleapis.com/auth/admanager,https://www.googleapis.com/auth/admanager.readonlyB\xd4\x01\n\x1b\x63om.google.ads.admanager.v1B DaiAuthenticationKeyServiceProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Ads + module AdManager + module V1 + GetDaiAuthenticationKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.GetDaiAuthenticationKeyRequest").msgclass + ListDaiAuthenticationKeysRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ListDaiAuthenticationKeysRequest").msgclass + ListDaiAuthenticationKeysResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ListDaiAuthenticationKeysResponse").msgclass + CreateDaiAuthenticationKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.CreateDaiAuthenticationKeyRequest").msgclass + BatchCreateDaiAuthenticationKeysRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchCreateDaiAuthenticationKeysRequest").msgclass + BatchCreateDaiAuthenticationKeysResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchCreateDaiAuthenticationKeysResponse").msgclass + UpdateDaiAuthenticationKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.UpdateDaiAuthenticationKeyRequest").msgclass + BatchUpdateDaiAuthenticationKeysRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchUpdateDaiAuthenticationKeysRequest").msgclass + BatchUpdateDaiAuthenticationKeysResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchUpdateDaiAuthenticationKeysResponse").msgclass + BatchActivateDaiAuthenticationKeysRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchActivateDaiAuthenticationKeysRequest").msgclass + BatchActivateDaiAuthenticationKeysResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchActivateDaiAuthenticationKeysResponse").msgclass + BatchDeactivateDaiAuthenticationKeysRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchDeactivateDaiAuthenticationKeysRequest").msgclass + BatchDeactivateDaiAuthenticationKeysResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchDeactivateDaiAuthenticationKeysResponse").msgclass + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/dai_authentication_key_service_services_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/dai_authentication_key_service_services_pb.rb new file mode 100644 index 000000000000..b3654dd92dbd --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/dai_authentication_key_service_services_pb.rb @@ -0,0 +1,59 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/ads/admanager/v1/dai_authentication_key_service.proto for package 'Google.Ads.AdManager.V1' +# Original file comments: +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/ads/admanager/v1/dai_authentication_key_service_pb' + +module Google + module Ads + module AdManager + module V1 + module DaiAuthenticationKeyService + # Provides methods for handling `DaiAuthenticationKey` objects. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.ads.admanager.v1.DaiAuthenticationKeyService' + + # Retrieves a `DaiAuthenticationKey` object. + rpc :GetDaiAuthenticationKey, ::Google::Ads::AdManager::V1::GetDaiAuthenticationKeyRequest, ::Google::Ads::AdManager::V1::DaiAuthenticationKey + # Lists `DaiAuthenticationKey` objects. + rpc :ListDaiAuthenticationKeys, ::Google::Ads::AdManager::V1::ListDaiAuthenticationKeysRequest, ::Google::Ads::AdManager::V1::ListDaiAuthenticationKeysResponse + # Creates a `DaiAuthenticationKey` object. + rpc :CreateDaiAuthenticationKey, ::Google::Ads::AdManager::V1::CreateDaiAuthenticationKeyRequest, ::Google::Ads::AdManager::V1::DaiAuthenticationKey + # Batch creates `DaiAuthenticationKey` objects. + rpc :BatchCreateDaiAuthenticationKeys, ::Google::Ads::AdManager::V1::BatchCreateDaiAuthenticationKeysRequest, ::Google::Ads::AdManager::V1::BatchCreateDaiAuthenticationKeysResponse + # Updates a `DaiAuthenticationKey` object. + rpc :UpdateDaiAuthenticationKey, ::Google::Ads::AdManager::V1::UpdateDaiAuthenticationKeyRequest, ::Google::Ads::AdManager::V1::DaiAuthenticationKey + # Batch updates `DaiAuthenticationKey` objects. + rpc :BatchUpdateDaiAuthenticationKeys, ::Google::Ads::AdManager::V1::BatchUpdateDaiAuthenticationKeysRequest, ::Google::Ads::AdManager::V1::BatchUpdateDaiAuthenticationKeysResponse + # Activates a list of `DaiAuthenticationKey` objects. + rpc :BatchActivateDaiAuthenticationKeys, ::Google::Ads::AdManager::V1::BatchActivateDaiAuthenticationKeysRequest, ::Google::Ads::AdManager::V1::BatchActivateDaiAuthenticationKeysResponse + # Deactivates a list of `DaiAuthenticationKey` objects. + rpc :BatchDeactivateDaiAuthenticationKeys, ::Google::Ads::AdManager::V1::BatchDeactivateDaiAuthenticationKeysRequest, ::Google::Ads::AdManager::V1::BatchDeactivateDaiAuthenticationKeysResponse + end + + Stub = Service.rpc_stub_class + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/dai_encoding_profile_enums_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/dai_encoding_profile_enums_pb.rb new file mode 100644 index 000000000000..03c1bb7ec776 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/dai_encoding_profile_enums_pb.rb @@ -0,0 +1,26 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/admanager/v1/dai_encoding_profile_enums.proto + +require 'google/protobuf' + + +descriptor_data = "\n8google/ads/admanager/v1/dai_encoding_profile_enums.proto\x12\x17google.ads.admanager.v1\"e\n\x11\x43ontainerTypeEnum\"P\n\rContainerType\x12\x1e\n\x1a\x43ONTAINER_TYPE_UNSPECIFIED\x10\x00\x12\x06\n\x02TS\x10\x01\x12\x08\n\x04\x46MP4\x10\x02\x12\r\n\tHLS_AUDIO\x10\x03\"\x81\x01\n\x1c\x44\x61iEncodingProfileStatusEnum\"a\n\x18\x44\x61iEncodingProfileStatus\x12+\n\'DAI_ENCODING_PROFILE_STATUS_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0c\n\x08\x41RCHIVED\x10\x02\"\x9d\x01\n!DaiEncodingProfileVariantTypeEnum\"x\n\x1d\x44\x61iEncodingProfileVariantType\x12\x31\n-DAI_ENCODING_PROFILE_VARIANT_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05MEDIA\x10\x01\x12\n\n\x06IFRAME\x10\x02\x12\r\n\tSUBTITLES\x10\x03\x42\xd0\x01\n\x1b\x63om.google.ads.admanager.v1B\x1c\x44\x61iEncodingProfileEnumsProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Ads + module AdManager + module V1 + ContainerTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ContainerTypeEnum").msgclass + ContainerTypeEnum::ContainerType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ContainerTypeEnum.ContainerType").enummodule + DaiEncodingProfileStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.DaiEncodingProfileStatusEnum").msgclass + DaiEncodingProfileStatusEnum::DaiEncodingProfileStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.DaiEncodingProfileStatusEnum.DaiEncodingProfileStatus").enummodule + DaiEncodingProfileVariantTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.DaiEncodingProfileVariantTypeEnum").msgclass + DaiEncodingProfileVariantTypeEnum::DaiEncodingProfileVariantType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.DaiEncodingProfileVariantTypeEnum.DaiEncodingProfileVariantType").enummodule + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/dai_encoding_profile_messages_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/dai_encoding_profile_messages_pb.rb new file mode 100644 index 000000000000..b514acafbec5 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/dai_encoding_profile_messages_pb.rb @@ -0,0 +1,28 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/admanager/v1/dai_encoding_profile_messages.proto + +require 'google/protobuf' + +require 'google/ads/admanager/v1/dai_encoding_profile_enums_pb' +require 'google/ads/admanager/v1/size_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n;google/ads/admanager/v1/dai_encoding_profile_messages.proto\x12\x17google.ads.admanager.v1\x1a\x38google/ads/admanager/v1/dai_encoding_profile_enums.proto\x1a\"google/ads/admanager/v1/size.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf2\x05\n\x12\x44\x61iEncodingProfile\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1e\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02H\x00\x88\x01\x01\x12h\n\x06status\x18\x04 \x01(\x0e\x32N.google.ads.admanager.v1.DaiEncodingProfileStatusEnum.DaiEncodingProfileStatusB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12x\n\x0cvariant_type\x18\x05 \x01(\x0e\x32X.google.ads.admanager.v1.DaiEncodingProfileVariantTypeEnum.DaiEncodingProfileVariantTypeB\x03\xe0\x41\x02H\x02\x88\x01\x01\x12Z\n\x0e\x63ontainer_type\x18\x06 \x01(\x0e\x32\x38.google.ads.admanager.v1.ContainerTypeEnum.ContainerTypeB\x03\xe0\x41\x02H\x03\x88\x01\x01\x12\x43\n\x0evideo_settings\x18\x07 \x01(\x0b\x32&.google.ads.admanager.v1.VideoSettingsB\x03\xe0\x41\x01\x12\x43\n\x0e\x61udio_settings\x18\x08 \x01(\x0b\x32&.google.ads.admanager.v1.AudioSettingsB\x03\xe0\x41\x01:\x9e\x01\xea\x41\x9a\x01\n+admanager.googleapis.com/DaiEncodingProfile\x12\x42networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile}*\x13\x64\x61iEncodingProfiles2\x12\x64\x61iEncodingProfileB\x0f\n\r_display_nameB\t\n\x07_statusB\x0f\n\r_variant_typeB\x11\n\x0f_container_type\"\xbd\x01\n\rAudioSettings\x12\x17\n\x05\x63odec\x18\x01 \x01(\tB\x03\xe0\x41\x02H\x00\x88\x01\x01\x12\x19\n\x07\x62itrate\x18\x02 \x01(\x03\x42\x03\xe0\x41\x02H\x01\x88\x01\x01\x12\x1a\n\x08\x63hannels\x18\x03 \x01(\x03\x42\x03\xe0\x41\x02H\x02\x88\x01\x01\x12#\n\x11sample_rate_hertz\x18\x04 \x01(\x03\x42\x03\xe0\x41\x02H\x03\x88\x01\x01\x42\x08\n\x06_codecB\n\n\x08_bitrateB\x0b\n\t_channelsB\x14\n\x12_sample_rate_hertz\"\xe0\x01\n\rVideoSettings\x12\x17\n\x05\x63odec\x18\x01 \x01(\tB\x03\xe0\x41\x02H\x00\x88\x01\x01\x12\x19\n\x07\x62itrate\x18\x02 \x01(\x03\x42\x03\xe0\x41\x02H\x01\x88\x01\x01\x12#\n\x11\x66rames_per_second\x18\x03 \x01(\x01\x42\x03\xe0\x41\x02H\x02\x88\x01\x01\x12;\n\nresolution\x18\x04 \x01(\x0b\x32\x1d.google.ads.admanager.v1.SizeB\x03\xe0\x41\x02H\x03\x88\x01\x01\x42\x08\n\x06_codecB\n\n\x08_bitrateB\x14\n\x12_frames_per_secondB\r\n\x0b_resolutionB\xd3\x01\n\x1b\x63om.google.ads.admanager.v1B\x1f\x44\x61iEncodingProfileMessagesProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Ads + module AdManager + module V1 + DaiEncodingProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.DaiEncodingProfile").msgclass + AudioSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.AudioSettings").msgclass + VideoSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.VideoSettings").msgclass + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/dai_encoding_profile_service_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/dai_encoding_profile_service_pb.rb new file mode 100644 index 000000000000..78cd6c4b41f9 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/dai_encoding_profile_service_pb.rb @@ -0,0 +1,42 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/admanager/v1/dai_encoding_profile_service.proto + +require 'google/protobuf' + +require 'google/ads/admanager/v1/dai_encoding_profile_messages_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' + + +descriptor_data = "\n:google/ads/admanager/v1/dai_encoding_profile_service.proto\x12\x17google.ads.admanager.v1\x1a;google/ads/admanager/v1/dai_encoding_profile_messages.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"a\n\x1cGetDaiEncodingProfileRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+admanager.googleapis.com/DaiEncodingProfile\"\xca\x01\n\x1eListDaiEncodingProfilesRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\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\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04skip\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\"\x9a\x01\n\x1fListDaiEncodingProfilesResponse\x12J\n\x15\x64\x61i_encoding_profiles\x18\x01 \x03(\x0b\x32+.google.ads.admanager.v1.DaiEncodingProfile\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\"\xab\x01\n\x1f\x43reateDaiEncodingProfileRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\x12N\n\x14\x64\x61i_encoding_profile\x18\x02 \x01(\x0b\x32+.google.ads.admanager.v1.DaiEncodingProfileB\x03\xe0\x41\x02\"\xb2\x01\n%BatchCreateDaiEncodingProfilesRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\x12O\n\x08requests\x18\x02 \x03(\x0b\x32\x38.google.ads.admanager.v1.CreateDaiEncodingProfileRequestB\x03\xe0\x41\x02\"t\n&BatchCreateDaiEncodingProfilesResponse\x12J\n\x15\x64\x61i_encoding_profiles\x18\x01 \x03(\x0b\x32+.google.ads.admanager.v1.DaiEncodingProfile\"\xa7\x01\n\x1fUpdateDaiEncodingProfileRequest\x12N\n\x14\x64\x61i_encoding_profile\x18\x01 \x01(\x0b\x32+.google.ads.admanager.v1.DaiEncodingProfileB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xb2\x01\n%BatchUpdateDaiEncodingProfilesRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\x12O\n\x08requests\x18\x02 \x03(\x0b\x32\x38.google.ads.admanager.v1.UpdateDaiEncodingProfileRequestB\x03\xe0\x41\x02\"t\n&BatchUpdateDaiEncodingProfilesResponse\x12J\n\x15\x64\x61i_encoding_profiles\x18\x01 \x03(\x0b\x32+.google.ads.admanager.v1.DaiEncodingProfile\"\xb6\x01\n\'BatchActivateDaiEncodingProfilesRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\x12Q\n\x08requests\x18\x02 \x03(\x0b\x32:.google.ads.admanager.v1.ActivateDaiEncodingProfileRequestB\x03\xe0\x41\x02\"*\n(BatchActivateDaiEncodingProfilesResponse\"f\n!ActivateDaiEncodingProfileRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+admanager.googleapis.com/DaiEncodingProfile\"\xb4\x01\n&BatchArchiveDaiEncodingProfilesRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\x12P\n\x08requests\x18\x02 \x03(\x0b\x32\x39.google.ads.admanager.v1.ArchiveDaiEncodingProfileRequestB\x03\xe0\x41\x02\")\n\'BatchArchiveDaiEncodingProfilesResponse\"e\n ArchiveDaiEncodingProfileRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+admanager.googleapis.com/DaiEncodingProfile2\x87\x10\n\x19\x44\x61iEncodingProfileService\x12\xb7\x01\n\x15GetDaiEncodingProfile\x12\x35.google.ads.admanager.v1.GetDaiEncodingProfileRequest\x1a+.google.ads.admanager.v1.DaiEncodingProfile\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-\x12+/v1/{name=networks/*/daiEncodingProfiles/*}\x12\xca\x01\n\x17ListDaiEncodingProfiles\x12\x37.google.ads.admanager.v1.ListDaiEncodingProfilesRequest\x1a\x38.google.ads.admanager.v1.ListDaiEncodingProfilesResponse\"<\xda\x41\x06parent\x82\xd3\xe4\x93\x02-\x12+/v1/{parent=networks/*}/daiEncodingProfiles\x12\xea\x01\n\x18\x43reateDaiEncodingProfile\x12\x38.google.ads.admanager.v1.CreateDaiEncodingProfileRequest\x1a+.google.ads.admanager.v1.DaiEncodingProfile\"g\xda\x41\x1bparent,dai_encoding_profile\x82\xd3\xe4\x93\x02\x43\"+/v1/{parent=networks/*}/daiEncodingProfiles:\x14\x64\x61i_encoding_profile\x12\xf7\x01\n\x1e\x42\x61tchCreateDaiEncodingProfiles\x12>.google.ads.admanager.v1.BatchCreateDaiEncodingProfilesRequest\x1a?.google.ads.admanager.v1.BatchCreateDaiEncodingProfilesResponse\"T\xda\x41\x0fparent,requests\x82\xd3\xe4\x93\x02<\"7/v1/{parent=networks/*}/daiEncodingProfiles:batchCreate:\x01*\x12\x85\x02\n\x18UpdateDaiEncodingProfile\x12\x38.google.ads.admanager.v1.UpdateDaiEncodingProfileRequest\x1a+.google.ads.admanager.v1.DaiEncodingProfile\"\x81\x01\xda\x41 dai_encoding_profile,update_mask\x82\xd3\xe4\x93\x02X2@/v1/{dai_encoding_profile.name=networks/*/daiEncodingProfiles/*}:\x14\x64\x61i_encoding_profile\x12\xf7\x01\n\x1e\x42\x61tchUpdateDaiEncodingProfiles\x12>.google.ads.admanager.v1.BatchUpdateDaiEncodingProfilesRequest\x1a?.google.ads.admanager.v1.BatchUpdateDaiEncodingProfilesResponse\"T\xda\x41\x0fparent,requests\x82\xd3\xe4\x93\x02<\"7/v1/{parent=networks/*}/daiEncodingProfiles:batchUpdate:\x01*\x12\xff\x01\n BatchActivateDaiEncodingProfiles\x12@.google.ads.admanager.v1.BatchActivateDaiEncodingProfilesRequest\x1a\x41.google.ads.admanager.v1.BatchActivateDaiEncodingProfilesResponse\"V\xda\x41\x0fparent,requests\x82\xd3\xe4\x93\x02>\"9/v1/{parent=networks/*}/daiEncodingProfiles:batchActivate:\x01*\x12\xfb\x01\n\x1f\x42\x61tchArchiveDaiEncodingProfiles\x12?.google.ads.admanager.v1.BatchArchiveDaiEncodingProfilesRequest\x1a@.google.ads.admanager.v1.BatchArchiveDaiEncodingProfilesResponse\"U\xda\x41\x0fparent,requests\x82\xd3\xe4\x93\x02=\"8/v1/{parent=networks/*}/daiEncodingProfiles:batchArchive:\x01*\x1az\xca\x41\x18\x61\x64manager.googleapis.com\xd2\x41\\https://www.googleapis.com/auth/admanager,https://www.googleapis.com/auth/admanager.readonlyB\xd2\x01\n\x1b\x63om.google.ads.admanager.v1B\x1e\x44\x61iEncodingProfileServiceProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Ads + module AdManager + module V1 + GetDaiEncodingProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.GetDaiEncodingProfileRequest").msgclass + ListDaiEncodingProfilesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ListDaiEncodingProfilesRequest").msgclass + ListDaiEncodingProfilesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ListDaiEncodingProfilesResponse").msgclass + CreateDaiEncodingProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.CreateDaiEncodingProfileRequest").msgclass + BatchCreateDaiEncodingProfilesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchCreateDaiEncodingProfilesRequest").msgclass + BatchCreateDaiEncodingProfilesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchCreateDaiEncodingProfilesResponse").msgclass + UpdateDaiEncodingProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.UpdateDaiEncodingProfileRequest").msgclass + BatchUpdateDaiEncodingProfilesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchUpdateDaiEncodingProfilesRequest").msgclass + BatchUpdateDaiEncodingProfilesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchUpdateDaiEncodingProfilesResponse").msgclass + BatchActivateDaiEncodingProfilesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchActivateDaiEncodingProfilesRequest").msgclass + BatchActivateDaiEncodingProfilesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchActivateDaiEncodingProfilesResponse").msgclass + ActivateDaiEncodingProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ActivateDaiEncodingProfileRequest").msgclass + BatchArchiveDaiEncodingProfilesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchArchiveDaiEncodingProfilesRequest").msgclass + BatchArchiveDaiEncodingProfilesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchArchiveDaiEncodingProfilesResponse").msgclass + ArchiveDaiEncodingProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ArchiveDaiEncodingProfileRequest").msgclass + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/dai_encoding_profile_service_services_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/dai_encoding_profile_service_services_pb.rb new file mode 100644 index 000000000000..419d4cad5949 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/dai_encoding_profile_service_services_pb.rb @@ -0,0 +1,59 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/ads/admanager/v1/dai_encoding_profile_service.proto for package 'Google.Ads.AdManager.V1' +# Original file comments: +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/ads/admanager/v1/dai_encoding_profile_service_pb' + +module Google + module Ads + module AdManager + module V1 + module DaiEncodingProfileService + # Provides methods for handling `DaiEncodingProfile` objects. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.ads.admanager.v1.DaiEncodingProfileService' + + # Retrieves a `DaiEncodingProfile` object. + rpc :GetDaiEncodingProfile, ::Google::Ads::AdManager::V1::GetDaiEncodingProfileRequest, ::Google::Ads::AdManager::V1::DaiEncodingProfile + # Lists `DaiEncodingProfile` objects. + rpc :ListDaiEncodingProfiles, ::Google::Ads::AdManager::V1::ListDaiEncodingProfilesRequest, ::Google::Ads::AdManager::V1::ListDaiEncodingProfilesResponse + # Creates a `DaiEncodingProfile` object. + rpc :CreateDaiEncodingProfile, ::Google::Ads::AdManager::V1::CreateDaiEncodingProfileRequest, ::Google::Ads::AdManager::V1::DaiEncodingProfile + # Batch creates `DaiEncodingProfile` objects. + rpc :BatchCreateDaiEncodingProfiles, ::Google::Ads::AdManager::V1::BatchCreateDaiEncodingProfilesRequest, ::Google::Ads::AdManager::V1::BatchCreateDaiEncodingProfilesResponse + # Updates a `DaiEncodingProfile` object. + rpc :UpdateDaiEncodingProfile, ::Google::Ads::AdManager::V1::UpdateDaiEncodingProfileRequest, ::Google::Ads::AdManager::V1::DaiEncodingProfile + # Batch updates `DaiEncodingProfile` objects. + rpc :BatchUpdateDaiEncodingProfiles, ::Google::Ads::AdManager::V1::BatchUpdateDaiEncodingProfilesRequest, ::Google::Ads::AdManager::V1::BatchUpdateDaiEncodingProfilesResponse + # Activates a list of `DaiEncodingProfile` objects. + rpc :BatchActivateDaiEncodingProfiles, ::Google::Ads::AdManager::V1::BatchActivateDaiEncodingProfilesRequest, ::Google::Ads::AdManager::V1::BatchActivateDaiEncodingProfilesResponse + # Archives a list of `DaiEncodingProfile` objects. + rpc :BatchArchiveDaiEncodingProfiles, ::Google::Ads::AdManager::V1::BatchArchiveDaiEncodingProfilesRequest, ::Google::Ads::AdManager::V1::BatchArchiveDaiEncodingProfilesResponse + end + + Stub = Service.rpc_stub_class + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/entity_signals_mapping_service_services_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/entity_signals_mapping_service_services_pb.rb index b84cd9fff527..5f0381d6c7e7 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/entity_signals_mapping_service_services_pb.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/entity_signals_mapping_service_services_pb.rb @@ -33,17 +33,17 @@ class Service self.unmarshal_class_method = :decode self.service_name = 'google.ads.admanager.v1.EntitySignalsMappingService' - # API to retrieve a `EntitySignalsMapping` object. + # Retrieves a `EntitySignalsMapping` object. rpc :GetEntitySignalsMapping, ::Google::Ads::AdManager::V1::GetEntitySignalsMappingRequest, ::Google::Ads::AdManager::V1::EntitySignalsMapping - # API to retrieve a list of `EntitySignalsMapping` objects. + # Lists `EntitySignalsMapping` objects. rpc :ListEntitySignalsMappings, ::Google::Ads::AdManager::V1::ListEntitySignalsMappingsRequest, ::Google::Ads::AdManager::V1::ListEntitySignalsMappingsResponse - # API to create an `EntitySignalsMapping` object. + # Creates an `EntitySignalsMapping` object. rpc :CreateEntitySignalsMapping, ::Google::Ads::AdManager::V1::CreateEntitySignalsMappingRequest, ::Google::Ads::AdManager::V1::EntitySignalsMapping - # API to update an `EntitySignalsMapping` object. + # Updates an `EntitySignalsMapping` object. rpc :UpdateEntitySignalsMapping, ::Google::Ads::AdManager::V1::UpdateEntitySignalsMappingRequest, ::Google::Ads::AdManager::V1::EntitySignalsMapping - # API to batch create `EntitySignalsMapping` objects. + # Creates `EntitySignalsMapping` objects. rpc :BatchCreateEntitySignalsMappings, ::Google::Ads::AdManager::V1::BatchCreateEntitySignalsMappingsRequest, ::Google::Ads::AdManager::V1::BatchCreateEntitySignalsMappingsResponse - # API to batch update `EntitySignalsMapping` objects. + # Batch updates `EntitySignalsMapping` objects. rpc :BatchUpdateEntitySignalsMappings, ::Google::Ads::AdManager::V1::BatchUpdateEntitySignalsMappingsRequest, ::Google::Ads::AdManager::V1::BatchUpdateEntitySignalsMappingsResponse end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/live_stream_messages_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/live_stream_messages_pb.rb index 5d3301e7bf09..d8453cce5bbf 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/live_stream_messages_pb.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/live_stream_messages_pb.rb @@ -11,7 +11,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n2google/ads/admanager/v1/live_stream_messages.proto\x12\x17google.ads.admanager.v1\x1a\x35google/ads/admanager/v1/live_stream_event_enums.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfc\x19\n\nLiveStream\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1e\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02H\x00\x88\x01\x01\x12\x62\n\x06status\x18\x03 \x01(\x0e\x32H.google.ads.admanager.v1.LiveStreamEventStatusEnum.LiveStreamEventStatusB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12\x31\n\x08\x65nd_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12$\n\x12\x65nd_time_unlimited\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01H\x02\x88\x01\x01\x12\x19\n\x0c\x63ontent_urls\x18\t \x03(\tB\x03\xe0\x41\x02\x12\x14\n\x07\x61\x64_tags\x18\n \x03(\tB\x03\xe0\x41\x02\x12\x1b\n\tasset_key\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12\x30\n\x1e\x65nable_dai_authentication_keys\x18\x0e \x01(\x08\x42\x03\xe0\x41\x01H\x04\x88\x01\x01\x12\x62\n\x12\x61\x64_break_fill_type\x18\x0f \x01(\x0e\x32<.google.ads.admanager.v1.AdBreakFillTypeEnum.AdBreakFillTypeB\x03\xe0\x41\x01H\x05\x88\x01\x01\x12l\n\x1cunderfill_ad_break_fill_type\x18\x10 \x01(\x0e\x32<.google.ads.admanager.v1.AdBreakFillTypeEnum.AdBreakFillTypeB\x03\xe0\x41\x01H\x06\x88\x01\x01\x12@\n\x13\x61\x64_holiday_duration\x18\x11 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01H\x07\x88\x01\x01\x12,\n\x1a\x65nable_max_filler_duration\x18\x12 \x01(\x08\x42\x03\xe0\x41\x01H\x08\x88\x01\x01\x12@\n\x13max_filler_duration\x18\x13 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01H\t\x88\x01\x01\x12I\n\x1cpod_serving_segment_duration\x18\x14 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01H\n\x88\x01\x01\x12/\n\x1d\x65nable_durationless_ad_breaks\x18\x15 \x01(\x08\x42\x03\xe0\x41\x01H\x0b\x88\x01\x01\x12\x46\n\x19\x64\x65\x66\x61ult_ad_break_duration\x18\x16 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01H\x0c\x88\x01\x01\x12Q\n\x1dsource_content_configurations\x18\x1a \x03(\tB*\xe0\x41\x01\xfa\x41$\n\"admanager.googleapis.com/CdnConfig\x12Q\n\x18\x61\x64_media_delivery_config\x18\x1b \x01(\tB*\xe0\x41\x01\xfa\x41$\n\"admanager.googleapis.com/CdnConfigH\r\x88\x01\x01\x12G\n\x10preroll_settings\x18\x1c \x01(\x0b\x32(.google.ads.admanager.v1.PrerollSettingsB\x03\xe0\x41\x01\x12?\n\x0chls_settings\x18\x1d \x01(\x0b\x32$.google.ads.admanager.v1.HlsSettingsB\x03\xe0\x41\x01\x12)\n\x17\x61llowlisted_ips_enabled\x18\x1e \x01(\x08\x42\x03\xe0\x41\x01H\x0e\x88\x01\x01\x12w\n\x19\x64ynamic_ad_insertion_type\x18\x1f \x01(\x0e\x32J.google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionTypeB\x03\xe0\x41\x05H\x0f\x88\x01\x01\x12\x34\n\"relative_playlist_delivery_enabled\x18! \x01(\x08\x42\x03\xe0\x41\x01H\x10\x88\x01\x01\x12~\n\x10streaming_format\x18\" \x01(\x0e\x32Z.google.ads.admanager.v1.LiveStreamEventStreamingFormatEnum.LiveStreamEventStreamingFormatB\x03\xe0\x41\x05H\x11\x88\x01\x01\x12\"\n\x10prefetch_enabled\x18# \x01(\x08\x42\x03\xe0\x41\x01H\x12\x88\x01\x01\x12I\n\x11prefetch_settings\x18$ \x01(\x0b\x32).google.ads.admanager.v1.PrefetchSettingsB\x03\xe0\x41\x01\x12\'\n\x15\x66orced_cue_in_enabled\x18% \x01(\x08\x42\x03\xe0\x41\x01H\x13\x88\x01\x01\x12\x30\n\x1eshort_segment_dropping_enabled\x18& \x01(\x08\x42\x03\xe0\x41\x01H\x14\x88\x01\x01\x12\"\n\x10\x63ustom_asset_key\x18\' \x01(\tB\x03\xe0\x41\x05H\x15\x88\x01\x01\x12_\n\x10\x61\x64_break_markups\x18* \x03(\x0e\x32@.google.ads.admanager.v1.AdBreakMarkupTypeEnum.AdBreakMarkupTypeB\x03\xe0\x41\x01\x12/\n\x1d\x61\x64_break_markup_types_enabled\x18+ \x01(\x08\x42\x03\xe0\x41\x01H\x16\x88\x01\x01\x12V\n\x18live_stream_conditioning\x18. \x01(\x0b\x32/.google.ads.admanager.v1.LiveStreamConditioningB\x03\xe0\x41\x01\x12I\n7early_break_notification_multi_break_scheduling_enabled\x18\x36 \x01(\x08\x42\x03\xe0\x41\x01H\x17\x88\x01\x01\x12=\n\x15\x61\x64_pod_trim_tolerance\x18\x37 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12%\n\x13\x65\x66\x66\x65\x63tive_asset_key\x18\x38 \x01(\tB\x03\xe0\x41\x03H\x18\x88\x01\x01\x12P\n\x15\x61uxiliary_ad_settings\x18\x39 \x01(\x0b\x32,.google.ads.admanager.v1.AuxiliaryAdSettingsB\x03\xe0\x41\x01:t\xea\x41q\n#admanager.googleapis.com/LiveStream\x12\x31networks/{network_code}/liveStreams/{live_stream}*\x0bliveStreams2\nliveStreamB\x0f\n\r_display_nameB\t\n\x07_statusB\x15\n\x13_end_time_unlimitedB\x0c\n\n_asset_keyB!\n\x1f_enable_dai_authentication_keysB\x15\n\x13_ad_break_fill_typeB\x1f\n\x1d_underfill_ad_break_fill_typeB\x16\n\x14_ad_holiday_durationB\x1d\n\x1b_enable_max_filler_durationB\x16\n\x14_max_filler_durationB\x1f\n\x1d_pod_serving_segment_durationB \n\x1e_enable_durationless_ad_breaksB\x1c\n\x1a_default_ad_break_durationB\x1b\n\x19_ad_media_delivery_configB\x1a\n\x18_allowlisted_ips_enabledB\x1c\n\x1a_dynamic_ad_insertion_typeB%\n#_relative_playlist_delivery_enabledB\x13\n\x11_streaming_formatB\x13\n\x11_prefetch_enabledB\x18\n\x16_forced_cue_in_enabledB!\n\x1f_short_segment_dropping_enabledB\x13\n\x11_custom_asset_keyB \n\x1e_ad_break_markup_types_enabledB:\n8_early_break_notification_multi_break_scheduling_enabledB\x16\n\x14_effective_asset_key\"\x80\x01\n\x10PrefetchSettings\x12J\n\x1dstage_one_ad_request_duration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42 \n\x1e_stage_one_ad_request_duration\"W\n\x16LiveStreamConditioning\x12=\n\x0b\x64\x61sh_bridge\x18\x01 \x01(\x0b\x32#.google.ads.admanager.v1.DashBridgeB\x03\xe0\x41\x01\"\xe6\x01\n\x0bHlsSettings\x12m\n\rplaylist_type\x18\x01 \x01(\x0e\x32L.google.ads.admanager.v1.HlsSettingsPlaylistTypeEnum.HlsSettingsPlaylistTypeB\x03\xe0\x41\x05H\x00\x88\x01\x01\x12V\n\x18master_playlist_settings\x18\x02 \x01(\x0b\x32/.google.ads.admanager.v1.MasterPlaylistSettingsB\x03\xe0\x41\x01\x42\x10\n\x0e_playlist_type\"3\n\nDashBridge\x12\x19\n\x07\x65nabled\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\n\n\x08_enabled\"\x90\x01\n\x0fPrerollSettings\x12\x18\n\x06\x61\x64_tag\x18\x01 \x01(\tB\x03\xe0\x41\x02H\x00\x88\x01\x01\x12@\n\x13max_ad_pod_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02H\x01\x88\x01\x01\x42\t\n\x07_ad_tagB\x16\n\x14_max_ad_pod_duration\"B\n\x13\x41uxiliaryAdSettings\x12\x1c\n\nad_tag_url\x18\x01 \x01(\tB\x03\xe0\x41\x02H\x00\x88\x01\x01\x42\r\n\x0b_ad_tag_url\"\xa1\x01\n\x16MasterPlaylistSettings\x12v\n\x0crefresh_type\x18\x01 \x01(\x0e\x32V.google.ads.admanager.v1.HlsMasterPlaylistRefreshTypeEnum.HlsMasterPlaylistRefreshTypeB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x0f\n\r_refresh_typeB\xcb\x01\n\x1b\x63om.google.ads.admanager.v1B\x17LiveStreamMessagesProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" +descriptor_data = "\n2google/ads/admanager/v1/live_stream_messages.proto\x12\x17google.ads.admanager.v1\x1a\x35google/ads/admanager/v1/live_stream_event_enums.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa8\x1d\n\nLiveStream\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1e\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02H\x00\x88\x01\x01\x12\x62\n\x06status\x18\x03 \x01(\x0e\x32H.google.ads.admanager.v1.LiveStreamEventStatusEnum.LiveStreamEventStatusB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12\x31\n\x08\x65nd_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12$\n\x12\x65nd_time_unlimited\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01H\x02\x88\x01\x01\x12\x19\n\x0c\x63ontent_urls\x18\t \x03(\tB\x03\xe0\x41\x02\x12\x14\n\x07\x61\x64_tags\x18\n \x03(\tB\x03\xe0\x41\x02\x12\x1b\n\tasset_key\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12:\n\x05slate\x18\x0c \x01(\tB&\xe0\x41\x01\xfa\x41 \n\x1e\x61\x64manager.googleapis.com/SlateH\x04\x88\x01\x01\x12@\n\x13\x64vr_window_duration\x18; \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01H\x05\x88\x01\x01\x12\x30\n\x1e\x65nable_dai_authentication_keys\x18\x0e \x01(\x08\x42\x03\xe0\x41\x01H\x06\x88\x01\x01\x12\x62\n\x12\x61\x64_break_fill_type\x18\x0f \x01(\x0e\x32<.google.ads.admanager.v1.AdBreakFillTypeEnum.AdBreakFillTypeB\x03\xe0\x41\x01H\x07\x88\x01\x01\x12l\n\x1cunderfill_ad_break_fill_type\x18\x10 \x01(\x0e\x32<.google.ads.admanager.v1.AdBreakFillTypeEnum.AdBreakFillTypeB\x03\xe0\x41\x01H\x08\x88\x01\x01\x12@\n\x13\x61\x64_holiday_duration\x18\x11 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01H\t\x88\x01\x01\x12,\n\x1a\x65nable_max_filler_duration\x18\x12 \x01(\x08\x42\x03\xe0\x41\x01H\n\x88\x01\x01\x12@\n\x13max_filler_duration\x18\x13 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01H\x0b\x88\x01\x01\x12I\n\x1cpod_serving_segment_duration\x18\x14 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01H\x0c\x88\x01\x01\x12/\n\x1d\x65nable_durationless_ad_breaks\x18\x15 \x01(\x08\x42\x03\xe0\x41\x01H\r\x88\x01\x01\x12\x46\n\x19\x64\x65\x66\x61ult_ad_break_duration\x18\x16 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01H\x0e\x88\x01\x01\x12V\n\x17\x64\x61i_authentication_keys\x18\x18 \x03(\tB5\xe0\x41\x01\xfa\x41/\n-admanager.googleapis.com/DaiAuthenticationKey\x12Q\n\x1dsource_content_configurations\x18\x1a \x03(\tB*\xe0\x41\x01\xfa\x41$\n\"admanager.googleapis.com/CdnConfig\x12Q\n\x18\x61\x64_media_delivery_config\x18\x1b \x01(\tB*\xe0\x41\x01\xfa\x41$\n\"admanager.googleapis.com/CdnConfigH\x0f\x88\x01\x01\x12G\n\x10preroll_settings\x18\x1c \x01(\x0b\x32(.google.ads.admanager.v1.PrerollSettingsB\x03\xe0\x41\x01\x12?\n\x0chls_settings\x18\x1d \x01(\x0b\x32$.google.ads.admanager.v1.HlsSettingsB\x03\xe0\x41\x01\x12)\n\x17\x61llowlisted_ips_enabled\x18\x1e \x01(\x08\x42\x03\xe0\x41\x01H\x10\x88\x01\x01\x12w\n\x19\x64ynamic_ad_insertion_type\x18\x1f \x01(\x0e\x32J.google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionTypeB\x03\xe0\x41\x05H\x11\x88\x01\x01\x12\x34\n\"relative_playlist_delivery_enabled\x18! \x01(\x08\x42\x03\xe0\x41\x01H\x12\x88\x01\x01\x12~\n\x10streaming_format\x18\" \x01(\x0e\x32Z.google.ads.admanager.v1.LiveStreamEventStreamingFormatEnum.LiveStreamEventStreamingFormatB\x03\xe0\x41\x05H\x13\x88\x01\x01\x12\"\n\x10prefetch_enabled\x18# \x01(\x08\x42\x03\xe0\x41\x01H\x14\x88\x01\x01\x12I\n\x11prefetch_settings\x18$ \x01(\x0b\x32).google.ads.admanager.v1.PrefetchSettingsB\x03\xe0\x41\x01\x12\'\n\x15\x66orced_cue_in_enabled\x18% \x01(\x08\x42\x03\xe0\x41\x01H\x15\x88\x01\x01\x12\x30\n\x1eshort_segment_dropping_enabled\x18& \x01(\x08\x42\x03\xe0\x41\x01H\x16\x88\x01\x01\x12\"\n\x10\x63ustom_asset_key\x18\' \x01(\tB\x03\xe0\x41\x05H\x17\x88\x01\x01\x12R\n\x15\x64\x61i_encoding_profiles\x18( \x03(\tB3\xe0\x41\x01\xfa\x41-\n+admanager.googleapis.com/DaiEncodingProfile\x12^\n\x1fsegment_url_authentication_keys\x18) \x03(\tB5\xe0\x41\x01\xfa\x41/\n-admanager.googleapis.com/DaiAuthenticationKey\x12_\n\x10\x61\x64_break_markups\x18* \x03(\x0e\x32@.google.ads.admanager.v1.AdBreakMarkupTypeEnum.AdBreakMarkupTypeB\x03\xe0\x41\x01\x12/\n\x1d\x61\x64_break_markup_types_enabled\x18+ \x01(\x08\x42\x03\xe0\x41\x01H\x18\x88\x01\x01\x12V\n\x18live_stream_conditioning\x18. \x01(\x0b\x32/.google.ads.admanager.v1.LiveStreamConditioningB\x03\xe0\x41\x01\x12I\n7early_break_notification_multi_break_scheduling_enabled\x18\x36 \x01(\x08\x42\x03\xe0\x41\x01H\x19\x88\x01\x01\x12=\n\x15\x61\x64_pod_trim_tolerance\x18\x37 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12%\n\x13\x65\x66\x66\x65\x63tive_asset_key\x18\x38 \x01(\tB\x03\xe0\x41\x03H\x1a\x88\x01\x01\x12P\n\x15\x61uxiliary_ad_settings\x18\x39 \x01(\x0b\x32,.google.ads.admanager.v1.AuxiliaryAdSettingsB\x03\xe0\x41\x01:t\xea\x41q\n#admanager.googleapis.com/LiveStream\x12\x31networks/{network_code}/liveStreams/{live_stream}*\x0bliveStreams2\nliveStreamB\x0f\n\r_display_nameB\t\n\x07_statusB\x15\n\x13_end_time_unlimitedB\x0c\n\n_asset_keyB\x08\n\x06_slateB\x16\n\x14_dvr_window_durationB!\n\x1f_enable_dai_authentication_keysB\x15\n\x13_ad_break_fill_typeB\x1f\n\x1d_underfill_ad_break_fill_typeB\x16\n\x14_ad_holiday_durationB\x1d\n\x1b_enable_max_filler_durationB\x16\n\x14_max_filler_durationB\x1f\n\x1d_pod_serving_segment_durationB \n\x1e_enable_durationless_ad_breaksB\x1c\n\x1a_default_ad_break_durationB\x1b\n\x19_ad_media_delivery_configB\x1a\n\x18_allowlisted_ips_enabledB\x1c\n\x1a_dynamic_ad_insertion_typeB%\n#_relative_playlist_delivery_enabledB\x13\n\x11_streaming_formatB\x13\n\x11_prefetch_enabledB\x18\n\x16_forced_cue_in_enabledB!\n\x1f_short_segment_dropping_enabledB\x13\n\x11_custom_asset_keyB \n\x1e_ad_break_markup_types_enabledB:\n8_early_break_notification_multi_break_scheduling_enabledB\x16\n\x14_effective_asset_key\"\x80\x01\n\x10PrefetchSettings\x12J\n\x1dstage_one_ad_request_duration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42 \n\x1e_stage_one_ad_request_duration\"W\n\x16LiveStreamConditioning\x12=\n\x0b\x64\x61sh_bridge\x18\x01 \x01(\x0b\x32#.google.ads.admanager.v1.DashBridgeB\x03\xe0\x41\x01\"\xe6\x01\n\x0bHlsSettings\x12m\n\rplaylist_type\x18\x01 \x01(\x0e\x32L.google.ads.admanager.v1.HlsSettingsPlaylistTypeEnum.HlsSettingsPlaylistTypeB\x03\xe0\x41\x05H\x00\x88\x01\x01\x12V\n\x18master_playlist_settings\x18\x02 \x01(\x0b\x32/.google.ads.admanager.v1.MasterPlaylistSettingsB\x03\xe0\x41\x01\x42\x10\n\x0e_playlist_type\"3\n\nDashBridge\x12\x19\n\x07\x65nabled\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\n\n\x08_enabled\"\x90\x01\n\x0fPrerollSettings\x12\x18\n\x06\x61\x64_tag\x18\x01 \x01(\tB\x03\xe0\x41\x02H\x00\x88\x01\x01\x12@\n\x13max_ad_pod_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02H\x01\x88\x01\x01\x42\t\n\x07_ad_tagB\x16\n\x14_max_ad_pod_duration\"B\n\x13\x41uxiliaryAdSettings\x12\x1c\n\nad_tag_url\x18\x01 \x01(\tB\x03\xe0\x41\x02H\x00\x88\x01\x01\x42\r\n\x0b_ad_tag_url\"\xa1\x01\n\x16MasterPlaylistSettings\x12v\n\x0crefresh_type\x18\x01 \x01(\x0e\x32V.google.ads.admanager.v1.HlsMasterPlaylistRefreshTypeEnum.HlsMasterPlaylistRefreshTypeB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x0f\n\r_refresh_typeB\xcb\x01\n\x1b\x63om.google.ads.admanager.v1B\x17LiveStreamMessagesProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/mcm_enums_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/mcm_enums_pb.rb index 1f0c7ece559f..200feff1e8dd 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/mcm_enums_pb.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/mcm_enums_pb.rb @@ -5,7 +5,7 @@ require 'google/protobuf' -descriptor_data = "\n\'google/ads/admanager/v1/mcm_enums.proto\x12\x17google.ads.admanager.v1\"q\n\x12\x44\x65legationTypeEnum\"[\n\x0e\x44\x65legationType\x12\x1f\n\x1b\x44\x45LEGATION_TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0eMANAGE_ACCOUNT\x10\x01\x12\x14\n\x10MANAGE_INVENTORY\x10\x02\"\xac\x03\n\x1aMcmEarningsProductTypeEnum\"\x8d\x03\n\x16McmEarningsProductType\x12)\n%MCM_EARNINGS_PRODUCT_TYPE_UNSPECIFIED\x10\x00\x12\x17\n\x13\x41\x44_EXCHANGE_CONTENT\x10\x01\x12\x1c\n\x18\x41\x44_EXCHANGE_CONTENT_HOST\x10\x02\x12\x15\n\x11\x41\x44_EXCHANGE_GAMES\x10\x03\x12\x1a\n\x16\x41\x44_EXCHANGE_GAMES_HOST\x10\x04\x12\"\n\x1e\x41\x44_EXCHANGE_MOBILE_CONTENT_APP\x10\x05\x12\'\n#AD_EXCHANGE_MOBILE_CONTENT_APP_HOST\x10\x06\x12\x15\n\x11\x41\x44_EXCHANGE_VIDEO\x10\x07\x12\x1a\n\x16\x41\x44_EXCHANGE_VIDEO_HOST\x10\x08\x12\x1c\n\x18\x41\x44_EXCHANGE_RESERVATIONS\x10\t\x12\x1f\n\x1b\x41\x44_EXCHANGE_PREFERRED_DEALS\x10\n\x12\r\n\tOFFERWALL\x10\x0b\x12\x10\n\x0c\x42UYER_DIRECT\x10\x0c\x42\xc1\x01\n\x1b\x63om.google.ads.admanager.v1B\rMcmEnumsProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" +descriptor_data = "\n\'google/ads/admanager/v1/mcm_enums.proto\x12\x17google.ads.admanager.v1\"q\n\x12\x44\x65legationTypeEnum\"[\n\x0e\x44\x65legationType\x12\x1f\n\x1b\x44\x45LEGATION_TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0eMANAGE_ACCOUNT\x10\x01\x12\x14\n\x10MANAGE_INVENTORY\x10\x02\"|\n\x16McmReadinessStatusEnum\"b\n\x12McmReadinessStatus\x12$\n MCM_READINESS_STATUS_UNSPECIFIED\x10\x00\x12\x0c\n\x08INACTIVE\x10\x01\x12\r\n\tNOT_READY\x10\x02\x12\t\n\x05READY\x10\x03\"\xd1\x01\n\x1e\x44\x65legationInvitationStatusEnum\"\xae\x01\n\x1a\x44\x65legationInvitationStatus\x12,\n(DELEGATION_INVITATION_STATUS_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x41\x43\x43\x45PTED\x10\x01\x12\x0b\n\x07\x45XPIRED\x10\x02\x12\x0b\n\x07PENDING\x10\x03\x12\x0c\n\x08REJECTED\x10\x04\x12\r\n\tWITHDRAWN\x10\x05\x12\x1d\n\x19\x44\x45\x41\x43TIVATED_BY_AD_MANAGER\x10\x06\"\xf6\x02\n\x1b\x44\x65legationAccountStatusEnum\"\xd6\x02\n\x17\x44\x65legationAccountStatus\x12)\n%DELEGATION_ACCOUNT_STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07INVITED\x10\x01\x12\x0c\n\x08\x44\x45\x43LINED\x10\x02\x12\x0c\n\x08\x41PPROVED\x10\x03\x12\x17\n\x13\x43LOSED_BY_PUBLISHER\x10\x04\x12\x1b\n\x17\x43LOSED_INVALID_ACTIVITY\x10\x05\x12\x1b\n\x17\x43LOSED_POLICY_VIOLATION\x10\x06\x12\x1d\n\x19\x44\x45\x41\x43TIVATED_BY_AD_MANAGER\x10\x07\x12!\n\x1d\x44ISAPPROVED_DUPLICATE_ACCOUNT\x10\x08\x12\x1a\n\x16\x44ISAPPROVED_INELIGIBLE\x10\t\x12\x1b\n\x17PENDING_GOOGLE_APPROVAL\x10\n\x12\x0b\n\x07\x45XPIRED\x10\x0b\x12\x0c\n\x08INACTIVE\x10\x0c\"\xc3\x02\n\x1c\x44\x65legationApprovalStatusEnum\"\xa2\x02\n\x18\x44\x65legationApprovalStatus\x12*\n&DELEGATION_APPROVAL_STATUS_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x41PPROVED\x10\x01\x12\x17\n\x13\x43LOSED_BY_PUBLISHER\x10\x02\x12\x1b\n\x17\x43LOSED_INVALID_ACTIVITY\x10\x03\x12\x1b\n\x17\x43LOSED_POLICY_VIOLATION\x10\x04\x12\x1d\n\x19\x44\x45\x41\x43TIVATED_BY_AD_MANAGER\x10\x05\x12!\n\x1d\x44ISAPPROVED_DUPLICATE_ACCOUNT\x10\x06\x12\x1a\n\x16\x44ISAPPROVED_INELIGIBLE\x10\x07\x12\x1b\n\x17PENDING_GOOGLE_APPROVAL\x10\x08\"\xeb\x01\n,ChildPublisherIdentityVerificationStatusEnum\"\xba\x01\n(ChildPublisherIdentityVerificationStatus\x12<\n8CHILD_PUBLISHER_IDENTITY_VERIFICATION_STATUS_UNSPECIFIED\x10\x00\x12\n\n\x06\x45XEMPT\x10\x01\x12\x0b\n\x07\x45XPIRED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\x0b\n\x07PENDING\x10\x04\x12\x10\n\x0cNOT_ELIGIBLE\x10\x05\x12\x0c\n\x08VERIFIED\x10\x06\"\xe8\x01\n+ChildPublisherAddressVerificationStatusEnum\"\xb8\x01\n\'ChildPublisherAddressVerificationStatus\x12;\n7CHILD_PUBLISHER_ADDRESS_VERIFICATION_STATUS_UNSPECIFIED\x10\x00\x12\n\n\x06\x45XEMPT\x10\x01\x12\x0b\n\x07\x45XPIRED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\x0b\n\x07PENDING\x10\x04\x12\x10\n\x0cNOT_ELIGIBLE\x10\x05\x12\x0c\n\x08VERIFIED\x10\x06\"\xcc\x01\n ChildPublisherOnboardingTaskEnum\"\xa7\x01\n\x1c\x43hildPublisherOnboardingTask\x12/\n+CHILD_PUBLISHER_ONBOARDING_TASK_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x42ILLING_PROFILE_CREATION\x10\x01\x12\x1a\n\x16PHONE_PIN_VERIFICATION\x10\x02\x12\x1c\n\x18\x41\x44_MANAGER_ACCOUNT_SETUP\x10\x04\"\xac\x03\n\x1aMcmEarningsProductTypeEnum\"\x8d\x03\n\x16McmEarningsProductType\x12)\n%MCM_EARNINGS_PRODUCT_TYPE_UNSPECIFIED\x10\x00\x12\x17\n\x13\x41\x44_EXCHANGE_CONTENT\x10\x01\x12\x1c\n\x18\x41\x44_EXCHANGE_CONTENT_HOST\x10\x02\x12\x15\n\x11\x41\x44_EXCHANGE_GAMES\x10\x03\x12\x1a\n\x16\x41\x44_EXCHANGE_GAMES_HOST\x10\x04\x12\"\n\x1e\x41\x44_EXCHANGE_MOBILE_CONTENT_APP\x10\x05\x12\'\n#AD_EXCHANGE_MOBILE_CONTENT_APP_HOST\x10\x06\x12\x15\n\x11\x41\x44_EXCHANGE_VIDEO\x10\x07\x12\x1a\n\x16\x41\x44_EXCHANGE_VIDEO_HOST\x10\x08\x12\x1c\n\x18\x41\x44_EXCHANGE_RESERVATIONS\x10\t\x12\x1f\n\x1b\x41\x44_EXCHANGE_PREFERRED_DEALS\x10\n\x12\r\n\tOFFERWALL\x10\x0b\x12\x10\n\x0c\x42UYER_DIRECT\x10\x0c\x42\xc1\x01\n\x1b\x63om.google.ads.admanager.v1B\rMcmEnumsProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) @@ -16,6 +16,20 @@ module AdManager module V1 DelegationTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.DelegationTypeEnum").msgclass DelegationTypeEnum::DelegationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.DelegationTypeEnum.DelegationType").enummodule + McmReadinessStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.McmReadinessStatusEnum").msgclass + McmReadinessStatusEnum::McmReadinessStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.McmReadinessStatusEnum.McmReadinessStatus").enummodule + DelegationInvitationStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.DelegationInvitationStatusEnum").msgclass + DelegationInvitationStatusEnum::DelegationInvitationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.DelegationInvitationStatusEnum.DelegationInvitationStatus").enummodule + DelegationAccountStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.DelegationAccountStatusEnum").msgclass + DelegationAccountStatusEnum::DelegationAccountStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.DelegationAccountStatusEnum.DelegationAccountStatus").enummodule + DelegationApprovalStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.DelegationApprovalStatusEnum").msgclass + DelegationApprovalStatusEnum::DelegationApprovalStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.DelegationApprovalStatusEnum.DelegationApprovalStatus").enummodule + ChildPublisherIdentityVerificationStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ChildPublisherIdentityVerificationStatusEnum").msgclass + ChildPublisherIdentityVerificationStatusEnum::ChildPublisherIdentityVerificationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ChildPublisherIdentityVerificationStatusEnum.ChildPublisherIdentityVerificationStatus").enummodule + ChildPublisherAddressVerificationStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ChildPublisherAddressVerificationStatusEnum").msgclass + ChildPublisherAddressVerificationStatusEnum::ChildPublisherAddressVerificationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ChildPublisherAddressVerificationStatusEnum.ChildPublisherAddressVerificationStatus").enummodule + ChildPublisherOnboardingTaskEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ChildPublisherOnboardingTaskEnum").msgclass + ChildPublisherOnboardingTaskEnum::ChildPublisherOnboardingTask = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ChildPublisherOnboardingTaskEnum.ChildPublisherOnboardingTask").enummodule McmEarningsProductTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.McmEarningsProductTypeEnum").msgclass McmEarningsProductTypeEnum::McmEarningsProductType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.McmEarningsProductTypeEnum.McmEarningsProductType").enummodule end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/partner_messages_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/partner_messages_pb.rb new file mode 100644 index 000000000000..8e9f668df314 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/partner_messages_pb.rb @@ -0,0 +1,27 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/admanager/v1/partner_messages.proto + +require 'google/protobuf' + +require 'google/ads/admanager/v1/applied_label_pb' +require 'google/ads/admanager/v1/company_enums_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\n.google/ads/admanager/v1/partner_messages.proto\x12\x17google.ads.admanager.v1\x1a+google/ads/admanager/v1/applied_label.proto\x1a+google/ads/admanager/v1/company_enums.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa2\x06\n\x07Partner\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1e\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02H\x00\x88\x01\x01\x12\x19\n\x07\x61\x64\x64ress\x18\x04 \x01(\tB\x03\xe0\x41\x01H\x01\x88\x01\x01\x12\x17\n\x05\x65mail\x18\x05 \x01(\tB\x03\xe0\x41\x01H\x02\x88\x01\x01\x12\x15\n\x03\x66\x61x\x18\x06 \x01(\tB\x03\xe0\x41\x01H\x03\x88\x01\x01\x12\x17\n\x05phone\x18\x07 \x01(\tB\x03\xe0\x41\x01H\x04\x88\x01\x01\x12\x1d\n\x0b\x65xternal_id\x18\x08 \x01(\tB\x03\xe0\x41\x01H\x05\x88\x01\x01\x12\x19\n\x07\x63omment\x18\t \x01(\tB\x03\xe0\x41\x01H\x06\x88\x01\x01\x12\x42\n\x0e\x61pplied_labels\x18\n \x03(\x0b\x32%.google.ads.admanager.v1.AppliedLabelB\x03\xe0\x41\x01\x12\x46\n\x0fprimary_contact\x18\x0b \x01(\tB(\xe0\x41\x01\xfa\x41\"\n admanager.googleapis.com/ContactH\x07\x88\x01\x01\x12<\n\rapplied_teams\x18\r \x03(\tB%\xe0\x41\x01\xfa\x41\x1f\n\x1d\x61\x64manager.googleapis.com/Team\x12\x34\n\x0bupdate_time\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x65\n\rcredit_status\x18\x10 \x01(\x0e\x32\x44.google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatusB\x03\xe0\x41\x01H\x08\x88\x01\x01:d\xea\x41\x61\n admanager.googleapis.com/Partner\x12*networks/{network_code}/partners/{partner}*\x08partners2\x07partnerB\x0f\n\r_display_nameB\n\n\x08_addressB\x08\n\x06_emailB\x06\n\x04_faxB\x08\n\x06_phoneB\x0e\n\x0c_external_idB\n\n\x08_commentB\x12\n\x10_primary_contactB\x10\n\x0e_credit_statusB\xc8\x01\n\x1b\x63om.google.ads.admanager.v1B\x14PartnerMessagesProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Ads + module AdManager + module V1 + Partner = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.Partner").msgclass + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/partner_service_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/partner_service_pb.rb new file mode 100644 index 000000000000..156a666486b2 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/partner_service_pb.rb @@ -0,0 +1,33 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/admanager/v1/partner_service.proto + +require 'google/protobuf' + +require 'google/ads/admanager/v1/partner_messages_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' + + +descriptor_data = "\n-google/ads/admanager/v1/partner_service.proto\x12\x17google.ads.admanager.v1\x1a.google/ads/admanager/v1/partner_messages.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"K\n\x11GetPartnerRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Partner\"\xbf\x01\n\x13ListPartnersRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\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\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04skip\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\"w\n\x14ListPartnersResponse\x12\x32\n\x08partners\x18\x01 \x03(\x0b\x32 .google.ads.admanager.v1.Partner\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\"\x84\x01\n\x14UpdatePartnerRequest\x12\x36\n\x07partner\x18\x01 \x01(\x0b\x32 .google.ads.admanager.v1.PartnerB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\x9c\x01\n\x1a\x42\x61tchUpdatePartnersRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\x12\x44\n\x08requests\x18\x02 \x03(\x0b\x32-.google.ads.admanager.v1.UpdatePartnerRequestB\x03\xe0\x41\x02\"Q\n\x1b\x42\x61tchUpdatePartnersResponse\x12\x32\n\x08partners\x18\x01 \x03(\x0b\x32 .google.ads.admanager.v1.Partner2\xbd\x06\n\x0ePartnerService\x12\x8b\x01\n\nGetPartner\x12*.google.ads.admanager.v1.GetPartnerRequest\x1a .google.ads.admanager.v1.Partner\"/\xda\x41\x04name\x82\xd3\xe4\x93\x02\"\x12 /v1/{name=networks/*/partners/*}\x12\x9e\x01\n\x0cListPartners\x12,.google.ads.admanager.v1.ListPartnersRequest\x1a-.google.ads.admanager.v1.ListPartnersResponse\"1\xda\x41\x06parent\x82\xd3\xe4\x93\x02\"\x12 /v1/{parent=networks/*}/partners\x12\xb1\x01\n\rUpdatePartner\x12-.google.ads.admanager.v1.UpdatePartnerRequest\x1a .google.ads.admanager.v1.Partner\"O\xda\x41\x13partner,update_mask\x82\xd3\xe4\x93\x02\x33\x32(/v1/{partner.name=networks/*/partners/*}:\x07partner\x12\xcb\x01\n\x13\x42\x61tchUpdatePartners\x12\x33.google.ads.admanager.v1.BatchUpdatePartnersRequest\x1a\x34.google.ads.admanager.v1.BatchUpdatePartnersResponse\"I\xda\x41\x0fparent,requests\x82\xd3\xe4\x93\x02\x31\",/v1/{parent=networks/*}/partners:batchUpdate:\x01*\x1az\xca\x41\x18\x61\x64manager.googleapis.com\xd2\x41\\https://www.googleapis.com/auth/admanager,https://www.googleapis.com/auth/admanager.readonlyB\xc7\x01\n\x1b\x63om.google.ads.admanager.v1B\x13PartnerServiceProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Ads + module AdManager + module V1 + GetPartnerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.GetPartnerRequest").msgclass + ListPartnersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ListPartnersRequest").msgclass + ListPartnersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ListPartnersResponse").msgclass + UpdatePartnerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.UpdatePartnerRequest").msgclass + BatchUpdatePartnersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchUpdatePartnersRequest").msgclass + BatchUpdatePartnersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchUpdatePartnersResponse").msgclass + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/partner_service_services_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/partner_service_services_pb.rb new file mode 100644 index 000000000000..159c290f589a --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/partner_service_services_pb.rb @@ -0,0 +1,52 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/ads/admanager/v1/partner_service.proto for package 'Google.Ads.AdManager.V1' +# Original file comments: +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/ads/admanager/v1/partner_service_pb' + +module Google + module Ads + module AdManager + module V1 + module PartnerService + # Provides methods for handling [Partner][google.ads.admanager.v1.Partner] + # objects. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.ads.admanager.v1.PartnerService' + + # Retrieves a [Partner][google.ads.admanager.v1.Partner] object. + rpc :GetPartner, ::Google::Ads::AdManager::V1::GetPartnerRequest, ::Google::Ads::AdManager::V1::Partner + # Lists [Partner][google.ads.admanager.v1.Partner] objects. + rpc :ListPartners, ::Google::Ads::AdManager::V1::ListPartnersRequest, ::Google::Ads::AdManager::V1::ListPartnersResponse + # Updates a [Partner][google.ads.admanager.v1.Partner] object. + rpc :UpdatePartner, ::Google::Ads::AdManager::V1::UpdatePartnerRequest, ::Google::Ads::AdManager::V1::Partner + # Batch updates [Partner][google.ads.admanager.v1.Partner] objects. + rpc :BatchUpdatePartners, ::Google::Ads::AdManager::V1::BatchUpdatePartnersRequest, ::Google::Ads::AdManager::V1::BatchUpdatePartnersResponse + end + + Stub = Service.rpc_stub_class + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/report_definition_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/report_definition_pb.rb index ad760912de66..942cf7d520a0 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/report_definition_pb.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/report_definition_pb.rb @@ -9,7 +9,7 @@ require 'google/type/date_pb' -descriptor_data = "\n/google/ads/admanager/v1/report_definition.proto\x12\x17google.ads.admanager.v1\x1a*google/ads/admanager/v1/report_value.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x16google/type/date.proto\"\x81\x84\x03\n\x10ReportDefinition\x12L\n\ndimensions\x18\x01 \x03(\x0e\x32\x33.google.ads.admanager.v1.ReportDefinition.DimensionB\x03\xe0\x41\x02\x12\x46\n\x07metrics\x18\x02 \x03(\x0e\x32\x30.google.ads.admanager.v1.ReportDefinition.MetricB\x03\xe0\x41\x02\x12\x46\n\x07\x66ilters\x18\x03 \x03(\x0b\x32\x30.google.ads.admanager.v1.ReportDefinition.FilterB\x03\xe0\x41\x01\x12W\n\x10time_zone_source\x18\x14 \x01(\x0e\x32\x38.google.ads.admanager.v1.ReportDefinition.TimeZoneSourceB\x03\xe0\x41\x01\x12\x16\n\ttime_zone\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rcurrency_code\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12L\n\ndate_range\x18\x06 \x01(\x0b\x32\x33.google.ads.admanager.v1.ReportDefinition.DateRangeB\x03\xe0\x41\x02\x12\\\n\x15\x63omparison_date_range\x18\t \x01(\x0b\x32\x33.google.ads.admanager.v1.ReportDefinition.DateRangeB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12+\n\x1e\x63ms_metadata_dimension_key_ids\x18\x13 \x03(\x03\x42\x03\xe0\x41\x01\x12%\n\x18\x63ustom_dimension_key_ids\x18\x07 \x03(\x03\x42\x03\xe0\x41\x01\x12\"\n\x15\x65kv_dimension_key_ids\x18\x15 \x03(\x03\x42\x03\xe0\x41\x01\x12\'\n\x1aline_item_custom_field_ids\x18\x0b \x03(\x03\x42\x03\xe0\x41\x01\x12#\n\x16order_custom_field_ids\x18\x0c \x03(\x03\x42\x03\xe0\x41\x01\x12&\n\x19\x63reative_custom_field_ids\x18\r \x03(\x03\x42\x03\xe0\x41\x01\x12N\n\x0breport_type\x18\x08 \x01(\x0e\x32\x34.google.ads.admanager.v1.ReportDefinition.ReportTypeB\x03\xe0\x41\x02\x12[\n\x12time_period_column\x18\n \x01(\x0e\x32:.google.ads.admanager.v1.ReportDefinition.TimePeriodColumnB\x03\xe0\x41\x01\x12\x42\n\x05\x66lags\x18\x0e \x03(\x0b\x32..google.ads.admanager.v1.ReportDefinition.FlagB\x03\xe0\x41\x01\x12\x42\n\x05sorts\x18\x0f \x03(\x0b\x32..google.ads.admanager.v1.ReportDefinition.SortB\x03\xe0\x41\x01\x12#\n\x16\x65xpanded_compatibility\x18\x16 \x01(\x08\x42\x03\xe0\x41\x01\x1a\x9e\x01\n\x05\x46ield\x12H\n\tdimension\x18\x01 \x01(\x0e\x32\x33.google.ads.admanager.v1.ReportDefinition.DimensionH\x00\x12\x42\n\x06metric\x18\x02 \x01(\x0e\x32\x30.google.ads.admanager.v1.ReportDefinition.MetricH\x00\x42\x07\n\x05\x66ield\x1a\xa3\t\n\tDateRange\x12S\n\x05\x66ixed\x18\x01 \x01(\x0b\x32\x42.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeH\x00\x12Y\n\x08relative\x18\x02 \x01(\x0e\x32\x45.google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRangeH\x00\x1a\x66\n\x0e\x46ixedDateRange\x12*\n\nstart_date\x18\x01 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x02\x12(\n\x08\x65nd_date\x18\x02 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x02\"\xea\x06\n\x11RelativeDateRange\x12#\n\x1fRELATIVE_DATE_RANGE_UNSPECIFIED\x10\x00\x12\t\n\x05TODAY\x10\x01\x12\r\n\tYESTERDAY\x10\x02\x12\r\n\tTHIS_WEEK\x10\x03\x12\x15\n\x11THIS_WEEK_TO_DATE\x10\x1d\x12\x1a\n\x16THIS_WEEK_TO_YESTERDAY\x10(\x12\x0e\n\nTHIS_MONTH\x10\x04\x12\x16\n\x12THIS_MONTH_TO_DATE\x10\x1a\x12\x1b\n\x17THIS_MONTH_TO_YESTERDAY\x10)\x12\x10\n\x0cTHIS_QUARTER\x10\x05\x12\x18\n\x14THIS_QUARTER_TO_DATE\x10\x1b\x12\x1d\n\x19THIS_QUARTER_TO_YESTERDAY\x10*\x12\r\n\tTHIS_YEAR\x10\x06\x12\x15\n\x11THIS_YEAR_TO_DATE\x10\x1c\x12\x1a\n\x16THIS_YEAR_TO_YESTERDAY\x10+\x12\r\n\tLAST_WEEK\x10\x07\x12\x1d\n\x19LAST_WEEK_STARTING_SUNDAY\x10\'\x12\x0e\n\nLAST_MONTH\x10\x08\x12\x10\n\x0cLAST_QUARTER\x10\t\x12\r\n\tLAST_YEAR\x10\n\x12\x0f\n\x0bLAST_7_DAYS\x10\x0b\x12\x10\n\x0cLAST_30_DAYS\x10\x0c\x12\x10\n\x0cLAST_60_DAYS\x10\r\x12\x10\n\x0cLAST_90_DAYS\x10\x0e\x12\x10\n\x0cLAST_93_DAYS\x10&\x12\x11\n\rLAST_180_DAYS\x10\x0f\x12\x11\n\rLAST_360_DAYS\x10\x10\x12\x11\n\rLAST_365_DAYS\x10\x11\x12\x11\n\rLAST_3_MONTHS\x10\x12\x12\x11\n\rLAST_6_MONTHS\x10\x13\x12\x12\n\x0eLAST_12_MONTHS\x10\x14\x12\x11\n\rALL_AVAILABLE\x10\x15\x12\x0c\n\x08TOMORROW\x10\x1e\x12\x10\n\x0cNEXT_90_DAYS\x10\x1f\x12\x0e\n\nNEXT_MONTH\x10 \x12\x11\n\rNEXT_3_MONTHS\x10!\x12\x12\n\x0eNEXT_12_MONTHS\x10\"\x12\r\n\tNEXT_WEEK\x10#\x12\x10\n\x0cNEXT_QUARTER\x10$\x12\x18\n\x14TO_END_OF_NEXT_MONTH\x10%\x12\x13\n\x0fPREVIOUS_PERIOD\x10\x16\x12\x1d\n\x19SAME_PERIOD_PREVIOUS_YEAR\x10\x18\x42\x11\n\x0f\x64\x61te_range_type\x1a\xcf\x08\n\x06\x46ilter\x12T\n\x0c\x66ield_filter\x18\x01 \x01(\x0b\x32<.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilterH\x00\x12\x46\n\nnot_filter\x18\x02 \x01(\x0b\x32\x30.google.ads.admanager.v1.ReportDefinition.FilterH\x00\x12Q\n\nand_filter\x18\x03 \x01(\x0b\x32;.google.ads.admanager.v1.ReportDefinition.Filter.FilterListH\x00\x12P\n\tor_filter\x18\x04 \x01(\x0b\x32;.google.ads.admanager.v1.ReportDefinition.Filter.FilterListH\x00\x1a\xe6\x03\n\x0b\x46ieldFilter\x12\x43\n\x05\x66ield\x18\x01 \x01(\x0b\x32/.google.ads.admanager.v1.ReportDefinition.FieldB\x03\xe0\x41\x02\x12R\n\toperation\x18\x02 \x01(\x0e\x32:.google.ads.admanager.v1.ReportDefinition.Filter.OperationB\x03\xe0\x41\x02\x12\x39\n\x06values\x18\x03 \x03(\x0b\x32$.google.ads.admanager.v1.ReportValueB\x03\xe0\x41\x02\x12H\n\x05slice\x18\x04 \x01(\x0b\x32/.google.ads.admanager.v1.ReportDefinition.SliceB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12#\n\x11time_period_index\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12^\n\x11metric_value_type\x18\x06 \x01(\x0e\x32\x39.google.ads.admanager.v1.ReportDefinition.MetricValueTypeB\x03\xe0\x41\x01H\x02\x88\x01\x01\x42\x08\n\x06_sliceB\x14\n\x12_time_period_indexB\x14\n\x12_metric_value_type\x1aT\n\nFilterList\x12\x46\n\x07\x66ilters\x18\x01 \x03(\x0b\x32\x30.google.ads.admanager.v1.ReportDefinition.FilterB\x03\xe0\x41\x02\"\xba\x01\n\tOperation\x12\x06\n\x02IN\x10\x00\x12\n\n\x06NOT_IN\x10\x01\x12\x0c\n\x08\x43ONTAINS\x10\x02\x12\x10\n\x0cNOT_CONTAINS\x10\x03\x12\r\n\tLESS_THAN\x10\x04\x12\x14\n\x10LESS_THAN_EQUALS\x10\x05\x12\x10\n\x0cGREATER_THAN\x10\x06\x12\x17\n\x13GREATER_THAN_EQUALS\x10\x07\x12\x0b\n\x07\x42\x45TWEEN\x10\x08\x12\x0b\n\x07MATCHES\x10\t\x12\x0f\n\x0bNOT_MATCHES\x10\nB\x06\n\x04type\x1a\xe9\x02\n\x04Sort\x12\x43\n\x05\x66ield\x18\x01 \x01(\x0b\x32/.google.ads.admanager.v1.ReportDefinition.FieldB\x03\xe0\x41\x02\x12\x17\n\ndescending\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12H\n\x05slice\x18\x03 \x01(\x0b\x32/.google.ads.admanager.v1.ReportDefinition.SliceB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12#\n\x11time_period_index\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12^\n\x11metric_value_type\x18\x05 \x01(\x0e\x32\x39.google.ads.admanager.v1.ReportDefinition.MetricValueTypeB\x03\xe0\x41\x01H\x02\x88\x01\x01\x42\x08\n\x06_sliceB\x14\n\x12_time_period_indexB\x14\n\x12_metric_value_type\x1a\x8e\x01\n\x05Slice\x12K\n\tdimension\x18\x01 \x01(\x0e\x32\x33.google.ads.admanager.v1.ReportDefinition.DimensionB\x03\xe0\x41\x02\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32$.google.ads.admanager.v1.ReportValueB\x03\xe0\x41\x02\x1a\x61\n\x04\x46lag\x12\x46\n\x07\x66ilters\x18\x01 \x03(\x0b\x32\x30.google.ads.admanager.v1.ReportDefinition.FilterB\x03\xe0\x41\x02\x12\x11\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xb6\x02\n\nReportType\x12\x1b\n\x17REPORT_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nHISTORICAL\x10\x01\x12\x17\n\x13\x46UTURE_SELL_THROUGH\x10\x04\x12\t\n\x05REACH\x10\x05\x12\x19\n\x15PRIVACY_AND_MESSAGING\x10\x06\x12\x18\n\x14REVENUE_VERIFICATION\x10\x07\x12\x13\n\x0fPARTNER_FINANCE\x10\x08\x12\x0c\n\x08\x41\x44_SPEED\x10\r\x12\x13\n\x0fREAL_TIME_VIDEO\x10\x0f\x12\x18\n\x14YOUTUBE_CONSOLIDATED\x10\x10\x12\x19\n\x15\x41\x44S_TRAFFIC_NAVIGATOR\x10\x15\x12\x1a\n\x16OFF_PROPERTY_CAMPAIGNS\x10\x16\x12\x19\n\x15ON_PLATFORM_MULTICALL\x10\x18\"\xfd\xbf\x01\n\tDimension\x12\x19\n\x15\x44IMENSION_UNSPECIFIED\x10\x00\x12#\n\x1e\x41\x43TIVE_VIEW_MEASUREMENT_SOURCE\x10\xbf\x04\x12(\n#ACTIVE_VIEW_MEASUREMENT_SOURCE_NAME\x10\xc0\x04\x12\x1d\n\x18\x41\x44VERTISER_CREDIT_STATUS\x10\xdb\x03\x12\"\n\x1d\x41\x44VERTISER_CREDIT_STATUS_NAME\x10\xdc\x03\x12\x1b\n\x16\x41\x44VERTISER_DOMAIN_NAME\x10\xf2\x01\x12\x1b\n\x16\x41\x44VERTISER_EXTERNAL_ID\x10\xe4\x01\x12\x12\n\rADVERTISER_ID\x10\x83\x01\x12\x16\n\x11\x41\x44VERTISER_LABELS\x10\xe6\x01\x12\x19\n\x14\x41\x44VERTISER_LABEL_IDS\x10\xe5\x01\x12\x14\n\x0f\x41\x44VERTISER_NAME\x10\x84\x01\x12\x1f\n\x1a\x41\x44VERTISER_PRIMARY_CONTACT\x10\xe3\x01\x12\x16\n\x11\x41\x44VERTISER_STATUS\x10\xd7\x03\x12\x1b\n\x16\x41\x44VERTISER_STATUS_NAME\x10\xd8\x03\x12\x14\n\x0f\x41\x44VERTISER_TYPE\x10\xd9\x03\x12\x19\n\x14\x41\x44VERTISER_TYPE_NAME\x10\xda\x03\x12\x18\n\x13\x41\x44VERTISER_VERTICAL\x10\xc4\x04\x12\x10\n\x0b\x41\x44X_PRODUCT\x10\xf3\x03\x12\x15\n\x10\x41\x44X_PRODUCT_NAME\x10\xf4\x03\x12\x18\n\x13\x41\x44_EXPERIENCES_TYPE\x10\x81\x05\x12\x1d\n\x18\x41\x44_EXPERIENCES_TYPE_NAME\x10\x82\x05\x12\x10\n\x0b\x41\x44_LOCATION\x10\x86\x03\x12\x15\n\x10\x41\x44_LOCATION_NAME\x10\x87\x03\x12\x15\n\x10\x41\x44_REQUEST_SIZES\x10\x9d\x04\x12\"\n\x1d\x41\x44_TECHNOLOGY_PROVIDER_DOMAIN\x10\xec\x04\x12\x1e\n\x19\x41\x44_TECHNOLOGY_PROVIDER_ID\x10\xed\x04\x12 \n\x1b\x41\x44_TECHNOLOGY_PROVIDER_NAME\x10\xee\x04\x12\x0c\n\x07\x41\x44_TYPE\x10\xf1\x03\x12\x11\n\x0c\x41\x44_TYPE_NAME\x10\xf2\x03\x12\x10\n\x0c\x41\x44_UNIT_CODE\x10@\x12\x18\n\x14\x41\x44_UNIT_CODE_LEVEL_1\x10\x41\x12\x19\n\x15\x41\x44_UNIT_CODE_LEVEL_10\x10J\x12\x19\n\x15\x41\x44_UNIT_CODE_LEVEL_11\x10K\x12\x19\n\x15\x41\x44_UNIT_CODE_LEVEL_12\x10L\x12\x19\n\x15\x41\x44_UNIT_CODE_LEVEL_13\x10M\x12\x19\n\x15\x41\x44_UNIT_CODE_LEVEL_14\x10N\x12\x19\n\x15\x41\x44_UNIT_CODE_LEVEL_15\x10O\x12\x19\n\x15\x41\x44_UNIT_CODE_LEVEL_16\x10P\x12\x18\n\x14\x41\x44_UNIT_CODE_LEVEL_2\x10\x42\x12\x18\n\x14\x41\x44_UNIT_CODE_LEVEL_3\x10\x43\x12\x18\n\x14\x41\x44_UNIT_CODE_LEVEL_4\x10\x44\x12\x18\n\x14\x41\x44_UNIT_CODE_LEVEL_5\x10\x45\x12\x18\n\x14\x41\x44_UNIT_CODE_LEVEL_6\x10\x46\x12\x18\n\x14\x41\x44_UNIT_CODE_LEVEL_7\x10G\x12\x18\n\x14\x41\x44_UNIT_CODE_LEVEL_8\x10H\x12\x18\n\x14\x41\x44_UNIT_CODE_LEVEL_9\x10I\x12\x0e\n\nAD_UNIT_ID\x10\x19\x12\x18\n\x14\x41\x44_UNIT_ID_ALL_LEVEL\x10\x1b\x12\x16\n\x12\x41\x44_UNIT_ID_LEVEL_1\x10\x1e\x12\x17\n\x13\x41\x44_UNIT_ID_LEVEL_10\x10\x30\x12\x17\n\x13\x41\x44_UNIT_ID_LEVEL_11\x10\x32\x12\x17\n\x13\x41\x44_UNIT_ID_LEVEL_12\x10\x34\x12\x17\n\x13\x41\x44_UNIT_ID_LEVEL_13\x10\x36\x12\x17\n\x13\x41\x44_UNIT_ID_LEVEL_14\x10\x38\x12\x17\n\x13\x41\x44_UNIT_ID_LEVEL_15\x10:\x12\x17\n\x13\x41\x44_UNIT_ID_LEVEL_16\x10<\x12\x16\n\x12\x41\x44_UNIT_ID_LEVEL_2\x10 \x12\x16\n\x12\x41\x44_UNIT_ID_LEVEL_3\x10\"\x12\x16\n\x12\x41\x44_UNIT_ID_LEVEL_4\x10$\x12\x16\n\x12\x41\x44_UNIT_ID_LEVEL_5\x10&\x12\x16\n\x12\x41\x44_UNIT_ID_LEVEL_6\x10(\x12\x16\n\x12\x41\x44_UNIT_ID_LEVEL_7\x10*\x12\x16\n\x12\x41\x44_UNIT_ID_LEVEL_8\x10,\x12\x16\n\x12\x41\x44_UNIT_ID_LEVEL_9\x10.\x12\x19\n\x14\x41\x44_UNIT_ID_TOP_LEVEL\x10\x8e\x01\x12\x10\n\x0c\x41\x44_UNIT_NAME\x10\x1a\x12\x1a\n\x16\x41\x44_UNIT_NAME_ALL_LEVEL\x10\x1d\x12\x18\n\x14\x41\x44_UNIT_NAME_LEVEL_1\x10\x1f\x12\x19\n\x15\x41\x44_UNIT_NAME_LEVEL_10\x10\x31\x12\x19\n\x15\x41\x44_UNIT_NAME_LEVEL_11\x10\x33\x12\x19\n\x15\x41\x44_UNIT_NAME_LEVEL_12\x10\x35\x12\x19\n\x15\x41\x44_UNIT_NAME_LEVEL_13\x10\x37\x12\x19\n\x15\x41\x44_UNIT_NAME_LEVEL_14\x10\x39\x12\x19\n\x15\x41\x44_UNIT_NAME_LEVEL_15\x10;\x12\x19\n\x15\x41\x44_UNIT_NAME_LEVEL_16\x10=\x12\x18\n\x14\x41\x44_UNIT_NAME_LEVEL_2\x10!\x12\x18\n\x14\x41\x44_UNIT_NAME_LEVEL_3\x10#\x12\x18\n\x14\x41\x44_UNIT_NAME_LEVEL_4\x10%\x12\x18\n\x14\x41\x44_UNIT_NAME_LEVEL_5\x10\'\x12\x18\n\x14\x41\x44_UNIT_NAME_LEVEL_6\x10)\x12\x18\n\x14\x41\x44_UNIT_NAME_LEVEL_7\x10+\x12\x18\n\x14\x41\x44_UNIT_NAME_LEVEL_8\x10-\x12\x18\n\x14\x41\x44_UNIT_NAME_LEVEL_9\x10/\x12\x1b\n\x16\x41\x44_UNIT_NAME_TOP_LEVEL\x10\x8f\x01\x12\x19\n\x15\x41\x44_UNIT_REWARD_AMOUNT\x10?\x12\x17\n\x13\x41\x44_UNIT_REWARD_TYPE\x10>\x12\x13\n\x0e\x41\x44_UNIT_STATUS\x10\xce\x01\x12\x18\n\x13\x41\x44_UNIT_STATUS_NAME\x10\xcf\x01\x12\x16\n\x11\x41GENCY_LEVEL_1_ID\x10\xb5\x04\x12\x18\n\x13\x41GENCY_LEVEL_1_NAME\x10\xb6\x04\x12\x16\n\x11\x41GENCY_LEVEL_2_ID\x10\xb7\x04\x12\x18\n\x13\x41GENCY_LEVEL_2_NAME\x10\xb8\x04\x12\x16\n\x11\x41GENCY_LEVEL_3_ID\x10\xb9\x04\x12\x18\n\x13\x41GENCY_LEVEL_3_NAME\x10\xba\x04\x12\x10\n\x0b\x41GE_BRACKET\x10\xfc\x03\x12\x15\n\x10\x41GE_BRACKET_NAME\x10\xc6\x04\x12\x1a\n\x15\x41NALYTICS_PROPERTY_ID\x10\xdd\x05\x12\x1c\n\x17\x41NALYTICS_PROPERTY_NAME\x10\xff\x05\x12-\n(APP_TRACKING_TRANSPARENCY_CONSENT_STATUS\x10\xba\x03\x12\x32\n-APP_TRACKING_TRANSPARENCY_CONSENT_STATUS_NAME\x10\xbb\x03\x12\x10\n\x0b\x41PP_VERSION\x10\x88\x03\x12\x19\n\x14\x41UCTION_PACKAGE_DEAL\x10\xc3\x04\x12\x1c\n\x17\x41UCTION_PACKAGE_DEAL_ID\x10\xbb\x04\x12\x1e\n\x19\x41UDIENCE_SEGMENT_BILLABLE\x10\xd2\x04\x12&\n!AUDIENCE_SEGMENT_DATA_PROVIDER_ID\x10\xe5\x04\x12(\n#AUDIENCE_SEGMENT_DATA_PROVIDER_NAME\x10\xe6\x04\x12!\n\x1c\x41UDIENCE_SEGMENT_ID_BILLABLE\x10\xd3\x04\x12!\n\x1c\x41UDIENCE_SEGMENT_ID_TARGETED\x10\xc8\x04\x12\x1e\n\x19\x41UDIENCE_SEGMENT_TARGETED\x10\xc9\x04\x12.\n)AUDIENCE_SEGMENT_TARGETED_AD_ID_USER_SIZE\x10\xdd\x04\x12\x34\n/AUDIENCE_SEGMENT_TARGETED_AMAZON_FIRE_USER_SIZE\x10\xde\x04\x12\x33\n.AUDIENCE_SEGMENT_TARGETED_ANDROID_TV_USER_SIZE\x10\xdf\x04\x12\x31\n,AUDIENCE_SEGMENT_TARGETED_APPLE_TV_USER_SIZE\x10\xe0\x04\x12-\n(AUDIENCE_SEGMENT_TARGETED_IDFA_USER_SIZE\x10\xe1\x04\x12\x33\n.AUDIENCE_SEGMENT_TARGETED_MOBILE_WEB_USER_SIZE\x10\xe2\x04\x12\x34\n/AUDIENCE_SEGMENT_TARGETED_PLAYSTATION_USER_SIZE\x10\xe3\x04\x12-\n(AUDIENCE_SEGMENT_TARGETED_PPID_USER_SIZE\x10\xe4\x04\x12-\n(AUDIENCE_SEGMENT_TARGETED_ROKU_USER_SIZE\x10\xe7\x04\x12\x33\n.AUDIENCE_SEGMENT_TARGETED_SAMSUNG_TV_USER_SIZE\x10\xe8\x04\x12#\n\x1e\x41UDIENCE_SEGMENT_TARGETED_SIZE\x10\xea\x04\x12%\n AUDIENCE_SEGMENT_TARGETED_STATUS\x10\xf4\x04\x12*\n%AUDIENCE_SEGMENT_TARGETED_STATUS_NAME\x10\xe9\x04\x12-\n(AUDIENCE_SEGMENT_TARGETED_XBOX_USER_SIZE\x10\xeb\x04\x12\x1b\n\x16\x41UTO_REFRESHED_TRAFFIC\x10\xa5\x03\x12 \n\x1b\x41UTO_REFRESHED_TRAFFIC_NAME\x10\xa6\x03\x12\x18\n\x13\x42IDDER_ENCRYPTED_ID\x10\xed\x03\x12\x10\n\x0b\x42IDDER_NAME\x10\xee\x03\x12\x0e\n\tBID_RANGE\x10\xa7\x05\x12\x19\n\x14\x42ID_REJECTION_REASON\x10\xd7\x04\x12\x1e\n\x19\x42ID_REJECTION_REASON_NAME\x10\xd8\x04\x12\x12\n\rBRANDING_TYPE\x10\xff\x02\x12\x17\n\x12\x42RANDING_TYPE_NAME\x10\x80\x03\x12\x14\n\x10\x42ROWSER_CATEGORY\x10w\x12\x19\n\x15\x42ROWSER_CATEGORY_NAME\x10x\x12\x0f\n\nBROWSER_ID\x10\xeb\x01\x12\x11\n\x0c\x42ROWSER_NAME\x10\xec\x01\x12\x15\n\x10\x42UYER_NETWORK_ID\x10\xc0\x03\x12\x17\n\x12\x42UYER_NETWORK_NAME\x10\xc1\x03\x12!\n\x1c\x43\x41LLOUT_STATUS_CATEGORY_NAME\x10\xcd\x04\x12\x0f\n\nCARRIER_ID\x10\xf1\x02\x12\x11\n\x0c\x43\x41RRIER_NAME\x10\xf0\x02\x12\x0c\n\x07\x43HANNEL\x10\xf5\x03\x12\x17\n\x12\x43HILD_NETWORK_CODE\x10\x9e\x04\x12\x15\n\x10\x43HILD_NETWORK_ID\x10\xa0\x04\x12\x17\n\x12\x43HILD_PARTNER_NAME\x10\x9f\x04\x12\x0c\n\x07\x43ITY_ID\x10\xcb\x03\x12\x0e\n\tCITY_NAME\x10\xc4\x03\x12\x1d\n\x18\x43LASSIFIED_ADVERTISER_ID\x10\x85\x01\x12\x1f\n\x1a\x43LASSIFIED_ADVERTISER_NAME\x10\x86\x01\x12\x18\n\x13\x43LASSIFIED_BRAND_ID\x10\xf3\x01\x12\x1a\n\x15\x43LASSIFIED_BRAND_NAME\x10\xf4\x01\x12\x16\n\x11\x43ONTENT_BUNDLE_ID\x10\xcc\x03\x12\x18\n\x13\x43ONTENT_BUNDLE_NAME\x10\xcd\x03\x12)\n$CONTENT_CMS_METADATA_KV_NAMESPACE_ID\x10\xce\x03\x12+\n&CONTENT_CMS_METADATA_KV_NAMESPACE_NAME\x10\xcf\x03\x12\x15\n\x10\x43ONTENT_CMS_NAME\x10\x83\x05\x12\x19\n\x14\x43ONTENT_CMS_VIDEO_ID\x10\x84\x05\x12\x0f\n\nCONTENT_ID\x10\xf6\x01\x12\x1d\n\x18\x43ONTENT_MAPPING_PRESENCE\x10\xdb\x05\x12\"\n\x1d\x43ONTENT_MAPPING_PRESENCE_NAME\x10\xdc\x05\x12\x11\n\x0c\x43ONTENT_NAME\x10\xf7\x01\x12\x0e\n\tCONTINENT\x10\xd5\x03\x12\x13\n\x0e\x43ONTINENT_NAME\x10\xd6\x03\x12\x11\n\x0c\x43OUNTRY_CODE\x10\xd2\x03\x12\x0e\n\nCOUNTRY_ID\x10\x0b\x12\x10\n\x0c\x43OUNTRY_NAME\x10\x0c\x12\x1a\n\x15\x43REATIVE_BILLING_TYPE\x10\xee\x02\x12\x1f\n\x1a\x43REATIVE_BILLING_TYPE_NAME\x10\xef\x02\x12\x1f\n\x1a\x43REATIVE_CLICK_THROUGH_URL\x10\xae\x01\x12\x10\n\x0b\x43REATIVE_ID\x10\x8a\x01\x12\x12\n\rCREATIVE_NAME\x10\x8b\x01\x12\x1d\n\x18\x43REATIVE_OR_CREATIVE_SET\x10\xaa\x05\x12\"\n\x1d\x43REATIVE_OR_CREATIVE_SET_NAME\x10\xab\x05\x12 \n\x1b\x43REATIVE_POLICIES_FILTERING\x10\xc7\x05\x12%\n CREATIVE_POLICIES_FILTERING_NAME\x10\xc8\x05\x12#\n\x1e\x43REATIVE_PROTECTIONS_FILTERING\x10\xc0\x05\x12(\n#CREATIVE_PROTECTIONS_FILTERING_NAME\x10\xc1\x05\x12\x1b\n\x16\x43REATIVE_SET_ROLE_TYPE\x10\xae\x05\x12 \n\x1b\x43REATIVE_SET_ROLE_TYPE_NAME\x10\xaf\x05\x12%\n CREATIVE_SSL_COMPLIANCE_OVERRIDE\x10\x90\x06\x12*\n%CREATIVE_SSL_COMPLIANCE_OVERRIDE_NAME\x10\x92\x06\x12\x1d\n\x18\x43REATIVE_SSL_SCAN_RESULT\x10\x91\x06\x12\"\n\x1d\x43REATIVE_SSL_SCAN_RESULT_NAME\x10\x93\x06\x12!\n\x1c\x43REATIVE_TARGET_AD_UNIT_SIZE\x10\x82\x06\x12\x18\n\x13\x43REATIVE_TECHNOLOGY\x10\x94\x01\x12\x1d\n\x18\x43REATIVE_TECHNOLOGY_NAME\x10\x95\x01\x12 \n\x1b\x43REATIVE_THIRD_PARTY_VENDOR\x10\xe9\x02\x12\x12\n\rCREATIVE_TYPE\x10\xd8\x02\x12\x17\n\x12\x43REATIVE_TYPE_NAME\x10\xd9\x02\x12\x17\n\x12\x43REATIVE_VENDOR_ID\x10\xc2\x05\x12\x19\n\x14\x43REATIVE_VENDOR_NAME\x10\xc3\x05\x12(\n#CREATIVE_VIDEO_REDIRECT_THIRD_PARTY\x10\xb2\x04\x12\x0f\n\nCURATOR_ID\x10\xbc\x04\x12\x11\n\x0c\x43URATOR_NAME\x10\xbd\x04\x12\x14\n\x0f\x43USTOM_EVENT_ID\x10\xe1\x05\x12\x16\n\x11\x43USTOM_EVENT_NAME\x10\xdf\x05\x12\x16\n\x11\x43USTOM_EVENT_TYPE\x10\xe0\x05\x12\x1b\n\x16\x43USTOM_EVENT_TYPE_NAME\x10\xe2\x05\x12\x13\n\x0e\x43USTOM_SPOT_ID\x10\xa7\x03\x12\x15\n\x10\x43USTOM_SPOT_NAME\x10\xa8\x03\x12\x08\n\x04\x44\x41TE\x10\x03\x12\x0f\n\x0b\x44\x41Y_OF_WEEK\x10\x04\x12\x12\n\rDEAL_BUYER_ID\x10\xf0\x01\x12\x14\n\x0f\x44\x45\x41L_BUYER_NAME\x10\xf1\x01\x12\x0c\n\x07\x44\x45\x41L_ID\x10\xb4\x03\x12\x10\n\x0b\x44\x45\x41L_ID_ALL\x10\x8d\x06\x12\x0e\n\tDEAL_NAME\x10\xb5\x03\x12\x1f\n\x1a\x44\x45\x43LARED_ADVERTISER_DOMAIN\x10\x9c\x06\x12\x1f\n\x1a\x44\x45LIVERED_SECURE_SIGNAL_ID\x10\xb5\x02\x12!\n\x1c\x44\x45LIVERED_SECURE_SIGNAL_NAME\x10\xb6\x02\x12\x12\n\x0e\x44\x45MAND_CHANNEL\x10\t\x12\x17\n\x13\x44\x45MAND_CHANNEL_NAME\x10\n\x12\x12\n\rDEMAND_SOURCE\x10\xd0\x04\x12\x16\n\x11\x44\x45MAND_SOURCE_ALL\x10\x8e\x06\x12\x17\n\x12\x44\x45MAND_SOURCE_NAME\x10\xd1\x04\x12\x15\n\x11\x44\x45MAND_SUBCHANNEL\x10\x16\x12\x1a\n\x16\x44\x45MAND_SUBCHANNEL_NAME\x10\x17\x12\x0b\n\x06\x44\x45VICE\x10\xe2\x01\x12\x13\n\x0f\x44\x45VICE_CATEGORY\x10\x0f\x12\x18\n\x14\x44\x45VICE_CATEGORY_NAME\x10\x10\x12\x1b\n\x16\x44\x45VICE_MANUFACTURER_ID\x10\x8d\x04\x12\x1d\n\x18\x44\x45VICE_MANUFACTURER_NAME\x10\x8e\x04\x12\x14\n\x0f\x44\x45VICE_MODEL_ID\x10\x8f\x04\x12\x16\n\x11\x44\x45VICE_MODEL_NAME\x10\x90\x04\x12\x14\n\x0b\x44\x45VICE_NAME\x10\xe1\x01\x1a\x02\x08\x01\x12\x10\n\x0b\x44SP_SEAT_ID\x10\xb4\x04\x12\x1c\n\x17\x44YNAMIC_ALLOCATION_TYPE\x10\xf6\x03\x12!\n\x1c\x44YNAMIC_ALLOCATION_TYPE_NAME\x10\xf7\x03\x12\x11\n\x0c\x45SP_DELIVERY\x10\xef\x04\x12\x16\n\x11\x45SP_DELIVERY_NAME\x10\xf0\x04\x12\x11\n\x0c\x45SP_PRESENCE\x10\xf1\x04\x12\x16\n\x11\x45SP_PRESENCE_NAME\x10\xf2\x04\x12\x1d\n\x18\x45XCHANGE_BIDDING_DEAL_ID\x10\xcb\x05\x12\x1f\n\x1a\x45XCHANGE_BIDDING_DEAL_TYPE\x10\xca\x05\x12$\n\x1f\x45XCHANGE_BIDDING_DEAL_TYPE_NAME\x10\xd3\x05\x12$\n\x1f\x45XCHANGE_THIRD_PARTY_COMPANY_ID\x10\xb9\x01\x12&\n!EXCHANGE_THIRD_PARTY_COMPANY_NAME\x10\xba\x01\x12\x1f\n\x1a\x46IRST_LOOK_PRICING_RULE_ID\x10\xf8\x01\x12!\n\x1c\x46IRST_LOOK_PRICING_RULE_NAME\x10\xf9\x01\x12\x1a\n\x15\x46IRST_PARTY_ID_STATUS\x10\x94\x03\x12\x1f\n\x1a\x46IRST_PARTY_ID_STATUS_NAME\x10\x95\x03\x12\x0b\n\x06GENDER\x10\xfd\x03\x12\x10\n\x0bGENDER_NAME\x10\xc7\x04\x12\x1f\n\x1aGOOGLE_ANALYTICS_STREAM_ID\x10\x87\x04\x12!\n\x1cGOOGLE_ANALYTICS_STREAM_NAME\x10\x88\x04\x12\x19\n\x14HBT_YIELD_PARTNER_ID\x10\x93\x05\x12\x1b\n\x16HBT_YIELD_PARTNER_NAME\x10\x94\x05\x12#\n\x1eHEADER_BIDDER_INTEGRATION_TYPE\x10\xce\x05\x12(\n#HEADER_BIDDER_INTEGRATION_TYPE_NAME\x10\xcf\x05\x12\x08\n\x04HOUR\x10\x64\x12\x1f\n\x1aIMPRESSION_COUNTING_METHOD\x10\xc1\x04\x12$\n\x1fIMPRESSION_COUNTING_METHOD_NAME\x10\xc2\x04\x12\x15\n\x10INTERACTION_TYPE\x10\xdf\x01\x12\x1a\n\x15INTERACTION_TYPE_NAME\x10\xe0\x01\x12\r\n\x08INTEREST\x10\xfe\x03\x12\x14\n\x10INVENTORY_FORMAT\x10\x11\x12\x19\n\x15INVENTORY_FORMAT_NAME\x10\x12\x12\"\n\x1dINVENTORY_SHARE_ASSIGNMENT_ID\x10\x88\x05\x12$\n\x1fINVENTORY_SHARE_ASSIGNMENT_NAME\x10\x89\x05\x12\x1c\n\x17INVENTORY_SHARE_OUTCOME\x10\xdb\x04\x12!\n\x1cINVENTORY_SHARE_OUTCOME_NAME\x10\xdc\x04\x12&\n!INVENTORY_SHARE_PARTNER_AD_SERVER\x10\x8c\x05\x12+\n&INVENTORY_SHARE_PARTNER_AD_SERVER_NAME\x10\x8d\x05\x12)\n$INVENTORY_SHARE_TARGET_SHARE_PERCENT\x10\x8e\x05\x12\x19\n\x14INVENTORY_SHARE_TYPE\x10\x8a\x05\x12\x1e\n\x19INVENTORY_SHARE_TYPE_NAME\x10\x8b\x05\x12\x12\n\x0eINVENTORY_TYPE\x10\x13\x12\x17\n\x13INVENTORY_TYPE_NAME\x10\x14\x12\x12\n\rIS_ADX_DIRECT\x10\xfe\x02\x12\x19\n\x14IS_CURATION_TARGETED\x10\xbe\x04\x12\x0f\n\nIS_DROPPED\x10\xd0\x03\x12\x17\n\x12IS_FIRST_LOOK_DEAL\x10\x91\x03\x12\x12\n\rKEY_VALUES_ID\x10\xd6\x01\x12\x14\n\x0fKEY_VALUES_NAME\x10\xd7\x01\x12\x13\n\x0eKEY_VALUES_SET\x10\xc9\x05\x12\x15\n\x10LINE_ITEM_AGENCY\x10\x97\x05\x12\x17\n\x12LINE_ITEM_ARCHIVED\x10\xbc\x01\x12(\n#LINE_ITEM_AVERAGE_NUMBER_OF_VIEWERS\x10\xb6\x05\x12(\n#LINE_ITEM_COMPANION_DELIVERY_OPTION\x10\xcc\x01\x12-\n(LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME\x10\xcd\x01\x12\x1e\n\x19LINE_ITEM_COMPUTED_STATUS\x10\xfa\x01\x12#\n\x1eLINE_ITEM_COMPUTED_STATUS_NAME\x10\xfb\x01\x12!\n\x1dLINE_ITEM_CONTRACTED_QUANTITY\x10\\\x12\x1b\n\x17LINE_ITEM_COST_PER_UNIT\x10U\x12\x18\n\x13LINE_ITEM_COST_TYPE\x10\xd4\x01\x12\x1d\n\x18LINE_ITEM_COST_TYPE_NAME\x10\xd5\x01\x12 \n\x1bLINE_ITEM_CREATIVE_END_DATE\x10\xb0\x01\x12%\n LINE_ITEM_CREATIVE_ROTATION_TYPE\x10\xbd\x01\x12*\n%LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME\x10\xbe\x01\x12\"\n\x1dLINE_ITEM_CREATIVE_START_DATE\x10\xaf\x01\x12\x1c\n\x17LINE_ITEM_CURRENCY_CODE\x10\xb4\x01\x12 \n\x1cLINE_ITEM_DELIVERY_INDICATOR\x10W\x12!\n\x1cLINE_ITEM_DELIVERY_RATE_TYPE\x10\xbf\x01\x12&\n!LINE_ITEM_DELIVERY_RATE_TYPE_NAME\x10\xc0\x01\x12 \n\x1bLINE_ITEM_DISCOUNT_ABSOLUTE\x10\xc3\x01\x12\"\n\x1dLINE_ITEM_DISCOUNT_PERCENTAGE\x10\xc4\x01\x12\x16\n\x12LINE_ITEM_END_DATE\x10Q\x12\x1b\n\x17LINE_ITEM_END_DATE_TIME\x10S\x12\x1f\n\x1aLINE_ITEM_ENVIRONMENT_TYPE\x10\xc9\x01\x12$\n\x1fLINE_ITEM_ENVIRONMENT_TYPE_NAME\x10\xca\x01\x12\x1e\n\x1aLINE_ITEM_EXTERNAL_DEAL_ID\x10\x61\x12\x19\n\x15LINE_ITEM_EXTERNAL_ID\x10V\x12\x1c\n\x17LINE_ITEM_FREQUENCY_CAP\x10\x80\x02\x12\x10\n\x0cLINE_ITEM_ID\x10\x01\x12\x15\n\x10LINE_ITEM_LABELS\x10\x9b\x05\x12\x18\n\x13LINE_ITEM_LABEL_IDS\x10\x99\x05\x12#\n\x1eLINE_ITEM_LAST_MODIFIED_BY_APP\x10\xb5\x01\x12\x1d\n\x19LINE_ITEM_LIFETIME_CLICKS\x10_\x12\"\n\x1eLINE_ITEM_LIFETIME_IMPRESSIONS\x10^\x12+\n\'LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS\x10`\x12\x16\n\x12LINE_ITEM_MAKEGOOD\x10Y\x12\x12\n\x0eLINE_ITEM_NAME\x10\x02\x12$\n LINE_ITEM_NON_CPD_BOOKED_REVENUE\x10\x62\x12\x19\n\x15LINE_ITEM_OPTIMIZABLE\x10Z\x12\x18\n\x13LINE_ITEM_PO_NUMBER\x10\x9d\x05\x12 \n\x1bLINE_ITEM_PRIMARY_GOAL_TYPE\x10\xd2\x01\x12%\n LINE_ITEM_PRIMARY_GOAL_TYPE_NAME\x10\xd3\x01\x12)\n%LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE\x10]\x12,\n\'LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE\x10\x8c\x03\x12%\n LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE\x10\xd0\x01\x12*\n%LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME\x10\xd1\x01\x12\x16\n\x12LINE_ITEM_PRIORITY\x10\x18\x12!\n\x1cLINE_ITEM_RESERVATION_STATUS\x10\xb0\x02\x12&\n!LINE_ITEM_RESERVATION_STATUS_NAME\x10\xb1\x02\x12\x1a\n\x15LINE_ITEM_SALESPERSON\x10\x9f\x05\x12$\n\x1fLINE_ITEM_SECONDARY_SALESPEOPLE\x10\xa1\x05\x12$\n\x1fLINE_ITEM_SECONDARY_TRAFFICKERS\x10\xa3\x05\x12\x18\n\x14LINE_ITEM_START_DATE\x10R\x12\x1d\n\x19LINE_ITEM_START_DATE_TIME\x10T\x12\x19\n\x14LINE_ITEM_TRAFFICKER\x10\xa5\x05\x12\x13\n\x0eLINE_ITEM_TYPE\x10\xc1\x01\x12\x18\n\x13LINE_ITEM_TYPE_NAME\x10\xc2\x01\x12\x1c\n\x17LINE_ITEM_UNLIMITED_END\x10\xbb\x01\x12!\n\x1dLINE_ITEM_VALUE_COST_PER_UNIT\x10X\x12 \n\x1bLINE_ITEM_WEB_PROPERTY_CODE\x10\xb3\x01\x12!\n\x1cMASTER_COMPANION_CREATIVE_ID\x10\x8c\x01\x12#\n\x1eMASTER_COMPANION_CREATIVE_NAME\x10\x8d\x01\x12\x13\n\x0eMEDIATION_TYPE\x10\xbd\x05\x12\x18\n\x13MEDIATION_TYPE_NAME\x10\xf2\x05\x12\x1f\n\x1aMEDIATION_YIELD_PARTNER_ID\x10\x95\x05\x12!\n\x1cMEDIATION_YIELD_PARTNER_NAME\x10\x96\x05\x12\r\n\x08METRO_ID\x10\xc5\x03\x12\x0f\n\nMETRO_NAME\x10\xc6\x03\x12\x14\n\x0fMOBILE_APP_FREE\x10\x80\x01\x12\x18\n\x13MOBILE_APP_ICON_URL\x10\x81\x01\x12\x11\n\rMOBILE_APP_ID\x10{\x12\x13\n\x0fMOBILE_APP_NAME\x10\x7f\x12 \n\x1bMOBILE_APP_OWNERSHIP_STATUS\x10\xb7\x02\x12%\n MOBILE_APP_OWNERSHIP_STATUS_NAME\x10\xb8\x02\x12\x14\n\x10MOBILE_APP_STORE\x10}\x12\x1a\n\x15MOBILE_APP_STORE_NAME\x10\xf5\x01\x12\x19\n\x15MOBILE_INVENTORY_TYPE\x10\x63\x12\x1e\n\x1aMOBILE_INVENTORY_TYPE_NAME\x10\x15\x12\x19\n\x14MOBILE_RENDERING_SDK\x10\x86\x05\x12\x1e\n\x19MOBILE_RENDERING_SDK_NAME\x10\x87\x05\x12\x1d\n\x18MOBILE_SDK_MAJOR_VERSION\x10\xb4\x05\x12\x1d\n\x18MOBILE_SDK_MINOR_VERSION\x10\xb5\x05\x12\x1c\n\x17MOBILE_SDK_VERSION_NAME\x10\x82\x01\x12\x0e\n\nMONTH_YEAR\x10\x06\x12\x18\n\x13NATIVE_AD_FORMAT_ID\x10\xff\x01\x12\x1a\n\x15NATIVE_AD_FORMAT_NAME\x10\xfe\x01\x12\x14\n\x0fNATIVE_STYLE_ID\x10\xfd\x01\x12\x16\n\x11NATIVE_STYLE_NAME\x10\xfc\x01\x12\x19\n\x14NIELSEN_DEMOGRAPHICS\x10\xb7\x05\x12\x1e\n\x19NIELSEN_DEMOGRAPHICS_NAME\x10\x80\x06\x12\x13\n\x0eNIELSEN_DEVICE\x10\xb8\x05\x12\x18\n\x13NIELSEN_DEVICE_NAME\x10\xb9\x05\x12\x16\n\x11NIELSEN_IN_TARGET\x10\x81\x06\x12\x1d\n\x18NIELSEN_RESTATEMENT_DATE\x10\xba\x05\x12\x14\n\x0fNIELSEN_SEGMENT\x10\xbb\x05\x12\x15\n\x10NIELSEN_SITE_URL\x10\xbc\x05\x12!\n\x1cNO_FILL_REASON_CATEGORY_NAME\x10\xcb\x04\x12\x1d\n\x19OPERATING_SYSTEM_CATEGORY\x10u\x12\"\n\x1eOPERATING_SYSTEM_CATEGORY_NAME\x10v\x12 \n\x1bOPERATING_SYSTEM_VERSION_ID\x10\xee\x01\x12\"\n\x1dOPERATING_SYSTEM_VERSION_NAME\x10\xed\x01\x12\x16\n\x11OPTIMIZATION_TYPE\x10\xff\x04\x12\x1b\n\x16OPTIMIZATION_TYPE_NAME\x10\x80\x05\x12\x11\n\x0cORDER_AGENCY\x10\x96\x01\x12\x14\n\x0fORDER_AGENCY_ID\x10\x97\x01\x12\x15\n\x10ORDER_BOOKED_CPC\x10\x98\x01\x12\x15\n\x10ORDER_BOOKED_CPM\x10\x99\x01\x12\x1a\n\x15ORDER_DELIVERY_STATUS\x10\xe7\x01\x12\x1f\n\x1aORDER_DELIVERY_STATUS_NAME\x10\xef\x01\x12\x13\n\x0eORDER_END_DATE\x10\x9a\x01\x12\x18\n\x13ORDER_END_DATE_TIME\x10\x9b\x01\x12\x16\n\x11ORDER_EXTERNAL_ID\x10\x9c\x01\x12\x0c\n\x08ORDER_ID\x10\x07\x12\x11\n\x0cORDER_LABELS\x10\xaa\x01\x12\x14\n\x0fORDER_LABEL_IDS\x10\xab\x01\x12\x1a\n\x15ORDER_LIFETIME_CLICKS\x10\x9e\x01\x12\x1f\n\x1aORDER_LIFETIME_IMPRESSIONS\x10\x9f\x01\x12\x0e\n\nORDER_NAME\x10\x08\x12\x14\n\x0fORDER_PO_NUMBER\x10\xa0\x01\x12\x17\n\x12ORDER_PROGRAMMATIC\x10\x9d\x01\x12\x16\n\x11ORDER_SALESPERSON\x10\xa1\x01\x12\x19\n\x14ORDER_SALESPERSON_ID\x10\xf5\x04\x12 \n\x1bORDER_SECONDARY_SALESPEOPLE\x10\xa4\x01\x12#\n\x1eORDER_SECONDARY_SALESPEOPLE_ID\x10\xa5\x01\x12 \n\x1bORDER_SECONDARY_TRAFFICKERS\x10\xa6\x01\x12#\n\x1eORDER_SECONDARY_TRAFFICKERS_ID\x10\xa7\x01\x12\x15\n\x10ORDER_START_DATE\x10\xa8\x01\x12\x1a\n\x15ORDER_START_DATE_TIME\x10\xa9\x01\x12\x15\n\x10ORDER_TRAFFICKER\x10\xa2\x01\x12\x18\n\x13ORDER_TRAFFICKER_ID\x10\xa3\x01\x12\x18\n\x13ORDER_UNLIMITED_END\x10\xcb\x01\x12\x0e\n\tPAGE_PATH\x10\xff\x03\x12 \n\x1bPAGE_TITLE_AND_SCREEN_CLASS\x10\x80\x04\x12\x1f\n\x1aPAGE_TITLE_AND_SCREEN_NAME\x10\x81\x04\x12%\n PARTNER_MANAGEMENT_ASSIGNMENT_ID\x10\x91\x05\x12\'\n\"PARTNER_MANAGEMENT_ASSIGNMENT_NAME\x10\x92\x05\x12\"\n\x1dPARTNER_MANAGEMENT_PARTNER_ID\x10\x8f\x05\x12$\n\x1fPARTNER_MANAGEMENT_PARTNER_NAME\x10\x90\x05\x12\x10\n\x0cPLACEMENT_ID\x10q\x12\x15\n\x10PLACEMENT_ID_ALL\x10\x90\x01\x12\x12\n\x0ePLACEMENT_NAME\x10r\x12\x17\n\x12PLACEMENT_NAME_ALL\x10\x91\x01\x12\x15\n\x10PLACEMENT_STATUS\x10\xea\x02\x12\x1a\n\x15PLACEMENT_STATUS_NAME\x10\xec\x02\x12\x1e\n\x19PLACEMENT_STATUS_NAME_ALL\x10\xed\x02\x12\x13\n\x0ePOSTAL_CODE_ID\x10\xc7\x03\x12\x15\n\x10POSTAL_CODE_NAME\x10\xc8\x03\x12\x10\n\x0bPPID_STATUS\x10\x96\x03\x12\x15\n\x10PPID_STATUS_NAME\x10\x97\x03\x12!\n\x1cPREDICTED_VIEWABILITY_BUCKET\x10\xf9\x04\x12&\n!PREDICTED_VIEWABILITY_BUCKET_NAME\x10\xfa\x04\x12\x1f\n\x1aPRESENTED_SECURE_SIGNAL_ID\x10\xef\x03\x12!\n\x1cPRESENTED_SECURE_SIGNAL_NAME\x10\xf0\x03\x12\x14\n\x0fPRICING_RULE_ID\x10\x89\x03\x12\x16\n\x11PRICING_RULE_NAME\x10\x8a\x03\x12$\n\x1fPRIMARY_PERSONALIZATION_ID_TYPE\x10\x98\x03\x12)\n$PRIMARY_PERSONALIZATION_ID_TYPE_NAME\x10\x99\x03\x12\x18\n\x14PROGRAMMATIC_CHANNEL\x10\r\x12\x1d\n\x19PROGRAMMATIC_CHANNEL_NAME\x10\x0e\x12\x38\n3PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_EXTERNAL_CODE\x10\x9a\x03\x12.\n)PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_IDS\x10\xa2\x04\x12/\n*PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_NAME\x10\x9c\x03\x12/\n*PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TIER\x10\x9d\x03\x12/\n*PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TYPE\x10\x9e\x03\x12\x37\n2PUBLISHER_PROVIDED_SIGNALS_DELIVERED_EXTERNAL_CODE\x10\xa9\x03\x12-\n(PUBLISHER_PROVIDED_SIGNALS_DELIVERED_IDS\x10\xa1\x04\x12.\n)PUBLISHER_PROVIDED_SIGNALS_DELIVERED_NAME\x10\xab\x03\x12.\n)PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TIER\x10\xac\x03\x12.\n)PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TYPE\x10\xad\x03\x12\x37\n2PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_EXTERNAL_CODE\x10\x9f\x03\x12,\n\'PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_ID\x10\xa0\x03\x12.\n)PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_NAME\x10\xa1\x03\x12.\n)PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TIER\x10\xa2\x03\x12.\n)PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TYPE\x10\xa3\x03\x12/\n*PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_ID\x10\x88\x01\x12\x31\n,PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_NAME\x10\x89\x01\x12\x0e\n\tREGION_ID\x10\xc9\x03\x12\x10\n\x0bREGION_NAME\x10\xca\x03\x12\"\n\x1dREJECTION_CLASS_CATEGORY_NAME\x10\xcf\x04\x12\x1b\n\x16RENDERED_CREATIVE_SIZE\x10\xd7\x02\x12\x17\n\x12REQUESTED_AD_SIZES\x10\xe0\x02\x12\x11\n\x0cREQUEST_TYPE\x10\x92\x01\x12\x16\n\x11REQUEST_TYPE_NAME\x10\x93\x01\x12\x1c\n\x17REVENUE_VERIFICATION_ID\x10\x85\x05\x12$\n\x1fSERVER_SIDE_UNWRAPPING_ELIGIBLE\x10\xd5\x04\x12\x18\n\x13SERVING_RESTRICTION\x10\xf7\x04\x12\x1d\n\x18SERVING_RESTRICTION_NAME\x10\xf8\x04\x12\t\n\x04SITE\x10\x83\x03\x12\x11\n\x0cTARGETING_ID\x10\xe8\x01\x12\x13\n\x0eTARGETING_NAME\x10\xe9\x01\x12\x13\n\x0eTARGETING_TYPE\x10\x81\x03\x12\x18\n\x13TARGETING_TYPE_NAME\x10\x82\x03\x12#\n\x1eTARGETS_CUSTOMER_MATCHING_LIST\x10\x95\x06\x12\x1a\n\x15THIRD_PARTY_ID_STATUS\x10\x92\x03\x12\x1f\n\x1aTHIRD_PARTY_ID_STATUS_NAME\x10\x93\x03\x12\x12\n\rTOPICS_STATUS\x10\xf8\x03\x12\x17\n\x12TOPICS_STATUS_NAME\x10\xf9\x03\x12\x17\n\x12TOP_PRIVATE_DOMAIN\x10\xbc\x03\x12\x13\n\x0eTRAFFIC_SOURCE\x10\x84\x03\x12\x18\n\x13TRAFFIC_SOURCE_NAME\x10\x85\x03\x12\x08\n\x03URL\x10\xfa\x03\x12\x0b\n\x06URL_ID\x10\xfb\x03\x12\x19\n\x14USER_MESSAGES_CHOICE\x10\xbe\x05\x12\x1e\n\x19USER_MESSAGES_CHOICE_NAME\x10\xbf\x05\x12%\n USER_MESSAGES_ENTITLEMENT_SOURCE\x10\xfb\x04\x12*\n%USER_MESSAGES_ENTITLEMENT_SOURCE_NAME\x10\xfc\x04\x12/\n*USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_ID\x10\xfd\x04\x12\x31\n,USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_NAME\x10\xfe\x04\x12\x11\n\x0cVAST_VERSION\x10\xaa\x04\x12\x16\n\x11VAST_VERSION_NAME\x10\xab\x04\x12\x18\n\x13VIDEO_AD_BREAK_TYPE\x10\xac\x04\x12\x1d\n\x18VIDEO_AD_BREAK_TYPE_NAME\x10\xad\x04\x12\x16\n\x11VIDEO_AD_DURATION\x10\xc2\x03\x12\x1a\n\x15VIDEO_AD_FORMATS_RULE\x10\xb1\x04\x12\x1d\n\x18VIDEO_AD_FORMATS_RULE_ID\x10\xb0\x04\x12\x1e\n\x19VIDEO_AD_REQUEST_DURATION\x10\xae\x04\x12,\n\'VIDEO_AD_REQUEST_DURATION_MIDPOINT_NAME\x10\xef\x05\x12#\n\x1eVIDEO_AD_REQUEST_DURATION_NAME\x10\xaf\x04\x12\x1c\n\x17VIDEO_AD_REQUEST_SOURCE\x10\xb6\x03\x12!\n\x1cVIDEO_AD_REQUEST_SOURCE_NAME\x10\xb7\x03\x12\x12\n\rVIDEO_AD_TYPE\x10\xb0\x03\x12\x17\n\x12VIDEO_AD_TYPE_NAME\x10\xb1\x03\x12\x1f\n\x1aVIDEO_CONTINUOUS_PLAY_TYPE\x10\xd1\x05\x12$\n\x1fVIDEO_CONTINUOUS_PLAY_TYPE_NAME\x10\xd2\x05\x12\x1c\n\x17VIDEO_FALLBACK_POSITION\x10\x92\x04\x12.\n)VIDEO_LIVE_STREAM_EVENT_AD_BREAK_DURATION\x10\xa3\x04\x12(\n#VIDEO_LIVE_STREAM_EVENT_AD_BREAK_ID\x10\xa4\x04\x12*\n%VIDEO_LIVE_STREAM_EVENT_AD_BREAK_NAME\x10\xa5\x04\x12*\n%VIDEO_LIVE_STREAM_EVENT_AD_BREAK_TIME\x10\xa6\x04\x12\x1f\n\x1aVIDEO_LIVE_STREAM_EVENT_ID\x10\xa7\x04\x12!\n\x1cVIDEO_LIVE_STREAM_EVENT_NAME\x10\xa8\x04\x12\x1d\n\x18VIDEO_MEASUREMENT_SOURCE\x10\xd9\x04\x12\"\n\x1dVIDEO_MEASUREMENT_SOURCE_NAME\x10\xda\x04\x12\x10\n\x0bVIDEO_PLCMT\x10\xac\x01\x12\x15\n\x10VIDEO_PLCMT_NAME\x10\xad\x01\x12\x1a\n\x15VIDEO_POSITION_IN_POD\x10\x9a\x04\x12\x1a\n\x15VIDEO_POSITION_OF_POD\x10\x9b\x04\x12\x16\n\x11VIDEO_SDK_VERSION\x10\xb8\x03\x12\x1b\n\x16VIDEO_SDK_VERSION_NAME\x10\xb9\x03\x12\x18\n\x13VIDEO_STITCHER_TYPE\x10\xf0\x05\x12\x1d\n\x18VIDEO_STITCHER_TYPE_NAME\x10\xf1\x05\x12\x16\n\x11WEB_PROPERTY_CODE\x10\xda\x05\x12\x08\n\x04WEEK\x10\x05\x12\x1b\n\x16YIELD_GROUP_BUYER_NAME\x10\xb8\x01\x12\x1f\n\x1aYIELD_GROUP_BUYER_TAG_NAME\x10\xf3\x04\x12\x13\n\x0eYIELD_GROUP_ID\x10\xb6\x01\x12\x15\n\x10YIELD_GROUP_NAME\x10\xb7\x01\x12\x1f\n\x1aYOUTUBE_AD_DURATION_BUCKET\x10\xae\x03\x12$\n\x1fYOUTUBE_AD_DURATION_BUCKET_NAME\x10\xaf\x03\x12\x14\n\x0fYOUTUBE_AD_TYPE\x10\x8f\x03\x12\x19\n\x14YOUTUBE_AD_TYPE_NAME\x10\x90\x03\x12\'\n\"LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID\x10\x90N\x12\'\n\"LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID\x10\x91N\x12\'\n\"LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID\x10\x92N\x12\'\n\"LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID\x10\x93N\x12\'\n\"LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID\x10\x94N\x12\'\n\"LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID\x10\x95N\x12\'\n\"LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID\x10\x96N\x12\'\n\"LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID\x10\x97N\x12\'\n\"LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID\x10\x98N\x12\'\n\"LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID\x10\x99N\x12(\n#LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID\x10\x9aN\x12(\n#LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID\x10\x9bN\x12(\n#LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID\x10\x9cN\x12(\n#LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID\x10\x9dN\x12(\n#LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID\x10\x9eN\x12#\n\x1eLINE_ITEM_CUSTOM_FIELD_0_VALUE\x10\xf8U\x12#\n\x1eLINE_ITEM_CUSTOM_FIELD_1_VALUE\x10\xf9U\x12#\n\x1eLINE_ITEM_CUSTOM_FIELD_2_VALUE\x10\xfaU\x12#\n\x1eLINE_ITEM_CUSTOM_FIELD_3_VALUE\x10\xfbU\x12#\n\x1eLINE_ITEM_CUSTOM_FIELD_4_VALUE\x10\xfcU\x12#\n\x1eLINE_ITEM_CUSTOM_FIELD_5_VALUE\x10\xfdU\x12#\n\x1eLINE_ITEM_CUSTOM_FIELD_6_VALUE\x10\xfeU\x12#\n\x1eLINE_ITEM_CUSTOM_FIELD_7_VALUE\x10\xffU\x12#\n\x1eLINE_ITEM_CUSTOM_FIELD_8_VALUE\x10\x80V\x12#\n\x1eLINE_ITEM_CUSTOM_FIELD_9_VALUE\x10\x81V\x12$\n\x1fLINE_ITEM_CUSTOM_FIELD_10_VALUE\x10\x82V\x12$\n\x1fLINE_ITEM_CUSTOM_FIELD_11_VALUE\x10\x83V\x12$\n\x1fLINE_ITEM_CUSTOM_FIELD_12_VALUE\x10\x84V\x12$\n\x1fLINE_ITEM_CUSTOM_FIELD_13_VALUE\x10\x85V\x12$\n\x1fLINE_ITEM_CUSTOM_FIELD_14_VALUE\x10\x86V\x12*\n%LINE_ITEM_CUSTOM_FIELD_0_VALUE_DOUBLE\x10\x87V\x12*\n%LINE_ITEM_CUSTOM_FIELD_1_VALUE_DOUBLE\x10\x88V\x12*\n%LINE_ITEM_CUSTOM_FIELD_2_VALUE_DOUBLE\x10\x89V\x12*\n%LINE_ITEM_CUSTOM_FIELD_3_VALUE_DOUBLE\x10\x8aV\x12*\n%LINE_ITEM_CUSTOM_FIELD_4_VALUE_DOUBLE\x10\x8bV\x12*\n%LINE_ITEM_CUSTOM_FIELD_5_VALUE_DOUBLE\x10\x8cV\x12*\n%LINE_ITEM_CUSTOM_FIELD_6_VALUE_DOUBLE\x10\x8dV\x12*\n%LINE_ITEM_CUSTOM_FIELD_7_VALUE_DOUBLE\x10\x8eV\x12*\n%LINE_ITEM_CUSTOM_FIELD_8_VALUE_DOUBLE\x10\x8fV\x12*\n%LINE_ITEM_CUSTOM_FIELD_9_VALUE_DOUBLE\x10\x90V\x12+\n&LINE_ITEM_CUSTOM_FIELD_10_VALUE_DOUBLE\x10\x91V\x12+\n&LINE_ITEM_CUSTOM_FIELD_11_VALUE_DOUBLE\x10\x92V\x12+\n&LINE_ITEM_CUSTOM_FIELD_12_VALUE_DOUBLE\x10\x93V\x12+\n&LINE_ITEM_CUSTOM_FIELD_13_VALUE_DOUBLE\x10\x94V\x12+\n&LINE_ITEM_CUSTOM_FIELD_14_VALUE_DOUBLE\x10\x95V\x12(\n#LINE_ITEM_CUSTOM_FIELD_0_VALUE_BOOL\x10\x96V\x12(\n#LINE_ITEM_CUSTOM_FIELD_1_VALUE_BOOL\x10\x97V\x12(\n#LINE_ITEM_CUSTOM_FIELD_2_VALUE_BOOL\x10\x98V\x12(\n#LINE_ITEM_CUSTOM_FIELD_3_VALUE_BOOL\x10\x99V\x12(\n#LINE_ITEM_CUSTOM_FIELD_4_VALUE_BOOL\x10\x9aV\x12(\n#LINE_ITEM_CUSTOM_FIELD_5_VALUE_BOOL\x10\x9bV\x12(\n#LINE_ITEM_CUSTOM_FIELD_6_VALUE_BOOL\x10\x9cV\x12(\n#LINE_ITEM_CUSTOM_FIELD_7_VALUE_BOOL\x10\x9dV\x12(\n#LINE_ITEM_CUSTOM_FIELD_8_VALUE_BOOL\x10\x9eV\x12(\n#LINE_ITEM_CUSTOM_FIELD_9_VALUE_BOOL\x10\x9fV\x12)\n$LINE_ITEM_CUSTOM_FIELD_10_VALUE_BOOL\x10\xa0V\x12)\n$LINE_ITEM_CUSTOM_FIELD_11_VALUE_BOOL\x10\xa1V\x12)\n$LINE_ITEM_CUSTOM_FIELD_12_VALUE_BOOL\x10\xa2V\x12)\n$LINE_ITEM_CUSTOM_FIELD_13_VALUE_BOOL\x10\xa3V\x12)\n$LINE_ITEM_CUSTOM_FIELD_14_VALUE_BOOL\x10\xa4V\x12#\n\x1eORDER_CUSTOM_FIELD_0_OPTION_ID\x10\xe0]\x12#\n\x1eORDER_CUSTOM_FIELD_1_OPTION_ID\x10\xe1]\x12#\n\x1eORDER_CUSTOM_FIELD_2_OPTION_ID\x10\xe2]\x12#\n\x1eORDER_CUSTOM_FIELD_3_OPTION_ID\x10\xe3]\x12#\n\x1eORDER_CUSTOM_FIELD_4_OPTION_ID\x10\xe4]\x12#\n\x1eORDER_CUSTOM_FIELD_5_OPTION_ID\x10\xe5]\x12#\n\x1eORDER_CUSTOM_FIELD_6_OPTION_ID\x10\xe6]\x12#\n\x1eORDER_CUSTOM_FIELD_7_OPTION_ID\x10\xe7]\x12#\n\x1eORDER_CUSTOM_FIELD_8_OPTION_ID\x10\xe8]\x12#\n\x1eORDER_CUSTOM_FIELD_9_OPTION_ID\x10\xe9]\x12$\n\x1fORDER_CUSTOM_FIELD_10_OPTION_ID\x10\xea]\x12$\n\x1fORDER_CUSTOM_FIELD_11_OPTION_ID\x10\xeb]\x12$\n\x1fORDER_CUSTOM_FIELD_12_OPTION_ID\x10\xec]\x12$\n\x1fORDER_CUSTOM_FIELD_13_OPTION_ID\x10\xed]\x12$\n\x1fORDER_CUSTOM_FIELD_14_OPTION_ID\x10\xee]\x12\x1f\n\x1aORDER_CUSTOM_FIELD_0_VALUE\x10\xc8\x65\x12\x1f\n\x1aORDER_CUSTOM_FIELD_1_VALUE\x10\xc9\x65\x12\x1f\n\x1aORDER_CUSTOM_FIELD_2_VALUE\x10\xca\x65\x12\x1f\n\x1aORDER_CUSTOM_FIELD_3_VALUE\x10\xcb\x65\x12\x1f\n\x1aORDER_CUSTOM_FIELD_4_VALUE\x10\xcc\x65\x12\x1f\n\x1aORDER_CUSTOM_FIELD_5_VALUE\x10\xcd\x65\x12\x1f\n\x1aORDER_CUSTOM_FIELD_6_VALUE\x10\xce\x65\x12\x1f\n\x1aORDER_CUSTOM_FIELD_7_VALUE\x10\xcf\x65\x12\x1f\n\x1aORDER_CUSTOM_FIELD_8_VALUE\x10\xd0\x65\x12\x1f\n\x1aORDER_CUSTOM_FIELD_9_VALUE\x10\xd1\x65\x12 \n\x1bORDER_CUSTOM_FIELD_10_VALUE\x10\xd2\x65\x12 \n\x1bORDER_CUSTOM_FIELD_11_VALUE\x10\xd3\x65\x12 \n\x1bORDER_CUSTOM_FIELD_12_VALUE\x10\xd4\x65\x12 \n\x1bORDER_CUSTOM_FIELD_13_VALUE\x10\xd5\x65\x12 \n\x1bORDER_CUSTOM_FIELD_14_VALUE\x10\xd6\x65\x12&\n!ORDER_CUSTOM_FIELD_0_VALUE_DOUBLE\x10\xd7\x65\x12&\n!ORDER_CUSTOM_FIELD_1_VALUE_DOUBLE\x10\xd8\x65\x12&\n!ORDER_CUSTOM_FIELD_2_VALUE_DOUBLE\x10\xd9\x65\x12&\n!ORDER_CUSTOM_FIELD_3_VALUE_DOUBLE\x10\xda\x65\x12&\n!ORDER_CUSTOM_FIELD_4_VALUE_DOUBLE\x10\xdb\x65\x12&\n!ORDER_CUSTOM_FIELD_5_VALUE_DOUBLE\x10\xdc\x65\x12&\n!ORDER_CUSTOM_FIELD_6_VALUE_DOUBLE\x10\xdd\x65\x12&\n!ORDER_CUSTOM_FIELD_7_VALUE_DOUBLE\x10\xde\x65\x12&\n!ORDER_CUSTOM_FIELD_8_VALUE_DOUBLE\x10\xdf\x65\x12&\n!ORDER_CUSTOM_FIELD_9_VALUE_DOUBLE\x10\xe0\x65\x12\'\n\"ORDER_CUSTOM_FIELD_10_VALUE_DOUBLE\x10\xe1\x65\x12\'\n\"ORDER_CUSTOM_FIELD_11_VALUE_DOUBLE\x10\xe2\x65\x12\'\n\"ORDER_CUSTOM_FIELD_12_VALUE_DOUBLE\x10\xe3\x65\x12\'\n\"ORDER_CUSTOM_FIELD_13_VALUE_DOUBLE\x10\xe4\x65\x12\'\n\"ORDER_CUSTOM_FIELD_14_VALUE_DOUBLE\x10\xe5\x65\x12$\n\x1fORDER_CUSTOM_FIELD_0_VALUE_BOOL\x10\xe6\x65\x12$\n\x1fORDER_CUSTOM_FIELD_1_VALUE_BOOL\x10\xe7\x65\x12$\n\x1fORDER_CUSTOM_FIELD_2_VALUE_BOOL\x10\xe8\x65\x12$\n\x1fORDER_CUSTOM_FIELD_3_VALUE_BOOL\x10\xe9\x65\x12$\n\x1fORDER_CUSTOM_FIELD_4_VALUE_BOOL\x10\xea\x65\x12$\n\x1fORDER_CUSTOM_FIELD_5_VALUE_BOOL\x10\xeb\x65\x12$\n\x1fORDER_CUSTOM_FIELD_6_VALUE_BOOL\x10\xec\x65\x12$\n\x1fORDER_CUSTOM_FIELD_7_VALUE_BOOL\x10\xed\x65\x12$\n\x1fORDER_CUSTOM_FIELD_8_VALUE_BOOL\x10\xee\x65\x12$\n\x1fORDER_CUSTOM_FIELD_9_VALUE_BOOL\x10\xef\x65\x12%\n ORDER_CUSTOM_FIELD_10_VALUE_BOOL\x10\xf0\x65\x12%\n ORDER_CUSTOM_FIELD_11_VALUE_BOOL\x10\xf1\x65\x12%\n ORDER_CUSTOM_FIELD_12_VALUE_BOOL\x10\xf2\x65\x12%\n ORDER_CUSTOM_FIELD_13_VALUE_BOOL\x10\xf3\x65\x12%\n ORDER_CUSTOM_FIELD_14_VALUE_BOOL\x10\xf4\x65\x12&\n!CREATIVE_CUSTOM_FIELD_0_OPTION_ID\x10\xb0m\x12&\n!CREATIVE_CUSTOM_FIELD_1_OPTION_ID\x10\xb1m\x12&\n!CREATIVE_CUSTOM_FIELD_2_OPTION_ID\x10\xb2m\x12&\n!CREATIVE_CUSTOM_FIELD_3_OPTION_ID\x10\xb3m\x12&\n!CREATIVE_CUSTOM_FIELD_4_OPTION_ID\x10\xb4m\x12&\n!CREATIVE_CUSTOM_FIELD_5_OPTION_ID\x10\xb5m\x12&\n!CREATIVE_CUSTOM_FIELD_6_OPTION_ID\x10\xb6m\x12&\n!CREATIVE_CUSTOM_FIELD_7_OPTION_ID\x10\xb7m\x12&\n!CREATIVE_CUSTOM_FIELD_8_OPTION_ID\x10\xb8m\x12&\n!CREATIVE_CUSTOM_FIELD_9_OPTION_ID\x10\xb9m\x12\'\n\"CREATIVE_CUSTOM_FIELD_10_OPTION_ID\x10\xbam\x12\'\n\"CREATIVE_CUSTOM_FIELD_11_OPTION_ID\x10\xbbm\x12\'\n\"CREATIVE_CUSTOM_FIELD_12_OPTION_ID\x10\xbcm\x12\'\n\"CREATIVE_CUSTOM_FIELD_13_OPTION_ID\x10\xbdm\x12\'\n\"CREATIVE_CUSTOM_FIELD_14_OPTION_ID\x10\xbem\x12\"\n\x1d\x43REATIVE_CUSTOM_FIELD_0_VALUE\x10\x98u\x12\"\n\x1d\x43REATIVE_CUSTOM_FIELD_1_VALUE\x10\x99u\x12\"\n\x1d\x43REATIVE_CUSTOM_FIELD_2_VALUE\x10\x9au\x12\"\n\x1d\x43REATIVE_CUSTOM_FIELD_3_VALUE\x10\x9bu\x12\"\n\x1d\x43REATIVE_CUSTOM_FIELD_4_VALUE\x10\x9cu\x12\"\n\x1d\x43REATIVE_CUSTOM_FIELD_5_VALUE\x10\x9du\x12\"\n\x1d\x43REATIVE_CUSTOM_FIELD_6_VALUE\x10\x9eu\x12\"\n\x1d\x43REATIVE_CUSTOM_FIELD_7_VALUE\x10\x9fu\x12\"\n\x1d\x43REATIVE_CUSTOM_FIELD_8_VALUE\x10\xa0u\x12\"\n\x1d\x43REATIVE_CUSTOM_FIELD_9_VALUE\x10\xa1u\x12#\n\x1e\x43REATIVE_CUSTOM_FIELD_10_VALUE\x10\xa2u\x12#\n\x1e\x43REATIVE_CUSTOM_FIELD_11_VALUE\x10\xa3u\x12#\n\x1e\x43REATIVE_CUSTOM_FIELD_12_VALUE\x10\xa4u\x12#\n\x1e\x43REATIVE_CUSTOM_FIELD_13_VALUE\x10\xa5u\x12#\n\x1e\x43REATIVE_CUSTOM_FIELD_14_VALUE\x10\xa6u\x12)\n$CREATIVE_CUSTOM_FIELD_0_VALUE_DOUBLE\x10\xa7u\x12)\n$CREATIVE_CUSTOM_FIELD_1_VALUE_DOUBLE\x10\xa8u\x12)\n$CREATIVE_CUSTOM_FIELD_2_VALUE_DOUBLE\x10\xa9u\x12)\n$CREATIVE_CUSTOM_FIELD_3_VALUE_DOUBLE\x10\xaau\x12)\n$CREATIVE_CUSTOM_FIELD_4_VALUE_DOUBLE\x10\xabu\x12)\n$CREATIVE_CUSTOM_FIELD_5_VALUE_DOUBLE\x10\xacu\x12)\n$CREATIVE_CUSTOM_FIELD_6_VALUE_DOUBLE\x10\xadu\x12)\n$CREATIVE_CUSTOM_FIELD_7_VALUE_DOUBLE\x10\xaeu\x12)\n$CREATIVE_CUSTOM_FIELD_8_VALUE_DOUBLE\x10\xafu\x12)\n$CREATIVE_CUSTOM_FIELD_9_VALUE_DOUBLE\x10\xb0u\x12*\n%CREATIVE_CUSTOM_FIELD_10_VALUE_DOUBLE\x10\xb1u\x12*\n%CREATIVE_CUSTOM_FIELD_11_VALUE_DOUBLE\x10\xb2u\x12*\n%CREATIVE_CUSTOM_FIELD_12_VALUE_DOUBLE\x10\xb3u\x12*\n%CREATIVE_CUSTOM_FIELD_13_VALUE_DOUBLE\x10\xb4u\x12*\n%CREATIVE_CUSTOM_FIELD_14_VALUE_DOUBLE\x10\xb5u\x12\'\n\"CREATIVE_CUSTOM_FIELD_0_VALUE_BOOL\x10\xb6u\x12\'\n\"CREATIVE_CUSTOM_FIELD_1_VALUE_BOOL\x10\xb7u\x12\'\n\"CREATIVE_CUSTOM_FIELD_2_VALUE_BOOL\x10\xb8u\x12\'\n\"CREATIVE_CUSTOM_FIELD_3_VALUE_BOOL\x10\xb9u\x12\'\n\"CREATIVE_CUSTOM_FIELD_4_VALUE_BOOL\x10\xbau\x12\'\n\"CREATIVE_CUSTOM_FIELD_5_VALUE_BOOL\x10\xbbu\x12\'\n\"CREATIVE_CUSTOM_FIELD_6_VALUE_BOOL\x10\xbcu\x12\'\n\"CREATIVE_CUSTOM_FIELD_7_VALUE_BOOL\x10\xbdu\x12\'\n\"CREATIVE_CUSTOM_FIELD_8_VALUE_BOOL\x10\xbeu\x12\'\n\"CREATIVE_CUSTOM_FIELD_9_VALUE_BOOL\x10\xbfu\x12(\n#CREATIVE_CUSTOM_FIELD_10_VALUE_BOOL\x10\xc0u\x12(\n#CREATIVE_CUSTOM_FIELD_11_VALUE_BOOL\x10\xc1u\x12(\n#CREATIVE_CUSTOM_FIELD_12_VALUE_BOOL\x10\xc2u\x12(\n#CREATIVE_CUSTOM_FIELD_13_VALUE_BOOL\x10\xc3u\x12(\n#CREATIVE_CUSTOM_FIELD_14_VALUE_BOOL\x10\xc4u\x12\'\n!CMS_METADATA_DIMENSION_0_VALUE_ID\x10\xf0\x9c\x06\x12\'\n!CMS_METADATA_DIMENSION_1_VALUE_ID\x10\xf1\x9c\x06\x12\'\n!CMS_METADATA_DIMENSION_2_VALUE_ID\x10\xf2\x9c\x06\x12\'\n!CMS_METADATA_DIMENSION_3_VALUE_ID\x10\xf3\x9c\x06\x12\'\n!CMS_METADATA_DIMENSION_4_VALUE_ID\x10\xf4\x9c\x06\x12\'\n!CMS_METADATA_DIMENSION_5_VALUE_ID\x10\xf5\x9c\x06\x12\'\n!CMS_METADATA_DIMENSION_6_VALUE_ID\x10\xf6\x9c\x06\x12\'\n!CMS_METADATA_DIMENSION_7_VALUE_ID\x10\xf7\x9c\x06\x12\'\n!CMS_METADATA_DIMENSION_8_VALUE_ID\x10\xf8\x9c\x06\x12\'\n!CMS_METADATA_DIMENSION_9_VALUE_ID\x10\xf9\x9c\x06\x12$\n\x1e\x43MS_METADATA_DIMENSION_0_VALUE\x10\xd8\xa4\x06\x12$\n\x1e\x43MS_METADATA_DIMENSION_1_VALUE\x10\xd9\xa4\x06\x12$\n\x1e\x43MS_METADATA_DIMENSION_2_VALUE\x10\xda\xa4\x06\x12$\n\x1e\x43MS_METADATA_DIMENSION_3_VALUE\x10\xdb\xa4\x06\x12$\n\x1e\x43MS_METADATA_DIMENSION_4_VALUE\x10\xdc\xa4\x06\x12$\n\x1e\x43MS_METADATA_DIMENSION_5_VALUE\x10\xdd\xa4\x06\x12$\n\x1e\x43MS_METADATA_DIMENSION_6_VALUE\x10\xde\xa4\x06\x12$\n\x1e\x43MS_METADATA_DIMENSION_7_VALUE\x10\xdf\xa4\x06\x12$\n\x1e\x43MS_METADATA_DIMENSION_8_VALUE\x10\xe0\xa4\x06\x12$\n\x1e\x43MS_METADATA_DIMENSION_9_VALUE\x10\xe1\xa4\x06\x12!\n\x1b\x43USTOM_DIMENSION_0_VALUE_ID\x10\xa0\x8d\x06\x12!\n\x1b\x43USTOM_DIMENSION_1_VALUE_ID\x10\xa1\x8d\x06\x12!\n\x1b\x43USTOM_DIMENSION_2_VALUE_ID\x10\xa2\x8d\x06\x12!\n\x1b\x43USTOM_DIMENSION_3_VALUE_ID\x10\xa3\x8d\x06\x12!\n\x1b\x43USTOM_DIMENSION_4_VALUE_ID\x10\xa4\x8d\x06\x12!\n\x1b\x43USTOM_DIMENSION_5_VALUE_ID\x10\xa5\x8d\x06\x12!\n\x1b\x43USTOM_DIMENSION_6_VALUE_ID\x10\xa6\x8d\x06\x12!\n\x1b\x43USTOM_DIMENSION_7_VALUE_ID\x10\xa7\x8d\x06\x12!\n\x1b\x43USTOM_DIMENSION_8_VALUE_ID\x10\xa8\x8d\x06\x12!\n\x1b\x43USTOM_DIMENSION_9_VALUE_ID\x10\xa9\x8d\x06\x12\x1e\n\x18\x43USTOM_DIMENSION_0_VALUE\x10\x88\x95\x06\x12\x1e\n\x18\x43USTOM_DIMENSION_1_VALUE\x10\x89\x95\x06\x12\x1e\n\x18\x43USTOM_DIMENSION_2_VALUE\x10\x8a\x95\x06\x12\x1e\n\x18\x43USTOM_DIMENSION_3_VALUE\x10\x8b\x95\x06\x12\x1e\n\x18\x43USTOM_DIMENSION_4_VALUE\x10\x8c\x95\x06\x12\x1e\n\x18\x43USTOM_DIMENSION_5_VALUE\x10\x8d\x95\x06\x12\x1e\n\x18\x43USTOM_DIMENSION_6_VALUE\x10\x8e\x95\x06\x12\x1e\n\x18\x43USTOM_DIMENSION_7_VALUE\x10\x8f\x95\x06\x12\x1e\n\x18\x43USTOM_DIMENSION_8_VALUE\x10\x90\x95\x06\x12\x1e\n\x18\x43USTOM_DIMENSION_9_VALUE\x10\x91\x95\x06\x12\x1e\n\x18\x45KV_DIMENSION_0_VALUE_ID\x10\xa8\xb4\x06\x12\x1e\n\x18\x45KV_DIMENSION_1_VALUE_ID\x10\xa9\xb4\x06\x12\x1e\n\x18\x45KV_DIMENSION_2_VALUE_ID\x10\xaa\xb4\x06\x12\x1e\n\x18\x45KV_DIMENSION_3_VALUE_ID\x10\xab\xb4\x06\x12\x1e\n\x18\x45KV_DIMENSION_4_VALUE_ID\x10\xac\xb4\x06\x12\x1e\n\x18\x45KV_DIMENSION_5_VALUE_ID\x10\xad\xb4\x06\x12\x1e\n\x18\x45KV_DIMENSION_6_VALUE_ID\x10\xae\xb4\x06\x12\x1e\n\x18\x45KV_DIMENSION_7_VALUE_ID\x10\xaf\xb4\x06\x12\x1e\n\x18\x45KV_DIMENSION_8_VALUE_ID\x10\xb0\xb4\x06\x12\x1e\n\x18\x45KV_DIMENSION_9_VALUE_ID\x10\xb1\xb4\x06\x12\x1b\n\x15\x45KV_DIMENSION_0_VALUE\x10\x90\xbc\x06\x12\x1b\n\x15\x45KV_DIMENSION_1_VALUE\x10\x91\xbc\x06\x12\x1b\n\x15\x45KV_DIMENSION_2_VALUE\x10\x92\xbc\x06\x12\x1b\n\x15\x45KV_DIMENSION_3_VALUE\x10\x93\xbc\x06\x12\x1b\n\x15\x45KV_DIMENSION_4_VALUE\x10\x94\xbc\x06\x12\x1b\n\x15\x45KV_DIMENSION_5_VALUE\x10\x95\xbc\x06\x12\x1b\n\x15\x45KV_DIMENSION_6_VALUE\x10\x96\xbc\x06\x12\x1b\n\x15\x45KV_DIMENSION_7_VALUE\x10\x97\xbc\x06\x12\x1b\n\x15\x45KV_DIMENSION_8_VALUE\x10\x98\xbc\x06\x12\x1b\n\x15\x45KV_DIMENSION_9_VALUE\x10\x99\xbc\x06\"\x89\x9d\x01\n\x06Metric\x12\x16\n\x12METRIC_UNSPECIFIED\x10\x00\x12\x11\n\x0c\x41\x43TIVE_USERS\x10\xdf\x01\x12)\n$ACTIVE_VIEW_AUDIBLE_AT_START_PERCENT\x10\xbd\x03\x12$\n\x1f\x41\x43TIVE_VIEW_AUDIBLE_IMPRESSIONS\x10\x93\x05\x12\x33\n.ACTIVE_VIEW_AUDIBLE_THROUGH_COMPLETION_PERCENT\x10\xbe\x03\x12\x37\n2ACTIVE_VIEW_AUDIBLE_THROUGH_FIRST_QUARTILE_PERCENT\x10\xbf\x03\x12\x31\n,ACTIVE_VIEW_AUDIBLE_THROUGH_MIDPOINT_PERCENT\x10\xc0\x03\x12\x37\n2ACTIVE_VIEW_AUDIBLE_THROUGH_THIRD_QUARTILE_PERCENT\x10\xc1\x03\x12*\n%ACTIVE_VIEW_AUDIO_ENABLED_IMPRESSIONS\x10\x94\x05\x12-\n(ACTIVE_VIEW_AUDIO_MEASURABLE_IMPRESSIONS\x10\x95\x05\x12%\n!ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\x10=\x12$\n ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\x10:\x12\x32\n-ACTIVE_VIEW_EVER_AUDIBLE_BACKGROUNDED_PERCENT\x10\xc2\x03\x12%\n ACTIVE_VIEW_EVER_AUDIBLE_PERCENT\x10\xc3\x03\x12*\n%ACTIVE_VIEW_EVER_BACKGROUNDED_PERCENT\x10\xc4\x03\x12#\n\x1e\x41\x43TIVE_VIEW_EVER_MUTED_PERCENT\x10\xc5\x03\x12?\n:ACTIVE_VIEW_IMPRESSIONS_AUDIBLE_AND_VISIBLIE_AT_COMPLETION\x10\x9b\x03\x12&\n\"ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\x10\x39\x12+\n\'ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\x10<\x12+\n&ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS\x10\x96\x05\x12)\n$ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS\x10\x97\x05\x12\x36\n1ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\x98\x05\x12,\n\'ACTIVE_VIEW_PERCENT_AUDIBLE_IMPRESSIONS\x10\x99\x05\x12&\n!ACTIVE_VIEW_PLUS_MEASURABLE_COUNT\x10\xc6\x03\x12\x18\n\x13\x41\x43TIVE_VIEW_REVENUE\x10\x9e\x03\x12\x36\n1ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION\x10\x9a\x05\x12$\n ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\x10\x38\x12\x32\n-ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\x9b\x05\x12)\n%ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\x10;\x12-\n)ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\x10I\x12,\n(ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\x10\x46\x12.\n*ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\x10\x45\x12\x33\n/ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\x10H\x12\x33\n.ADSENSE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS\x10\x82\x05\x12\x31\n,ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS\x10\x83\x05\x12>\n9ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\x84\x05\x12>\n9ADSENSE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION\x10\x85\x05\x12,\n(ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\x10\x44\x12:\n5ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\x86\x05\x12\x31\n-ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\x10G\x12\x18\n\x14\x41\x44SENSE_AVERAGE_ECPM\x10\x1a\x12\x12\n\x0e\x41\x44SENSE_CLICKS\x10\x17\x12\x0f\n\x0b\x41\x44SENSE_CTR\x10\x18\x12\x17\n\x13\x41\x44SENSE_IMPRESSIONS\x10\x16\x12\x1a\n\x16\x41\x44SENSE_PERCENT_CLICKS\x10\x1c\x12\x1f\n\x1b\x41\x44SENSE_PERCENT_IMPRESSIONS\x10\x1b\x12\x1b\n\x17\x41\x44SENSE_PERCENT_REVENUE\x10\x1d\x12\'\n#ADSENSE_PERCENT_REVENUE_WITHOUT_CPD\x10\x1e\x12\x1c\n\x18\x41\x44SENSE_RESPONSES_SERVED\x10)\x12\x13\n\x0f\x41\x44SENSE_REVENUE\x10\x19\x12\x31\n-AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\x10O\x12\x30\n,AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\x10L\x12\x32\n.AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\x10K\x12\x37\n3AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\x10N\x12\x37\n2AD_EXCHANGE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS\x10\x8e\x05\x12\x35\n0AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS\x10\x8f\x05\x12\x42\n=AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\x90\x05\x12\x42\n=AD_EXCHANGE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION\x10\x91\x05\x12\x30\n,AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\x10J\x12>\n9AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\x92\x05\x12\x35\n1AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\x10M\x12\x1c\n\x18\x41\x44_EXCHANGE_AVERAGE_ECPM\x10\x12\x12\x16\n\x12\x41\x44_EXCHANGE_CLICKS\x10\x0f\x12\x14\n\x0f\x41\x44_EXCHANGE_CPC\x10\xf4\x01\x12\x13\n\x0f\x41\x44_EXCHANGE_CTR\x10\x10\x12\x1e\n\x19\x41\x44_EXCHANGE_DELIVERY_RATE\x10\xf5\x01\x12\x1b\n\x17\x41\x44_EXCHANGE_IMPRESSIONS\x10\x0e\x12*\n%AD_EXCHANGE_IMPRESSIONS_PER_AD_VIEWER\x10\xab\x03\x12(\n#AD_EXCHANGE_IMPRESSIONS_PER_SESSION\x10\xac\x03\x12\x15\n\x10\x41\x44_EXCHANGE_LIFT\x10\xf6\x01\x12$\n\x1f\x41\x44_EXCHANGE_MATCHED_REQUEST_CTR\x10\xf7\x01\x12%\n AD_EXCHANGE_MATCHED_REQUEST_ECPM\x10\xf8\x01\x12\x1b\n\x16\x41\x44_EXCHANGE_MATCH_RATE\x10\xf9\x01\x12*\n%AD_EXCHANGE_OPPORTUNITIES_FROM_ERRORS\x10\xfa\x01\x12/\n*AD_EXCHANGE_OPPORTUNITIES_FROM_IMPRESSIONS\x10\xfb\x01\x12\x1e\n\x1a\x41\x44_EXCHANGE_PERCENT_CLICKS\x10\x14\x12#\n\x1f\x41\x44_EXCHANGE_PERCENT_IMPRESSIONS\x10\x13\x12\x1f\n\x1b\x41\x44_EXCHANGE_PERCENT_REVENUE\x10\x15\x12+\n\'AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD\x10\x1f\x12&\n!AD_EXCHANGE_PLUS_YIELD_GROUP_ECPM\x10\xfc\x01\x12-\n(AD_EXCHANGE_PLUS_YIELD_GROUP_IMPRESSIONS\x10\xfd\x01\x12)\n$AD_EXCHANGE_PLUS_YIELD_GROUP_REVENUE\x10\xfe\x01\x12 \n\x1c\x41\x44_EXCHANGE_RESPONSES_SERVED\x10*\x12\x17\n\x13\x41\x44_EXCHANGE_REVENUE\x10\x11\x12\x35\n0AD_EXCHANGE_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT\x10\xd4\x01\x12&\n!AD_EXCHANGE_REVENUE_PER_AD_VIEWER\x10\xad\x03\x12\x1f\n\x1a\x41\x44_EXCHANGE_TOTAL_REQUESTS\x10\xff\x01\x12\"\n\x1d\x41\x44_EXCHANGE_TOTAL_REQUEST_CTR\x10\x80\x02\x12#\n\x1e\x41\x44_EXCHANGE_TOTAL_REQUEST_ECPM\x10\x81\x02\x12\x18\n\x13\x41\x44_EXPOSURE_SECONDS\x10\xf1\x01\x12\x0f\n\x0b\x41\x44_REQUESTS\x10&\x12/\n+AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\x10\x43\x12.\n*AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\x10@\x12\x30\n,AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\x10?\x12\x35\n1AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\x10\x42\x12\x35\n0AD_SERVER_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS\x10\xcc\x02\x12\x33\n.AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS\x10\xcb\x02\x12@\n;AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\xce\x02\x12\"\n\x1d\x41\x44_SERVER_ACTIVE_VIEW_REVENUE\x10\xc0\x05\x12@\n;AD_SERVER_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION\x10\xcf\x02\x12.\n*AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\x10>\x12<\n7AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\xcd\x02\x12\x33\n/AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\x10\x41\x12\x1a\n\x16\x41\x44_SERVER_AVERAGE_ECPM\x10\"\x12&\n\"AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD\x10\n\x12*\n%AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS\x10\x86\x02\x12\x14\n\x10\x41\x44_SERVER_CLICKS\x10\x07\x12\x1e\n\x19\x41\x44_SERVER_COMPLETED_VIEWS\x10\xaf\x03\x12#\n\x1e\x41\x44_SERVER_COVIEWED_IMPRESSIONS\x10\xaa\x04\x12\x19\n\x15\x41\x44_SERVER_CPD_REVENUE\x10 \x12\x11\n\rAD_SERVER_CTR\x10\x08\x12\x1c\n\x17\x41\x44_SERVER_GROSS_REVENUE\x10\xe3\x03\x12(\n#AD_SERVER_GROSS_REVENUE_WITHOUT_CPD\x10\xe4\x03\x12\x19\n\x15\x41\x44_SERVER_IMPRESSIONS\x10\x06\x12)\n$AD_SERVER_IMPRESSIONS_WITH_COMPANION\x10\xde\x01\x12\x33\n.AD_SERVER_INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS\x10\xd2\x02\x12(\n#AD_SERVER_OPPORTUNITIES_FROM_ERRORS\x10\xcd\x03\x12-\n(AD_SERVER_OPPORTUNITIES_FROM_IMPRESSIONS\x10\xce\x03\x12\x1c\n\x18\x41\x44_SERVER_PERCENT_CLICKS\x10\x0c\x12!\n\x1d\x41\x44_SERVER_PERCENT_IMPRESSIONS\x10\x0b\x12\x1d\n\x19\x41\x44_SERVER_PERCENT_REVENUE\x10#\x12)\n%AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD\x10\r\x12\x1e\n\x1a\x41\x44_SERVER_RESPONSES_SERVED\x10(\x12\x15\n\x11\x41\x44_SERVER_REVENUE\x10!\x12\x33\n.AD_SERVER_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT\x10\xd5\x01\x12!\n\x1d\x41\x44_SERVER_REVENUE_WITHOUT_CPD\x10\t\x12\x1e\n\x19\x41\x44_SERVER_TARGETED_CLICKS\x10\x92\x02\x12#\n\x1e\x41\x44_SERVER_TARGETED_IMPRESSIONS\x10\x93\x02\x12\x1a\n\x15\x41\x44_SERVER_TRACKED_ADS\x10\x88\x02\x12\x35\n0AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS\x10\x85\x02\x12 \n\x1b\x41\x44_SERVER_UNFILTERED_CLICKS\x10\x83\x02\x12\x30\n+AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS\x10\x84\x02\x12)\n AD_SERVER_UNFILTERED_IMPRESSIONS\x10\x84\x02\x1a\x02\x08\x01\x12%\n AD_SERVER_UNFILTERED_TRACKED_ADS\x10\x87\x02\x12\x1d\n\x18\x41\x44_UNIT_EXPOSURE_SECONDS\x10\xf2\x01\x12\x0f\n\nAD_VIEWERS\x10\xa9\x03\x12\x1d\n\x18\x41TN_ADS_FAILED_TO_RENDER\x10\xae\x03\x12\x1c\n\x17\x41TN_ELIGIBLE_LINE_ITEMS\x10\xd6\x02\x12(\n#ATN_ELIGIBLE_LINE_ITEMS_AD_REQUESTS\x10\xd7\x02\x12 \n\x1b\x41TN_HBT_ALLOWED_AD_REQUESTS\x10\xd8\x02\x12\x1c\n\x17\x41TN_HBT_BIDS_IN_AUCTION\x10\xd9\x02\x12(\n#ATN_HBT_BIDS_IN_AUCTION_AD_REQUESTS\x10\xda\x02\x12\x1b\n\x16\x41TN_HBT_CANDIDATE_BIDS\x10\xdb\x02\x12 \n\x1b\x41TN_HBT_INVALID_AD_REQUESTS\x10\xdc\x02\x12 \n\x1b\x41TN_HBT_NO_BIDS_AD_REQUESTS\x10\xd8\x03\x12\x1a\n\x15\x41TN_HBT_REJECTED_BIDS\x10\xdd\x02\x12\x1e\n\x19\x41TN_HBT_VALID_AD_REQUESTS\x10\xde\x02\x12\"\n\x1d\x41TN_HBT_WITH_BIDS_AD_REQUESTS\x10\xd9\x03\x12\x1c\n\x17\x41TN_INVALID_AD_REQUESTS\x10\xdf\x02\x12*\n%ATN_LINE_ITEMS_CREATIVE_NOT_RETRIEVED\x10\xdc\x03\x12\x1e\n\x19\x41TN_LINE_ITEMS_IN_AUCTION\x10\xe0\x02\x12!\n\x1c\x41TN_LINE_ITEMS_NOT_COMPETING\x10\x83\x04\x12 \n\x1b\x41TN_LINE_ITEMS_NOT_SELECTED\x10\xe1\x02\x12)\n$ATN_LINE_ITEM_IN_AUCTION_AD_REQUESTS\x10\xe2\x02\x12\'\n\"ATN_LINE_ITEM_TARGETED_AD_REQUESTS\x10\xe3\x02\x12&\n!ATN_MEDIATION_ALLOWED_AD_REQUESTS\x10\xe4\x02\x12&\n!ATN_MEDIATION_INVALID_AD_REQUESTS\x10\xe5\x02\x12)\n$ATN_MEDIATION_LOADED_ADS_FROM_CHAINS\x10\xe6\x02\x12)\n$ATN_MEDIATION_NO_PARTNER_AD_REQUESTS\x10\xda\x03\x12&\n!ATN_MEDIATION_PARTNERS_IN_AUCTION\x10\xe7\x02\x12\x32\n-ATN_MEDIATION_PARTNERS_IN_AUCTION_AD_REQUESTS\x10\xe8\x02\x12$\n\x1f\x41TN_MEDIATION_REJECTED_PARTNERS\x10\xe9\x02\x12$\n\x1f\x41TN_MEDIATION_TARGETED_PARTNERS\x10\xea\x02\x12&\n!ATN_MEDIATION_TOTAL_ADS_IN_CHAINS\x10\xbf\x05\x12+\n&ATN_MEDIATION_UNLOADED_ADS_FROM_CHAINS\x10\xeb\x02\x12*\n%ATN_MEDIATION_UNUSED_BIDS_OR_PARTNERS\x10\xec\x02\x12$\n\x1f\x41TN_MEDIATION_VALID_AD_REQUESTS\x10\xed\x02\x12,\n\'ATN_MEDIATION_WITH_PARTNERS_AD_REQUESTS\x10\xdb\x03\x12+\n&ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BIDS\x10\xee\x02\x12\x38\n3ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BID_REQUESTS_SENT\x10\xef\x02\x12)\n$ATN_PROGRAMMATIC_ALLOWED_AD_REQUESTS\x10\xf0\x02\x12%\n ATN_PROGRAMMATIC_BIDS_IN_AUCTION\x10\xf1\x02\x12\x30\n+ATN_PROGRAMMATIC_BID_IN_AUCTION_AD_REQUESTS\x10\xf2\x02\x12\'\n\"ATN_PROGRAMMATIC_BID_REQUESTS_SENT\x10\xf3\x02\x12\x30\n+ATN_PROGRAMMATIC_BID_REQUESTS_WITH_RESPONSE\x10\xf4\x02\x12,\n\'ATN_PROGRAMMATIC_BID_REQUEST_CANDIDATES\x10\xf5\x02\x12(\n#ATN_PROGRAMMATIC_BID_REQUEST_ERRORS\x10\xf6\x02\x12,\n\'ATN_PROGRAMMATIC_INELIGIBLE_AD_REQUESTS\x10\xf7\x02\x12#\n\x1e\x41TN_PROGRAMMATIC_REJECTED_BIDS\x10\xf8\x02\x12*\n%ATN_PROGRAMMATIC_SKIPPED_BID_REQUESTS\x10\xf9\x02\x12 \n\x1b\x41TN_PROGRAMMATIC_TOTAL_BIDS\x10\xfa\x02\x12\'\n\"ATN_PROGRAMMATIC_VALID_AD_REQUESTS\x10\xfb\x02\x12\x1c\n\x17\x41TN_REJECTED_LINE_ITEMS\x10\xfc\x02\x12 \n\x1b\x41TN_SERVED_MEDIATION_CHAINS\x10\xfd\x02\x12\x1a\n\x15\x41TN_SERVED_SINGLE_ADS\x10\xfe\x02\x12\x1c\n\x17\x41TN_TARGETED_LINE_ITEMS\x10\xff\x02\x12\x1a\n\x15\x41TN_TOTAL_AD_REQUESTS\x10\x80\x03\x12\x19\n\x14\x41TN_TOTAL_LOADED_ADS\x10\x83\x03\x12\x1a\n\x15\x41TN_VALID_AD_REQUESTS\x10\x85\x03\x12(\n#ATN_YIELD_GROUP_MEDIATION_PASSBACKS\x10\x86\x03\x12\x1a\n\x15\x41UDIENCE_SEGMENT_COST\x10\xae\x04\x12\x10\n\x0c\x41VERAGE_ECPM\x10%\x12\x1c\n\x18\x41VERAGE_ECPM_WITHOUT_CPD\x10\x05\x12+\n&AVERAGE_ENGAGEMENT_SECONDS_PER_SESSION\x10\xe0\x01\x12(\n#AVERAGE_ENGAGEMENT_SECONDS_PER_USER\x10\xe1\x01\x12+\n&AVERAGE_IMPRESSIONS_PER_UNIQUE_VISITOR\x10\xa2\x03\x12-\n(AVERAGE_PURCHASE_REVENUE_PER_PAYING_USER\x10\xe2\x01\x12\x1d\n\x18\x41VERAGE_REVENUE_PER_USER\x10\xe3\x01\x12\x1c\n\x17\x41VERAGE_SESSION_SECONDS\x10\xe4\x01\x12\t\n\x04\x42IDS\x10\xbb\x03\x12\x14\n\x0f\x42ID_AVERAGE_CPM\x10\xbc\x03\x12\x10\n\x0b\x42OUNCE_RATE\x10\xb1\x03\x12\n\n\x06\x43LICKS\x10\x02\x12\x15\n\x11\x43ODE_SERVED_COUNT\x10,\x12\x10\n\x0b\x43PC_REVENUE\x10\xb8\x03\x12\x10\n\x0b\x43PM_REVENUE\x10\xb9\x03\x12%\n CREATIVE_LOAD_TIME_0_500_PERCENT\x10\xc4\x02\x12)\n$CREATIVE_LOAD_TIME_1000_2000_PERCENT\x10\xc6\x02\x12)\n$CREATIVE_LOAD_TIME_2000_4000_PERCENT\x10\xc7\x02\x12)\n$CREATIVE_LOAD_TIME_4000_8000_PERCENT\x10\xc8\x02\x12(\n#CREATIVE_LOAD_TIME_500_1000_PERCENT\x10\xc5\x02\x12\'\n\"CREATIVE_LOAD_TIME_GT_8000_PERCENT\x10\xc9\x02\x12\x07\n\x03\x43TR\x10\x03\x12\x0f\n\nDEALS_BIDS\x10\x9e\x04\x12\x13\n\x0e\x44\x45\x41LS_BID_RATE\x10\x9f\x04\x12\x17\n\x12\x44\x45\x41LS_BID_REQUESTS\x10\xa0\x04\x12\x17\n\x12\x44\x45\x41LS_WINNING_BIDS\x10\xa1\x04\x12\x13\n\x0e\x44\x45\x41LS_WIN_RATE\x10\xa2\x04\x12/\n*DOM_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT\x10\x89\x04\x12\x33\n.DOM_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT\x10\x8a\x04\x12\x33\n.DOM_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT\x10\x8b\x04\x12\x33\n.DOM_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT\x10\x8c\x04\x12\x32\n-DOM_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT\x10\x8d\x04\x12\x31\n,DOM_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT\x10\x88\x04\x12,\n\'DOM_LOAD_TO_TAG_LOAD_TIME_0_500_PERCENT\x10\x8e\x04\x12\x30\n+DOM_LOAD_TO_TAG_LOAD_TIME_1000_2000_PERCENT\x10\x8f\x04\x12\x30\n+DOM_LOAD_TO_TAG_LOAD_TIME_2000_4000_PERCENT\x10\x90\x04\x12\x30\n+DOM_LOAD_TO_TAG_LOAD_TIME_4000_8000_PERCENT\x10\x91\x04\x12/\n*DOM_LOAD_TO_TAG_LOAD_TIME_500_1000_PERCENT\x10\x93\x04\x12.\n)DOM_LOAD_TO_TAG_LOAD_TIME_GT_8000_PERCENT\x10\x92\x04\x12\x11\n\x0c\x44ROPOFF_RATE\x10\x9f\x03\x12\x15\n\x10\x45NGAGED_SESSIONS\x10\xe5\x01\x12\x1e\n\x19\x45NGAGED_SESSIONS_PER_USER\x10\xe6\x01\x12\x14\n\x0f\x45NGAGEMENT_RATE\x10\xaa\x03\x12&\n!EUROPEAN_REGULATIONS_CONSENT_RATE\x10\x8e\x02\x12-\n(EUROPEAN_REGULATIONS_CUSTOM_CONSENT_RATE\x10\x8f\x02\x12(\n#EUROPEAN_REGULATIONS_MESSAGES_SHOWN\x10\x90\x02\x12)\n$EUROPEAN_REGULATIONS_NO_CONSENT_RATE\x10\x91\x02\x12\x0e\n\tFILL_RATE\x10\x82\x02\x12\x1c\n\x17GOOGLE_ANALYTICS_CLICKS\x10\xe7\x01\x12\x19\n\x14GOOGLE_ANALYTICS_CTR\x10\xe8\x01\x12\x1a\n\x15GOOGLE_ANALYTICS_ECPM\x10\xe9\x01\x12!\n\x1cGOOGLE_ANALYTICS_IMPRESSIONS\x10\xea\x01\x12\x1d\n\x18GOOGLE_ANALYTICS_REVENUE\x10\xeb\x01\x12\x1b\n\x16GOOGLE_ANALYTICS_VIEWS\x10\xec\x01\x12$\n\x1fGOOGLE_ANALYTICS_VIEWS_PER_USER\x10\xed\x01\x12-\n(GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS\x10\x81\x01\x12$\n\x1fGOOGLE_SOLD_AUCTION_IMPRESSIONS\x10\x80\x01\x12%\n GOOGLE_SOLD_COVIEWED_IMPRESSIONS\x10\x83\x01\x12\x1c\n\x17GOOGLE_SOLD_IMPRESSIONS\x10\x82\x01\x12\x30\n,GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS\x10\x7f\x12\'\n#GOOGLE_SOLD_RESERVATION_IMPRESSIONS\x10~\x12\x0f\n\x0bIMPRESSIONS\x10\x01\x12)\n$INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS\x10\x97\x03\x12\x15\n\x10INVENTORY_SHARES\x10\xa3\x04\x12\x33\n.INVENTORY_SHARE_PARTNER_UNFILLED_OPPORTUNITIES\x10\xa4\x04\x12\x19\n\x14INVOICED_IMPRESSIONS\x10\x94\x03\x12\"\n\x1dINVOICED_UNFILLED_IMPRESSIONS\x10\x95\x03\x12\x1c\n\x17MEDIATION_CHAINS_FILLED\x10\xc8\x04\x12\x16\n\x11MUTED_IMPRESSIONS\x10\x9c\x03\x12\x1e\n\x19MUTE_ELIGIBLE_IMPRESSIONS\x10\x99\x03\x12\x1b\n\x16NIELSEN_AUDIENCE_INDEX\x10\xb8\x04\x12\x1e\n\x19NIELSEN_AVERAGE_FREQUENCY\x10\xb9\x04\x12&\n!NIELSEN_AVERAGE_NUMBER_OF_VIEWERS\x10\xba\x04\x12 \n\x1bNIELSEN_GROSS_RATING_POINTS\x10\xbb\x04\x12\x18\n\x13NIELSEN_IMPRESSIONS\x10\xbc\x04\x12\x1e\n\x19NIELSEN_IMPRESSIONS_INDEX\x10\xbd\x04\x12\x1c\n\x17NIELSEN_IN_TARGET_RATIO\x10\xc0\x04\x12#\n\x1eNIELSEN_PERCENT_AUDIENCE_REACH\x10\xc2\x04\x12#\n\x1eNIELSEN_PERCENT_AUDIENCE_SHARE\x10\xc3\x04\x12&\n!NIELSEN_PERCENT_IMPRESSIONS_SHARE\x10\xc4\x04\x12%\n NIELSEN_PERCENT_POPULATION_SHARE\x10\xc5\x04\x12\x1c\n\x17NIELSEN_POPULATION_BASE\x10\xc6\x04\x12\x1c\n\x17NIELSEN_UNIQUE_AUDIENCE\x10\xc7\x04\x12\x34\n/OFF_PROPERTY_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\x10\x8b\x03\x12\x32\n-OFF_PROPERTY_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\x10\x8c\x03\x12\x37\n2OFF_PROPERTY_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\x10\x8d\x03\x12\x18\n\x13OFF_PROPERTY_CLICKS\x10\x8e\x03\x12\x15\n\x10OFF_PROPERTY_CTR\x10\x8f\x03\x12\x1d\n\x18OFF_PROPERTY_IMPRESSIONS\x10\x90\x03\x12\x19\n\x14OFF_PROPERTY_REVENUE\x10\x91\x03\x12\x17\n\x12OFF_PROPERTY_SPEND\x10\x92\x03\x12\x1c\n\x17OFF_PROPERTY_SPEND_ECPM\x10\x93\x03\x12#\n\x1eON_PLATFORM_MULTIPLE_CALL_ECPM\x10\xa6\x05\x12*\n%ON_PLATFORM_MULTIPLE_CALL_IMPRESSIONS\x10\xa4\x05\x12&\n!ON_PLATFORM_MULTIPLE_CALL_REVENUE\x10\xa5\x05\x12\x12\n\rOPPORTUNITIES\x10\xcf\x03\x12\x1e\n\x19OVERDELIVERED_IMPRESSIONS\x10\xb0\x03\x12\"\n\x1dPARTNER_FINANCE_GROSS_REVENUE\x10\x88\x05\x12\x1e\n\x19PARTNER_FINANCE_HOST_ECPM\x10\x89\x05\x12%\n PARTNER_FINANCE_HOST_IMPRESSIONS\x10\x8a\x05\x12!\n\x1cPARTNER_FINANCE_HOST_REVENUE\x10\x8b\x05\x12!\n\x1cPARTNER_FINANCE_PARTNER_ECPM\x10\x8c\x05\x12$\n\x1fPARTNER_FINANCE_PARTNER_REVENUE\x10\x8d\x05\x12%\n PARTNER_MANAGEMENT_GROSS_REVENUE\x10\x95\x04\x12#\n\x1ePARTNER_MANAGEMENT_HOST_CLICKS\x10\x96\x04\x12 \n\x1bPARTNER_MANAGEMENT_HOST_CTR\x10\x97\x04\x12(\n#PARTNER_MANAGEMENT_HOST_IMPRESSIONS\x10\x98\x04\x12&\n!PARTNER_MANAGEMENT_PARTNER_CLICKS\x10\x99\x04\x12#\n\x1ePARTNER_MANAGEMENT_PARTNER_CTR\x10\x9a\x04\x12+\n&PARTNER_MANAGEMENT_PARTNER_IMPRESSIONS\x10\x9b\x04\x12+\n&PARTNER_MANAGEMENT_TOTAL_CONTENT_VIEWS\x10\x9c\x04\x12,\n\'PARTNER_MANAGEMENT_UNFILLED_IMPRESSIONS\x10\x9d\x04\x12&\n!PARTNER_SALES_FILLED_POD_REQUESTS\x10\x87\x01\x12\x1c\n\x17PARTNER_SALES_FILL_RATE\x10\x88\x01\x12%\n PARTNER_SALES_PARTNER_MATCH_RATE\x10\x89\x01\x12\x1a\n\x15PARTNER_SALES_QUERIES\x10\x84\x01\x12\'\n\"PARTNER_SALES_UNFILLED_IMPRESSIONS\x10\x85\x01\x12$\n\x1fPARTNER_SALES_UNMATCHED_QUERIES\x10\x86\x01\x12\x1c\n\x18PARTNER_SOLD_CODE_SERVED\x10}\x12%\n!PARTNER_SOLD_COVIEWED_IMPRESSIONS\x10|\x12\x1c\n\x18PARTNER_SOLD_IMPRESSIONS\x10{\x12&\n!PROGRAMMATIC_ELIGIBLE_AD_REQUESTS\x10\xb1\x01\x12\x1c\n\x17PROGRAMMATIC_MATCH_RATE\x10\xb2\x01\x12\"\n\x1dPROGRAMMATIC_RESPONSES_SERVED\x10\xb0\x01\x12\x16\n\x11REACH_IMPRESSIONS\x10\xa0\x03\x12\x14\n\x10RESPONSES_SERVED\x10\'\x12\x0e\n\tRETENTION\x10\xee\x01\x12\x0b\n\x07REVENUE\x10$\x12)\n$REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT\x10\xd6\x01\x12%\n REVENUE_VERIFICATION_CPD_REVENUE\x10\xb0\x04\x12+\n&REVENUE_VERIFICATION_GROSS_CPD_REVENUE\x10\xaf\x04\x12\x33\n.REVENUE_VERIFICATION_GROSS_REVENUE_WITHOUT_CPD\x10\xb1\x04\x12%\n REVENUE_VERIFICATION_IMPRESSIONS\x10\xb4\x04\x12-\n(REVENUE_VERIFICATION_REVENUE_WITHOUT_CPD\x10\xb7\x04\x12\x17\n\x13REVENUE_WITHOUT_CPD\x10\x04\x12\x14\n\x0fREWARDS_GRANTED\x10\x9d\x03\x12$\n\x1fRICH_MEDIA_AVERAGE_DISPLAY_TIME\x10\xcb\x04\x12(\n#RICH_MEDIA_AVERAGE_INTERACTION_TIME\x10\xcc\x04\x12\x1d\n\x18RICH_MEDIA_BACKUP_IMAGES\x10\xcd\x04\x12\"\n\x1dRICH_MEDIA_CUSTOM_EVENT_COUNT\x10\xd7\x04\x12!\n\x1cRICH_MEDIA_CUSTOM_EVENT_TIME\x10\xd8\x04\x12\x1c\n\x17RICH_MEDIA_DISPLAY_TIME\x10\xce\x04\x12\x1e\n\x19RICH_MEDIA_EXPANDING_TIME\x10\xcf\x04\x12\x1a\n\x15RICH_MEDIA_EXPANSIONS\x10\xd0\x04\x12\'\n\"RICH_MEDIA_FULL_SCREEN_IMPRESSIONS\x10\xd1\x04\x12!\n\x1cRICH_MEDIA_INTERACTION_COUNT\x10\xd2\x04\x12 \n\x1bRICH_MEDIA_INTERACTION_RATE\x10\xd3\x04\x12 \n\x1bRICH_MEDIA_INTERACTION_TIME\x10\xd4\x04\x12\'\n\"RICH_MEDIA_INTERACTIVE_IMPRESSIONS\x10\xd5\x04\x12\x1d\n\x18RICH_MEDIA_MANUAL_CLOSES\x10\xd6\x04\x12\x1f\n\x1aRICH_MEDIA_VIDEO_COMPLETES\x10\xf7\x03\x12\"\n\x1dRICH_MEDIA_VIDEO_INTERACTIONS\x10\xf9\x03\x12&\n!RICH_MEDIA_VIDEO_INTERACTION_RATE\x10\xf8\x03\x12\x1f\n\x1aRICH_MEDIA_VIDEO_MIDPOINTS\x10\xfa\x03\x12\x1b\n\x16RICH_MEDIA_VIDEO_MUTES\x10\xfb\x03\x12\x1c\n\x17RICH_MEDIA_VIDEO_PAUSES\x10\xfc\x03\x12\x1b\n\x16RICH_MEDIA_VIDEO_PLAYS\x10\xfd\x03\x12\x1d\n\x18RICH_MEDIA_VIDEO_REPLAYS\x10\xfe\x03\x12\x1b\n\x16RICH_MEDIA_VIDEO_STOPS\x10\xff\x03\x12\x1d\n\x18RICH_MEDIA_VIDEO_UNMUTES\x10\x80\x04\x12\x1f\n\x1aRICH_MEDIA_VIDEO_VIEW_RATE\x10\x81\x04\x12\x1f\n\x1aRICH_MEDIA_VIDEO_VIEW_TIME\x10\x82\x04\x12\'\n\"SELL_THROUGH_AVAILABLE_IMPRESSIONS\x10\xdd\x03\x12(\n#SELL_THROUGH_FORECASTED_IMPRESSIONS\x10\xde\x03\x12&\n!SELL_THROUGH_RESERVED_IMPRESSIONS\x10\xdf\x03\x12#\n\x1eSELL_THROUGH_SELL_THROUGH_RATE\x10\xe0\x03\x12.\n)SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS\x10\xb2\x03\x12$\n\x1fSERVER_SIDE_UNWRAPPING_CALLOUTS\x10\xb3\x03\x12+\n&SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES\x10\xb4\x03\x12+\n&SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES\x10\xb5\x03\x12\x30\n+SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES\x10\xb6\x03\x12$\n\x1fSERVER_SIDE_UNWRAPPING_TIMEOUTS\x10\xb7\x03\x12\r\n\x08SESSIONS\x10\xef\x01\x12/\n*TAG_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT\x10\xc7\x03\x12\x33\n.TAG_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT\x10\xc9\x03\x12\x33\n.TAG_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT\x10\xca\x03\x12\x33\n.TAG_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT\x10\xcb\x03\x12\x32\n-TAG_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT\x10\xc8\x03\x12\x31\n,TAG_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT\x10\xcc\x03\x12\x14\n\x0fTARGETED_CLICKS\x10\x94\x02\x12\x19\n\x14TARGETED_IMPRESSIONS\x10\x95\x02\x12\x18\n\x14UNFILLED_IMPRESSIONS\x10-\x12\x14\n\x0fUNIQUE_VISITORS\x10\xa1\x03\x12$\n\x1fUNLOADED_IMPRESSIONS_DUE_TO_CPU\x10\x98\x03\x12(\n#UNLOADED_IMPRESSIONS_DUE_TO_NETWORK\x10\x96\x03\x12\x19\n\x15UNMATCHED_AD_REQUESTS\x10+\x12\"\n\x1dUNVIEWED_REASON_OTHER_PERCENT\x10\xa6\x04\x12\x38\n3UNVIEWED_REASON_SLOT_NEVER_ENTERED_VIEWPORT_PERCENT\x10\xa9\x04\x12;\n6UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_FILLED_PERCENT\x10\xa7\x04\x12;\n6UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_LOADED_PERCENT\x10\xa8\x04\x12<\n7UNVIEWED_REASON_USER_SCROLLED_BEFORE_ONE_SECOND_PERCENT\x10\xa5\x04\x12(\n#USER_ENGAGEMENT_DURATION_IN_SECONDS\x10\xf0\x01\x12-\n(USER_MESSAGES_AD_BLOCKING_EXTENSION_RATE\x10\xe6\x03\x12\x39\n4USER_MESSAGES_AD_BLOCKING_RECOVERY_ALLOWLISTED_COUNT\x10\xe7\x03\x12\x36\n1USER_MESSAGES_AD_BLOCKING_RECOVERY_MESSAGES_SHOWN\x10\xe8\x03\x12&\n!USER_MESSAGES_ALLOW_ADS_PAGEVIEWS\x10\xe9\x03\x12(\n#USER_MESSAGES_IDFA_ATT_ALERTS_SHOWN\x10\xeb\x03\x12#\n\x1eUSER_MESSAGES_IDFA_ATT_CONSENT\x10\xec\x03\x12(\n#USER_MESSAGES_IDFA_ATT_CONSENT_RATE\x10\xed\x03\x12+\n&USER_MESSAGES_IDFA_ATT_DECLINE_CONSENT\x10\xee\x03\x12(\n#USER_MESSAGES_IDFA_ATT_DECLINE_RATE\x10\xef\x03\x12(\n#USER_MESSAGES_IDFA_EXPLAINERS_SHOWN\x10\xf0\x03\x12*\n%USER_MESSAGES_IDFA_IAB_MESSAGES_SHOWN\x10\xf1\x03\x12#\n\x1eUSER_MESSAGES_IDFA_NO_DECISION\x10\xf2\x03\x12*\n&USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN\x10y\x12\x32\n.USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS\x10z\x12+\n&USER_MESSAGES_POST_OFFERWALL_PAGEVIEWS\x10\xf3\x03\x12*\n%USER_MESSAGES_TOTAL_ESTIMATED_REVENUE\x10\xf4\x03\x12&\n!USER_MESSAGES_UPTC_MESSAGES_SHOWN\x10\xf5\x03\x12\x35\n0USER_MESSAGES_UPTC_PERSONALIZATION_OPT_OUT_RATIO\x10\xf6\x03\x12+\n&USER_MESSAGES_US_STATES_MESSAGES_SHOWN\x10\xea\x03\x12/\n*USER_MESSAGES_US_STATES_OPT_OUT_SELECTIONS\x10\xca\x04\x12\x1a\n\x15VIDEO_ERROR_100_COUNT\x10\xb4\x01\x12\x1a\n\x15VIDEO_ERROR_101_COUNT\x10\xb5\x01\x12\x1a\n\x15VIDEO_ERROR_102_COUNT\x10\xb6\x01\x12\x1a\n\x15VIDEO_ERROR_200_COUNT\x10\xb7\x01\x12\x1a\n\x15VIDEO_ERROR_201_COUNT\x10\xb8\x01\x12\x1a\n\x15VIDEO_ERROR_202_COUNT\x10\xb9\x01\x12\x1a\n\x15VIDEO_ERROR_203_COUNT\x10\xba\x01\x12\x1a\n\x15VIDEO_ERROR_300_COUNT\x10\xbb\x01\x12\x1a\n\x15VIDEO_ERROR_301_COUNT\x10\xbc\x01\x12\x1a\n\x15VIDEO_ERROR_302_COUNT\x10\xbd\x01\x12\x1a\n\x15VIDEO_ERROR_303_COUNT\x10\xbe\x01\x12\x1a\n\x15VIDEO_ERROR_400_COUNT\x10\xbf\x01\x12\x1a\n\x15VIDEO_ERROR_401_COUNT\x10\xc0\x01\x12\x1a\n\x15VIDEO_ERROR_402_COUNT\x10\xc1\x01\x12\x1a\n\x15VIDEO_ERROR_403_COUNT\x10\xc2\x01\x12\x1a\n\x15VIDEO_ERROR_405_COUNT\x10\xc3\x01\x12\x1a\n\x15VIDEO_ERROR_406_COUNT\x10\xc4\x01\x12\x1a\n\x15VIDEO_ERROR_407_COUNT\x10\xc5\x01\x12\x1a\n\x15VIDEO_ERROR_408_COUNT\x10\xc6\x01\x12\x1a\n\x15VIDEO_ERROR_409_COUNT\x10\xc7\x01\x12\x1a\n\x15VIDEO_ERROR_410_COUNT\x10\xc8\x01\x12\x1a\n\x15VIDEO_ERROR_500_COUNT\x10\xc9\x01\x12\x1a\n\x15VIDEO_ERROR_501_COUNT\x10\xca\x01\x12\x1a\n\x15VIDEO_ERROR_502_COUNT\x10\xcb\x01\x12\x1a\n\x15VIDEO_ERROR_503_COUNT\x10\xcc\x01\x12\x1a\n\x15VIDEO_ERROR_600_COUNT\x10\xcd\x01\x12\x1a\n\x15VIDEO_ERROR_601_COUNT\x10\xce\x01\x12\x1a\n\x15VIDEO_ERROR_602_COUNT\x10\xcf\x01\x12\x1a\n\x15VIDEO_ERROR_603_COUNT\x10\xd0\x01\x12\x1a\n\x15VIDEO_ERROR_604_COUNT\x10\xd1\x01\x12\x1a\n\x15VIDEO_ERROR_900_COUNT\x10\xd2\x01\x12\x1a\n\x15VIDEO_ERROR_901_COUNT\x10\xd3\x01\x12.\n*VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE\x10\\\x12\x1f\n\x1bVIDEO_INTERACTION_COLLAPSES\x10]\x12\x1d\n\x19VIDEO_INTERACTION_EXPANDS\x10_\x12\"\n\x1eVIDEO_INTERACTION_FULL_SCREENS\x10`\x12\x1b\n\x17VIDEO_INTERACTION_MUTES\x10\x61\x12\x1c\n\x18VIDEO_INTERACTION_PAUSES\x10\x62\x12\x1d\n\x19VIDEO_INTERACTION_RESUMES\x10\x63\x12\x1d\n\x19VIDEO_INTERACTION_REWINDS\x10\x64\x12\x1d\n\x19VIDEO_INTERACTION_UNMUTES\x10\x65\x12!\n\x1dVIDEO_INTERACTION_VIDEO_SKIPS\x10\x66\x12$\n\x1fVIDEO_MONETIZABLE_CONTENT_VIEWS\x10\xd9\x04\x12$\n\x1fVIDEO_REAL_TIME_CREATIVE_SERVES\x10\x8b\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_100_COUNT\x10\x8f\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_101_COUNT\x10\x90\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_102_COUNT\x10\x91\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_200_COUNT\x10\x92\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_201_COUNT\x10\x93\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_202_COUNT\x10\x94\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_203_COUNT\x10\x95\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_300_COUNT\x10\x96\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_301_COUNT\x10\x97\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_302_COUNT\x10\x98\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_303_COUNT\x10\x99\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_400_COUNT\x10\x9a\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_401_COUNT\x10\x9b\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_402_COUNT\x10\x9c\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_403_COUNT\x10\x9d\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_405_COUNT\x10\x9e\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_406_COUNT\x10\x9f\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_407_COUNT\x10\xa0\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_408_COUNT\x10\xa1\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_409_COUNT\x10\xa2\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_410_COUNT\x10\xa3\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_500_COUNT\x10\xa4\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_501_COUNT\x10\xa5\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_502_COUNT\x10\xa6\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_503_COUNT\x10\xa7\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_600_COUNT\x10\xa8\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_601_COUNT\x10\xa9\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_602_COUNT\x10\xaa\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_603_COUNT\x10\xab\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_604_COUNT\x10\xac\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_900_COUNT\x10\xad\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_901_COUNT\x10\xae\x01\x12 \n\x1bVIDEO_REAL_TIME_IMPRESSIONS\x10\x8a\x01\x12$\n\x1fVIDEO_REAL_TIME_MATCHED_QUERIES\x10\x8c\x01\x12&\n!VIDEO_REAL_TIME_TOTAL_ERROR_COUNT\x10\xaf\x01\x12\"\n\x1dVIDEO_REAL_TIME_TOTAL_QUERIES\x10\x8e\x01\x12&\n!VIDEO_REAL_TIME_UNMATCHED_QUERIES\x10\x8d\x01\x12-\n(VIDEO_TRUE_OPPORTUNITIES_TOTAL_BREAK_END\x10\x97\x02\x12/\n*VIDEO_TRUE_OPPORTUNITIES_TOTAL_BREAK_START\x10\x98\x02\x12@\n;VIDEO_TRUE_OPPORTUNITIES_TOTAL_CAPPED_OPPORTUNITIES_ADBREAK\x10\x99\x02\x12?\n:VIDEO_TRUE_OPPORTUNITIES_TOTAL_CAPPED_OPPORTUNITIES_SUBPOD\x10\x9a\x02\x12\x34\n/VIDEO_TRUE_OPPORTUNITIES_TOTAL_DURATION_ADBREAK\x10\x9b\x02\x12\x33\n.VIDEO_TRUE_OPPORTUNITIES_TOTAL_DURATION_SUBPOD\x10\x9c\x02\x12<\n7VIDEO_TRUE_OPPORTUNITIES_TOTAL_MATCHED_DURATION_ADBREAK\x10\x9d\x02\x12;\n6VIDEO_TRUE_OPPORTUNITIES_TOTAL_MATCHED_DURATION_SUBPOD\x10\x9e\x02\x12\x41\n\x12\x13\n\x0e\x41\x44_UNIT_STATUS\x10\xce\x01\x12\x18\n\x13\x41\x44_UNIT_STATUS_NAME\x10\xcf\x01\x12\x16\n\x11\x41GENCY_LEVEL_1_ID\x10\xb5\x04\x12\x18\n\x13\x41GENCY_LEVEL_1_NAME\x10\xb6\x04\x12\x16\n\x11\x41GENCY_LEVEL_2_ID\x10\xb7\x04\x12\x18\n\x13\x41GENCY_LEVEL_2_NAME\x10\xb8\x04\x12\x16\n\x11\x41GENCY_LEVEL_3_ID\x10\xb9\x04\x12\x18\n\x13\x41GENCY_LEVEL_3_NAME\x10\xba\x04\x12\x10\n\x0b\x41GE_BRACKET\x10\xfc\x03\x12\x15\n\x10\x41GE_BRACKET_NAME\x10\xc6\x04\x12\x1a\n\x15\x41NALYTICS_PROPERTY_ID\x10\xdd\x05\x12\x1c\n\x17\x41NALYTICS_PROPERTY_NAME\x10\xff\x05\x12-\n(APP_TRACKING_TRANSPARENCY_CONSENT_STATUS\x10\xba\x03\x12\x32\n-APP_TRACKING_TRANSPARENCY_CONSENT_STATUS_NAME\x10\xbb\x03\x12\x10\n\x0b\x41PP_VERSION\x10\x88\x03\x12\x19\n\x14\x41UCTION_PACKAGE_DEAL\x10\xc3\x04\x12\x1c\n\x17\x41UCTION_PACKAGE_DEAL_ID\x10\xbb\x04\x12\x1e\n\x19\x41UDIENCE_SEGMENT_BILLABLE\x10\xd2\x04\x12&\n!AUDIENCE_SEGMENT_DATA_PROVIDER_ID\x10\xe5\x04\x12(\n#AUDIENCE_SEGMENT_DATA_PROVIDER_NAME\x10\xe6\x04\x12!\n\x1c\x41UDIENCE_SEGMENT_ID_BILLABLE\x10\xd3\x04\x12!\n\x1c\x41UDIENCE_SEGMENT_ID_TARGETED\x10\xc8\x04\x12\x1e\n\x19\x41UDIENCE_SEGMENT_TARGETED\x10\xc9\x04\x12.\n)AUDIENCE_SEGMENT_TARGETED_AD_ID_USER_SIZE\x10\xdd\x04\x12\x34\n/AUDIENCE_SEGMENT_TARGETED_AMAZON_FIRE_USER_SIZE\x10\xde\x04\x12\x33\n.AUDIENCE_SEGMENT_TARGETED_ANDROID_TV_USER_SIZE\x10\xdf\x04\x12\x31\n,AUDIENCE_SEGMENT_TARGETED_APPLE_TV_USER_SIZE\x10\xe0\x04\x12-\n(AUDIENCE_SEGMENT_TARGETED_IDFA_USER_SIZE\x10\xe1\x04\x12\x33\n.AUDIENCE_SEGMENT_TARGETED_MOBILE_WEB_USER_SIZE\x10\xe2\x04\x12\x34\n/AUDIENCE_SEGMENT_TARGETED_PLAYSTATION_USER_SIZE\x10\xe3\x04\x12-\n(AUDIENCE_SEGMENT_TARGETED_PPID_USER_SIZE\x10\xe4\x04\x12-\n(AUDIENCE_SEGMENT_TARGETED_ROKU_USER_SIZE\x10\xe7\x04\x12\x33\n.AUDIENCE_SEGMENT_TARGETED_SAMSUNG_TV_USER_SIZE\x10\xe8\x04\x12#\n\x1e\x41UDIENCE_SEGMENT_TARGETED_SIZE\x10\xea\x04\x12%\n AUDIENCE_SEGMENT_TARGETED_STATUS\x10\xf4\x04\x12*\n%AUDIENCE_SEGMENT_TARGETED_STATUS_NAME\x10\xe9\x04\x12-\n(AUDIENCE_SEGMENT_TARGETED_XBOX_USER_SIZE\x10\xeb\x04\x12\x1b\n\x16\x41UTO_REFRESHED_TRAFFIC\x10\xa5\x03\x12 \n\x1b\x41UTO_REFRESHED_TRAFFIC_NAME\x10\xa6\x03\x12\x18\n\x13\x42IDDER_ENCRYPTED_ID\x10\xed\x03\x12\x10\n\x0b\x42IDDER_NAME\x10\xee\x03\x12\x0e\n\tBID_RANGE\x10\xa7\x05\x12\x19\n\x14\x42ID_REJECTION_REASON\x10\xd7\x04\x12\x1e\n\x19\x42ID_REJECTION_REASON_NAME\x10\xd8\x04\x12\x12\n\rBRANDING_TYPE\x10\xff\x02\x12\x17\n\x12\x42RANDING_TYPE_NAME\x10\x80\x03\x12\x14\n\x10\x42ROWSER_CATEGORY\x10w\x12\x19\n\x15\x42ROWSER_CATEGORY_NAME\x10x\x12\x0f\n\nBROWSER_ID\x10\xeb\x01\x12\x11\n\x0c\x42ROWSER_NAME\x10\xec\x01\x12\x15\n\x10\x42UYER_NETWORK_ID\x10\xc0\x03\x12\x17\n\x12\x42UYER_NETWORK_NAME\x10\xc1\x03\x12!\n\x1c\x43\x41LLOUT_STATUS_CATEGORY_NAME\x10\xcd\x04\x12\x0f\n\nCARRIER_ID\x10\xf1\x02\x12\x11\n\x0c\x43\x41RRIER_NAME\x10\xf0\x02\x12\x0c\n\x07\x43HANNEL\x10\xf5\x03\x12\x17\n\x12\x43HILD_NETWORK_CODE\x10\x9e\x04\x12\x15\n\x10\x43HILD_NETWORK_ID\x10\xa0\x04\x12\x17\n\x12\x43HILD_PARTNER_NAME\x10\x9f\x04\x12\x0c\n\x07\x43ITY_ID\x10\xcb\x03\x12\x0e\n\tCITY_NAME\x10\xc4\x03\x12\x1d\n\x18\x43LASSIFIED_ADVERTISER_ID\x10\x85\x01\x12\x1f\n\x1a\x43LASSIFIED_ADVERTISER_NAME\x10\x86\x01\x12\x18\n\x13\x43LASSIFIED_BRAND_ID\x10\xf3\x01\x12\x1a\n\x15\x43LASSIFIED_BRAND_NAME\x10\xf4\x01\x12\x16\n\x11\x43ONTENT_BUNDLE_ID\x10\xcc\x03\x12\x18\n\x13\x43ONTENT_BUNDLE_NAME\x10\xcd\x03\x12)\n$CONTENT_CMS_METADATA_KV_NAMESPACE_ID\x10\xce\x03\x12+\n&CONTENT_CMS_METADATA_KV_NAMESPACE_NAME\x10\xcf\x03\x12\x15\n\x10\x43ONTENT_CMS_NAME\x10\x83\x05\x12\x19\n\x14\x43ONTENT_CMS_VIDEO_ID\x10\x84\x05\x12\x0f\n\nCONTENT_ID\x10\xf6\x01\x12\x1d\n\x18\x43ONTENT_MAPPING_PRESENCE\x10\xdb\x05\x12\"\n\x1d\x43ONTENT_MAPPING_PRESENCE_NAME\x10\xdc\x05\x12\x11\n\x0c\x43ONTENT_NAME\x10\xf7\x01\x12\x0e\n\tCONTINENT\x10\xd5\x03\x12\x13\n\x0e\x43ONTINENT_NAME\x10\xd6\x03\x12\x11\n\x0c\x43OUNTRY_CODE\x10\xd2\x03\x12\x0e\n\nCOUNTRY_ID\x10\x0b\x12\x10\n\x0c\x43OUNTRY_NAME\x10\x0c\x12\x1a\n\x15\x43REATIVE_BILLING_TYPE\x10\xee\x02\x12\x1f\n\x1a\x43REATIVE_BILLING_TYPE_NAME\x10\xef\x02\x12\x1f\n\x1a\x43REATIVE_CLICK_THROUGH_URL\x10\xae\x01\x12\x10\n\x0b\x43REATIVE_ID\x10\x8a\x01\x12\x12\n\rCREATIVE_NAME\x10\x8b\x01\x12\x1d\n\x18\x43REATIVE_OR_CREATIVE_SET\x10\xaa\x05\x12\"\n\x1d\x43REATIVE_OR_CREATIVE_SET_NAME\x10\xab\x05\x12 \n\x1b\x43REATIVE_POLICIES_FILTERING\x10\xc7\x05\x12%\n CREATIVE_POLICIES_FILTERING_NAME\x10\xc8\x05\x12#\n\x1e\x43REATIVE_PROTECTIONS_FILTERING\x10\xc0\x05\x12(\n#CREATIVE_PROTECTIONS_FILTERING_NAME\x10\xc1\x05\x12\x1b\n\x16\x43REATIVE_SET_ROLE_TYPE\x10\xae\x05\x12 \n\x1b\x43REATIVE_SET_ROLE_TYPE_NAME\x10\xaf\x05\x12%\n CREATIVE_SSL_COMPLIANCE_OVERRIDE\x10\x90\x06\x12*\n%CREATIVE_SSL_COMPLIANCE_OVERRIDE_NAME\x10\x92\x06\x12\x1d\n\x18\x43REATIVE_SSL_SCAN_RESULT\x10\x91\x06\x12\"\n\x1d\x43REATIVE_SSL_SCAN_RESULT_NAME\x10\x93\x06\x12!\n\x1c\x43REATIVE_TARGET_AD_UNIT_SIZE\x10\x82\x06\x12\x18\n\x13\x43REATIVE_TECHNOLOGY\x10\x94\x01\x12\x1d\n\x18\x43REATIVE_TECHNOLOGY_NAME\x10\x95\x01\x12 \n\x1b\x43REATIVE_THIRD_PARTY_VENDOR\x10\xe9\x02\x12\x12\n\rCREATIVE_TYPE\x10\xd8\x02\x12\x17\n\x12\x43REATIVE_TYPE_NAME\x10\xd9\x02\x12\x17\n\x12\x43REATIVE_VENDOR_ID\x10\xc2\x05\x12\x19\n\x14\x43REATIVE_VENDOR_NAME\x10\xc3\x05\x12(\n#CREATIVE_VIDEO_REDIRECT_THIRD_PARTY\x10\xb2\x04\x12\x0f\n\nCURATOR_ID\x10\xbc\x04\x12\x11\n\x0c\x43URATOR_NAME\x10\xbd\x04\x12\x14\n\x0f\x43USTOM_EVENT_ID\x10\xe1\x05\x12\x16\n\x11\x43USTOM_EVENT_NAME\x10\xdf\x05\x12\x16\n\x11\x43USTOM_EVENT_TYPE\x10\xe0\x05\x12\x1b\n\x16\x43USTOM_EVENT_TYPE_NAME\x10\xe2\x05\x12\x13\n\x0e\x43USTOM_SPOT_ID\x10\xa7\x03\x12\x15\n\x10\x43USTOM_SPOT_NAME\x10\xa8\x03\x12\x08\n\x04\x44\x41TE\x10\x03\x12\x0f\n\x0b\x44\x41Y_OF_WEEK\x10\x04\x12\x12\n\rDEAL_BUYER_ID\x10\xf0\x01\x12\x14\n\x0f\x44\x45\x41L_BUYER_NAME\x10\xf1\x01\x12\x0c\n\x07\x44\x45\x41L_ID\x10\xb4\x03\x12\x10\n\x0b\x44\x45\x41L_ID_ALL\x10\x8d\x06\x12\x0e\n\tDEAL_NAME\x10\xb5\x03\x12\x1f\n\x1a\x44\x45\x43LARED_ADVERTISER_DOMAIN\x10\x9c\x06\x12\x1f\n\x1a\x44\x45LIVERED_SECURE_SIGNAL_ID\x10\xb5\x02\x12!\n\x1c\x44\x45LIVERED_SECURE_SIGNAL_NAME\x10\xb6\x02\x12\x12\n\x0e\x44\x45MAND_CHANNEL\x10\t\x12\x17\n\x13\x44\x45MAND_CHANNEL_NAME\x10\n\x12\x12\n\rDEMAND_SOURCE\x10\xd0\x04\x12\x16\n\x11\x44\x45MAND_SOURCE_ALL\x10\x8e\x06\x12\x17\n\x12\x44\x45MAND_SOURCE_NAME\x10\xd1\x04\x12\x15\n\x11\x44\x45MAND_SUBCHANNEL\x10\x16\x12\x1a\n\x16\x44\x45MAND_SUBCHANNEL_NAME\x10\x17\x12\x0b\n\x06\x44\x45VICE\x10\xe2\x01\x12\x13\n\x0f\x44\x45VICE_CATEGORY\x10\x0f\x12\x18\n\x14\x44\x45VICE_CATEGORY_NAME\x10\x10\x12\x1b\n\x16\x44\x45VICE_MANUFACTURER_ID\x10\x8d\x04\x12\x1d\n\x18\x44\x45VICE_MANUFACTURER_NAME\x10\x8e\x04\x12\x14\n\x0f\x44\x45VICE_MODEL_ID\x10\x8f\x04\x12\x16\n\x11\x44\x45VICE_MODEL_NAME\x10\x90\x04\x12\x14\n\x0b\x44\x45VICE_NAME\x10\xe1\x01\x1a\x02\x08\x01\x12\x10\n\x0b\x44SP_SEAT_ID\x10\xb4\x04\x12\x1c\n\x17\x44YNAMIC_ALLOCATION_TYPE\x10\xf6\x03\x12!\n\x1c\x44YNAMIC_ALLOCATION_TYPE_NAME\x10\xf7\x03\x12\x11\n\x0c\x45SP_DELIVERY\x10\xef\x04\x12\x16\n\x11\x45SP_DELIVERY_NAME\x10\xf0\x04\x12\x11\n\x0c\x45SP_PRESENCE\x10\xf1\x04\x12\x16\n\x11\x45SP_PRESENCE_NAME\x10\xf2\x04\x12\x1d\n\x18\x45XCHANGE_BIDDING_DEAL_ID\x10\xcb\x05\x12\x1f\n\x1a\x45XCHANGE_BIDDING_DEAL_TYPE\x10\xca\x05\x12$\n\x1f\x45XCHANGE_BIDDING_DEAL_TYPE_NAME\x10\xd3\x05\x12$\n\x1f\x45XCHANGE_THIRD_PARTY_COMPANY_ID\x10\xb9\x01\x12&\n!EXCHANGE_THIRD_PARTY_COMPANY_NAME\x10\xba\x01\x12\x1f\n\x1a\x46IRST_LOOK_PRICING_RULE_ID\x10\xf8\x01\x12!\n\x1c\x46IRST_LOOK_PRICING_RULE_NAME\x10\xf9\x01\x12\x1a\n\x15\x46IRST_PARTY_ID_STATUS\x10\x94\x03\x12\x1f\n\x1a\x46IRST_PARTY_ID_STATUS_NAME\x10\x95\x03\x12\x0b\n\x06GENDER\x10\xfd\x03\x12\x10\n\x0bGENDER_NAME\x10\xc7\x04\x12\x1f\n\x1aGOOGLE_ANALYTICS_STREAM_ID\x10\x87\x04\x12!\n\x1cGOOGLE_ANALYTICS_STREAM_NAME\x10\x88\x04\x12\x19\n\x14HBT_YIELD_PARTNER_ID\x10\x93\x05\x12\x1b\n\x16HBT_YIELD_PARTNER_NAME\x10\x94\x05\x12#\n\x1eHEADER_BIDDER_INTEGRATION_TYPE\x10\xce\x05\x12(\n#HEADER_BIDDER_INTEGRATION_TYPE_NAME\x10\xcf\x05\x12\x08\n\x04HOUR\x10\x64\x12\x1f\n\x1aIMPRESSION_COUNTING_METHOD\x10\xc1\x04\x12$\n\x1fIMPRESSION_COUNTING_METHOD_NAME\x10\xc2\x04\x12\x15\n\x10INTERACTION_TYPE\x10\xdf\x01\x12\x1a\n\x15INTERACTION_TYPE_NAME\x10\xe0\x01\x12\r\n\x08INTEREST\x10\xfe\x03\x12\x14\n\x10INVENTORY_FORMAT\x10\x11\x12\x19\n\x15INVENTORY_FORMAT_NAME\x10\x12\x12\"\n\x1dINVENTORY_SHARE_ASSIGNMENT_ID\x10\x88\x05\x12$\n\x1fINVENTORY_SHARE_ASSIGNMENT_NAME\x10\x89\x05\x12\x1c\n\x17INVENTORY_SHARE_OUTCOME\x10\xdb\x04\x12!\n\x1cINVENTORY_SHARE_OUTCOME_NAME\x10\xdc\x04\x12&\n!INVENTORY_SHARE_PARTNER_AD_SERVER\x10\x8c\x05\x12+\n&INVENTORY_SHARE_PARTNER_AD_SERVER_NAME\x10\x8d\x05\x12)\n$INVENTORY_SHARE_TARGET_SHARE_PERCENT\x10\x8e\x05\x12\x19\n\x14INVENTORY_SHARE_TYPE\x10\x8a\x05\x12\x1e\n\x19INVENTORY_SHARE_TYPE_NAME\x10\x8b\x05\x12\x12\n\x0eINVENTORY_TYPE\x10\x13\x12\x17\n\x13INVENTORY_TYPE_NAME\x10\x14\x12\x12\n\rIS_ADX_DIRECT\x10\xfe\x02\x12\x19\n\x14IS_CURATION_TARGETED\x10\xbe\x04\x12\x0f\n\nIS_DROPPED\x10\xd0\x03\x12\x17\n\x12IS_FIRST_LOOK_DEAL\x10\x91\x03\x12\x12\n\rKEY_VALUES_ID\x10\xd6\x01\x12\x14\n\x0fKEY_VALUES_NAME\x10\xd7\x01\x12\x13\n\x0eKEY_VALUES_SET\x10\xc9\x05\x12\x18\n\x13LANDING_PAGE_DOMAIN\x10\xf2\x01\x12\x15\n\x10LINE_ITEM_AGENCY\x10\x97\x05\x12\x17\n\x12LINE_ITEM_ARCHIVED\x10\xbc\x01\x12(\n#LINE_ITEM_AVERAGE_NUMBER_OF_VIEWERS\x10\xb6\x05\x12(\n#LINE_ITEM_COMPANION_DELIVERY_OPTION\x10\xcc\x01\x12-\n(LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME\x10\xcd\x01\x12\x1e\n\x19LINE_ITEM_COMPUTED_STATUS\x10\xfa\x01\x12#\n\x1eLINE_ITEM_COMPUTED_STATUS_NAME\x10\xfb\x01\x12!\n\x1dLINE_ITEM_CONTRACTED_QUANTITY\x10\\\x12\x1b\n\x17LINE_ITEM_COST_PER_UNIT\x10U\x12\x18\n\x13LINE_ITEM_COST_TYPE\x10\xd4\x01\x12\x1d\n\x18LINE_ITEM_COST_TYPE_NAME\x10\xd5\x01\x12 \n\x1bLINE_ITEM_CREATIVE_END_DATE\x10\xb0\x01\x12%\n LINE_ITEM_CREATIVE_ROTATION_TYPE\x10\xbd\x01\x12*\n%LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME\x10\xbe\x01\x12\"\n\x1dLINE_ITEM_CREATIVE_START_DATE\x10\xaf\x01\x12\x1c\n\x17LINE_ITEM_CURRENCY_CODE\x10\xb4\x01\x12 \n\x1cLINE_ITEM_DELIVERY_INDICATOR\x10W\x12!\n\x1cLINE_ITEM_DELIVERY_RATE_TYPE\x10\xbf\x01\x12&\n!LINE_ITEM_DELIVERY_RATE_TYPE_NAME\x10\xc0\x01\x12 \n\x1bLINE_ITEM_DISCOUNT_ABSOLUTE\x10\xc3\x01\x12\"\n\x1dLINE_ITEM_DISCOUNT_PERCENTAGE\x10\xc4\x01\x12\x16\n\x12LINE_ITEM_END_DATE\x10Q\x12\x1b\n\x17LINE_ITEM_END_DATE_TIME\x10S\x12\x1f\n\x1aLINE_ITEM_ENVIRONMENT_TYPE\x10\xc9\x01\x12$\n\x1fLINE_ITEM_ENVIRONMENT_TYPE_NAME\x10\xca\x01\x12\x1e\n\x1aLINE_ITEM_EXTERNAL_DEAL_ID\x10\x61\x12\x19\n\x15LINE_ITEM_EXTERNAL_ID\x10V\x12\x1c\n\x17LINE_ITEM_FREQUENCY_CAP\x10\x80\x02\x12\x10\n\x0cLINE_ITEM_ID\x10\x01\x12\x15\n\x10LINE_ITEM_LABELS\x10\x9b\x05\x12\x18\n\x13LINE_ITEM_LABEL_IDS\x10\x99\x05\x12#\n\x1eLINE_ITEM_LAST_MODIFIED_BY_APP\x10\xb5\x01\x12\x1d\n\x19LINE_ITEM_LIFETIME_CLICKS\x10_\x12\"\n\x1eLINE_ITEM_LIFETIME_IMPRESSIONS\x10^\x12+\n\'LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS\x10`\x12\x16\n\x12LINE_ITEM_MAKEGOOD\x10Y\x12\x12\n\x0eLINE_ITEM_NAME\x10\x02\x12$\n LINE_ITEM_NON_CPD_BOOKED_REVENUE\x10\x62\x12\x19\n\x15LINE_ITEM_OPTIMIZABLE\x10Z\x12\x18\n\x13LINE_ITEM_PO_NUMBER\x10\x9d\x05\x12 \n\x1bLINE_ITEM_PRIMARY_GOAL_TYPE\x10\xd2\x01\x12%\n LINE_ITEM_PRIMARY_GOAL_TYPE_NAME\x10\xd3\x01\x12)\n%LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE\x10]\x12,\n\'LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE\x10\x8c\x03\x12%\n LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE\x10\xd0\x01\x12*\n%LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME\x10\xd1\x01\x12\x16\n\x12LINE_ITEM_PRIORITY\x10\x18\x12!\n\x1cLINE_ITEM_RESERVATION_STATUS\x10\xb0\x02\x12&\n!LINE_ITEM_RESERVATION_STATUS_NAME\x10\xb1\x02\x12\x1a\n\x15LINE_ITEM_SALESPERSON\x10\x9f\x05\x12$\n\x1fLINE_ITEM_SECONDARY_SALESPEOPLE\x10\xa1\x05\x12$\n\x1fLINE_ITEM_SECONDARY_TRAFFICKERS\x10\xa3\x05\x12\x18\n\x14LINE_ITEM_START_DATE\x10R\x12\x1d\n\x19LINE_ITEM_START_DATE_TIME\x10T\x12\x19\n\x14LINE_ITEM_TRAFFICKER\x10\xa5\x05\x12\x13\n\x0eLINE_ITEM_TYPE\x10\xc1\x01\x12\x18\n\x13LINE_ITEM_TYPE_NAME\x10\xc2\x01\x12\x1c\n\x17LINE_ITEM_UNLIMITED_END\x10\xbb\x01\x12!\n\x1dLINE_ITEM_VALUE_COST_PER_UNIT\x10X\x12 \n\x1bLINE_ITEM_WEB_PROPERTY_CODE\x10\xb3\x01\x12!\n\x1cMASTER_COMPANION_CREATIVE_ID\x10\x8c\x01\x12#\n\x1eMASTER_COMPANION_CREATIVE_NAME\x10\x8d\x01\x12\x13\n\x0eMEDIATION_TYPE\x10\xbd\x05\x12\x18\n\x13MEDIATION_TYPE_NAME\x10\xf2\x05\x12\x1f\n\x1aMEDIATION_YIELD_PARTNER_ID\x10\x95\x05\x12!\n\x1cMEDIATION_YIELD_PARTNER_NAME\x10\x96\x05\x12\r\n\x08METRO_ID\x10\xc5\x03\x12\x0f\n\nMETRO_NAME\x10\xc6\x03\x12\x14\n\x0fMOBILE_APP_FREE\x10\x80\x01\x12\x18\n\x13MOBILE_APP_ICON_URL\x10\x81\x01\x12\x11\n\rMOBILE_APP_ID\x10{\x12\x13\n\x0fMOBILE_APP_NAME\x10\x7f\x12 \n\x1bMOBILE_APP_OWNERSHIP_STATUS\x10\xb7\x02\x12%\n MOBILE_APP_OWNERSHIP_STATUS_NAME\x10\xb8\x02\x12\x14\n\x10MOBILE_APP_STORE\x10}\x12\x1a\n\x15MOBILE_APP_STORE_NAME\x10\xf5\x01\x12\x19\n\x15MOBILE_INVENTORY_TYPE\x10\x63\x12\x1e\n\x1aMOBILE_INVENTORY_TYPE_NAME\x10\x15\x12\x19\n\x14MOBILE_RENDERING_SDK\x10\x86\x05\x12\x1e\n\x19MOBILE_RENDERING_SDK_NAME\x10\x87\x05\x12\x1d\n\x18MOBILE_SDK_MAJOR_VERSION\x10\xb4\x05\x12\x1d\n\x18MOBILE_SDK_MINOR_VERSION\x10\xb5\x05\x12\x1c\n\x17MOBILE_SDK_VERSION_NAME\x10\x82\x01\x12\x0e\n\nMONTH_YEAR\x10\x06\x12\x18\n\x13NATIVE_AD_FORMAT_ID\x10\xff\x01\x12\x1a\n\x15NATIVE_AD_FORMAT_NAME\x10\xfe\x01\x12\x14\n\x0fNATIVE_STYLE_ID\x10\xfd\x01\x12\x16\n\x11NATIVE_STYLE_NAME\x10\xfc\x01\x12\x19\n\x14NIELSEN_DEMOGRAPHICS\x10\xb7\x05\x12\x1e\n\x19NIELSEN_DEMOGRAPHICS_NAME\x10\x80\x06\x12\x13\n\x0eNIELSEN_DEVICE\x10\xb8\x05\x12\x18\n\x13NIELSEN_DEVICE_NAME\x10\xb9\x05\x12\x16\n\x11NIELSEN_IN_TARGET\x10\x81\x06\x12\x1d\n\x18NIELSEN_RESTATEMENT_DATE\x10\xba\x05\x12\x14\n\x0fNIELSEN_SEGMENT\x10\xbb\x05\x12\x15\n\x10NIELSEN_SITE_URL\x10\xbc\x05\x12!\n\x1cNO_FILL_REASON_CATEGORY_NAME\x10\xcb\x04\x12\x13\n\x0eNUM_ADS_IN_POD\x10\xa4\x06\x12\x1d\n\x19OPERATING_SYSTEM_CATEGORY\x10u\x12\"\n\x1eOPERATING_SYSTEM_CATEGORY_NAME\x10v\x12 \n\x1bOPERATING_SYSTEM_VERSION_ID\x10\xee\x01\x12\"\n\x1dOPERATING_SYSTEM_VERSION_NAME\x10\xed\x01\x12\x16\n\x11OPTIMIZATION_TYPE\x10\xff\x04\x12\x1b\n\x16OPTIMIZATION_TYPE_NAME\x10\x80\x05\x12\x11\n\x0cORDER_AGENCY\x10\x96\x01\x12\x14\n\x0fORDER_AGENCY_ID\x10\x97\x01\x12\x15\n\x10ORDER_BOOKED_CPC\x10\x98\x01\x12\x15\n\x10ORDER_BOOKED_CPM\x10\x99\x01\x12\x1a\n\x15ORDER_DELIVERY_STATUS\x10\xe7\x01\x12\x1f\n\x1aORDER_DELIVERY_STATUS_NAME\x10\xef\x01\x12\x13\n\x0eORDER_END_DATE\x10\x9a\x01\x12\x18\n\x13ORDER_END_DATE_TIME\x10\x9b\x01\x12\x16\n\x11ORDER_EXTERNAL_ID\x10\x9c\x01\x12\x0c\n\x08ORDER_ID\x10\x07\x12\x11\n\x0cORDER_LABELS\x10\xaa\x01\x12\x14\n\x0fORDER_LABEL_IDS\x10\xab\x01\x12\x1a\n\x15ORDER_LIFETIME_CLICKS\x10\x9e\x01\x12\x1f\n\x1aORDER_LIFETIME_IMPRESSIONS\x10\x9f\x01\x12\x0e\n\nORDER_NAME\x10\x08\x12\x14\n\x0fORDER_PO_NUMBER\x10\xa0\x01\x12\x17\n\x12ORDER_PROGRAMMATIC\x10\x9d\x01\x12\x16\n\x11ORDER_SALESPERSON\x10\xa1\x01\x12\x19\n\x14ORDER_SALESPERSON_ID\x10\xf5\x04\x12 \n\x1bORDER_SECONDARY_SALESPEOPLE\x10\xa4\x01\x12#\n\x1eORDER_SECONDARY_SALESPEOPLE_ID\x10\xa5\x01\x12 \n\x1bORDER_SECONDARY_TRAFFICKERS\x10\xa6\x01\x12#\n\x1eORDER_SECONDARY_TRAFFICKERS_ID\x10\xa7\x01\x12\x15\n\x10ORDER_START_DATE\x10\xa8\x01\x12\x1a\n\x15ORDER_START_DATE_TIME\x10\xa9\x01\x12\x15\n\x10ORDER_TRAFFICKER\x10\xa2\x01\x12\x18\n\x13ORDER_TRAFFICKER_ID\x10\xa3\x01\x12\x18\n\x13ORDER_UNLIMITED_END\x10\xcb\x01\x12\x0e\n\tPAGE_PATH\x10\xff\x03\x12 \n\x1bPAGE_TITLE_AND_SCREEN_CLASS\x10\x80\x04\x12\x1f\n\x1aPAGE_TITLE_AND_SCREEN_NAME\x10\x81\x04\x12%\n PARTNER_MANAGEMENT_ASSIGNMENT_ID\x10\x91\x05\x12\'\n\"PARTNER_MANAGEMENT_ASSIGNMENT_NAME\x10\x92\x05\x12\"\n\x1dPARTNER_MANAGEMENT_PARTNER_ID\x10\x8f\x05\x12$\n\x1fPARTNER_MANAGEMENT_PARTNER_NAME\x10\x90\x05\x12\x10\n\x0cPLACEMENT_ID\x10q\x12\x15\n\x10PLACEMENT_ID_ALL\x10\x90\x01\x12\x12\n\x0ePLACEMENT_NAME\x10r\x12\x17\n\x12PLACEMENT_NAME_ALL\x10\x91\x01\x12\x15\n\x10PLACEMENT_STATUS\x10\xea\x02\x12\x1a\n\x15PLACEMENT_STATUS_NAME\x10\xec\x02\x12\x1e\n\x19PLACEMENT_STATUS_NAME_ALL\x10\xed\x02\x12\x13\n\x0ePOSTAL_CODE_ID\x10\xc7\x03\x12\x15\n\x10POSTAL_CODE_NAME\x10\xc8\x03\x12\x10\n\x0bPPID_STATUS\x10\x96\x03\x12\x15\n\x10PPID_STATUS_NAME\x10\x97\x03\x12!\n\x1cPREDICTED_VIEWABILITY_BUCKET\x10\xf9\x04\x12&\n!PREDICTED_VIEWABILITY_BUCKET_NAME\x10\xfa\x04\x12\x1f\n\x1aPRESENTED_SECURE_SIGNAL_ID\x10\xef\x03\x12!\n\x1cPRESENTED_SECURE_SIGNAL_NAME\x10\xf0\x03\x12\x14\n\x0fPRICING_RULE_ID\x10\x89\x03\x12\x16\n\x11PRICING_RULE_NAME\x10\x8a\x03\x12$\n\x1fPRIMARY_PERSONALIZATION_ID_TYPE\x10\x98\x03\x12)\n$PRIMARY_PERSONALIZATION_ID_TYPE_NAME\x10\x99\x03\x12\x18\n\x14PROGRAMMATIC_CHANNEL\x10\r\x12\x1d\n\x19PROGRAMMATIC_CHANNEL_NAME\x10\x0e\x12\x38\n3PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_EXTERNAL_CODE\x10\x9a\x03\x12.\n)PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_IDS\x10\xa2\x04\x12/\n*PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_NAME\x10\x9c\x03\x12/\n*PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TIER\x10\x9d\x03\x12/\n*PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TYPE\x10\x9e\x03\x12\x37\n2PUBLISHER_PROVIDED_SIGNALS_DELIVERED_EXTERNAL_CODE\x10\xa9\x03\x12-\n(PUBLISHER_PROVIDED_SIGNALS_DELIVERED_IDS\x10\xa1\x04\x12.\n)PUBLISHER_PROVIDED_SIGNALS_DELIVERED_NAME\x10\xab\x03\x12.\n)PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TIER\x10\xac\x03\x12.\n)PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TYPE\x10\xad\x03\x12\x37\n2PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_EXTERNAL_CODE\x10\x9f\x03\x12,\n\'PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_ID\x10\xa0\x03\x12.\n)PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_NAME\x10\xa1\x03\x12.\n)PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TIER\x10\xa2\x03\x12.\n)PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TYPE\x10\xa3\x03\x12/\n*PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_ID\x10\x88\x01\x12\x31\n,PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_NAME\x10\x89\x01\x12\x0e\n\tREGION_ID\x10\xc9\x03\x12\x10\n\x0bREGION_NAME\x10\xca\x03\x12\"\n\x1dREJECTION_CLASS_CATEGORY_NAME\x10\xcf\x04\x12\x1b\n\x16RENDERED_CREATIVE_SIZE\x10\xd7\x02\x12\x17\n\x12REQUESTED_AD_SIZES\x10\xe0\x02\x12#\n\x1eREQUESTED_CREATIVE_ORIENTATION\x10\xbc\x06\x12(\n#REQUESTED_CREATIVE_ORIENTATION_NAME\x10\xbd\x06\x12\x11\n\x0cREQUEST_TYPE\x10\x92\x01\x12\x16\n\x11REQUEST_TYPE_NAME\x10\x93\x01\x12\x1c\n\x17REVENUE_VERIFICATION_ID\x10\x85\x05\x12$\n\x1fSERVER_SIDE_UNWRAPPING_ELIGIBLE\x10\xd5\x04\x12\x18\n\x13SERVING_RESTRICTION\x10\xf7\x04\x12\x1d\n\x18SERVING_RESTRICTION_NAME\x10\xf8\x04\x12\t\n\x04SITE\x10\x83\x03\x12\x11\n\x0cTARGETING_ID\x10\xe8\x01\x12\x13\n\x0eTARGETING_NAME\x10\xe9\x01\x12\x13\n\x0eTARGETING_TYPE\x10\x81\x03\x12\x18\n\x13TARGETING_TYPE_NAME\x10\x82\x03\x12#\n\x1eTARGETS_CUSTOMER_MATCHING_LIST\x10\x95\x06\x12\x1a\n\x15THIRD_PARTY_ID_STATUS\x10\x92\x03\x12\x1f\n\x1aTHIRD_PARTY_ID_STATUS_NAME\x10\x93\x03\x12\x12\n\rTOPICS_STATUS\x10\xf8\x03\x12\x17\n\x12TOPICS_STATUS_NAME\x10\xf9\x03\x12\x17\n\x12TOP_PRIVATE_DOMAIN\x10\xbc\x03\x12\x13\n\x0eTRAFFIC_SOURCE\x10\x84\x03\x12\x18\n\x13TRAFFIC_SOURCE_NAME\x10\x85\x03\x12\x08\n\x03URL\x10\xfa\x03\x12\x0b\n\x06URL_ID\x10\xfb\x03\x12\x19\n\x14USER_MESSAGES_CHOICE\x10\xbe\x05\x12\x1e\n\x19USER_MESSAGES_CHOICE_NAME\x10\xbf\x05\x12%\n USER_MESSAGES_ENTITLEMENT_SOURCE\x10\xfb\x04\x12*\n%USER_MESSAGES_ENTITLEMENT_SOURCE_NAME\x10\xfc\x04\x12/\n*USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_ID\x10\xfd\x04\x12\x31\n,USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_NAME\x10\xfe\x04\x12\x11\n\x0cVAST_VERSION\x10\xaa\x04\x12\x16\n\x11VAST_VERSION_NAME\x10\xab\x04\x12\x18\n\x13VIDEO_AD_BREAK_TYPE\x10\xac\x04\x12\x1d\n\x18VIDEO_AD_BREAK_TYPE_NAME\x10\xad\x04\x12\x16\n\x11VIDEO_AD_DURATION\x10\xc2\x03\x12\x1a\n\x15VIDEO_AD_FORMATS_RULE\x10\xb1\x04\x12\x1d\n\x18VIDEO_AD_FORMATS_RULE_ID\x10\xb0\x04\x12\x1e\n\x19VIDEO_AD_REQUEST_DURATION\x10\xae\x04\x12,\n\'VIDEO_AD_REQUEST_DURATION_MIDPOINT_NAME\x10\xef\x05\x12#\n\x1eVIDEO_AD_REQUEST_DURATION_NAME\x10\xaf\x04\x12\x1c\n\x17VIDEO_AD_REQUEST_SOURCE\x10\xb6\x03\x12!\n\x1cVIDEO_AD_REQUEST_SOURCE_NAME\x10\xb7\x03\x12\x12\n\rVIDEO_AD_TYPE\x10\xb0\x03\x12\x17\n\x12VIDEO_AD_TYPE_NAME\x10\xb1\x03\x12\x1f\n\x1aVIDEO_CONTINUOUS_PLAY_TYPE\x10\xd1\x05\x12$\n\x1fVIDEO_CONTINUOUS_PLAY_TYPE_NAME\x10\xd2\x05\x12\x1c\n\x17VIDEO_FALLBACK_POSITION\x10\x92\x04\x12.\n)VIDEO_LIVE_STREAM_EVENT_AD_BREAK_DURATION\x10\xa3\x04\x12(\n#VIDEO_LIVE_STREAM_EVENT_AD_BREAK_ID\x10\xa4\x04\x12*\n%VIDEO_LIVE_STREAM_EVENT_AD_BREAK_NAME\x10\xa5\x04\x12*\n%VIDEO_LIVE_STREAM_EVENT_AD_BREAK_TIME\x10\xa6\x04\x12\x1f\n\x1aVIDEO_LIVE_STREAM_EVENT_ID\x10\xa7\x04\x12!\n\x1cVIDEO_LIVE_STREAM_EVENT_NAME\x10\xa8\x04\x12\x1d\n\x18VIDEO_MEASUREMENT_SOURCE\x10\xd9\x04\x12\"\n\x1dVIDEO_MEASUREMENT_SOURCE_NAME\x10\xda\x04\x12\x10\n\x0bVIDEO_PLCMT\x10\xac\x01\x12\x15\n\x10VIDEO_PLCMT_NAME\x10\xad\x01\x12\x1a\n\x15VIDEO_POSITION_IN_POD\x10\x9a\x04\x12\x1a\n\x15VIDEO_POSITION_OF_POD\x10\x9b\x04\x12\x16\n\x11VIDEO_SDK_VERSION\x10\xb8\x03\x12\x1b\n\x16VIDEO_SDK_VERSION_NAME\x10\xb9\x03\x12\x18\n\x13VIDEO_STITCHER_TYPE\x10\xf0\x05\x12\x1d\n\x18VIDEO_STITCHER_TYPE_NAME\x10\xf1\x05\x12\x16\n\x11WEB_PROPERTY_CODE\x10\xda\x05\x12\x08\n\x04WEEK\x10\x05\x12\x1b\n\x16YIELD_GROUP_BUYER_NAME\x10\xb8\x01\x12\x1f\n\x1aYIELD_GROUP_BUYER_TAG_NAME\x10\xf3\x04\x12\x13\n\x0eYIELD_GROUP_ID\x10\xb6\x01\x12\x15\n\x10YIELD_GROUP_NAME\x10\xb7\x01\x12\x1f\n\x1aYOUTUBE_AD_DURATION_BUCKET\x10\xae\x03\x12$\n\x1fYOUTUBE_AD_DURATION_BUCKET_NAME\x10\xaf\x03\x12\x14\n\x0fYOUTUBE_AD_TYPE\x10\x8f\x03\x12\x19\n\x14YOUTUBE_AD_TYPE_NAME\x10\x90\x03\x12\'\n\"LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID\x10\x90N\x12\'\n\"LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID\x10\x91N\x12\'\n\"LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID\x10\x92N\x12\'\n\"LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID\x10\x93N\x12\'\n\"LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID\x10\x94N\x12\'\n\"LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID\x10\x95N\x12\'\n\"LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID\x10\x96N\x12\'\n\"LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID\x10\x97N\x12\'\n\"LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID\x10\x98N\x12\'\n\"LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID\x10\x99N\x12(\n#LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID\x10\x9aN\x12(\n#LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID\x10\x9bN\x12(\n#LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID\x10\x9cN\x12(\n#LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID\x10\x9dN\x12(\n#LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID\x10\x9eN\x12#\n\x1eLINE_ITEM_CUSTOM_FIELD_0_VALUE\x10\xf8U\x12#\n\x1eLINE_ITEM_CUSTOM_FIELD_1_VALUE\x10\xf9U\x12#\n\x1eLINE_ITEM_CUSTOM_FIELD_2_VALUE\x10\xfaU\x12#\n\x1eLINE_ITEM_CUSTOM_FIELD_3_VALUE\x10\xfbU\x12#\n\x1eLINE_ITEM_CUSTOM_FIELD_4_VALUE\x10\xfcU\x12#\n\x1eLINE_ITEM_CUSTOM_FIELD_5_VALUE\x10\xfdU\x12#\n\x1eLINE_ITEM_CUSTOM_FIELD_6_VALUE\x10\xfeU\x12#\n\x1eLINE_ITEM_CUSTOM_FIELD_7_VALUE\x10\xffU\x12#\n\x1eLINE_ITEM_CUSTOM_FIELD_8_VALUE\x10\x80V\x12#\n\x1eLINE_ITEM_CUSTOM_FIELD_9_VALUE\x10\x81V\x12$\n\x1fLINE_ITEM_CUSTOM_FIELD_10_VALUE\x10\x82V\x12$\n\x1fLINE_ITEM_CUSTOM_FIELD_11_VALUE\x10\x83V\x12$\n\x1fLINE_ITEM_CUSTOM_FIELD_12_VALUE\x10\x84V\x12$\n\x1fLINE_ITEM_CUSTOM_FIELD_13_VALUE\x10\x85V\x12$\n\x1fLINE_ITEM_CUSTOM_FIELD_14_VALUE\x10\x86V\x12*\n%LINE_ITEM_CUSTOM_FIELD_0_VALUE_DOUBLE\x10\x87V\x12*\n%LINE_ITEM_CUSTOM_FIELD_1_VALUE_DOUBLE\x10\x88V\x12*\n%LINE_ITEM_CUSTOM_FIELD_2_VALUE_DOUBLE\x10\x89V\x12*\n%LINE_ITEM_CUSTOM_FIELD_3_VALUE_DOUBLE\x10\x8aV\x12*\n%LINE_ITEM_CUSTOM_FIELD_4_VALUE_DOUBLE\x10\x8bV\x12*\n%LINE_ITEM_CUSTOM_FIELD_5_VALUE_DOUBLE\x10\x8cV\x12*\n%LINE_ITEM_CUSTOM_FIELD_6_VALUE_DOUBLE\x10\x8dV\x12*\n%LINE_ITEM_CUSTOM_FIELD_7_VALUE_DOUBLE\x10\x8eV\x12*\n%LINE_ITEM_CUSTOM_FIELD_8_VALUE_DOUBLE\x10\x8fV\x12*\n%LINE_ITEM_CUSTOM_FIELD_9_VALUE_DOUBLE\x10\x90V\x12+\n&LINE_ITEM_CUSTOM_FIELD_10_VALUE_DOUBLE\x10\x91V\x12+\n&LINE_ITEM_CUSTOM_FIELD_11_VALUE_DOUBLE\x10\x92V\x12+\n&LINE_ITEM_CUSTOM_FIELD_12_VALUE_DOUBLE\x10\x93V\x12+\n&LINE_ITEM_CUSTOM_FIELD_13_VALUE_DOUBLE\x10\x94V\x12+\n&LINE_ITEM_CUSTOM_FIELD_14_VALUE_DOUBLE\x10\x95V\x12(\n#LINE_ITEM_CUSTOM_FIELD_0_VALUE_BOOL\x10\x96V\x12(\n#LINE_ITEM_CUSTOM_FIELD_1_VALUE_BOOL\x10\x97V\x12(\n#LINE_ITEM_CUSTOM_FIELD_2_VALUE_BOOL\x10\x98V\x12(\n#LINE_ITEM_CUSTOM_FIELD_3_VALUE_BOOL\x10\x99V\x12(\n#LINE_ITEM_CUSTOM_FIELD_4_VALUE_BOOL\x10\x9aV\x12(\n#LINE_ITEM_CUSTOM_FIELD_5_VALUE_BOOL\x10\x9bV\x12(\n#LINE_ITEM_CUSTOM_FIELD_6_VALUE_BOOL\x10\x9cV\x12(\n#LINE_ITEM_CUSTOM_FIELD_7_VALUE_BOOL\x10\x9dV\x12(\n#LINE_ITEM_CUSTOM_FIELD_8_VALUE_BOOL\x10\x9eV\x12(\n#LINE_ITEM_CUSTOM_FIELD_9_VALUE_BOOL\x10\x9fV\x12)\n$LINE_ITEM_CUSTOM_FIELD_10_VALUE_BOOL\x10\xa0V\x12)\n$LINE_ITEM_CUSTOM_FIELD_11_VALUE_BOOL\x10\xa1V\x12)\n$LINE_ITEM_CUSTOM_FIELD_12_VALUE_BOOL\x10\xa2V\x12)\n$LINE_ITEM_CUSTOM_FIELD_13_VALUE_BOOL\x10\xa3V\x12)\n$LINE_ITEM_CUSTOM_FIELD_14_VALUE_BOOL\x10\xa4V\x12#\n\x1eORDER_CUSTOM_FIELD_0_OPTION_ID\x10\xe0]\x12#\n\x1eORDER_CUSTOM_FIELD_1_OPTION_ID\x10\xe1]\x12#\n\x1eORDER_CUSTOM_FIELD_2_OPTION_ID\x10\xe2]\x12#\n\x1eORDER_CUSTOM_FIELD_3_OPTION_ID\x10\xe3]\x12#\n\x1eORDER_CUSTOM_FIELD_4_OPTION_ID\x10\xe4]\x12#\n\x1eORDER_CUSTOM_FIELD_5_OPTION_ID\x10\xe5]\x12#\n\x1eORDER_CUSTOM_FIELD_6_OPTION_ID\x10\xe6]\x12#\n\x1eORDER_CUSTOM_FIELD_7_OPTION_ID\x10\xe7]\x12#\n\x1eORDER_CUSTOM_FIELD_8_OPTION_ID\x10\xe8]\x12#\n\x1eORDER_CUSTOM_FIELD_9_OPTION_ID\x10\xe9]\x12$\n\x1fORDER_CUSTOM_FIELD_10_OPTION_ID\x10\xea]\x12$\n\x1fORDER_CUSTOM_FIELD_11_OPTION_ID\x10\xeb]\x12$\n\x1fORDER_CUSTOM_FIELD_12_OPTION_ID\x10\xec]\x12$\n\x1fORDER_CUSTOM_FIELD_13_OPTION_ID\x10\xed]\x12$\n\x1fORDER_CUSTOM_FIELD_14_OPTION_ID\x10\xee]\x12\x1f\n\x1aORDER_CUSTOM_FIELD_0_VALUE\x10\xc8\x65\x12\x1f\n\x1aORDER_CUSTOM_FIELD_1_VALUE\x10\xc9\x65\x12\x1f\n\x1aORDER_CUSTOM_FIELD_2_VALUE\x10\xca\x65\x12\x1f\n\x1aORDER_CUSTOM_FIELD_3_VALUE\x10\xcb\x65\x12\x1f\n\x1aORDER_CUSTOM_FIELD_4_VALUE\x10\xcc\x65\x12\x1f\n\x1aORDER_CUSTOM_FIELD_5_VALUE\x10\xcd\x65\x12\x1f\n\x1aORDER_CUSTOM_FIELD_6_VALUE\x10\xce\x65\x12\x1f\n\x1aORDER_CUSTOM_FIELD_7_VALUE\x10\xcf\x65\x12\x1f\n\x1aORDER_CUSTOM_FIELD_8_VALUE\x10\xd0\x65\x12\x1f\n\x1aORDER_CUSTOM_FIELD_9_VALUE\x10\xd1\x65\x12 \n\x1bORDER_CUSTOM_FIELD_10_VALUE\x10\xd2\x65\x12 \n\x1bORDER_CUSTOM_FIELD_11_VALUE\x10\xd3\x65\x12 \n\x1bORDER_CUSTOM_FIELD_12_VALUE\x10\xd4\x65\x12 \n\x1bORDER_CUSTOM_FIELD_13_VALUE\x10\xd5\x65\x12 \n\x1bORDER_CUSTOM_FIELD_14_VALUE\x10\xd6\x65\x12&\n!ORDER_CUSTOM_FIELD_0_VALUE_DOUBLE\x10\xd7\x65\x12&\n!ORDER_CUSTOM_FIELD_1_VALUE_DOUBLE\x10\xd8\x65\x12&\n!ORDER_CUSTOM_FIELD_2_VALUE_DOUBLE\x10\xd9\x65\x12&\n!ORDER_CUSTOM_FIELD_3_VALUE_DOUBLE\x10\xda\x65\x12&\n!ORDER_CUSTOM_FIELD_4_VALUE_DOUBLE\x10\xdb\x65\x12&\n!ORDER_CUSTOM_FIELD_5_VALUE_DOUBLE\x10\xdc\x65\x12&\n!ORDER_CUSTOM_FIELD_6_VALUE_DOUBLE\x10\xdd\x65\x12&\n!ORDER_CUSTOM_FIELD_7_VALUE_DOUBLE\x10\xde\x65\x12&\n!ORDER_CUSTOM_FIELD_8_VALUE_DOUBLE\x10\xdf\x65\x12&\n!ORDER_CUSTOM_FIELD_9_VALUE_DOUBLE\x10\xe0\x65\x12\'\n\"ORDER_CUSTOM_FIELD_10_VALUE_DOUBLE\x10\xe1\x65\x12\'\n\"ORDER_CUSTOM_FIELD_11_VALUE_DOUBLE\x10\xe2\x65\x12\'\n\"ORDER_CUSTOM_FIELD_12_VALUE_DOUBLE\x10\xe3\x65\x12\'\n\"ORDER_CUSTOM_FIELD_13_VALUE_DOUBLE\x10\xe4\x65\x12\'\n\"ORDER_CUSTOM_FIELD_14_VALUE_DOUBLE\x10\xe5\x65\x12$\n\x1fORDER_CUSTOM_FIELD_0_VALUE_BOOL\x10\xe6\x65\x12$\n\x1fORDER_CUSTOM_FIELD_1_VALUE_BOOL\x10\xe7\x65\x12$\n\x1fORDER_CUSTOM_FIELD_2_VALUE_BOOL\x10\xe8\x65\x12$\n\x1fORDER_CUSTOM_FIELD_3_VALUE_BOOL\x10\xe9\x65\x12$\n\x1fORDER_CUSTOM_FIELD_4_VALUE_BOOL\x10\xea\x65\x12$\n\x1fORDER_CUSTOM_FIELD_5_VALUE_BOOL\x10\xeb\x65\x12$\n\x1fORDER_CUSTOM_FIELD_6_VALUE_BOOL\x10\xec\x65\x12$\n\x1fORDER_CUSTOM_FIELD_7_VALUE_BOOL\x10\xed\x65\x12$\n\x1fORDER_CUSTOM_FIELD_8_VALUE_BOOL\x10\xee\x65\x12$\n\x1fORDER_CUSTOM_FIELD_9_VALUE_BOOL\x10\xef\x65\x12%\n ORDER_CUSTOM_FIELD_10_VALUE_BOOL\x10\xf0\x65\x12%\n ORDER_CUSTOM_FIELD_11_VALUE_BOOL\x10\xf1\x65\x12%\n ORDER_CUSTOM_FIELD_12_VALUE_BOOL\x10\xf2\x65\x12%\n ORDER_CUSTOM_FIELD_13_VALUE_BOOL\x10\xf3\x65\x12%\n ORDER_CUSTOM_FIELD_14_VALUE_BOOL\x10\xf4\x65\x12&\n!CREATIVE_CUSTOM_FIELD_0_OPTION_ID\x10\xb0m\x12&\n!CREATIVE_CUSTOM_FIELD_1_OPTION_ID\x10\xb1m\x12&\n!CREATIVE_CUSTOM_FIELD_2_OPTION_ID\x10\xb2m\x12&\n!CREATIVE_CUSTOM_FIELD_3_OPTION_ID\x10\xb3m\x12&\n!CREATIVE_CUSTOM_FIELD_4_OPTION_ID\x10\xb4m\x12&\n!CREATIVE_CUSTOM_FIELD_5_OPTION_ID\x10\xb5m\x12&\n!CREATIVE_CUSTOM_FIELD_6_OPTION_ID\x10\xb6m\x12&\n!CREATIVE_CUSTOM_FIELD_7_OPTION_ID\x10\xb7m\x12&\n!CREATIVE_CUSTOM_FIELD_8_OPTION_ID\x10\xb8m\x12&\n!CREATIVE_CUSTOM_FIELD_9_OPTION_ID\x10\xb9m\x12\'\n\"CREATIVE_CUSTOM_FIELD_10_OPTION_ID\x10\xbam\x12\'\n\"CREATIVE_CUSTOM_FIELD_11_OPTION_ID\x10\xbbm\x12\'\n\"CREATIVE_CUSTOM_FIELD_12_OPTION_ID\x10\xbcm\x12\'\n\"CREATIVE_CUSTOM_FIELD_13_OPTION_ID\x10\xbdm\x12\'\n\"CREATIVE_CUSTOM_FIELD_14_OPTION_ID\x10\xbem\x12\"\n\x1d\x43REATIVE_CUSTOM_FIELD_0_VALUE\x10\x98u\x12\"\n\x1d\x43REATIVE_CUSTOM_FIELD_1_VALUE\x10\x99u\x12\"\n\x1d\x43REATIVE_CUSTOM_FIELD_2_VALUE\x10\x9au\x12\"\n\x1d\x43REATIVE_CUSTOM_FIELD_3_VALUE\x10\x9bu\x12\"\n\x1d\x43REATIVE_CUSTOM_FIELD_4_VALUE\x10\x9cu\x12\"\n\x1d\x43REATIVE_CUSTOM_FIELD_5_VALUE\x10\x9du\x12\"\n\x1d\x43REATIVE_CUSTOM_FIELD_6_VALUE\x10\x9eu\x12\"\n\x1d\x43REATIVE_CUSTOM_FIELD_7_VALUE\x10\x9fu\x12\"\n\x1d\x43REATIVE_CUSTOM_FIELD_8_VALUE\x10\xa0u\x12\"\n\x1d\x43REATIVE_CUSTOM_FIELD_9_VALUE\x10\xa1u\x12#\n\x1e\x43REATIVE_CUSTOM_FIELD_10_VALUE\x10\xa2u\x12#\n\x1e\x43REATIVE_CUSTOM_FIELD_11_VALUE\x10\xa3u\x12#\n\x1e\x43REATIVE_CUSTOM_FIELD_12_VALUE\x10\xa4u\x12#\n\x1e\x43REATIVE_CUSTOM_FIELD_13_VALUE\x10\xa5u\x12#\n\x1e\x43REATIVE_CUSTOM_FIELD_14_VALUE\x10\xa6u\x12)\n$CREATIVE_CUSTOM_FIELD_0_VALUE_DOUBLE\x10\xa7u\x12)\n$CREATIVE_CUSTOM_FIELD_1_VALUE_DOUBLE\x10\xa8u\x12)\n$CREATIVE_CUSTOM_FIELD_2_VALUE_DOUBLE\x10\xa9u\x12)\n$CREATIVE_CUSTOM_FIELD_3_VALUE_DOUBLE\x10\xaau\x12)\n$CREATIVE_CUSTOM_FIELD_4_VALUE_DOUBLE\x10\xabu\x12)\n$CREATIVE_CUSTOM_FIELD_5_VALUE_DOUBLE\x10\xacu\x12)\n$CREATIVE_CUSTOM_FIELD_6_VALUE_DOUBLE\x10\xadu\x12)\n$CREATIVE_CUSTOM_FIELD_7_VALUE_DOUBLE\x10\xaeu\x12)\n$CREATIVE_CUSTOM_FIELD_8_VALUE_DOUBLE\x10\xafu\x12)\n$CREATIVE_CUSTOM_FIELD_9_VALUE_DOUBLE\x10\xb0u\x12*\n%CREATIVE_CUSTOM_FIELD_10_VALUE_DOUBLE\x10\xb1u\x12*\n%CREATIVE_CUSTOM_FIELD_11_VALUE_DOUBLE\x10\xb2u\x12*\n%CREATIVE_CUSTOM_FIELD_12_VALUE_DOUBLE\x10\xb3u\x12*\n%CREATIVE_CUSTOM_FIELD_13_VALUE_DOUBLE\x10\xb4u\x12*\n%CREATIVE_CUSTOM_FIELD_14_VALUE_DOUBLE\x10\xb5u\x12\'\n\"CREATIVE_CUSTOM_FIELD_0_VALUE_BOOL\x10\xb6u\x12\'\n\"CREATIVE_CUSTOM_FIELD_1_VALUE_BOOL\x10\xb7u\x12\'\n\"CREATIVE_CUSTOM_FIELD_2_VALUE_BOOL\x10\xb8u\x12\'\n\"CREATIVE_CUSTOM_FIELD_3_VALUE_BOOL\x10\xb9u\x12\'\n\"CREATIVE_CUSTOM_FIELD_4_VALUE_BOOL\x10\xbau\x12\'\n\"CREATIVE_CUSTOM_FIELD_5_VALUE_BOOL\x10\xbbu\x12\'\n\"CREATIVE_CUSTOM_FIELD_6_VALUE_BOOL\x10\xbcu\x12\'\n\"CREATIVE_CUSTOM_FIELD_7_VALUE_BOOL\x10\xbdu\x12\'\n\"CREATIVE_CUSTOM_FIELD_8_VALUE_BOOL\x10\xbeu\x12\'\n\"CREATIVE_CUSTOM_FIELD_9_VALUE_BOOL\x10\xbfu\x12(\n#CREATIVE_CUSTOM_FIELD_10_VALUE_BOOL\x10\xc0u\x12(\n#CREATIVE_CUSTOM_FIELD_11_VALUE_BOOL\x10\xc1u\x12(\n#CREATIVE_CUSTOM_FIELD_12_VALUE_BOOL\x10\xc2u\x12(\n#CREATIVE_CUSTOM_FIELD_13_VALUE_BOOL\x10\xc3u\x12(\n#CREATIVE_CUSTOM_FIELD_14_VALUE_BOOL\x10\xc4u\x12\'\n!CMS_METADATA_DIMENSION_0_VALUE_ID\x10\xf0\x9c\x06\x12\'\n!CMS_METADATA_DIMENSION_1_VALUE_ID\x10\xf1\x9c\x06\x12\'\n!CMS_METADATA_DIMENSION_2_VALUE_ID\x10\xf2\x9c\x06\x12\'\n!CMS_METADATA_DIMENSION_3_VALUE_ID\x10\xf3\x9c\x06\x12\'\n!CMS_METADATA_DIMENSION_4_VALUE_ID\x10\xf4\x9c\x06\x12\'\n!CMS_METADATA_DIMENSION_5_VALUE_ID\x10\xf5\x9c\x06\x12\'\n!CMS_METADATA_DIMENSION_6_VALUE_ID\x10\xf6\x9c\x06\x12\'\n!CMS_METADATA_DIMENSION_7_VALUE_ID\x10\xf7\x9c\x06\x12\'\n!CMS_METADATA_DIMENSION_8_VALUE_ID\x10\xf8\x9c\x06\x12\'\n!CMS_METADATA_DIMENSION_9_VALUE_ID\x10\xf9\x9c\x06\x12$\n\x1e\x43MS_METADATA_DIMENSION_0_VALUE\x10\xd8\xa4\x06\x12$\n\x1e\x43MS_METADATA_DIMENSION_1_VALUE\x10\xd9\xa4\x06\x12$\n\x1e\x43MS_METADATA_DIMENSION_2_VALUE\x10\xda\xa4\x06\x12$\n\x1e\x43MS_METADATA_DIMENSION_3_VALUE\x10\xdb\xa4\x06\x12$\n\x1e\x43MS_METADATA_DIMENSION_4_VALUE\x10\xdc\xa4\x06\x12$\n\x1e\x43MS_METADATA_DIMENSION_5_VALUE\x10\xdd\xa4\x06\x12$\n\x1e\x43MS_METADATA_DIMENSION_6_VALUE\x10\xde\xa4\x06\x12$\n\x1e\x43MS_METADATA_DIMENSION_7_VALUE\x10\xdf\xa4\x06\x12$\n\x1e\x43MS_METADATA_DIMENSION_8_VALUE\x10\xe0\xa4\x06\x12$\n\x1e\x43MS_METADATA_DIMENSION_9_VALUE\x10\xe1\xa4\x06\x12!\n\x1b\x43USTOM_DIMENSION_0_VALUE_ID\x10\xa0\x8d\x06\x12!\n\x1b\x43USTOM_DIMENSION_1_VALUE_ID\x10\xa1\x8d\x06\x12!\n\x1b\x43USTOM_DIMENSION_2_VALUE_ID\x10\xa2\x8d\x06\x12!\n\x1b\x43USTOM_DIMENSION_3_VALUE_ID\x10\xa3\x8d\x06\x12!\n\x1b\x43USTOM_DIMENSION_4_VALUE_ID\x10\xa4\x8d\x06\x12!\n\x1b\x43USTOM_DIMENSION_5_VALUE_ID\x10\xa5\x8d\x06\x12!\n\x1b\x43USTOM_DIMENSION_6_VALUE_ID\x10\xa6\x8d\x06\x12!\n\x1b\x43USTOM_DIMENSION_7_VALUE_ID\x10\xa7\x8d\x06\x12!\n\x1b\x43USTOM_DIMENSION_8_VALUE_ID\x10\xa8\x8d\x06\x12!\n\x1b\x43USTOM_DIMENSION_9_VALUE_ID\x10\xa9\x8d\x06\x12\x1e\n\x18\x43USTOM_DIMENSION_0_VALUE\x10\x88\x95\x06\x12\x1e\n\x18\x43USTOM_DIMENSION_1_VALUE\x10\x89\x95\x06\x12\x1e\n\x18\x43USTOM_DIMENSION_2_VALUE\x10\x8a\x95\x06\x12\x1e\n\x18\x43USTOM_DIMENSION_3_VALUE\x10\x8b\x95\x06\x12\x1e\n\x18\x43USTOM_DIMENSION_4_VALUE\x10\x8c\x95\x06\x12\x1e\n\x18\x43USTOM_DIMENSION_5_VALUE\x10\x8d\x95\x06\x12\x1e\n\x18\x43USTOM_DIMENSION_6_VALUE\x10\x8e\x95\x06\x12\x1e\n\x18\x43USTOM_DIMENSION_7_VALUE\x10\x8f\x95\x06\x12\x1e\n\x18\x43USTOM_DIMENSION_8_VALUE\x10\x90\x95\x06\x12\x1e\n\x18\x43USTOM_DIMENSION_9_VALUE\x10\x91\x95\x06\x12\x1e\n\x18\x45KV_DIMENSION_0_VALUE_ID\x10\xa8\xb4\x06\x12\x1e\n\x18\x45KV_DIMENSION_1_VALUE_ID\x10\xa9\xb4\x06\x12\x1e\n\x18\x45KV_DIMENSION_2_VALUE_ID\x10\xaa\xb4\x06\x12\x1e\n\x18\x45KV_DIMENSION_3_VALUE_ID\x10\xab\xb4\x06\x12\x1e\n\x18\x45KV_DIMENSION_4_VALUE_ID\x10\xac\xb4\x06\x12\x1e\n\x18\x45KV_DIMENSION_5_VALUE_ID\x10\xad\xb4\x06\x12\x1e\n\x18\x45KV_DIMENSION_6_VALUE_ID\x10\xae\xb4\x06\x12\x1e\n\x18\x45KV_DIMENSION_7_VALUE_ID\x10\xaf\xb4\x06\x12\x1e\n\x18\x45KV_DIMENSION_8_VALUE_ID\x10\xb0\xb4\x06\x12\x1e\n\x18\x45KV_DIMENSION_9_VALUE_ID\x10\xb1\xb4\x06\x12\x1b\n\x15\x45KV_DIMENSION_0_VALUE\x10\x90\xbc\x06\x12\x1b\n\x15\x45KV_DIMENSION_1_VALUE\x10\x91\xbc\x06\x12\x1b\n\x15\x45KV_DIMENSION_2_VALUE\x10\x92\xbc\x06\x12\x1b\n\x15\x45KV_DIMENSION_3_VALUE\x10\x93\xbc\x06\x12\x1b\n\x15\x45KV_DIMENSION_4_VALUE\x10\x94\xbc\x06\x12\x1b\n\x15\x45KV_DIMENSION_5_VALUE\x10\x95\xbc\x06\x12\x1b\n\x15\x45KV_DIMENSION_6_VALUE\x10\x96\xbc\x06\x12\x1b\n\x15\x45KV_DIMENSION_7_VALUE\x10\x97\xbc\x06\x12\x1b\n\x15\x45KV_DIMENSION_8_VALUE\x10\x98\xbc\x06\x12\x1b\n\x15\x45KV_DIMENSION_9_VALUE\x10\x99\xbc\x06\x1a\x02\x10\x01\"\xfd\x9d\x01\n\x06Metric\x12\x16\n\x12METRIC_UNSPECIFIED\x10\x00\x12\x11\n\x0c\x41\x43TIVE_USERS\x10\xdf\x01\x12)\n$ACTIVE_VIEW_AUDIBLE_AT_START_PERCENT\x10\xbd\x03\x12$\n\x1f\x41\x43TIVE_VIEW_AUDIBLE_IMPRESSIONS\x10\x93\x05\x12\x33\n.ACTIVE_VIEW_AUDIBLE_THROUGH_COMPLETION_PERCENT\x10\xbe\x03\x12\x37\n2ACTIVE_VIEW_AUDIBLE_THROUGH_FIRST_QUARTILE_PERCENT\x10\xbf\x03\x12\x31\n,ACTIVE_VIEW_AUDIBLE_THROUGH_MIDPOINT_PERCENT\x10\xc0\x03\x12\x37\n2ACTIVE_VIEW_AUDIBLE_THROUGH_THIRD_QUARTILE_PERCENT\x10\xc1\x03\x12*\n%ACTIVE_VIEW_AUDIO_ENABLED_IMPRESSIONS\x10\x94\x05\x12-\n(ACTIVE_VIEW_AUDIO_MEASURABLE_IMPRESSIONS\x10\x95\x05\x12%\n!ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\x10=\x12$\n ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\x10:\x12\x32\n-ACTIVE_VIEW_EVER_AUDIBLE_BACKGROUNDED_PERCENT\x10\xc2\x03\x12%\n ACTIVE_VIEW_EVER_AUDIBLE_PERCENT\x10\xc3\x03\x12*\n%ACTIVE_VIEW_EVER_BACKGROUNDED_PERCENT\x10\xc4\x03\x12#\n\x1e\x41\x43TIVE_VIEW_EVER_MUTED_PERCENT\x10\xc5\x03\x12?\n:ACTIVE_VIEW_IMPRESSIONS_AUDIBLE_AND_VISIBLIE_AT_COMPLETION\x10\x9b\x03\x12&\n\"ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\x10\x39\x12+\n\'ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\x10<\x12+\n&ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS\x10\x96\x05\x12)\n$ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS\x10\x97\x05\x12\x36\n1ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\x98\x05\x12,\n\'ACTIVE_VIEW_PERCENT_AUDIBLE_IMPRESSIONS\x10\x99\x05\x12&\n!ACTIVE_VIEW_PLUS_MEASURABLE_COUNT\x10\xc6\x03\x12\x18\n\x13\x41\x43TIVE_VIEW_REVENUE\x10\x9e\x03\x12\x36\n1ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION\x10\x9a\x05\x12$\n ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\x10\x38\x12\x32\n-ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\x9b\x05\x12)\n%ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\x10;\x12-\n)ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\x10I\x12,\n(ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\x10\x46\x12.\n*ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\x10\x45\x12\x33\n/ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\x10H\x12\x33\n.ADSENSE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS\x10\x82\x05\x12\x31\n,ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS\x10\x83\x05\x12>\n9ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\x84\x05\x12>\n9ADSENSE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION\x10\x85\x05\x12,\n(ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\x10\x44\x12:\n5ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\x86\x05\x12\x31\n-ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\x10G\x12\x18\n\x14\x41\x44SENSE_AVERAGE_ECPM\x10\x1a\x12\x12\n\x0e\x41\x44SENSE_CLICKS\x10\x17\x12\x0f\n\x0b\x41\x44SENSE_CTR\x10\x18\x12\x17\n\x13\x41\x44SENSE_IMPRESSIONS\x10\x16\x12\x1a\n\x16\x41\x44SENSE_PERCENT_CLICKS\x10\x1c\x12\x1f\n\x1b\x41\x44SENSE_PERCENT_IMPRESSIONS\x10\x1b\x12\x1b\n\x17\x41\x44SENSE_PERCENT_REVENUE\x10\x1d\x12\'\n#ADSENSE_PERCENT_REVENUE_WITHOUT_CPD\x10\x1e\x12\x1c\n\x18\x41\x44SENSE_RESPONSES_SERVED\x10)\x12\x13\n\x0f\x41\x44SENSE_REVENUE\x10\x19\x12\x31\n-AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\x10O\x12\x30\n,AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\x10L\x12\x32\n.AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\x10K\x12\x37\n3AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\x10N\x12\x37\n2AD_EXCHANGE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS\x10\x8e\x05\x12\x35\n0AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS\x10\x8f\x05\x12\x42\n=AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\x90\x05\x12\x42\n=AD_EXCHANGE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION\x10\x91\x05\x12\x30\n,AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\x10J\x12>\n9AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\x92\x05\x12\x35\n1AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\x10M\x12\x1c\n\x18\x41\x44_EXCHANGE_AVERAGE_ECPM\x10\x12\x12\x16\n\x12\x41\x44_EXCHANGE_CLICKS\x10\x0f\x12\x14\n\x0f\x41\x44_EXCHANGE_CPC\x10\xf4\x01\x12\x13\n\x0f\x41\x44_EXCHANGE_CTR\x10\x10\x12\x1e\n\x19\x41\x44_EXCHANGE_DELIVERY_RATE\x10\xf5\x01\x12\x1b\n\x17\x41\x44_EXCHANGE_IMPRESSIONS\x10\x0e\x12*\n%AD_EXCHANGE_IMPRESSIONS_PER_AD_VIEWER\x10\xab\x03\x12(\n#AD_EXCHANGE_IMPRESSIONS_PER_SESSION\x10\xac\x03\x12\x15\n\x10\x41\x44_EXCHANGE_LIFT\x10\xf6\x01\x12$\n\x1f\x41\x44_EXCHANGE_MATCHED_REQUEST_CTR\x10\xf7\x01\x12%\n AD_EXCHANGE_MATCHED_REQUEST_ECPM\x10\xf8\x01\x12\x1b\n\x16\x41\x44_EXCHANGE_MATCH_RATE\x10\xf9\x01\x12*\n%AD_EXCHANGE_OPPORTUNITIES_FROM_ERRORS\x10\xfa\x01\x12/\n*AD_EXCHANGE_OPPORTUNITIES_FROM_IMPRESSIONS\x10\xfb\x01\x12\x1e\n\x1a\x41\x44_EXCHANGE_PERCENT_CLICKS\x10\x14\x12#\n\x1f\x41\x44_EXCHANGE_PERCENT_IMPRESSIONS\x10\x13\x12\x1f\n\x1b\x41\x44_EXCHANGE_PERCENT_REVENUE\x10\x15\x12+\n\'AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD\x10\x1f\x12&\n!AD_EXCHANGE_PLUS_YIELD_GROUP_ECPM\x10\xfc\x01\x12-\n(AD_EXCHANGE_PLUS_YIELD_GROUP_IMPRESSIONS\x10\xfd\x01\x12)\n$AD_EXCHANGE_PLUS_YIELD_GROUP_REVENUE\x10\xfe\x01\x12 \n\x1c\x41\x44_EXCHANGE_RESPONSES_SERVED\x10*\x12\x17\n\x13\x41\x44_EXCHANGE_REVENUE\x10\x11\x12\x35\n0AD_EXCHANGE_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT\x10\xd4\x01\x12&\n!AD_EXCHANGE_REVENUE_PER_AD_VIEWER\x10\xad\x03\x12\x1f\n\x1a\x41\x44_EXCHANGE_TOTAL_REQUESTS\x10\xff\x01\x12\"\n\x1d\x41\x44_EXCHANGE_TOTAL_REQUEST_CTR\x10\x80\x02\x12#\n\x1e\x41\x44_EXCHANGE_TOTAL_REQUEST_ECPM\x10\x81\x02\x12\x18\n\x13\x41\x44_EXPOSURE_SECONDS\x10\xf1\x01\x12\x0f\n\x0b\x41\x44_REQUESTS\x10&\x12/\n+AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\x10\x43\x12.\n*AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\x10@\x12\x30\n,AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\x10?\x12\x35\n1AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\x10\x42\x12\x35\n0AD_SERVER_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS\x10\xcc\x02\x12\x33\n.AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS\x10\xcb\x02\x12@\n;AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\xce\x02\x12\"\n\x1d\x41\x44_SERVER_ACTIVE_VIEW_REVENUE\x10\xc0\x05\x12@\n;AD_SERVER_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION\x10\xcf\x02\x12.\n*AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\x10>\x12<\n7AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\xcd\x02\x12\x33\n/AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\x10\x41\x12\x1a\n\x16\x41\x44_SERVER_AVERAGE_ECPM\x10\"\x12&\n\"AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD\x10\n\x12*\n%AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS\x10\x86\x02\x12\x14\n\x10\x41\x44_SERVER_CLICKS\x10\x07\x12\x1e\n\x19\x41\x44_SERVER_COMPLETED_VIEWS\x10\xaf\x03\x12#\n\x1e\x41\x44_SERVER_COVIEWED_IMPRESSIONS\x10\xaa\x04\x12\x19\n\x15\x41\x44_SERVER_CPD_REVENUE\x10 \x12\x11\n\rAD_SERVER_CTR\x10\x08\x12\x1c\n\x17\x41\x44_SERVER_GROSS_REVENUE\x10\xe3\x03\x12(\n#AD_SERVER_GROSS_REVENUE_WITHOUT_CPD\x10\xe4\x03\x12\x19\n\x15\x41\x44_SERVER_IMPRESSIONS\x10\x06\x12)\n$AD_SERVER_IMPRESSIONS_WITH_COMPANION\x10\xde\x01\x12\x33\n.AD_SERVER_INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS\x10\xd2\x02\x12(\n#AD_SERVER_OPPORTUNITIES_FROM_ERRORS\x10\xcd\x03\x12-\n(AD_SERVER_OPPORTUNITIES_FROM_IMPRESSIONS\x10\xce\x03\x12\x1c\n\x18\x41\x44_SERVER_PERCENT_CLICKS\x10\x0c\x12!\n\x1d\x41\x44_SERVER_PERCENT_IMPRESSIONS\x10\x0b\x12\x1d\n\x19\x41\x44_SERVER_PERCENT_REVENUE\x10#\x12)\n%AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD\x10\r\x12\x1e\n\x1a\x41\x44_SERVER_RESPONSES_SERVED\x10(\x12\x15\n\x11\x41\x44_SERVER_REVENUE\x10!\x12\x33\n.AD_SERVER_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT\x10\xd5\x01\x12!\n\x1d\x41\x44_SERVER_REVENUE_WITHOUT_CPD\x10\t\x12\x1e\n\x19\x41\x44_SERVER_TARGETED_CLICKS\x10\x92\x02\x12#\n\x1e\x41\x44_SERVER_TARGETED_IMPRESSIONS\x10\x93\x02\x12\x1a\n\x15\x41\x44_SERVER_TRACKED_ADS\x10\x88\x02\x12\x35\n0AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS\x10\x85\x02\x12 \n\x1b\x41\x44_SERVER_UNFILTERED_CLICKS\x10\x83\x02\x12\x30\n+AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS\x10\x84\x02\x12)\n AD_SERVER_UNFILTERED_IMPRESSIONS\x10\x84\x02\x1a\x02\x08\x01\x12%\n AD_SERVER_UNFILTERED_TRACKED_ADS\x10\x87\x02\x12\x1d\n\x18\x41\x44_UNIT_EXPOSURE_SECONDS\x10\xf2\x01\x12\x0f\n\nAD_VIEWERS\x10\xa9\x03\x12\x1d\n\x18\x41TN_ADS_FAILED_TO_RENDER\x10\xae\x03\x12\x1c\n\x17\x41TN_ELIGIBLE_LINE_ITEMS\x10\xd6\x02\x12(\n#ATN_ELIGIBLE_LINE_ITEMS_AD_REQUESTS\x10\xd7\x02\x12 \n\x1b\x41TN_HBT_ALLOWED_AD_REQUESTS\x10\xd8\x02\x12\x1c\n\x17\x41TN_HBT_BIDS_IN_AUCTION\x10\xd9\x02\x12(\n#ATN_HBT_BIDS_IN_AUCTION_AD_REQUESTS\x10\xda\x02\x12\x1b\n\x16\x41TN_HBT_CANDIDATE_BIDS\x10\xdb\x02\x12 \n\x1b\x41TN_HBT_INVALID_AD_REQUESTS\x10\xdc\x02\x12 \n\x1b\x41TN_HBT_NO_BIDS_AD_REQUESTS\x10\xd8\x03\x12\x1a\n\x15\x41TN_HBT_REJECTED_BIDS\x10\xdd\x02\x12\x1e\n\x19\x41TN_HBT_VALID_AD_REQUESTS\x10\xde\x02\x12\"\n\x1d\x41TN_HBT_WITH_BIDS_AD_REQUESTS\x10\xd9\x03\x12\x1c\n\x17\x41TN_INVALID_AD_REQUESTS\x10\xdf\x02\x12*\n%ATN_LINE_ITEMS_CREATIVE_NOT_RETRIEVED\x10\xdc\x03\x12\x1e\n\x19\x41TN_LINE_ITEMS_IN_AUCTION\x10\xe0\x02\x12!\n\x1c\x41TN_LINE_ITEMS_NOT_COMPETING\x10\x83\x04\x12 \n\x1b\x41TN_LINE_ITEMS_NOT_SELECTED\x10\xe1\x02\x12)\n$ATN_LINE_ITEM_IN_AUCTION_AD_REQUESTS\x10\xe2\x02\x12\'\n\"ATN_LINE_ITEM_TARGETED_AD_REQUESTS\x10\xe3\x02\x12&\n!ATN_MEDIATION_ALLOWED_AD_REQUESTS\x10\xe4\x02\x12&\n!ATN_MEDIATION_INVALID_AD_REQUESTS\x10\xe5\x02\x12)\n$ATN_MEDIATION_LOADED_ADS_FROM_CHAINS\x10\xe6\x02\x12)\n$ATN_MEDIATION_NO_PARTNER_AD_REQUESTS\x10\xda\x03\x12&\n!ATN_MEDIATION_PARTNERS_IN_AUCTION\x10\xe7\x02\x12\x32\n-ATN_MEDIATION_PARTNERS_IN_AUCTION_AD_REQUESTS\x10\xe8\x02\x12$\n\x1f\x41TN_MEDIATION_REJECTED_PARTNERS\x10\xe9\x02\x12$\n\x1f\x41TN_MEDIATION_TARGETED_PARTNERS\x10\xea\x02\x12&\n!ATN_MEDIATION_TOTAL_ADS_IN_CHAINS\x10\xbf\x05\x12+\n&ATN_MEDIATION_UNLOADED_ADS_FROM_CHAINS\x10\xeb\x02\x12*\n%ATN_MEDIATION_UNUSED_BIDS_OR_PARTNERS\x10\xec\x02\x12$\n\x1f\x41TN_MEDIATION_VALID_AD_REQUESTS\x10\xed\x02\x12,\n\'ATN_MEDIATION_WITH_PARTNERS_AD_REQUESTS\x10\xdb\x03\x12+\n&ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BIDS\x10\xee\x02\x12\x38\n3ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BID_REQUESTS_SENT\x10\xef\x02\x12)\n$ATN_PROGRAMMATIC_ALLOWED_AD_REQUESTS\x10\xf0\x02\x12%\n ATN_PROGRAMMATIC_BIDS_IN_AUCTION\x10\xf1\x02\x12\x30\n+ATN_PROGRAMMATIC_BID_IN_AUCTION_AD_REQUESTS\x10\xf2\x02\x12\'\n\"ATN_PROGRAMMATIC_BID_REQUESTS_SENT\x10\xf3\x02\x12\x30\n+ATN_PROGRAMMATIC_BID_REQUESTS_WITH_RESPONSE\x10\xf4\x02\x12,\n\'ATN_PROGRAMMATIC_BID_REQUEST_CANDIDATES\x10\xf5\x02\x12(\n#ATN_PROGRAMMATIC_BID_REQUEST_ERRORS\x10\xf6\x02\x12,\n\'ATN_PROGRAMMATIC_INELIGIBLE_AD_REQUESTS\x10\xf7\x02\x12#\n\x1e\x41TN_PROGRAMMATIC_REJECTED_BIDS\x10\xf8\x02\x12*\n%ATN_PROGRAMMATIC_SKIPPED_BID_REQUESTS\x10\xf9\x02\x12 \n\x1b\x41TN_PROGRAMMATIC_TOTAL_BIDS\x10\xfa\x02\x12\'\n\"ATN_PROGRAMMATIC_VALID_AD_REQUESTS\x10\xfb\x02\x12\x1c\n\x17\x41TN_REJECTED_LINE_ITEMS\x10\xfc\x02\x12 \n\x1b\x41TN_SERVED_MEDIATION_CHAINS\x10\xfd\x02\x12\x1a\n\x15\x41TN_SERVED_SINGLE_ADS\x10\xfe\x02\x12\x1c\n\x17\x41TN_TARGETED_LINE_ITEMS\x10\xff\x02\x12\x1a\n\x15\x41TN_TOTAL_AD_REQUESTS\x10\x80\x03\x12\x19\n\x14\x41TN_TOTAL_LOADED_ADS\x10\x83\x03\x12\x1a\n\x15\x41TN_VALID_AD_REQUESTS\x10\x85\x03\x12(\n#ATN_YIELD_GROUP_MEDIATION_PASSBACKS\x10\x86\x03\x12\x1a\n\x15\x41UDIENCE_SEGMENT_COST\x10\xae\x04\x12\x10\n\x0c\x41VERAGE_ECPM\x10%\x12\x1c\n\x18\x41VERAGE_ECPM_WITHOUT_CPD\x10\x05\x12+\n&AVERAGE_ENGAGEMENT_SECONDS_PER_SESSION\x10\xe0\x01\x12(\n#AVERAGE_ENGAGEMENT_SECONDS_PER_USER\x10\xe1\x01\x12+\n&AVERAGE_IMPRESSIONS_PER_UNIQUE_VISITOR\x10\xa2\x03\x12-\n(AVERAGE_PURCHASE_REVENUE_PER_PAYING_USER\x10\xe2\x01\x12\x1d\n\x18\x41VERAGE_REVENUE_PER_USER\x10\xe3\x01\x12\x1c\n\x17\x41VERAGE_SESSION_SECONDS\x10\xe4\x01\x12\t\n\x04\x42IDS\x10\xbb\x03\x12\x14\n\x0f\x42ID_AVERAGE_CPM\x10\xbc\x03\x12\x10\n\x0b\x42OUNCE_RATE\x10\xb1\x03\x12\n\n\x06\x43LICKS\x10\x02\x12\x15\n\x11\x43ODE_SERVED_COUNT\x10,\x12\x10\n\x0b\x43PC_REVENUE\x10\xb8\x03\x12\x10\n\x0b\x43PM_REVENUE\x10\xb9\x03\x12%\n CREATIVE_LOAD_TIME_0_500_PERCENT\x10\xc4\x02\x12)\n$CREATIVE_LOAD_TIME_1000_2000_PERCENT\x10\xc6\x02\x12)\n$CREATIVE_LOAD_TIME_2000_4000_PERCENT\x10\xc7\x02\x12)\n$CREATIVE_LOAD_TIME_4000_8000_PERCENT\x10\xc8\x02\x12(\n#CREATIVE_LOAD_TIME_500_1000_PERCENT\x10\xc5\x02\x12\'\n\"CREATIVE_LOAD_TIME_GT_8000_PERCENT\x10\xc9\x02\x12\x07\n\x03\x43TR\x10\x03\x12\x17\n\x12\x43TR_WITH_COMPANION\x10\xe6\x05\x12\x0f\n\nDEALS_BIDS\x10\x9e\x04\x12\x13\n\x0e\x44\x45\x41LS_BID_RATE\x10\x9f\x04\x12\x17\n\x12\x44\x45\x41LS_BID_REQUESTS\x10\xa0\x04\x12\x17\n\x12\x44\x45\x41LS_WINNING_BIDS\x10\xa1\x04\x12\x13\n\x0e\x44\x45\x41LS_WIN_RATE\x10\xa2\x04\x12/\n*DOM_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT\x10\x89\x04\x12\x33\n.DOM_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT\x10\x8a\x04\x12\x33\n.DOM_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT\x10\x8b\x04\x12\x33\n.DOM_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT\x10\x8c\x04\x12\x32\n-DOM_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT\x10\x8d\x04\x12\x31\n,DOM_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT\x10\x88\x04\x12,\n\'DOM_LOAD_TO_TAG_LOAD_TIME_0_500_PERCENT\x10\x8e\x04\x12\x30\n+DOM_LOAD_TO_TAG_LOAD_TIME_1000_2000_PERCENT\x10\x8f\x04\x12\x30\n+DOM_LOAD_TO_TAG_LOAD_TIME_2000_4000_PERCENT\x10\x90\x04\x12\x30\n+DOM_LOAD_TO_TAG_LOAD_TIME_4000_8000_PERCENT\x10\x91\x04\x12/\n*DOM_LOAD_TO_TAG_LOAD_TIME_500_1000_PERCENT\x10\x93\x04\x12.\n)DOM_LOAD_TO_TAG_LOAD_TIME_GT_8000_PERCENT\x10\x92\x04\x12\x11\n\x0c\x44ROPOFF_RATE\x10\x9f\x03\x12\x15\n\x10\x45NGAGED_SESSIONS\x10\xe5\x01\x12\x1e\n\x19\x45NGAGED_SESSIONS_PER_USER\x10\xe6\x01\x12\x14\n\x0f\x45NGAGEMENT_RATE\x10\xaa\x03\x12&\n!EUROPEAN_REGULATIONS_CONSENT_RATE\x10\x8e\x02\x12-\n(EUROPEAN_REGULATIONS_CUSTOM_CONSENT_RATE\x10\x8f\x02\x12(\n#EUROPEAN_REGULATIONS_MESSAGES_SHOWN\x10\x90\x02\x12)\n$EUROPEAN_REGULATIONS_NO_CONSENT_RATE\x10\x91\x02\x12\x0e\n\tFILL_RATE\x10\x82\x02\x12\x1c\n\x17GOOGLE_ANALYTICS_CLICKS\x10\xe7\x01\x12\x19\n\x14GOOGLE_ANALYTICS_CTR\x10\xe8\x01\x12\x1a\n\x15GOOGLE_ANALYTICS_ECPM\x10\xe9\x01\x12!\n\x1cGOOGLE_ANALYTICS_IMPRESSIONS\x10\xea\x01\x12\x1d\n\x18GOOGLE_ANALYTICS_REVENUE\x10\xeb\x01\x12\x1b\n\x16GOOGLE_ANALYTICS_VIEWS\x10\xec\x01\x12$\n\x1fGOOGLE_ANALYTICS_VIEWS_PER_USER\x10\xed\x01\x12-\n(GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS\x10\x81\x01\x12$\n\x1fGOOGLE_SOLD_AUCTION_IMPRESSIONS\x10\x80\x01\x12%\n GOOGLE_SOLD_COVIEWED_IMPRESSIONS\x10\x83\x01\x12\x1c\n\x17GOOGLE_SOLD_IMPRESSIONS\x10\x82\x01\x12\x30\n,GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS\x10\x7f\x12\'\n#GOOGLE_SOLD_RESERVATION_IMPRESSIONS\x10~\x12\x0f\n\x0bIMPRESSIONS\x10\x01\x12\x1f\n\x1aIMPRESSIONS_WITH_COMPANION\x10\xe5\x05\x12)\n$INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS\x10\x97\x03\x12\x15\n\x10INVENTORY_SHARES\x10\xa3\x04\x12\x33\n.INVENTORY_SHARE_PARTNER_UNFILLED_OPPORTUNITIES\x10\xa4\x04\x12\x19\n\x14INVOICED_IMPRESSIONS\x10\x94\x03\x12\"\n\x1dINVOICED_UNFILLED_IMPRESSIONS\x10\x95\x03\x12\x1c\n\x17MEDIATION_CHAINS_FILLED\x10\xc8\x04\x12\x16\n\x11MUTED_IMPRESSIONS\x10\x9c\x03\x12\x1e\n\x19MUTE_ELIGIBLE_IMPRESSIONS\x10\x99\x03\x12\x1b\n\x16NIELSEN_AUDIENCE_INDEX\x10\xb8\x04\x12\x1e\n\x19NIELSEN_AVERAGE_FREQUENCY\x10\xb9\x04\x12&\n!NIELSEN_AVERAGE_NUMBER_OF_VIEWERS\x10\xba\x04\x12 \n\x1bNIELSEN_GROSS_RATING_POINTS\x10\xbb\x04\x12\x18\n\x13NIELSEN_IMPRESSIONS\x10\xbc\x04\x12\x1e\n\x19NIELSEN_IMPRESSIONS_INDEX\x10\xbd\x04\x12\x1c\n\x17NIELSEN_IN_TARGET_RATIO\x10\xc0\x04\x12#\n\x1eNIELSEN_PERCENT_AUDIENCE_REACH\x10\xc2\x04\x12#\n\x1eNIELSEN_PERCENT_AUDIENCE_SHARE\x10\xc3\x04\x12&\n!NIELSEN_PERCENT_IMPRESSIONS_SHARE\x10\xc4\x04\x12%\n NIELSEN_PERCENT_POPULATION_SHARE\x10\xc5\x04\x12\x1c\n\x17NIELSEN_POPULATION_BASE\x10\xc6\x04\x12\x1c\n\x17NIELSEN_UNIQUE_AUDIENCE\x10\xc7\x04\x12\x34\n/OFF_PROPERTY_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\x10\x8b\x03\x12\x32\n-OFF_PROPERTY_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\x10\x8c\x03\x12\x37\n2OFF_PROPERTY_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\x10\x8d\x03\x12\x18\n\x13OFF_PROPERTY_CLICKS\x10\x8e\x03\x12\x15\n\x10OFF_PROPERTY_CTR\x10\x8f\x03\x12\x1d\n\x18OFF_PROPERTY_IMPRESSIONS\x10\x90\x03\x12\x19\n\x14OFF_PROPERTY_REVENUE\x10\x91\x03\x12\x17\n\x12OFF_PROPERTY_SPEND\x10\x92\x03\x12\x1c\n\x17OFF_PROPERTY_SPEND_ECPM\x10\x93\x03\x12#\n\x1eON_PLATFORM_MULTIPLE_CALL_ECPM\x10\xa6\x05\x12*\n%ON_PLATFORM_MULTIPLE_CALL_IMPRESSIONS\x10\xa4\x05\x12&\n!ON_PLATFORM_MULTIPLE_CALL_REVENUE\x10\xa5\x05\x12\x12\n\rOPPORTUNITIES\x10\xcf\x03\x12\x1e\n\x19OVERDELIVERED_IMPRESSIONS\x10\xb0\x03\x12\"\n\x1dPARTNER_FINANCE_GROSS_REVENUE\x10\x88\x05\x12\x1e\n\x19PARTNER_FINANCE_HOST_ECPM\x10\x89\x05\x12%\n PARTNER_FINANCE_HOST_IMPRESSIONS\x10\x8a\x05\x12!\n\x1cPARTNER_FINANCE_HOST_REVENUE\x10\x8b\x05\x12!\n\x1cPARTNER_FINANCE_PARTNER_ECPM\x10\x8c\x05\x12$\n\x1fPARTNER_FINANCE_PARTNER_REVENUE\x10\x8d\x05\x12%\n PARTNER_MANAGEMENT_GROSS_REVENUE\x10\x95\x04\x12#\n\x1ePARTNER_MANAGEMENT_HOST_CLICKS\x10\x96\x04\x12 \n\x1bPARTNER_MANAGEMENT_HOST_CTR\x10\x97\x04\x12(\n#PARTNER_MANAGEMENT_HOST_IMPRESSIONS\x10\x98\x04\x12&\n!PARTNER_MANAGEMENT_PARTNER_CLICKS\x10\x99\x04\x12#\n\x1ePARTNER_MANAGEMENT_PARTNER_CTR\x10\x9a\x04\x12+\n&PARTNER_MANAGEMENT_PARTNER_IMPRESSIONS\x10\x9b\x04\x12+\n&PARTNER_MANAGEMENT_TOTAL_CONTENT_VIEWS\x10\x9c\x04\x12,\n\'PARTNER_MANAGEMENT_UNFILLED_IMPRESSIONS\x10\x9d\x04\x12&\n!PARTNER_SALES_FILLED_POD_REQUESTS\x10\x87\x01\x12\x1c\n\x17PARTNER_SALES_FILL_RATE\x10\x88\x01\x12%\n PARTNER_SALES_PARTNER_MATCH_RATE\x10\x89\x01\x12\x1a\n\x15PARTNER_SALES_QUERIES\x10\x84\x01\x12\'\n\"PARTNER_SALES_UNFILLED_IMPRESSIONS\x10\x85\x01\x12$\n\x1fPARTNER_SALES_UNMATCHED_QUERIES\x10\x86\x01\x12\x1c\n\x18PARTNER_SOLD_CODE_SERVED\x10}\x12%\n!PARTNER_SOLD_COVIEWED_IMPRESSIONS\x10|\x12\x1c\n\x18PARTNER_SOLD_IMPRESSIONS\x10{\x12\r\n\x08POD_ECPM\x10\xe2\x05\x12\x19\n\x14POD_ECPM_WITHOUT_CPD\x10\xe3\x05\x12\x0e\n\tPOD_VIEWS\x10\xe4\x05\x12&\n!PROGRAMMATIC_ELIGIBLE_AD_REQUESTS\x10\xb1\x01\x12\x1c\n\x17PROGRAMMATIC_MATCH_RATE\x10\xb2\x01\x12\"\n\x1dPROGRAMMATIC_RESPONSES_SERVED\x10\xb0\x01\x12\x16\n\x11REACH_IMPRESSIONS\x10\xa0\x03\x12\x14\n\x10RESPONSES_SERVED\x10\'\x12\x0e\n\tRETENTION\x10\xee\x01\x12\x0b\n\x07REVENUE\x10$\x12)\n$REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT\x10\xd6\x01\x12%\n REVENUE_VERIFICATION_CPD_REVENUE\x10\xb0\x04\x12+\n&REVENUE_VERIFICATION_GROSS_CPD_REVENUE\x10\xaf\x04\x12\x33\n.REVENUE_VERIFICATION_GROSS_REVENUE_WITHOUT_CPD\x10\xb1\x04\x12%\n REVENUE_VERIFICATION_IMPRESSIONS\x10\xb4\x04\x12-\n(REVENUE_VERIFICATION_REVENUE_WITHOUT_CPD\x10\xb7\x04\x12\x17\n\x13REVENUE_WITHOUT_CPD\x10\x04\x12\x14\n\x0fREWARDS_GRANTED\x10\x9d\x03\x12$\n\x1fRICH_MEDIA_AVERAGE_DISPLAY_TIME\x10\xcb\x04\x12(\n#RICH_MEDIA_AVERAGE_INTERACTION_TIME\x10\xcc\x04\x12\x1d\n\x18RICH_MEDIA_BACKUP_IMAGES\x10\xcd\x04\x12\"\n\x1dRICH_MEDIA_CUSTOM_EVENT_COUNT\x10\xd7\x04\x12!\n\x1cRICH_MEDIA_CUSTOM_EVENT_TIME\x10\xd8\x04\x12\x1c\n\x17RICH_MEDIA_DISPLAY_TIME\x10\xce\x04\x12\x1e\n\x19RICH_MEDIA_EXPANDING_TIME\x10\xcf\x04\x12\x1a\n\x15RICH_MEDIA_EXPANSIONS\x10\xd0\x04\x12\'\n\"RICH_MEDIA_FULL_SCREEN_IMPRESSIONS\x10\xd1\x04\x12!\n\x1cRICH_MEDIA_INTERACTION_COUNT\x10\xd2\x04\x12 \n\x1bRICH_MEDIA_INTERACTION_RATE\x10\xd3\x04\x12 \n\x1bRICH_MEDIA_INTERACTION_TIME\x10\xd4\x04\x12\'\n\"RICH_MEDIA_INTERACTIVE_IMPRESSIONS\x10\xd5\x04\x12\x1d\n\x18RICH_MEDIA_MANUAL_CLOSES\x10\xd6\x04\x12\x1f\n\x1aRICH_MEDIA_VIDEO_COMPLETES\x10\xf7\x03\x12\"\n\x1dRICH_MEDIA_VIDEO_INTERACTIONS\x10\xf9\x03\x12&\n!RICH_MEDIA_VIDEO_INTERACTION_RATE\x10\xf8\x03\x12\x1f\n\x1aRICH_MEDIA_VIDEO_MIDPOINTS\x10\xfa\x03\x12\x1b\n\x16RICH_MEDIA_VIDEO_MUTES\x10\xfb\x03\x12\x1c\n\x17RICH_MEDIA_VIDEO_PAUSES\x10\xfc\x03\x12\x1b\n\x16RICH_MEDIA_VIDEO_PLAYS\x10\xfd\x03\x12\x1d\n\x18RICH_MEDIA_VIDEO_REPLAYS\x10\xfe\x03\x12\x1b\n\x16RICH_MEDIA_VIDEO_STOPS\x10\xff\x03\x12\x1d\n\x18RICH_MEDIA_VIDEO_UNMUTES\x10\x80\x04\x12\x1f\n\x1aRICH_MEDIA_VIDEO_VIEW_RATE\x10\x81\x04\x12\x1f\n\x1aRICH_MEDIA_VIDEO_VIEW_TIME\x10\x82\x04\x12\'\n\"SELL_THROUGH_AVAILABLE_IMPRESSIONS\x10\xdd\x03\x12(\n#SELL_THROUGH_FORECASTED_IMPRESSIONS\x10\xde\x03\x12&\n!SELL_THROUGH_RESERVED_IMPRESSIONS\x10\xdf\x03\x12#\n\x1eSELL_THROUGH_SELL_THROUGH_RATE\x10\xe0\x03\x12.\n)SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS\x10\xb2\x03\x12$\n\x1fSERVER_SIDE_UNWRAPPING_CALLOUTS\x10\xb3\x03\x12+\n&SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES\x10\xb4\x03\x12+\n&SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES\x10\xb5\x03\x12\x30\n+SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES\x10\xb6\x03\x12$\n\x1fSERVER_SIDE_UNWRAPPING_TIMEOUTS\x10\xb7\x03\x12\r\n\x08SESSIONS\x10\xef\x01\x12/\n*TAG_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT\x10\xc7\x03\x12\x33\n.TAG_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT\x10\xc9\x03\x12\x33\n.TAG_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT\x10\xca\x03\x12\x33\n.TAG_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT\x10\xcb\x03\x12\x32\n-TAG_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT\x10\xc8\x03\x12\x31\n,TAG_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT\x10\xcc\x03\x12\x14\n\x0fTARGETED_CLICKS\x10\x94\x02\x12\x19\n\x14TARGETED_IMPRESSIONS\x10\x95\x02\x12\x18\n\x14UNFILLED_IMPRESSIONS\x10-\x12\x14\n\x0fUNIQUE_VISITORS\x10\xa1\x03\x12$\n\x1fUNLOADED_IMPRESSIONS_DUE_TO_CPU\x10\x98\x03\x12(\n#UNLOADED_IMPRESSIONS_DUE_TO_NETWORK\x10\x96\x03\x12\x19\n\x15UNMATCHED_AD_REQUESTS\x10+\x12\"\n\x1dUNVIEWED_REASON_OTHER_PERCENT\x10\xa6\x04\x12\x38\n3UNVIEWED_REASON_SLOT_NEVER_ENTERED_VIEWPORT_PERCENT\x10\xa9\x04\x12;\n6UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_FILLED_PERCENT\x10\xa7\x04\x12;\n6UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_LOADED_PERCENT\x10\xa8\x04\x12<\n7UNVIEWED_REASON_USER_SCROLLED_BEFORE_ONE_SECOND_PERCENT\x10\xa5\x04\x12(\n#USER_ENGAGEMENT_DURATION_IN_SECONDS\x10\xf0\x01\x12-\n(USER_MESSAGES_AD_BLOCKING_EXTENSION_RATE\x10\xe6\x03\x12\x39\n4USER_MESSAGES_AD_BLOCKING_RECOVERY_ALLOWLISTED_COUNT\x10\xe7\x03\x12\x36\n1USER_MESSAGES_AD_BLOCKING_RECOVERY_MESSAGES_SHOWN\x10\xe8\x03\x12&\n!USER_MESSAGES_ALLOW_ADS_PAGEVIEWS\x10\xe9\x03\x12(\n#USER_MESSAGES_IDFA_ATT_ALERTS_SHOWN\x10\xeb\x03\x12#\n\x1eUSER_MESSAGES_IDFA_ATT_CONSENT\x10\xec\x03\x12(\n#USER_MESSAGES_IDFA_ATT_CONSENT_RATE\x10\xed\x03\x12+\n&USER_MESSAGES_IDFA_ATT_DECLINE_CONSENT\x10\xee\x03\x12(\n#USER_MESSAGES_IDFA_ATT_DECLINE_RATE\x10\xef\x03\x12(\n#USER_MESSAGES_IDFA_EXPLAINERS_SHOWN\x10\xf0\x03\x12*\n%USER_MESSAGES_IDFA_IAB_MESSAGES_SHOWN\x10\xf1\x03\x12#\n\x1eUSER_MESSAGES_IDFA_NO_DECISION\x10\xf2\x03\x12*\n&USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN\x10y\x12\x32\n.USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS\x10z\x12+\n&USER_MESSAGES_POST_OFFERWALL_PAGEVIEWS\x10\xf3\x03\x12*\n%USER_MESSAGES_TOTAL_ESTIMATED_REVENUE\x10\xf4\x03\x12&\n!USER_MESSAGES_UPTC_MESSAGES_SHOWN\x10\xf5\x03\x12\x35\n0USER_MESSAGES_UPTC_PERSONALIZATION_OPT_OUT_RATIO\x10\xf6\x03\x12+\n&USER_MESSAGES_US_STATES_MESSAGES_SHOWN\x10\xea\x03\x12/\n*USER_MESSAGES_US_STATES_OPT_OUT_SELECTIONS\x10\xca\x04\x12\x1a\n\x15VIDEO_ERROR_100_COUNT\x10\xb4\x01\x12\x1a\n\x15VIDEO_ERROR_101_COUNT\x10\xb5\x01\x12\x1a\n\x15VIDEO_ERROR_102_COUNT\x10\xb6\x01\x12\x1a\n\x15VIDEO_ERROR_200_COUNT\x10\xb7\x01\x12\x1a\n\x15VIDEO_ERROR_201_COUNT\x10\xb8\x01\x12\x1a\n\x15VIDEO_ERROR_202_COUNT\x10\xb9\x01\x12\x1a\n\x15VIDEO_ERROR_203_COUNT\x10\xba\x01\x12\x1a\n\x15VIDEO_ERROR_300_COUNT\x10\xbb\x01\x12\x1a\n\x15VIDEO_ERROR_301_COUNT\x10\xbc\x01\x12\x1a\n\x15VIDEO_ERROR_302_COUNT\x10\xbd\x01\x12\x1a\n\x15VIDEO_ERROR_303_COUNT\x10\xbe\x01\x12\x1a\n\x15VIDEO_ERROR_400_COUNT\x10\xbf\x01\x12\x1a\n\x15VIDEO_ERROR_401_COUNT\x10\xc0\x01\x12\x1a\n\x15VIDEO_ERROR_402_COUNT\x10\xc1\x01\x12\x1a\n\x15VIDEO_ERROR_403_COUNT\x10\xc2\x01\x12\x1a\n\x15VIDEO_ERROR_405_COUNT\x10\xc3\x01\x12\x1a\n\x15VIDEO_ERROR_406_COUNT\x10\xc4\x01\x12\x1a\n\x15VIDEO_ERROR_407_COUNT\x10\xc5\x01\x12\x1a\n\x15VIDEO_ERROR_408_COUNT\x10\xc6\x01\x12\x1a\n\x15VIDEO_ERROR_409_COUNT\x10\xc7\x01\x12\x1a\n\x15VIDEO_ERROR_410_COUNT\x10\xc8\x01\x12\x1a\n\x15VIDEO_ERROR_500_COUNT\x10\xc9\x01\x12\x1a\n\x15VIDEO_ERROR_501_COUNT\x10\xca\x01\x12\x1a\n\x15VIDEO_ERROR_502_COUNT\x10\xcb\x01\x12\x1a\n\x15VIDEO_ERROR_503_COUNT\x10\xcc\x01\x12\x1a\n\x15VIDEO_ERROR_600_COUNT\x10\xcd\x01\x12\x1a\n\x15VIDEO_ERROR_601_COUNT\x10\xce\x01\x12\x1a\n\x15VIDEO_ERROR_602_COUNT\x10\xcf\x01\x12\x1a\n\x15VIDEO_ERROR_603_COUNT\x10\xd0\x01\x12\x1a\n\x15VIDEO_ERROR_604_COUNT\x10\xd1\x01\x12\x1a\n\x15VIDEO_ERROR_900_COUNT\x10\xd2\x01\x12\x1a\n\x15VIDEO_ERROR_901_COUNT\x10\xd3\x01\x12.\n*VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE\x10\\\x12\x1f\n\x1bVIDEO_INTERACTION_COLLAPSES\x10]\x12\x1d\n\x19VIDEO_INTERACTION_EXPANDS\x10_\x12\"\n\x1eVIDEO_INTERACTION_FULL_SCREENS\x10`\x12\x1b\n\x17VIDEO_INTERACTION_MUTES\x10\x61\x12\x1c\n\x18VIDEO_INTERACTION_PAUSES\x10\x62\x12\x1d\n\x19VIDEO_INTERACTION_RESUMES\x10\x63\x12\x1d\n\x19VIDEO_INTERACTION_REWINDS\x10\x64\x12\x1d\n\x19VIDEO_INTERACTION_UNMUTES\x10\x65\x12!\n\x1dVIDEO_INTERACTION_VIDEO_SKIPS\x10\x66\x12$\n\x1fVIDEO_MONETIZABLE_CONTENT_VIEWS\x10\xd9\x04\x12$\n\x1fVIDEO_REAL_TIME_CREATIVE_SERVES\x10\x8b\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_100_COUNT\x10\x8f\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_101_COUNT\x10\x90\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_102_COUNT\x10\x91\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_200_COUNT\x10\x92\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_201_COUNT\x10\x93\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_202_COUNT\x10\x94\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_203_COUNT\x10\x95\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_300_COUNT\x10\x96\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_301_COUNT\x10\x97\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_302_COUNT\x10\x98\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_303_COUNT\x10\x99\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_400_COUNT\x10\x9a\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_401_COUNT\x10\x9b\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_402_COUNT\x10\x9c\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_403_COUNT\x10\x9d\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_405_COUNT\x10\x9e\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_406_COUNT\x10\x9f\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_407_COUNT\x10\xa0\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_408_COUNT\x10\xa1\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_409_COUNT\x10\xa2\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_410_COUNT\x10\xa3\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_500_COUNT\x10\xa4\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_501_COUNT\x10\xa5\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_502_COUNT\x10\xa6\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_503_COUNT\x10\xa7\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_600_COUNT\x10\xa8\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_601_COUNT\x10\xa9\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_602_COUNT\x10\xaa\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_603_COUNT\x10\xab\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_604_COUNT\x10\xac\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_900_COUNT\x10\xad\x01\x12$\n\x1fVIDEO_REAL_TIME_ERROR_901_COUNT\x10\xae\x01\x12 \n\x1bVIDEO_REAL_TIME_IMPRESSIONS\x10\x8a\x01\x12$\n\x1fVIDEO_REAL_TIME_MATCHED_QUERIES\x10\x8c\x01\x12&\n!VIDEO_REAL_TIME_TOTAL_ERROR_COUNT\x10\xaf\x01\x12\"\n\x1dVIDEO_REAL_TIME_TOTAL_QUERIES\x10\x8e\x01\x12&\n!VIDEO_REAL_TIME_UNMATCHED_QUERIES\x10\x8d\x01\x12-\n(VIDEO_TRUE_OPPORTUNITIES_TOTAL_BREAK_END\x10\x97\x02\x12/\n*VIDEO_TRUE_OPPORTUNITIES_TOTAL_BREAK_START\x10\x98\x02\x12@\n;VIDEO_TRUE_OPPORTUNITIES_TOTAL_CAPPED_OPPORTUNITIES_ADBREAK\x10\x99\x02\x12?\n:VIDEO_TRUE_OPPORTUNITIES_TOTAL_CAPPED_OPPORTUNITIES_SUBPOD\x10\x9a\x02\x12\x34\n/VIDEO_TRUE_OPPORTUNITIES_TOTAL_DURATION_ADBREAK\x10\x9b\x02\x12\x33\n.VIDEO_TRUE_OPPORTUNITIES_TOTAL_DURATION_SUBPOD\x10\x9c\x02\x12<\n7VIDEO_TRUE_OPPORTUNITIES_TOTAL_MATCHED_DURATION_ADBREAK\x10\x9d\x02\x12;\n6VIDEO_TRUE_OPPORTUNITIES_TOTAL_MATCHED_DURATION_SUBPOD\x10\x9e\x02\x12\x41\n\n\x10\x64imension_values\x18\x01 \x03(\x0b\x32$.google.ads.admanager.v1.ReportValue\x12V\n\x13metric_value_groups\x18\x02 \x03(\x0b\x32\x39.google.ads.admanager.v1.ReportDataTable.MetricValueGroup\x1a\xd3\x03\n\x10MetricValueGroup\x12<\n\x0eprimary_values\x18\x01 \x03(\x0b\x32$.google.ads.admanager.v1.ReportValue\x12M\n\x1fprimary_percent_of_total_values\x18\x02 \x03(\x0b\x32$.google.ads.admanager.v1.ReportValue\x12?\n\x11\x63omparison_values\x18\x03 \x03(\x0b\x32$.google.ads.admanager.v1.ReportValue\x12P\n\"comparison_percent_of_total_values\x18\x04 \x03(\x0b\x32$.google.ads.admanager.v1.ReportValue\x12\x44\n\x16\x61\x62solute_change_values\x18\x05 \x03(\x0b\x32$.google.ads.admanager.v1.ReportValue\x12\x44\n\x16relative_change_values\x18\x06 \x03(\x0b\x32$.google.ads.admanager.v1.ReportValue\x12\x13\n\x0b\x66lag_values\x18\x07 \x03(\x08\x42\xc7\x01\n\x1b\x63om.google.ads.admanager.v1B\x13ReportMessagesProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" +descriptor_data = "\n-google/ads/admanager/v1/report_messages.proto\x12\x17google.ads.admanager.v1\x1a/google/ads/admanager/v1/report_definition.proto\x1a-google/ads/admanager/v1/report_delivery.proto\x1a*google/ads/admanager/v1/report_value.proto\x1a\x34google/ads/admanager/v1/report_visibility_enum.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9d\x04\n\x06Report\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x16\n\treport_id\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12W\n\nvisibility\x18\x02 \x01(\x0e\x32>.google.ads.admanager.v1.ReportVisibilityEnum.ReportVisibilityB\x03\xe0\x41\x01\x12I\n\x11report_definition\x18\x04 \x01(\x0b\x32).google.ads.admanager.v1.ReportDefinitionB\x03\xe0\x41\x02\x12\x19\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06locale\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12G\n\x10schedule_options\x18\t \x01(\x0b\x32(.google.ads.admanager.v1.ScheduleOptionsB\x03\xe0\x41\x01:_\xea\x41\\\n\x1f\x61\x64manager.googleapis.com/Report\x12(networks/{network_code}/reports/{report}*\x07reports2\x06report\"\x87\x05\n\x0fReportDataTable\x1a\x9d\x01\n\x03Row\x12>\n\x10\x64imension_values\x18\x01 \x03(\x0b\x32$.google.ads.admanager.v1.ReportValue\x12V\n\x13metric_value_groups\x18\x02 \x03(\x0b\x32\x39.google.ads.admanager.v1.ReportDataTable.MetricValueGroup\x1a\xd3\x03\n\x10MetricValueGroup\x12<\n\x0eprimary_values\x18\x01 \x03(\x0b\x32$.google.ads.admanager.v1.ReportValue\x12M\n\x1fprimary_percent_of_total_values\x18\x02 \x03(\x0b\x32$.google.ads.admanager.v1.ReportValue\x12?\n\x11\x63omparison_values\x18\x03 \x03(\x0b\x32$.google.ads.admanager.v1.ReportValue\x12P\n\"comparison_percent_of_total_values\x18\x04 \x03(\x0b\x32$.google.ads.admanager.v1.ReportValue\x12\x44\n\x16\x61\x62solute_change_values\x18\x05 \x03(\x0b\x32$.google.ads.admanager.v1.ReportValue\x12\x44\n\x16relative_change_values\x18\x06 \x03(\x0b\x32$.google.ads.admanager.v1.ReportValue\x12\x13\n\x0b\x66lag_values\x18\x07 \x03(\x08\x42\xc7\x01\n\x1b\x63om.google.ads.admanager.v1B\x13ReportMessagesProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) @@ -22,7 +23,6 @@ module Ads module AdManager module V1 Report = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.Report").msgclass - Report::Visibility = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.Report.Visibility").enummodule ReportDataTable = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ReportDataTable").msgclass ReportDataTable::Row = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ReportDataTable.Row").msgclass ReportDataTable::MetricValueGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ReportDataTable.MetricValueGroup").msgclass diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/report_visibility_enum_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/report_visibility_enum_pb.rb new file mode 100644 index 000000000000..ae75ba1f0eab --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/report_visibility_enum_pb.rb @@ -0,0 +1,22 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/admanager/v1/report_visibility_enum.proto + +require 'google/protobuf' + + +descriptor_data = "\n4google/ads/admanager/v1/report_visibility_enum.proto\x12\x17google.ads.admanager.v1\"C\n\x14ReportVisibilityEnum\"+\n\x10ReportVisibility\x12\n\n\x06HIDDEN\x10\x00\x12\x0b\n\x07VISIBLE\x10\x02\x42\xcd\x01\n\x1b\x63om.google.ads.admanager.v1B\x19ReportVisibilityEnumProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Ads + module AdManager + module V1 + ReportVisibilityEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ReportVisibilityEnum").msgclass + ReportVisibilityEnum::ReportVisibility = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ReportVisibilityEnum.ReportVisibility").enummodule + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/suggested_ad_unit_service_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/suggested_ad_unit_service_pb.rb index 5e133afcba6f..6670343a5e7a 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/suggested_ad_unit_service_pb.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/suggested_ad_unit_service_pb.rb @@ -11,7 +11,7 @@ require 'google/api/resource_pb' -descriptor_data = "\n7google/ads/admanager/v1/suggested_ad_unit_service.proto\x12\x17google.ads.admanager.v1\x1a\x38google/ads/admanager/v1/suggested_ad_unit_messages.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"[\n\x19GetSuggestedAdUnitRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(admanager.googleapis.com/SuggestedAdUnit\"\xc7\x01\n\x1bListSuggestedAdUnitsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\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\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04skip\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\"\x91\x01\n\x1cListSuggestedAdUnitsResponse\x12\x44\n\x12suggested_ad_units\x18\x01 \x03(\x0b\x32(.google.ads.admanager.v1.SuggestedAdUnit\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\"\xa0\x01\n#BatchApproveSuggestedAdUnitsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\x12?\n\x05names\x18\x02 \x03(\tB0\xe0\x41\x02\xfa\x41*\n(admanager.googleapis.com/SuggestedAdUnit\"f\n$BatchApproveSuggestedAdUnitsResponse\x12>\n\x10\x63reated_ad_units\x18\x01 \x03(\tB$\xfa\x41!\n\x1f\x61\x64manager.googleapis.com/AdUnit2\xf1\x05\n\x16SuggestedAdUnitService\x12\xab\x01\n\x12GetSuggestedAdUnit\x12\x32.google.ads.admanager.v1.GetSuggestedAdUnitRequest\x1a(.google.ads.admanager.v1.SuggestedAdUnit\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02*\x12(/v1/{name=networks/*/suggestedAdUnits/*}\x12\xbe\x01\n\x14ListSuggestedAdUnits\x12\x34.google.ads.admanager.v1.ListSuggestedAdUnitsRequest\x1a\x35.google.ads.admanager.v1.ListSuggestedAdUnitsResponse\"9\xda\x41\x06parent\x82\xd3\xe4\x93\x02*\x12(/v1/{parent=networks/*}/suggestedAdUnits\x12\xeb\x01\n\x1c\x42\x61tchApproveSuggestedAdUnits\x12<.google.ads.admanager.v1.BatchApproveSuggestedAdUnitsRequest\x1a=.google.ads.admanager.v1.BatchApproveSuggestedAdUnitsResponse\"N\xda\x41\x0cparent,names\x82\xd3\xe4\x93\x02\x39\"4/v1/{parent=networks/*}/suggestedAdUnit:batchApprove:\x01*\x1az\xca\x41\x18\x61\x64manager.googleapis.com\xd2\x41\\https://www.googleapis.com/auth/admanager,https://www.googleapis.com/auth/admanager.readonlyB\xcf\x01\n\x1b\x63om.google.ads.admanager.v1B\x1bSuggestedAdUnitServiceProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" +descriptor_data = "\n7google/ads/admanager/v1/suggested_ad_unit_service.proto\x12\x17google.ads.admanager.v1\x1a\x38google/ads/admanager/v1/suggested_ad_unit_messages.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"[\n\x19GetSuggestedAdUnitRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(admanager.googleapis.com/SuggestedAdUnit\"\xc7\x01\n\x1bListSuggestedAdUnitsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\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\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04skip\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\"\x91\x01\n\x1cListSuggestedAdUnitsResponse\x12\x44\n\x12suggested_ad_units\x18\x01 \x03(\x0b\x32(.google.ads.admanager.v1.SuggestedAdUnit\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\"\xa0\x01\n#BatchApproveSuggestedAdUnitsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\x12?\n\x05names\x18\x02 \x03(\tB0\xe0\x41\x02\xfa\x41*\n(admanager.googleapis.com/SuggestedAdUnit\"f\n$BatchApproveSuggestedAdUnitsResponse\x12>\n\x10\x63reated_ad_units\x18\x01 \x03(\tB$\xfa\x41!\n\x1f\x61\x64manager.googleapis.com/AdUnit2\xf2\x05\n\x16SuggestedAdUnitService\x12\xab\x01\n\x12GetSuggestedAdUnit\x12\x32.google.ads.admanager.v1.GetSuggestedAdUnitRequest\x1a(.google.ads.admanager.v1.SuggestedAdUnit\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02*\x12(/v1/{name=networks/*/suggestedAdUnits/*}\x12\xbe\x01\n\x14ListSuggestedAdUnits\x12\x34.google.ads.admanager.v1.ListSuggestedAdUnitsRequest\x1a\x35.google.ads.admanager.v1.ListSuggestedAdUnitsResponse\"9\xda\x41\x06parent\x82\xd3\xe4\x93\x02*\x12(/v1/{parent=networks/*}/suggestedAdUnits\x12\xec\x01\n\x1c\x42\x61tchApproveSuggestedAdUnits\x12<.google.ads.admanager.v1.BatchApproveSuggestedAdUnitsRequest\x1a=.google.ads.admanager.v1.BatchApproveSuggestedAdUnitsResponse\"O\xda\x41\x0cparent,names\x82\xd3\xe4\x93\x02:\"5/v1/{parent=networks/*}/suggestedAdUnits:batchApprove:\x01*\x1az\xca\x41\x18\x61\x64manager.googleapis.com\xd2\x41\\https://www.googleapis.com/auth/admanager,https://www.googleapis.com/auth/admanager.readonlyB\xcf\x01\n\x1b\x63om.google.ads.admanager.v1B\x1bSuggestedAdUnitServiceProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/taxonomy_category_service_services_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/taxonomy_category_service_services_pb.rb index ef72cb52f081..ac9bb6fbbd00 100644 --- a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/taxonomy_category_service_services_pb.rb +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/taxonomy_category_service_services_pb.rb @@ -33,9 +33,9 @@ class Service self.unmarshal_class_method = :decode self.service_name = 'google.ads.admanager.v1.TaxonomyCategoryService' - # API to retrieve a `TaxonomyCategory` object. + # Retrieves a `TaxonomyCategory` object. rpc :GetTaxonomyCategory, ::Google::Ads::AdManager::V1::GetTaxonomyCategoryRequest, ::Google::Ads::AdManager::V1::TaxonomyCategory - # API to retrieve a list of `TaxonomyCategory` objects. + # Lists `TaxonomyCategory` objects. rpc :ListTaxonomyCategories, ::Google::Ads::AdManager::V1::ListTaxonomyCategoriesRequest, ::Google::Ads::AdManager::V1::ListTaxonomyCategoriesResponse end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/third_party_data_declaration_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/third_party_data_declaration_pb.rb new file mode 100644 index 000000000000..7de50e22c0e3 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/third_party_data_declaration_pb.rb @@ -0,0 +1,25 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/admanager/v1/third_party_data_declaration.proto + +require 'google/protobuf' + +require 'google/ads/admanager/v1/third_party_data_declaration_type_enum_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n:google/ads/admanager/v1/third_party_data_declaration.proto\x12\x17google.ads.admanager.v1\x1a\x44google/ads/admanager/v1/third_party_data_declaration_type_enum.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe7\x01\n\x19ThirdPartyDataDeclaration\x12w\n\x10\x64\x65\x63laration_type\x18\x01 \x01(\x0e\x32X.google.ads.admanager.v1.ThirdPartyDataDeclarationTypeEnum.ThirdPartyDataDeclarationTypeB\x03\xe0\x41\x01\x12Q\n\x15third_party_companies\x18\x02 \x03(\tB2\xe0\x41\x01\xfa\x41,\n*admanager.googleapis.com/ThirdPartyCompanyB\xd2\x01\n\x1b\x63om.google.ads.admanager.v1B\x1eThirdPartyDataDeclarationProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Ads + module AdManager + module V1 + ThirdPartyDataDeclaration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ThirdPartyDataDeclaration").msgclass + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/third_party_data_declaration_type_enum_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/third_party_data_declaration_type_enum_pb.rb new file mode 100644 index 000000000000..4cd5244fdf9e --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/third_party_data_declaration_type_enum_pb.rb @@ -0,0 +1,22 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/admanager/v1/third_party_data_declaration_type_enum.proto + +require 'google/protobuf' + + +descriptor_data = "\nDgoogle/ads/admanager/v1/third_party_data_declaration_type_enum.proto\x12\x17google.ads.admanager.v1\"\x8f\x01\n!ThirdPartyDataDeclarationTypeEnum\"j\n\x1dThirdPartyDataDeclarationType\x12\x31\n-THIRD_PARTY_DATA_DECLARATION_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44\x45\x43LARED\x10\x01\x12\x08\n\x04NONE\x10\x02\x42\xda\x01\n\x1b\x63om.google.ads.admanager.v1B&ThirdPartyDataDeclarationTypeEnumProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Ads + module AdManager + module V1 + ThirdPartyDataDeclarationTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ThirdPartyDataDeclarationTypeEnum").msgclass + ThirdPartyDataDeclarationTypeEnum::ThirdPartyDataDeclarationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ThirdPartyDataDeclarationTypeEnum.ThirdPartyDataDeclarationType").enummodule + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/video_tracking_url_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/video_tracking_url_pb.rb new file mode 100644 index 000000000000..1178ec23300a --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/video_tracking_url_pb.rb @@ -0,0 +1,24 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/admanager/v1/video_tracking_url.proto + +require 'google/protobuf' + +require 'google/ads/admanager/v1/conversion_event_enum_pb' +require 'google/api/field_behavior_pb' + + +descriptor_data = "\n0google/ads/admanager/v1/video_tracking_url.proto\x12\x17google.ads.admanager.v1\x1a\x33google/ads/admanager/v1/conversion_event_enum.proto\x1a\x1fgoogle/api/field_behavior.proto\"\x81\x01\n\x10VideoTrackingUrl\x12[\n\x10\x63onversion_event\x18\x01 \x01(\x0e\x32<.google.ads.admanager.v1.ConversionEventEnum.ConversionEventB\x03\xe0\x41\x02\x12\x10\n\x03url\x18\x02 \x01(\tB\x03\xe0\x41\x01\x42\xc9\x01\n\x1b\x63om.google.ads.admanager.v1B\x15VideoTrackingUrlProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Ads + module AdManager + module V1 + VideoTrackingUrl = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.VideoTrackingUrl").msgclass + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/viewability_provider_messages_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/viewability_provider_messages_pb.rb new file mode 100644 index 000000000000..8413b55f3450 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/viewability_provider_messages_pb.rb @@ -0,0 +1,25 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/admanager/v1/viewability_provider_messages.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\n;google/ads/admanager/v1/viewability_provider_messages.proto\x12\x17google.ads.admanager.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc4\x07\n\x13ViewabilityProvider\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1e\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02H\x00\x88\x01\x01\x12\x1c\n\nvendor_key\x18\x04 \x01(\tB\x03\xe0\x41\x02H\x01\x88\x01\x01\x12)\n\x17verification_script_url\x18\x05 \x01(\tB\x03\xe0\x41\x02H\x02\x88\x01\x01\x12\x34\n\"verification_script_url_parameters\x18\x06 \x01(\tB\x03\xe0\x41\x01H\x03\x88\x01\x01\x12\'\n\x15rejection_tracker_url\x18\x07 \x01(\tB\x03\xe0\x41\x01H\x04\x88\x01\x01\x12\x19\n\x07\x61\x64\x64ress\x18\x08 \x01(\tB\x03\xe0\x41\x01H\x05\x88\x01\x01\x12\x17\n\x05\x65mail\x18\t \x01(\tB\x03\xe0\x41\x01H\x06\x88\x01\x01\x12\x15\n\x03\x66\x61x\x18\n \x01(\tB\x03\xe0\x41\x01H\x07\x88\x01\x01\x12\x17\n\x05phone\x18\x0b \x01(\tB\x03\xe0\x41\x01H\x08\x88\x01\x01\x12\x1d\n\x0b\x65xternal_id\x18\x0c \x01(\tB\x03\xe0\x41\x01H\t\x88\x01\x01\x12\x19\n\x07\x63omment\x18\r \x01(\tB\x03\xe0\x41\x01H\n\x88\x01\x01\x12\x46\n\x0fprimary_contact\x18\x0e \x01(\tB(\xe0\x41\x01\xfa\x41\"\n admanager.googleapis.com/ContactH\x0b\x88\x01\x01\x12<\n\rapplied_teams\x18\x10 \x03(\tB%\xe0\x41\x01\xfa\x41\x1f\n\x1d\x61\x64manager.googleapis.com/Team\x12\x34\n\x0bupdate_time\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03:\xa2\x01\xea\x41\x9e\x01\n,admanager.googleapis.com/ViewabilityProvider\x12\x43networks/{network_code}/viewabilityProviders/{viewability_provider}*\x14viewabilityProviders2\x13viewabilityProviderB\x0f\n\r_display_nameB\r\n\x0b_vendor_keyB\x1a\n\x18_verification_script_urlB%\n#_verification_script_url_parametersB\x18\n\x16_rejection_tracker_urlB\n\n\x08_addressB\x08\n\x06_emailB\x06\n\x04_faxB\x08\n\x06_phoneB\x0e\n\x0c_external_idB\n\n\x08_commentB\x12\n\x10_primary_contactB\xd4\x01\n\x1b\x63om.google.ads.admanager.v1B ViewabilityProviderMessagesProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Ads + module AdManager + module V1 + ViewabilityProvider = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ViewabilityProvider").msgclass + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/viewability_provider_service_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/viewability_provider_service_pb.rb new file mode 100644 index 000000000000..22b78da18426 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/viewability_provider_service_pb.rb @@ -0,0 +1,36 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/admanager/v1/viewability_provider_service.proto + +require 'google/protobuf' + +require 'google/ads/admanager/v1/viewability_provider_messages_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' + + +descriptor_data = "\n:google/ads/admanager/v1/viewability_provider_service.proto\x12\x17google.ads.admanager.v1\x1a;google/ads/admanager/v1/viewability_provider_messages.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"c\n\x1dGetViewabilityProviderRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,admanager.googleapis.com/ViewabilityProvider\"\xcb\x01\n\x1fListViewabilityProvidersRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\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\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04skip\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\"\x9c\x01\n ListViewabilityProvidersResponse\x12K\n\x15viewability_providers\x18\x01 \x03(\x0b\x32,.google.ads.admanager.v1.ViewabilityProvider\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\"\xad\x01\n CreateViewabilityProviderRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\x12O\n\x14viewability_provider\x18\x02 \x01(\x0b\x32,.google.ads.admanager.v1.ViewabilityProviderB\x03\xe0\x41\x02\"\xb4\x01\n&BatchCreateViewabilityProvidersRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\x12P\n\x08requests\x18\x02 \x03(\x0b\x32\x39.google.ads.admanager.v1.CreateViewabilityProviderRequestB\x03\xe0\x41\x02\"v\n\'BatchCreateViewabilityProvidersResponse\x12K\n\x15viewability_providers\x18\x01 \x03(\x0b\x32,.google.ads.admanager.v1.ViewabilityProvider\"\xa9\x01\n UpdateViewabilityProviderRequest\x12O\n\x14viewability_provider\x18\x01 \x01(\x0b\x32,.google.ads.admanager.v1.ViewabilityProviderB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xb4\x01\n&BatchUpdateViewabilityProvidersRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\x12P\n\x08requests\x18\x02 \x03(\x0b\x32\x39.google.ads.admanager.v1.UpdateViewabilityProviderRequestB\x03\xe0\x41\x02\"v\n\'BatchUpdateViewabilityProvidersResponse\x12K\n\x15viewability_providers\x18\x01 \x03(\x0b\x32,.google.ads.admanager.v1.ViewabilityProvider2\xa0\x0c\n\x1aViewabilityProviderService\x12\xbb\x01\n\x16GetViewabilityProvider\x12\x36.google.ads.admanager.v1.GetViewabilityProviderRequest\x1a,.google.ads.admanager.v1.ViewabilityProvider\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1/{name=networks/*/viewabilityProviders/*}\x12\xce\x01\n\x18ListViewabilityProviders\x12\x38.google.ads.admanager.v1.ListViewabilityProvidersRequest\x1a\x39.google.ads.admanager.v1.ListViewabilityProvidersResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=networks/*}/viewabilityProviders\x12\xee\x01\n\x19\x43reateViewabilityProvider\x12\x39.google.ads.admanager.v1.CreateViewabilityProviderRequest\x1a,.google.ads.admanager.v1.ViewabilityProvider\"h\xda\x41\x1bparent,viewability_provider\x82\xd3\xe4\x93\x02\x44\",/v1/{parent=networks/*}/viewabilityProviders:\x14viewability_provider\x12\xfb\x01\n\x1f\x42\x61tchCreateViewabilityProviders\x12?.google.ads.admanager.v1.BatchCreateViewabilityProvidersRequest\x1a@.google.ads.admanager.v1.BatchCreateViewabilityProvidersResponse\"U\xda\x41\x0fparent,requests\x82\xd3\xe4\x93\x02=\"8/v1/{parent=networks/*}/viewabilityProviders:batchCreate:\x01*\x12\x89\x02\n\x19UpdateViewabilityProvider\x12\x39.google.ads.admanager.v1.UpdateViewabilityProviderRequest\x1a,.google.ads.admanager.v1.ViewabilityProvider\"\x82\x01\xda\x41 viewability_provider,update_mask\x82\xd3\xe4\x93\x02Y2A/v1/{viewability_provider.name=networks/*/viewabilityProviders/*}:\x14viewability_provider\x12\xfb\x01\n\x1f\x42\x61tchUpdateViewabilityProviders\x12?.google.ads.admanager.v1.BatchUpdateViewabilityProvidersRequest\x1a@.google.ads.admanager.v1.BatchUpdateViewabilityProvidersResponse\"U\xda\x41\x0fparent,requests\x82\xd3\xe4\x93\x02=\"8/v1/{parent=networks/*}/viewabilityProviders:batchUpdate:\x01*\x1az\xca\x41\x18\x61\x64manager.googleapis.com\xd2\x41\\https://www.googleapis.com/auth/admanager,https://www.googleapis.com/auth/admanager.readonlyB\xd3\x01\n\x1b\x63om.google.ads.admanager.v1B\x1fViewabilityProviderServiceProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Ads + module AdManager + module V1 + GetViewabilityProviderRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.GetViewabilityProviderRequest").msgclass + ListViewabilityProvidersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ListViewabilityProvidersRequest").msgclass + ListViewabilityProvidersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ListViewabilityProvidersResponse").msgclass + CreateViewabilityProviderRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.CreateViewabilityProviderRequest").msgclass + BatchCreateViewabilityProvidersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchCreateViewabilityProvidersRequest").msgclass + BatchCreateViewabilityProvidersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchCreateViewabilityProvidersResponse").msgclass + UpdateViewabilityProviderRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.UpdateViewabilityProviderRequest").msgclass + BatchUpdateViewabilityProvidersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchUpdateViewabilityProvidersRequest").msgclass + BatchUpdateViewabilityProvidersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.BatchUpdateViewabilityProvidersResponse").msgclass + end + end + end +end diff --git a/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/viewability_provider_service_services_pb.rb b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/viewability_provider_service_services_pb.rb new file mode 100644 index 000000000000..780e81e125e0 --- /dev/null +++ b/google-ads-ad_manager-v1/lib/google/ads/admanager/v1/viewability_provider_service_services_pb.rb @@ -0,0 +1,62 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/ads/admanager/v1/viewability_provider_service.proto for package 'Google.Ads.AdManager.V1' +# Original file comments: +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/ads/admanager/v1/viewability_provider_service_pb' + +module Google + module Ads + module AdManager + module V1 + module ViewabilityProviderService + # Provides methods for handling + # [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] objects. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.ads.admanager.v1.ViewabilityProviderService' + + # Retrieves a + # [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] object. + rpc :GetViewabilityProvider, ::Google::Ads::AdManager::V1::GetViewabilityProviderRequest, ::Google::Ads::AdManager::V1::ViewabilityProvider + # Lists [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] + # objects. + rpc :ListViewabilityProviders, ::Google::Ads::AdManager::V1::ListViewabilityProvidersRequest, ::Google::Ads::AdManager::V1::ListViewabilityProvidersResponse + # Creates a + # [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] object. + rpc :CreateViewabilityProvider, ::Google::Ads::AdManager::V1::CreateViewabilityProviderRequest, ::Google::Ads::AdManager::V1::ViewabilityProvider + # Creates [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] + # objects. + rpc :BatchCreateViewabilityProviders, ::Google::Ads::AdManager::V1::BatchCreateViewabilityProvidersRequest, ::Google::Ads::AdManager::V1::BatchCreateViewabilityProvidersResponse + # Updates a + # [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] object. + rpc :UpdateViewabilityProvider, ::Google::Ads::AdManager::V1::UpdateViewabilityProviderRequest, ::Google::Ads::AdManager::V1::ViewabilityProvider + # Batch updates + # [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] objects. + rpc :BatchUpdateViewabilityProviders, ::Google::Ads::AdManager::V1::BatchUpdateViewabilityProvidersRequest, ::Google::Ads::AdManager::V1::BatchUpdateViewabilityProvidersResponse + end + + Stub = Service.rpc_stub_class + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/ad_rule_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/ad_rule_service.rb index 626eefbf6b96..d8f54dc6e814 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/ad_rule_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/ad_rule_service.rb @@ -55,13 +55,12 @@ class GetAdRuleRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • name
  • - #
  • priority
  • - #
  • status
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `name` + # * `priority` + # * `status` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/ad_spot_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/ad_spot_service.rb index 357166c7bb27..8e595f1cd87f 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/ad_spot_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/ad_spot_service.rb @@ -55,14 +55,13 @@ class GetAdSpotRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • canonicalDisplayName
  • - #
  • customSpot
  • - #
  • displayName
  • - #
  • flexible
  • - #
  • name
  • - #
+ # **Filterable fields:** + # + # * `canonicalDisplayName` + # * `customSpot` + # * `displayName` + # * `flexible` + # * `name` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/ad_unit_enums.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/ad_unit_enums.rb index 66bfc59335ba..99958a37db2a 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/ad_unit_enums.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/ad_unit_enums.rb @@ -85,6 +85,29 @@ module TargetWindow BLANK = 2 end end + + # Wrapper message for + # {::Google::Ads::AdManager::V1::RefreshRateTypeEnum::RefreshRateType RefreshRateType} + class RefreshRateTypeEnum + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents the refresh rate control type for an ad unit. + # New values may be added in the future. + module RefreshRateType + # Default value. This value is unused. + REFRESH_RATE_TYPE_UNSPECIFIED = 0 + + # Indicates refresh is disabled. + DISABLED = 1 + + # Represents the Google optimized refresh rate. + OPTIMIZED = 2 + + # Represents a fixed interval refresh rate. + FIXED_INTERVAL = 3 + end + end end end end diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/ad_unit_messages.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/ad_unit_messages.rb index 08d51404b16e..8f7bf1e79ac6 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/ad_unit_messages.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/ad_unit_messages.rb @@ -133,6 +133,10 @@ module V1 # from the AdSense content network. This attribute defaults to the ad unit's # parent or ancestor's setting if one has been set. If no ancestor of the ad # unit has set appliedAdsenseEnabled, the attribute is defaulted to true. + # @!attribute [rw] refresh_rate_type + # @return [::Google::Ads::AdManager::V1::RefreshRateTypeEnum::RefreshRateType] + # Optional. Non-empty default. Defines the type of refresh rate control for + # this ad unit. This field defaults to `DISABLED`. class AdUnit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/ad_unit_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/ad_unit_service.rb index 6702f1a9e4b5..7b31b771d23b 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/ad_unit_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/ad_unit_service.rb @@ -55,21 +55,20 @@ class GetAdUnitRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • adUnitCode
  • - #
  • adUnitSizes.canonicalName
  • - #
  • displayName
  • - #
  • effectiveAdsenseEnabled
  • - #
  • explicitlyTargeted
  • - #
  • externalSetTopBoxChannelId
  • - #
  • hasChildren
  • - #
  • name
  • - #
  • parentAdUnit
  • - #
  • status
  • - #
  • teams
  • - #
  • updateTime
  • - #
+ # **Filterable fields:** + # + # * `adUnitCode` + # * `adUnitSizes.canonicalName` + # * `displayName` + # * `effectiveAdsenseEnabled` + # * `explicitlyTargeted` + # * `externalSetTopBoxChannelId` + # * `hasChildren` + # * `name` + # * `parentAdUnit` + # * `status` + # * `teams` + # * `updateTime` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/application_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/application_service.rb index d0bb04292405..fd7d12dc2b94 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/application_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/application_service.rb @@ -55,18 +55,17 @@ class GetApplicationRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • appStoreId
  • - #
  • appStores
  • - #
  • applicationCode
  • - #
  • approvalStatus
  • - #
  • archived
  • - #
  • displayName
  • - #
  • name
  • - #
  • platform
  • - #
  • webviewClaimingStatus
  • - #
+ # **Filterable fields:** + # + # * `appStoreId` + # * `appStores` + # * `applicationCode` + # * `approvalStatus` + # * `archived` + # * `displayName` + # * `name` + # * `platform` + # * `webviewClaimingStatus` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/audience_segment_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/audience_segment_service.rb index 00c67d10a646..9ff9000889ab 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/audience_segment_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/audience_segment_service.rb @@ -55,10 +55,9 @@ class GetAudienceSegmentRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • displayName
  • - #
+ # **Filterable fields:** + # + # * `displayName` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/bandwidth_group_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/bandwidth_group_service.rb index 1755bdc88490..d7d63c060af8 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/bandwidth_group_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/bandwidth_group_service.rb @@ -55,11 +55,10 @@ class GetBandwidthGroupRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • name
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `name` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/browser_language_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/browser_language_service.rb index 0794abda7478..698322ab361e 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/browser_language_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/browser_language_service.rb @@ -55,11 +55,10 @@ class GetBrowserLanguageRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • name
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `name` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/browser_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/browser_service.rb index 10a2241af6c8..ad496c181cec 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/browser_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/browser_service.rb @@ -55,13 +55,12 @@ class GetBrowserRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • majorVersion
  • - #
  • minorVersion
  • - #
  • name
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `majorVersion` + # * `minorVersion` + # * `name` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/cdn_config_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/cdn_config_service.rb index 3cb5f63d13a3..505adda7fda9 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/cdn_config_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/cdn_config_service.rb @@ -55,14 +55,13 @@ class GetCdnConfigRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • cdnConfigStatus
  • - #
  • cdnConfigType
  • - #
  • displayName
  • - #
  • name
  • - #
  • sourceContentConfig.ingestSettings.urlPrefix
  • - #
+ # **Filterable fields:** + # + # * `cdnConfigStatus` + # * `cdnConfigType` + # * `displayName` + # * `name` + # * `sourceContentConfig.ingestSettings.urlPrefix` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/child_publisher_messages.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/child_publisher_messages.rb index aad5e6ad8e8d..5622334f7291 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/child_publisher_messages.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/child_publisher_messages.rb @@ -27,6 +27,87 @@ module V1 # Identifier. The resource name of the # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher}. Format: # `networks/{network_code}/childPublishers/{child_publisher_id}` + # @!attribute [rw] display_name + # @return [::String] + # Required. The display name of the + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher}. + # @!attribute [rw] email + # @return [::String] + # Required. The email for the + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher}. + # @!attribute [rw] child_network + # @return [::String] + # Immutable. The resource name of the + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher}'s Ad Manager + # network. + # + # Format: `networks/{network_code}` + # @!attribute [rw] delegation_type + # @return [::Google::Ads::AdManager::V1::DelegationTypeEnum::DelegationType] + # Required. The type of delegation for the + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher}. + # + # This attribute is immutable while the relationship is active. + # @!attribute [rw] parent_revenue_share_millipercent + # @return [::Integer] + # Optional. The revenue share that the parent publisher will receive in + # millipercent. For example, 15000 millipercent is 15%. + # + # This attribute is only settable for Manage Account + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher}s of non-reseller + # parent publishers. Otherwise, it is read-only and always 100%. + # + # Additionally, this attribute is immutable while the relationship is active. + # @!attribute [rw] seller_id + # @return [::String] + # Optional. The seller ID for the + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher}, as specified in + # the parent publisher's sellers.json file. + # + # This attribute is only applicable to Manage Inventory + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher}s. + # @!attribute [r] readiness_status + # @return [::Google::Ads::AdManager::V1::McmReadinessStatusEnum::McmReadinessStatus] + # Output only. The overall onboarding readiness of the + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher}. + # + # This status is correlated with ad serving, but does not include site-level + # approval information. + # @!attribute [r] invitation_status + # @return [::Google::Ads::AdManager::V1::DelegationInvitationStatusEnum::DelegationInvitationStatus] + # Output only. The status of the invitation request to the + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher}. + # @!attribute [r] approval_status + # @return [::Google::Ads::AdManager::V1::DelegationApprovalStatusEnum::DelegationApprovalStatus] + # Output only. The approval status of the + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher}. + # @!attribute [r] identity_verification_status + # @return [::Google::Ads::AdManager::V1::ChildPublisherIdentityVerificationStatusEnum::ChildPublisherIdentityVerificationStatus] + # Output only. The status of the + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher}'s identity + # verification. + # @!attribute [r] address_verification_status + # @return [::Google::Ads::AdManager::V1::ChildPublisherAddressVerificationStatusEnum::ChildPublisherAddressVerificationStatus] + # Output only. The status of the + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher}'s address + # verification (i.e., mail PIN). + # @!attribute [r] pending_onboarding_tasks + # @return [::Array<::Google::Ads::AdManager::V1::ChildPublisherOnboardingTaskEnum::ChildPublisherOnboardingTask>] + # Output only. The pending onboarding tasks that must be completed by the + # child publisher before Google's policy compliance (i.e. + # [DelegationApprovalStatus.PENDING_GOOGLE_APPROVAL][]) can be verified. + # @!attribute [r] account_status + # @return [::Google::Ads::AdManager::V1::DelegationAccountStatusEnum::DelegationAccountStatus] + # Output only. The account status of the + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher}. + # @!attribute [r] approved_manage_account_revenue_share_millipercent + # @return [::Integer] + # Output only. Provides the approved revenue share that the parent publisher + # will receive in millipercent. For example, 15000 millipercent is 15%. + # + # This attribute is only set for Manage Account + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher}s of non-reseller + # parent publishers. class ChildPublisher include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/child_publisher_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/child_publisher_service.rb new file mode 100644 index 000000000000..a9b17aea9abb --- /dev/null +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/child_publisher_service.rb @@ -0,0 +1,208 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module AdManager + module V1 + # Request object for [GetChildPublisher][] method. + # @!attribute [rw] name + # @return [::String] + # Required. The resource name of the + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher}. Format: + # `networks/{network_code}/childPublishers/{child_publisher_id}` + class GetChildPublisherRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for [ListChildPublishers][] method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent, which owns this collection of + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher}s. Format: + # `networks/{network_code}` + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher}s to return. The + # service may return fewer than this value. If unspecified, at most 50 + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher}s will be returned. + # The maximum value is 1000; values greater than 1000 will be coerced to + # 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous [ListChildPublishers][] + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to [ListChildPublishers][] + # must match the call that provided the page token. + # @!attribute [rw] filter + # @return [::String] + # Optional. Expression to filter the response. + # See syntax details at + # https://developers.google.com/ad-manager/api/beta/filters + # + # **Filterable fields:** + # + # * `accountStatus` + # * `addressVerificationStatus` + # * `approvalStatus` + # * `approvedManageAccountRevenueShareMillipercent` + # * `childNetwork` + # * `delegationType` + # * `displayName` + # * `email` + # * `identityVerificationStatus` + # * `invitationStatus` + # * `name` + # * `parentRevenueShareMillipercent` + # * `pendingOnboardingTasks` + # * `readinessStatus` + # * `sellerId` + # @!attribute [rw] order_by + # @return [::String] + # Optional. Expression to specify sorting order. + # See syntax details at + # https://developers.google.com/ad-manager/api/beta/filters#order + # @!attribute [rw] skip + # @return [::Integer] + # Optional. Number of individual resources to skip while paginating. + class ListChildPublishersRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response object for [ListChildPublishers][] containing matching + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher} objects. + # @!attribute [rw] child_publishers + # @return [::Array<::Google::Ads::AdManager::V1::ChildPublisher>] + # The {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher} objects from + # the specified network. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] total_size + # @return [::Integer] + # Total number of {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher} + # objects. If a filter was included in the request, this reflects the total + # number after the filtering is applied. + # + # `total_size` won't be calculated in the response unless it has been + # included in a response field mask. The response field mask can be provided + # to the method by using the URL parameter `$fields` or `fields`, or by using + # the HTTP/gRPC header `X-Goog-FieldMask`. + # + # For more information, see + # https://developers.google.com/ad-manager/api/beta/field-masks + class ListChildPublishersResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for [CreateChildPublisher][] method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource where this + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher} will be created. + # Format: `networks/{network_code}` + # @!attribute [rw] child_publisher + # @return [::Google::Ads::AdManager::V1::ChildPublisher] + # Required. The {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher} to + # create. + class CreateChildPublisherRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for [BatchCreateChildPublishers][] method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource where + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher}s will be created. + # Format: `networks/{network_code}` + # The parent field in the CreateChildPublisherRequest must match this + # field. + # @!attribute [rw] requests + # @return [::Array<::Google::Ads::AdManager::V1::CreateChildPublisherRequest>] + # Required. The {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher} + # objects to create. A maximum of 100 objects can be created in a batch. + class BatchCreateChildPublishersRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response object for [BatchCreateChildPublishers][] method. + # @!attribute [rw] child_publishers + # @return [::Array<::Google::Ads::AdManager::V1::ChildPublisher>] + # The {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher} objects + # created. + class BatchCreateChildPublishersResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for [UpdateChildPublisher][] method. + # @!attribute [rw] child_publisher + # @return [::Google::Ads::AdManager::V1::ChildPublisher] + # Required. The {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher} to + # update. + # + # The {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher}'s `name` is + # used to identify the + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher} to update. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. The list of fields to update. + class UpdateChildPublisherRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for [BatchUpdateChildPublishers][] method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource where + # {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher}s will be updated. + # Format: `networks/{network_code}` + # The parent field in the UpdateChildPublisherRequest must match this + # field. + # @!attribute [rw] requests + # @return [::Array<::Google::Ads::AdManager::V1::UpdateChildPublisherRequest>] + # Required. The {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher} + # objects to update. A maximum of 100 objects can be updated in a batch. + class BatchUpdateChildPublishersRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response object for [BatchUpdateChildPublishers][] method. + # @!attribute [rw] child_publishers + # @return [::Array<::Google::Ads::AdManager::V1::ChildPublisher>] + # The {::Google::Ads::AdManager::V1::ChildPublisher ChildPublisher} objects + # updated. + class BatchUpdateChildPublishersResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/cms_metadata_key_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/cms_metadata_key_service.rb index a590bcf2c168..ff588b93ccd7 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/cms_metadata_key_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/cms_metadata_key_service.rb @@ -55,12 +55,11 @@ class GetCmsMetadataKeyRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • name
  • - #
  • status
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `name` + # * `status` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/cms_metadata_value_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/cms_metadata_value_service.rb index 1cd2005a2c3b..c937bd053b44 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/cms_metadata_value_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/cms_metadata_value_service.rb @@ -55,13 +55,12 @@ class GetCmsMetadataValueRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • key
  • - #
  • name
  • - #
  • status
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `key` + # * `name` + # * `status` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/company_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/company_service.rb index fbea8957ada3..ac7840125753 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/company_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/company_service.rb @@ -21,7 +21,7 @@ module Google module Ads module AdManager module V1 - # Request object for `GetCompany` method. + # Request object for [GetCompany][] method. # @!attribute [rw] name # @return [::String] # Required. The resource name of the Company. @@ -31,23 +31,23 @@ class GetCompanyRequest extend ::Google::Protobuf::MessageExts::ClassMethods end - # Request object for `ListCompanies` method. + # Request object for [ListCompanies][] method. # @!attribute [rw] parent # @return [::String] - # Required. The parent, which owns this collection of Companies. + # Required. The parent, which owns this collection of [Companies][]. # Format: `networks/{network_code}` # @!attribute [rw] page_size # @return [::Integer] - # Optional. The maximum number of `Companies` to return. The service may - # return fewer than this value. If unspecified, at most 50 `Companies` will + # Optional. The maximum number of [Companies][] to return. The service may + # return fewer than this value. If unspecified, at most 50 [Companies][] will # be returned. The maximum value is 1000; values greater than 1000 will be # coerced to 1000. # @!attribute [rw] page_token # @return [::String] - # Optional. A page token, received from a previous `ListCompanies` call. + # Optional. A page token, received from a previous [ListCompanies][] call. # Provide this to retrieve the subsequent page. # - # When paginating, all other parameters provided to `ListCompanies` must + # When paginating, all other parameters provided to [ListCompanies][] must # match the call that provided the page token. # @!attribute [rw] filter # @return [::String] @@ -55,22 +55,21 @@ class GetCompanyRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • address
  • - #
  • comment
  • - #
  • companyId
  • - #
  • creditStatus
  • - #
  • displayName
  • - #
  • email
  • - #
  • externalId
  • - #
  • fax
  • - #
  • name
  • - #
  • phone
  • - #
  • thirdPartyCompanyId
  • - #
  • type
  • - #
  • updateTime
  • - #
+ # **Filterable fields:** + # + # * `address` + # * `comment` + # * `companyId` + # * `creditStatus` + # * `displayName` + # * `email` + # * `externalId` + # * `fax` + # * `name` + # * `phone` + # * `thirdPartyCompanyId` + # * `type` + # * `updateTime` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. @@ -84,18 +83,20 @@ class ListCompaniesRequest extend ::Google::Protobuf::MessageExts::ClassMethods end - # Response object for `ListCompaniesRequest` containing matching `Company` - # objects. + # Response object for + # {::Google::Ads::AdManager::V1::ListCompaniesRequest ListCompaniesRequest} + # containing matching {::Google::Ads::AdManager::V1::Company Company} objects. # @!attribute [rw] companies # @return [::Array<::Google::Ads::AdManager::V1::Company>] - # The `Company` objects from the specified network. + # The {::Google::Ads::AdManager::V1::Company Company} objects from the specified + # network. # @!attribute [rw] next_page_token # @return [::String] # A token, which can be sent as `page_token` to retrieve the next page. # If this field is omitted, there are no subsequent pages. # @!attribute [rw] total_size # @return [::Integer] - # Total number of `Company` objects. + # Total number of {::Google::Ads::AdManager::V1::Company Company} objects. # If a filter was included in the request, this reflects the total number # after the filtering is applied. # @@ -110,6 +111,85 @@ class ListCompaniesResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end + + # Request object for [CreateCompany][] method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource where this + # {::Google::Ads::AdManager::V1::Company Company} will be created. Format: + # `networks/{network_code}` + # @!attribute [rw] company + # @return [::Google::Ads::AdManager::V1::Company] + # Required. The {::Google::Ads::AdManager::V1::Company Company} to create. + class CreateCompanyRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for [BatchCreateCompanies][] method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource where [Companies][] will be created. + # Format: `networks/{network_code}` + # The parent field in the CreateCompanyRequest must match this + # field. + # @!attribute [rw] requests + # @return [::Array<::Google::Ads::AdManager::V1::CreateCompanyRequest>] + # Required. The {::Google::Ads::AdManager::V1::Company Company} objects to create. + # A maximum of 100 objects can be created in a batch. + class BatchCreateCompaniesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response object for [BatchCreateCompanies][] method. + # @!attribute [rw] companies + # @return [::Array<::Google::Ads::AdManager::V1::Company>] + # The {::Google::Ads::AdManager::V1::Company Company} objects created. + class BatchCreateCompaniesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for [UpdateCompany][] method. + # @!attribute [rw] company + # @return [::Google::Ads::AdManager::V1::Company] + # Required. The {::Google::Ads::AdManager::V1::Company Company} to update. + # + # The {::Google::Ads::AdManager::V1::Company Company}'s `name` is used to identify + # the {::Google::Ads::AdManager::V1::Company Company} to update. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. The list of fields to update. + class UpdateCompanyRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for [BatchUpdateCompanies][] method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource where [Companies][] will be updated. + # Format: `networks/{network_code}` + # The parent field in the UpdateCompanyRequest must match this + # field. + # @!attribute [rw] requests + # @return [::Array<::Google::Ads::AdManager::V1::UpdateCompanyRequest>] + # Required. The {::Google::Ads::AdManager::V1::Company Company} objects to update. + # A maximum of 100 objects can be updated in a batch. + class BatchUpdateCompaniesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response object for [BatchUpdateCompanies][] method. + # @!attribute [rw] companies + # @return [::Array<::Google::Ads::AdManager::V1::Company>] + # The {::Google::Ads::AdManager::V1::Company Company} objects updated. + class BatchUpdateCompaniesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end end end end diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/contact_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/contact_service.rb index f55a2d2544b4..650028c340cc 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/contact_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/contact_service.rb @@ -55,20 +55,19 @@ class GetContactRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • address
  • - #
  • cellPhone
  • - #
  • comment
  • - #
  • company
  • - #
  • displayName
  • - #
  • email
  • - #
  • fax
  • - #
  • name
  • - #
  • status
  • - #
  • title
  • - #
  • workPhone
  • - #
+ # **Filterable fields:** + # + # * `address` + # * `cellPhone` + # * `comment` + # * `company` + # * `displayName` + # * `email` + # * `fax` + # * `name` + # * `status` + # * `title` + # * `workPhone` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/content_bundle_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/content_bundle_service.rb index 681ef59abe48..512bcd608e74 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/content_bundle_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/content_bundle_service.rb @@ -55,13 +55,12 @@ class GetContentBundleRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • name
  • - #
  • status
  • - #
  • updateTime
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `name` + # * `status` + # * `updateTime` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/content_label_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/content_label_service.rb index fbddfb670003..56100cd7617b 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/content_label_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/content_label_service.rb @@ -55,11 +55,10 @@ class GetContentLabelRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • name
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `name` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/content_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/content_service.rb index d0beb54a3cef..36fb619cfdb7 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/content_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/content_service.rb @@ -55,24 +55,23 @@ class GetContentRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • cmsMetadataValues
  • - #
  • cmsSources.contentSource
  • - #
  • cmsSources.contentSourceDisplayName
  • - #
  • contentBundles
  • - #
  • contentStatusSource
  • - #
  • dashIngestStatus
  • - #
  • displayName
  • - #
  • duration
  • - #
  • hlsIngestStatus
  • - #
  • importTime
  • - #
  • lastDashIngestTime
  • - #
  • lastHlsIngestTime
  • - #
  • name
  • - #
  • status
  • - #
  • updateTime
  • - #
+ # **Filterable fields:** + # + # * `cmsMetadataValues` + # * `cmsSources.contentSource` + # * `cmsSources.contentSourceDisplayName` + # * `contentBundles` + # * `contentStatusSource` + # * `dashIngestStatus` + # * `displayName` + # * `duration` + # * `hlsIngestStatus` + # * `importTime` + # * `lastDashIngestTime` + # * `lastHlsIngestTime` + # * `name` + # * `status` + # * `updateTime` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/conversion_event_enum.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/conversion_event_enum.rb new file mode 100644 index 000000000000..bac714e35d55 --- /dev/null +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/conversion_event_enum.rb @@ -0,0 +1,127 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module AdManager + module V1 + # Wrapper message for + # {::Google::Ads::AdManager::V1::ConversionEventEnum::ConversionEvent ConversionEvent} + class ConversionEventEnum + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # All possible tracking event types. Not all events are supported by every + # kind of creative. + module ConversionEvent + # Default value. This value is unused. + CONVERSION_EVENT_UNSPECIFIED = 0 + + # Corresponds to the `acceptInvitation` tracking event. + ACCEPT_INVITATION = 1 + + # Corresponds to the `Linear.VideoClicks.ClickTracking` node. + CLICK_TRACKING = 2 + + # Corresponds to the `close` tracking event. + CLOSE = 3 + + # Corresponds to the `collapse` tracking event. + COLLAPSE = 4 + + # Corresponds to the `complete` tracking event. + COMPLETE = 5 + + # Corresponds to the `creativeView` tracking event. + CREATIVE_VIEW = 6 + + # Corresponds to the `Linear.VideoClicks.CustomClick` node. + CUSTOM_CLICK = 7 + + # An event that is fired after 30 seconds of viewing the video + # or when the video finished (if the video duration is less than 30 + # seconds). This event does not correspond to any VAST element and is + # implemented using an extension. + ENGAGED_VIEW = 8 + + # Corresponds to the `expand` tracking event. + EXPAND = 9 + + # Corresponds to the `firstQuartile` tracking event. + FIRST_QUARTILE = 10 + + # Corresponds to the `fullscreen` tracking event. + FULLSCREEN = 11 + + # Corresponds to the `fullyViewableAudibleHalfDurationImpression` tracking + # event. + FULLY_VIEWABLE_AUDIBLE_HALF_DURATION_IMPRESSION = 12 + + # Corresponds to the `measurableImpression` tracking event. + MEASURABLE_IMPRESSION = 13 + + # Corresponds to the `midpoint` tracking event. + MIDPOINT = 14 + + # Corresponds to the `mute` tracking event. + MUTE = 15 + + # Corresponds to the `pause` tracking event. + PAUSE = 16 + + # Corresponds to the `resume` tracking event. + RESUME = 17 + + # Corresponds to the `rewind` tracking event. + REWIND = 18 + + # An event that is fired when a video was skipped. + # This event does not correspond to any VAST element and is implemented + # using an extension. + SKIPPED = 19 + + # An event that is fired when a video skip button is shown, + # usually after 5 seconds of viewing the video. + # This event does not correspond to any VAST element and is implemented + # using an extension. + SKIP_SHOWN = 20 + + # Corresponds to the `start` tracking event. + START = 21 + + # Corresponds to the `InLine.Survey` node. + SURVEY = 22 + + # Corresponds to the `thirdQuartile` tracking event. + THIRD_QUARTILE = 23 + + # Corresponds to the `unmute` tracking event. + UNMUTE = 24 + + # Corresponds to the `abandon` tracking event. + VIDEO_ABANDON = 25 + + # Corresponds to the `viewableImpression` tracking event. + VIEWABLE_IMPRESSION = 26 + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/creative_set_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/creative_set_service.rb index 0fe8553c6f22..560d102db415 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/creative_set_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/creative_set_service.rb @@ -55,14 +55,13 @@ class GetCreativeSetRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • companionCreatives
  • - #
  • displayName
  • - #
  • masterCreative
  • - #
  • name
  • - #
  • updateTime
  • - #
+ # **Filterable fields:** + # + # * `companionCreatives` + # * `displayName` + # * `masterCreative` + # * `name` + # * `updateTime` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/creative_template_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/creative_template_service.rb index 50a525938412..bf7eaf28890d 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/creative_template_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/creative_template_service.rb @@ -55,18 +55,17 @@ class GetCreativeTemplateRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • description
  • - #
  • displayName
  • - #
  • interstitial
  • - #
  • name
  • - #
  • nativeEligible
  • - #
  • nativeVideoEligible
  • - #
  • safeFrameCompatible
  • - #
  • status
  • - #
  • type
  • - #
+ # **Filterable fields:** + # + # * `description` + # * `displayName` + # * `interstitial` + # * `name` + # * `nativeEligible` + # * `nativeVideoEligible` + # * `safeFrameCompatible` + # * `status` + # * `type` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/creative_wrapper_enums.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/creative_wrapper_enums.rb new file mode 100644 index 000000000000..704fb27c1f12 --- /dev/null +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/creative_wrapper_enums.rb @@ -0,0 +1,91 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module AdManager + module V1 + # Wrapper message for + # {::Google::Ads::AdManager::V1::CreativeWrapperTypeEnum::CreativeWrapperType CreativeWrapperType} + class CreativeWrapperTypeEnum + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The type of a CreativeWrapper which is specified on the CreativeWrapper. + module CreativeWrapperType + # Default value. This value is unused. + CREATIVE_WRAPPER_TYPE_UNSPECIFIED = 0 + + # HTML CreativeWrappers that include header/footer HTML snippets. + HTML = 1 + + # Video Tracking URL CreativeWrappers that include tracking URIs. + VIDEO_TRACKING_URL = 2 + end + end + + # Wrapper message for + # {::Google::Ads::AdManager::V1::CreativeWrapperStatusEnum::CreativeWrapperStatus CreativeWrapperStatus} + class CreativeWrapperStatusEnum + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Indicates whether the CreativeWrapper is active. HTML snippets + # are served to Creatives only when the CreativeWrapper is active. + module CreativeWrapperStatus + # Default value. This value is unused. + CREATIVE_WRAPPER_STATUS_UNSPECIFIED = 0 + + # The CreativeWrapper will be applied to served creatives. + ACTIVE = 1 + + # The CreativeWrapper will not be applied to served creatives. + INACTIVE = 2 + end + end + + # Wrapper message for + # {::Google::Ads::AdManager::V1::CreativeWrapperOrderingEnum::CreativeWrapperOrdering CreativeWrapperOrdering} + class CreativeWrapperOrderingEnum + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Defines the order in which the header and footer HTML snippets will be + # wrapped around the served creative. INNER snippets will be wrapped + # first, followed by NO_PREFERENCE and finally OUTER. If the + # creative needs to be wrapped with more than one snippet with the same + # CreativeWrapperOrdering, then the order is unspecified. + module CreativeWrapperOrdering + # Default value. This value is unused. + CREATIVE_WRAPPER_ORDERING_UNSPECIFIED = 0 + + # Wrapping occurs as early as possible. + INNER = 1 + + # Wrapping occurs after `INNER` but before `OUTER` + NO_PREFERENCE = 2 + + # Wrapping occurs after both `NO_PREFERENCE` and `INNER` + OUTER = 3 + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/creative_wrapper_messages.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/creative_wrapper_messages.rb new file mode 100644 index 000000000000..ee593ab020eb --- /dev/null +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/creative_wrapper_messages.rb @@ -0,0 +1,99 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module AdManager + module V1 + # A `CreativeWrapper` allows the wrapping of HTML snippets to be served along + # with Creative objects. + # + # `CreativeWrapper` must be associated with a + # {::Google::Ads::AdManager::V1::LabelTypeEnum::LabelType::CREATIVE_WRAPPER LabelType.CREATIVE_WRAPPER} + # label and applied to ad units by + # {::Google::Ads::AdManager::V1::AdUnit#applied_labels AdUnit.appliedLabels}. + # @!attribute [rw] name + # @return [::String] + # Identifier. The resource name of the `CreativeWrapper`. + # Format: `networks/{network_code}/creativeWrappers/{creative_wrapper_id}` + # @!attribute [rw] label + # @return [::String] + # Required. Immutable. The resource name of the + # {::Google::Ads::AdManager::V1::Label Label}. + # Format:`networks/{network_code}/label/{label_id}` + # @!attribute [rw] creative_wrapper_type + # @return [::Google::Ads::AdManager::V1::CreativeWrapperTypeEnum::CreativeWrapperType] + # Required. The `creative_wrapper_type`. If the `creative_wrapper_type` is + # {::Google::Ads::AdManager::V1::CreativeWrapperTypeEnum::CreativeWrapperType::VIDEO_TRACKING_URL CreativeWrapperType.VIDEO_TRACKING_URL}, + # the `video_tracking_urls` field must be set. If the `creative_wrapper_type` + # is + # {::Google::Ads::AdManager::V1::CreativeWrapperTypeEnum::CreativeWrapperType::HTML CreativeWrapperType.HTML}, + # either the header or footer field must be set. + # @!attribute [r] header_creative + # @return [::String] + # Output only. The resource name of the + # {::Google::Ads::AdManager::V1::Creative Creative}. Format: + # `networks/{network_code}/creative/{creative_id}` + # @!attribute [r] footer_creative + # @return [::String] + # Output only. The resource name of the + # {::Google::Ads::AdManager::V1::Creative Creative}. Format: + # `networks/{network_code}/creative/{creative_id}` + # @!attribute [rw] html_header + # @return [::String] + # Optional. The header HTML snippet that this `CreativeWrapper` delivers. + # @!attribute [rw] html_footer + # @return [::String] + # Optional. The footer HTML snippet that this `CreativeWrapper` delivers. + # @!attribute [rw] amp_header + # @return [::String] + # Optional. The header AMP snippet that this `CreativeWrapper` delivers. + # @!attribute [rw] amp_footer + # @return [::String] + # Optional. The footer AMP snippet that this `CreativeWrapper` delivers. + # @!attribute [rw] video_tracking_urls + # @return [::Array<::Google::Ads::AdManager::V1::VideoTrackingUrl>] + # Optional. The video tracking URLs that this `CreativeWrapper` delivers. + # This field is required if the `creative_wrapper_type` is + # {::Google::Ads::AdManager::V1::CreativeWrapperTypeEnum::CreativeWrapperType::VIDEO_TRACKING_URL CreativeWrapperType.VIDEO_TRACKING_URL} + # and ignored otherwise. + # @!attribute [rw] third_party_data_declaration + # @return [::Google::Ads::AdManager::V1::ThirdPartyDataDeclaration] + # Optional. The `ThirdPartyDataDeclaration` for this creative wrapper. + # + # The third party companies that are associated with this `CreativeWrapper` + # and are present in the `html_header` or `html_footer`. This field is only + # applicable when the `creative_wrapper_type` is + # {::Google::Ads::AdManager::V1::CreativeWrapperTypeEnum::CreativeWrapperType::HTML CreativeWrapperType.HTML}. + # @!attribute [rw] ordering + # @return [::Google::Ads::AdManager::V1::CreativeWrapperOrderingEnum::CreativeWrapperOrdering] + # Optional. If there are multiple wrappers for a + # {::Google::Ads::AdManager::V1::Creative Creative}, then ordering + # defines the order in which the HTML snippets are rendered. + # @!attribute [r] status + # @return [::Google::Ads::AdManager::V1::CreativeWrapperStatusEnum::CreativeWrapperStatus] + # Output only. The status of the `CreativeWrapper`. + class CreativeWrapper + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/creative_wrapper_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/creative_wrapper_service.rb new file mode 100644 index 000000000000..8db941ec5cc2 --- /dev/null +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/creative_wrapper_service.rb @@ -0,0 +1,224 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module AdManager + module V1 + # Request object for `GetCreativeWrapper` method. + # @!attribute [rw] name + # @return [::String] + # Required. The resource name of the CreativeWrapper. + # Format: `networks/{network_code}/creativeWrappers/{creative_wrapper_id}` + class GetCreativeWrapperRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for `ListCreativeWrappers` method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent, which owns this collection of CreativeWrappers. + # Format: `networks/{network_code}` + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of `CreativeWrappers` to return. The service + # may return fewer than this value. If unspecified, at most 50 + # `CreativeWrappers` will be returned. The maximum value is 1000; values + # greater than 1000 will be coerced to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous `ListCreativeWrappers` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListCreativeWrappers` + # must match the call that provided the page token. + # @!attribute [rw] filter + # @return [::String] + # Optional. Expression to filter the response. + # See syntax details at + # https://developers.google.com/ad-manager/api/beta/filters + # + # **Filterable fields:** + # + # * `creativeWrapperType` + # * `label` + # * `name` + # * `ordering` + # * `status` + # @!attribute [rw] order_by + # @return [::String] + # Optional. Expression to specify sorting order. + # See syntax details at + # https://developers.google.com/ad-manager/api/beta/filters#order + # @!attribute [rw] skip + # @return [::Integer] + # Optional. Number of individual resources to skip while paginating. + class ListCreativeWrappersRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response object for `ListCreativeWrappersRequest` containing matching + # `CreativeWrapper` objects. + # @!attribute [rw] creative_wrappers + # @return [::Array<::Google::Ads::AdManager::V1::CreativeWrapper>] + # The `CreativeWrapper` objects from the specified network. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] total_size + # @return [::Integer] + # Total number of `CreativeWrapper` objects. + # If a filter was included in the request, this reflects the total number + # after the filtering is applied. + # + # `total_size` won't be calculated in the response unless it has been + # included in a response field mask. The response field mask can be provided + # to the method by using the URL parameter `$fields` or `fields`, or by using + # the HTTP/gRPC header `X-Goog-FieldMask`. + # + # For more information, see + # https://developers.google.com/ad-manager/api/beta/field-masks + class ListCreativeWrappersResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for `CreateCreativeWrapper` method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource where this `CreativeWrapper` will be created. + # Format: `networks/{network_code}` + # @!attribute [rw] creative_wrapper + # @return [::Google::Ads::AdManager::V1::CreativeWrapper] + # Required. The `CreativeWrapper` to create. + class CreateCreativeWrapperRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for `BatchCreateCreativeWrappers` method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource where `CreativeWrappers` will be created. + # Format: `networks/{network_code}` + # The parent field in the CreateCreativeWrapperRequest must match this + # field. + # @!attribute [rw] requests + # @return [::Array<::Google::Ads::AdManager::V1::CreateCreativeWrapperRequest>] + # Required. The `CreativeWrapper` objects to create. + # A maximum of 100 objects can be created in a batch. + class BatchCreateCreativeWrappersRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response object for `BatchCreateCreativeWrappers` method. + # @!attribute [rw] creative_wrappers + # @return [::Array<::Google::Ads::AdManager::V1::CreativeWrapper>] + # The `CreativeWrapper` objects created. + class BatchCreateCreativeWrappersResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for `UpdateCreativeWrapper` method. + # @!attribute [rw] creative_wrapper + # @return [::Google::Ads::AdManager::V1::CreativeWrapper] + # Required. The `CreativeWrapper` to update. + # + # The `CreativeWrapper`'s `name` is used to identify the `CreativeWrapper` to + # update. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. The list of fields to update. + class UpdateCreativeWrapperRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for `BatchUpdateCreativeWrappers` method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource where `CreativeWrappers` will be updated. + # Format: `networks/{network_code}` + # The parent field in the UpdateCreativeWrapperRequest must match this + # field. + # @!attribute [rw] requests + # @return [::Array<::Google::Ads::AdManager::V1::UpdateCreativeWrapperRequest>] + # Required. The `CreativeWrapper` objects to update. + # A maximum of 100 objects can be updated in a batch. + class BatchUpdateCreativeWrappersRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response object for `BatchUpdateCreativeWrappers` method. + # @!attribute [rw] creative_wrappers + # @return [::Array<::Google::Ads::AdManager::V1::CreativeWrapper>] + # The `CreativeWrapper` objects updated. + class BatchUpdateCreativeWrappersResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message to activate `CreativeWrapper` objects. + # @!attribute [rw] parent + # @return [::String] + # Required. Format: `networks/{network_code}` + # @!attribute [rw] names + # @return [::Array<::String>] + # Required. The resource names of the `CreativeWrapper` objects to activate. + # Format: `networks/{network_code}/creativeWrappers/{creative_wrapper_id}` + class BatchActivateCreativeWrappersRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for `BatchActivateCreativeWrappers` method. + class BatchActivateCreativeWrappersResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message to deactivate `CreativeWrapper` objects. + # @!attribute [rw] parent + # @return [::String] + # Required. Format: `networks/{network_code}` + # @!attribute [rw] names + # @return [::Array<::String>] + # Required. The resource names of the `CreativeWrapper` objects to + # deactivate. Format: + # `networks/{network_code}/creativeWrappers/{creative_wrapper_id}` + class BatchDeactivateCreativeWrappersRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response object for `BatchDeactivateCreativeWrappers` method. + class BatchDeactivateCreativeWrappersResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/custom_field_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/custom_field_service.rb index 9647f60651e7..7a4cad0fcc7f 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/custom_field_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/custom_field_service.rb @@ -55,18 +55,17 @@ class GetCustomFieldRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • dataType
  • - #
  • description
  • - #
  • displayName
  • - #
  • entityType
  • - #
  • name
  • - #
  • options.customFieldOptionId
  • - #
  • options.displayName
  • - #
  • status
  • - #
  • visibility
  • - #
+ # **Filterable fields:** + # + # * `dataType` + # * `description` + # * `displayName` + # * `entityType` + # * `name` + # * `options.customFieldOptionId` + # * `options.displayName` + # * `status` + # * `visibility` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/custom_targeting_key_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/custom_targeting_key_service.rb index 77083e8e8888..7c52e0eeee40 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/custom_targeting_key_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/custom_targeting_key_service.rb @@ -56,15 +56,14 @@ class GetCustomTargetingKeyRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • adTagName
  • - #
  • displayName
  • - #
  • name
  • - #
  • reportableType
  • - #
  • status
  • - #
  • type
  • - #
+ # **Filterable fields:** + # + # * `adTagName` + # * `displayName` + # * `name` + # * `reportableType` + # * `status` + # * `type` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/custom_targeting_value_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/custom_targeting_value_service.rb index b27f7773296c..f83bef51b8c6 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/custom_targeting_value_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/custom_targeting_value_service.rb @@ -59,15 +59,14 @@ class GetCustomTargetingValueRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • adTagName
  • - #
  • customTargetingKey
  • - #
  • displayName
  • - #
  • matchType
  • - #
  • name
  • - #
  • status
  • - #
+ # **Filterable fields:** + # + # * `adTagName` + # * `customTargetingKey` + # * `displayName` + # * `matchType` + # * `name` + # * `status` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/dai_authentication_key_enums.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/dai_authentication_key_enums.rb new file mode 100644 index 000000000000..81af2b9c2a0c --- /dev/null +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/dai_authentication_key_enums.rb @@ -0,0 +1,69 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module AdManager + module V1 + # Wrapper message for + # {::Google::Ads::AdManager::V1::DaiAuthenticationKeyStatusEnum::DaiAuthenticationKeyStatus DaiAuthenticationKeyStatus} + class DaiAuthenticationKeyStatusEnum + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Statuses associated with DaiAuthenticationKey objects. + module DaiAuthenticationKeyStatus + # Default value. This value is unused. + DAI_AUTHENTICATION_KEY_STATUS_UNSPECIFIED = 0 + + # Indicates that the API key is actively in use and that the IMA SDK API + # should accept it as a valid key in requests. + ACTIVE = 1 + + # Indicates that the API key is no longer is use and that the IMA SDK API + # should not accept it as a valid key in requests. + INACTIVE = 2 + end + end + + # Wrapper message for + # {::Google::Ads::AdManager::V1::DaiAuthenticationKeyTypeEnum::DaiAuthenticationKeyType DaiAuthenticationKeyType} + class DaiAuthenticationKeyTypeEnum + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Key types associated with DaiAuthenticationKey objects. + module DaiAuthenticationKeyType + # Default value. This value is unused. + DAI_AUTHENTICATION_KEY_TYPE_UNSPECIFIED = 0 + + # Indicates that the key is a standard API key and should be used with the + # api-key SDK parameter when authenticating stream create requests. + API = 1 + + # Indicates that the key is an HMAC key and should be used to generate a + # signature for the stream create request with the auth-token SDK + # parameter. + HMAC = 2 + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/dai_authentication_key_messages.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/dai_authentication_key_messages.rb new file mode 100644 index 000000000000..9159e144e214 --- /dev/null +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/dai_authentication_key_messages.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module AdManager + module V1 + # A DaiAuthenticationKey is used to authenticate stream requests to the IMA SDK + # API. + # @!attribute [rw] name + # @return [::String] + # Identifier. The resource name of the `DaiAuthenticationKey`. + # Format: + # `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}` + # @!attribute [r] status + # @return [::Google::Ads::AdManager::V1::DaiAuthenticationKeyStatusEnum::DaiAuthenticationKeyStatus] + # Output only. The status of this DaiAuthenticationKey. + # + # DAI authentication keys are created in the + # {::Google::Ads::AdManager::V1::DaiAuthenticationKeyStatusEnum::DaiAuthenticationKeyStatus::ACTIVE `ACTIVE`} + # state. + # + # Only active keys will be accepted by the IMA SDK API as valid. + # @!attribute [rw] display_name + # @return [::String] + # Required. The name for this DaiAuthenticationKey. + # @!attribute [rw] key_type + # @return [::Google::Ads::AdManager::V1::DaiAuthenticationKeyTypeEnum::DaiAuthenticationKeyType] + # Optional. The type of this key, which determines how it should be used on + # stream create requests. + class DaiAuthenticationKey + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/dai_authentication_key_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/dai_authentication_key_service.rb new file mode 100644 index 000000000000..aef52ac4549a --- /dev/null +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/dai_authentication_key_service.rb @@ -0,0 +1,224 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module AdManager + module V1 + # Request object for `GetDaiAuthenticationKey` method. + # @!attribute [rw] name + # @return [::String] + # Required. The resource name of the `DaiAuthenticationKey`. + # Format: + # `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key_id}` + class GetDaiAuthenticationKeyRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for `ListDaiAuthenticationKeys` method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent, which owns this collection of DaiAuthenticationKeys. + # Format: `networks/{network_code}` + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of `DaiAuthenticationKeys` to return. The + # service may return fewer than this value. If unspecified, at most 50 + # `DaiAuthenticationKeys` will be returned. The maximum value is 1000; values + # greater than 1000 will be coerced to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous + # `ListDaiAuthenticationKeys` call. Provide this to retrieve the subsequent + # page. + # + # When paginating, all other parameters provided to + # `ListDaiAuthenticationKeys` must match the call that provided the page + # token. + # @!attribute [rw] filter + # @return [::String] + # Optional. Expression to filter the response. + # See syntax details at + # https://developers.google.com/ad-manager/api/beta/filters + # + # **Filterable fields:** + # + # * `displayName` + # * `name` + # * `status` + # @!attribute [rw] order_by + # @return [::String] + # Optional. Expression to specify sorting order. + # See syntax details at + # https://developers.google.com/ad-manager/api/beta/filters#order + # @!attribute [rw] skip + # @return [::Integer] + # Optional. Number of individual resources to skip while paginating. + class ListDaiAuthenticationKeysRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response object for `ListDaiAuthenticationKeysRequest` containing matching + # `DaiAuthenticationKey` objects. + # @!attribute [rw] dai_authentication_keys + # @return [::Array<::Google::Ads::AdManager::V1::DaiAuthenticationKey>] + # The `DaiAuthenticationKey` objects from the specified network. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] total_size + # @return [::Integer] + # Total number of `DaiAuthenticationKey` objects. + # If a filter was included in the request, this reflects the total number + # after the filtering is applied. + # + # `total_size` won't be calculated in the response unless it has been + # included in a response field mask. The response field mask can be provided + # to the method by using the URL parameter `$fields` or `fields`, or by using + # the HTTP/gRPC header `X-Goog-FieldMask`. + # + # For more information, see + # https://developers.google.com/ad-manager/api/beta/field-masks + class ListDaiAuthenticationKeysResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for `CreateDaiAuthenticationKey` method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource where this `DaiAuthenticationKey` will be + # created. Format: `networks/{network_code}` + # @!attribute [rw] dai_authentication_key + # @return [::Google::Ads::AdManager::V1::DaiAuthenticationKey] + # Required. The `DaiAuthenticationKey` to create. + class CreateDaiAuthenticationKeyRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for `BatchCreateDaiAuthenticationKeys` method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource where `DaiAuthenticationKeys` will be + # created. Format: `networks/{network_code}` The parent field in the + # CreateDaiAuthenticationKeyRequest must match this field. + # @!attribute [rw] requests + # @return [::Array<::Google::Ads::AdManager::V1::CreateDaiAuthenticationKeyRequest>] + # Required. The `DaiAuthenticationKey` objects to create. + # A maximum of 100 objects can be created in a batch. + class BatchCreateDaiAuthenticationKeysRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response object for `BatchCreateDaiAuthenticationKeys` method. + # @!attribute [rw] dai_authentication_keys + # @return [::Array<::Google::Ads::AdManager::V1::DaiAuthenticationKey>] + # The `DaiAuthenticationKey` objects created. + class BatchCreateDaiAuthenticationKeysResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for `UpdateDaiAuthenticationKey` method. + # @!attribute [rw] dai_authentication_key + # @return [::Google::Ads::AdManager::V1::DaiAuthenticationKey] + # Required. The `DaiAuthenticationKey` to update. + # + # The `DaiAuthenticationKey`'s `name` is used to identify the + # `DaiAuthenticationKey` to update. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. The list of fields to update. + class UpdateDaiAuthenticationKeyRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for `BatchUpdateDaiAuthenticationKeys` method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource where `DaiAuthenticationKeys` will be + # updated. Format: `networks/{network_code}` The parent field in the + # UpdateDaiAuthenticationKeyRequest must match this field. + # @!attribute [rw] requests + # @return [::Array<::Google::Ads::AdManager::V1::UpdateDaiAuthenticationKeyRequest>] + # Required. The `DaiAuthenticationKey` objects to update. + # A maximum of 100 objects can be updated in a batch. + class BatchUpdateDaiAuthenticationKeysRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response object for `BatchUpdateDaiAuthenticationKeys` method. + # @!attribute [rw] dai_authentication_keys + # @return [::Array<::Google::Ads::AdManager::V1::DaiAuthenticationKey>] + # The `DaiAuthenticationKey` objects updated. + class BatchUpdateDaiAuthenticationKeysResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for `BatchPerformDaiAuthenticationKeyAction` method. + # @!attribute [rw] parent + # @return [::String] + # Required. Format: `networks/{network_code}` + # @!attribute [rw] names + # @return [::Array<::String>] + # Required. Resource names for the DaiAuthenticationKey. + # Format: + # `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}` + class BatchActivateDaiAuthenticationKeysRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response object for `BatchActivateDaiAuthenticationKeys` method. + class BatchActivateDaiAuthenticationKeysResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for `BatchPerformDaiAuthenticationKeyAction` method. + # @!attribute [rw] parent + # @return [::String] + # Required. Format: `networks/{network_code}` + # @!attribute [rw] names + # @return [::Array<::String>] + # Required. Resource names for the DaiAuthenticationKey. + # Format: + # `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}` + class BatchDeactivateDaiAuthenticationKeysRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response object for `BatchDeactivateDaiAuthenticationKeys` method. + class BatchDeactivateDaiAuthenticationKeysResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/dai_encoding_profile_enums.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/dai_encoding_profile_enums.rb new file mode 100644 index 000000000000..05a304c0e1e7 --- /dev/null +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/dai_encoding_profile_enums.rb @@ -0,0 +1,92 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module AdManager + module V1 + # Wrapper message for + # {::Google::Ads::AdManager::V1::ContainerTypeEnum::ContainerType ContainerType} + class ContainerTypeEnum + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The container type of the DaiEncodingProfile. + module ContainerType + # Not specified value. + CONTAINER_TYPE_UNSPECIFIED = 0 + + # Transport stream (TS) container. + TS = 1 + + # Fragmented MPEG-4 (fMP4) output container. + FMP4 = 2 + + # HTTP live streaming (HLS) packed audio container. + HLS_AUDIO = 3 + end + end + + # Wrapper message for + # {::Google::Ads::AdManager::V1::DaiEncodingProfileStatusEnum::DaiEncodingProfileStatus DaiEncodingProfileStatus} + class DaiEncodingProfileStatusEnum + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The status of the DaiEncodingProfile. + module DaiEncodingProfileStatus + # Not specified value. + DAI_ENCODING_PROFILE_STATUS_UNSPECIFIED = 0 + + # Indicates the DaiEncodingProfile has been created and is eligible for + # streaming. + ACTIVE = 1 + + # Indicates the DaiEncodingProfile has been archived. + ARCHIVED = 2 + end + end + + # Wrapper message for + # {::Google::Ads::AdManager::V1::DaiEncodingProfileVariantTypeEnum::DaiEncodingProfileVariantType DaiEncodingProfileVariantType} + class DaiEncodingProfileVariantTypeEnum + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The variant type of the DaiEncodingProfile. + module DaiEncodingProfileVariantType + # Not specified value. + DAI_ENCODING_PROFILE_VARIANT_TYPE_UNSPECIFIED = 0 + + # Media variant playlist type. Media playlists may: contain audio only + # video only, or audio and video. + MEDIA = 1 + + # iFrame variant playlist type. iFrame playlists may: contain video or + # contain audio and video (i.e. video must be present). + IFRAME = 2 + + # Subtitles variant playlist type. + SUBTITLES = 3 + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/dai_encoding_profile_messages.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/dai_encoding_profile_messages.rb new file mode 100644 index 000000000000..994aa33c2d52 --- /dev/null +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/dai_encoding_profile_messages.rb @@ -0,0 +1,111 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module AdManager + module V1 + # A DaiEncodingProfile contains data about a publisher's encoding profiles. Ad + # Manager Dynamic Ad Insertion (DAI) uses the profile information about the + # content to select an appropriate ad transcode to play for the particular + # video. + # @!attribute [rw] name + # @return [::String] + # Identifier. The resource name of the `DaiEncodingProfile`. + # Format: + # `networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile_id}` + # @!attribute [rw] display_name + # @return [::String] + # Required. The name of the DaiEncodingProfile. It may be at most 64 + # characters. The name field can contain alphanumeric characters and symbols + # other than the following: ", ', =, !, +, #, , ~, ;, ^, (, ), <, >, [, ], + # the white space character. + # @!attribute [r] status + # @return [::Google::Ads::AdManager::V1::DaiEncodingProfileStatusEnum::DaiEncodingProfileStatus] + # Output only. The status of this DaiEncodingProfile. + # + # DAI encoding profiles are created in the + # [DaiEncodingProfileStatus.ACTIVE][] state by default. + # + # Only active profiles will be allowed to be associated with live streams. + # @!attribute [rw] variant_type + # @return [::Google::Ads::AdManager::V1::DaiEncodingProfileVariantTypeEnum::DaiEncodingProfileVariantType] + # Required. The variant playlist type that this DaiEncodingProfile + # represents. + # @!attribute [rw] container_type + # @return [::Google::Ads::AdManager::V1::ContainerTypeEnum::ContainerType] + # Required. The digital container type of the underlying media. This is + # required for MEDIA and IFRAME variant types. + # @!attribute [rw] video_settings + # @return [::Google::Ads::AdManager::V1::VideoSettings] + # Optional. Information about the video media, if present. This field will + # only be set if the media contains video, or is an IFRAME variant type. + # @!attribute [rw] audio_settings + # @return [::Google::Ads::AdManager::V1::AudioSettings] + # Optional. Information about the audio media, if present. This field will + # only be set if the media contains audio. Only MEDIA and IFRAME variant + # types can set audio. + class DaiEncodingProfile + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Information about the audio settings of an encoding profile. + # @!attribute [rw] codec + # @return [::String] + # Required. The RFC6381 codec string of the audio. + # @!attribute [rw] bitrate + # @return [::Integer] + # Required. The bitrate of the audio, in bits per second. This value must be + # between 8kbps and 250 Mbps. + # @!attribute [rw] channels + # @return [::Integer] + # Required. The number of audio channels, including low frequency channels. + # This value has a maximum of 8. + # @!attribute [rw] sample_rate_hertz + # @return [::Integer] + # Required. The audio sample rate in hertz. Must be between 44kHz and 100kHz. + class AudioSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Information about the video settings of an encoding profile. + # @!attribute [rw] codec + # @return [::String] + # Required. The RFC6381 codec string of the video. + # @!attribute [rw] bitrate + # @return [::Integer] + # Required. The bitrate of the video, in bits per second. This value must be + # between 32kbps and 250 Mbps. + # @!attribute [rw] frames_per_second + # @return [::Float] + # Required. The frames per second of the video. This value will be truncated + # to three decimal places. + # @!attribute [rw] resolution + # @return [::Google::Ads::AdManager::V1::Size] + # Required. The resolution of the video, in pixels. + class VideoSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/dai_encoding_profile_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/dai_encoding_profile_service.rb new file mode 100644 index 000000000000..79e50c65a4b0 --- /dev/null +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/dai_encoding_profile_service.rb @@ -0,0 +1,246 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module AdManager + module V1 + # Request object for `GetDaiEncodingProfile` method. + # @!attribute [rw] name + # @return [::String] + # Required. The resource name of the DaiEncodingProfile. + # Format: + # `networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile_id}` + class GetDaiEncodingProfileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for `ListDaiEncodingProfiles` method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent, which owns this collection of DaiEncodingProfiles. + # Format: `networks/{network_code}` + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of `DaiEncodingProfiles` to return. The + # service may return fewer than this value. If unspecified, at most 50 + # `DaiEncodingProfiles` will be returned. The maximum value is 1000; values + # above 1000 will be coerced to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous `ListDaiEncodingProfiles` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListDaiEncodingProfiles` + # must match the call that provided the page token. + # @!attribute [rw] filter + # @return [::String] + # Optional. Expression to filter the response. + # See syntax details at + # https://developers.google.com/ad-manager/api/beta/filters + # + # **Filterable fields:** + # + # * `containerType` + # * `displayName` + # * `name` + # * `status` + # * `variantType` + # @!attribute [rw] order_by + # @return [::String] + # Optional. Expression to specify sorting order. + # See syntax details at + # https://developers.google.com/ad-manager/api/beta/filters#order + # @!attribute [rw] skip + # @return [::Integer] + # Optional. Number of individual resources to skip while paginating. + class ListDaiEncodingProfilesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response object for `ListDaiEncodingProfilesRequest` containing matching + # `DaiEncodingProfile` objects. + # @!attribute [rw] dai_encoding_profiles + # @return [::Array<::Google::Ads::AdManager::V1::DaiEncodingProfile>] + # The `DaiEncodingProfile` objects from the specified network. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] total_size + # @return [::Integer] + # Total number of `DaiEncodingProfile` objects. + # If a filter was included in the request, this reflects the total number + # after the filtering is applied. + # + # `total_size` will not be calculated in the response unless it has been + # included in a response field mask. The response field mask can be provided + # to the method by using the URL parameter `$fields` or `fields`, or by using + # the HTTP/gRPC header `X-Goog-FieldMask`. + # + # For more information, see + # https://developers.google.com/ad-manager/api/beta/field-masks + class ListDaiEncodingProfilesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for `CreateDaiEncodingProfile` method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource where this `DaiEncodingProfile` will be + # created. Format: `networks/{network_code}` + # @!attribute [rw] dai_encoding_profile + # @return [::Google::Ads::AdManager::V1::DaiEncodingProfile] + # Required. The `DaiEncodingProfile` to create. + class CreateDaiEncodingProfileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for `BatchCreateDaiEncodingProfiles` method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource where `DaiEncodingProfiles` will be created. + # Format: `networks/{network_code}` + # The parent field in the CreateDaiEncodingProfileRequest must match this + # field. + # @!attribute [rw] requests + # @return [::Array<::Google::Ads::AdManager::V1::CreateDaiEncodingProfileRequest>] + # Required. The `DaiEncodingProfile` objects to create. + # A maximum of 100 objects can be created in a batch. + class BatchCreateDaiEncodingProfilesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response object for `BatchCreateDaiEncodingProfiles` method. + # @!attribute [rw] dai_encoding_profiles + # @return [::Array<::Google::Ads::AdManager::V1::DaiEncodingProfile>] + # The `DaiEncodingProfile` objects created. + class BatchCreateDaiEncodingProfilesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for `UpdateDaiEncodingProfile` method. + # @!attribute [rw] dai_encoding_profile + # @return [::Google::Ads::AdManager::V1::DaiEncodingProfile] + # Required. The `DaiEncodingProfile` to update. + # + # The `DaiEncodingProfile`'s `name` is used to identify the + # `DaiEncodingProfile` to update. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. The list of fields to update. + class UpdateDaiEncodingProfileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for `BatchUpdateDaiEncodingProfiles` method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource where `DaiEncodingProfiles` will be updated. + # Format: `networks/{network_code}` + # The parent field in the UpdateDaiEncodingProfileRequest must match this + # field. + # @!attribute [rw] requests + # @return [::Array<::Google::Ads::AdManager::V1::UpdateDaiEncodingProfileRequest>] + # Required. The `DaiEncodingProfile` objects to update. + # A maximum of 100 objects can be updated in a batch. + class BatchUpdateDaiEncodingProfilesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response object for `BatchUpdateDaiEncodingProfiles` method. + # @!attribute [rw] dai_encoding_profiles + # @return [::Array<::Google::Ads::AdManager::V1::DaiEncodingProfile>] + # The `DaiEncodingProfile` objects updated. + class BatchUpdateDaiEncodingProfilesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for `BatchActivateDaiEncodingProfiles` method. + # @!attribute [rw] parent + # @return [::String] + # Required. Format: `networks/{network_code}` + # @!attribute [rw] requests + # @return [::Array<::Google::Ads::AdManager::V1::ActivateDaiEncodingProfileRequest>] + # Required. The `DaiEncodingProfile` objects to activate. + # A maximum of 100 objects can be activated in a batch. + class BatchActivateDaiEncodingProfilesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response object for `BatchActivateDaiEncodingProfiles` method. + class BatchActivateDaiEncodingProfilesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for `ActivateDaiEncodingProfile` method. + # @!attribute [rw] name + # @return [::String] + # Required. The resource name of the DaiEncodingProfile to activate. + # Format: + # `networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile_id}` + class ActivateDaiEncodingProfileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for `BatchArchiveDaiEncodingProfiles` method. + # @!attribute [rw] parent + # @return [::String] + # Required. Format: `networks/{network_code}` + # @!attribute [rw] requests + # @return [::Array<::Google::Ads::AdManager::V1::ArchiveDaiEncodingProfileRequest>] + # Required. The `DaiEncodingProfile` objects to archive. + # A maximum of 100 objects can be archived in a batch. + class BatchArchiveDaiEncodingProfilesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response object for `BatchArchiveDaiEncodingProfiles` method. + class BatchArchiveDaiEncodingProfilesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for `ArchiveDaiEncodingProfile` method. + # @!attribute [rw] name + # @return [::String] + # Required. The resource name of the DaiEncodingProfile to archive. + # Format: + # `networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile_id}` + class ArchiveDaiEncodingProfileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/device_capability_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/device_capability_service.rb index a9f266494ccf..619b2d534f55 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/device_capability_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/device_capability_service.rb @@ -55,11 +55,10 @@ class GetDeviceCapabilityRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • name
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `name` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/device_category_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/device_category_service.rb index d1f8fb41179b..5ada638ce278 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/device_category_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/device_category_service.rb @@ -55,11 +55,10 @@ class GetDeviceCategoryRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • name
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `name` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/device_manufacturer_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/device_manufacturer_service.rb index 42a33d77f0eb..3e84965af507 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/device_manufacturer_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/device_manufacturer_service.rb @@ -56,11 +56,10 @@ class GetDeviceManufacturerRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • name
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `name` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/geo_target_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/geo_target_service.rb index b8ba4abb39d7..78270fc0c5f7 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/geo_target_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/geo_target_service.rb @@ -55,14 +55,13 @@ class GetGeoTargetRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • canonicalParent
  • - #
  • displayName
  • - #
  • name
  • - #
  • regionCode
  • - #
  • type
  • - #
+ # **Filterable fields:** + # + # * `canonicalParent` + # * `displayName` + # * `name` + # * `regionCode` + # * `type` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/label_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/label_service.rb index 5da19850f8ee..dd6e47f9bb66 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/label_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/label_service.rb @@ -55,14 +55,13 @@ class GetLabelRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • active
  • - #
  • description
  • - #
  • displayName
  • - #
  • name
  • - #
  • types
  • - #
+ # **Filterable fields:** + # + # * `active` + # * `description` + # * `displayName` + # * `name` + # * `types` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/line_item_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/line_item_service.rb index 45e504560ddb..4bd5c81294ca 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/line_item_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/line_item_service.rb @@ -55,43 +55,42 @@ class GetLineItemRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • archived
  • - #
  • contractedUnitsBought
  • - #
  • costType
  • - #
  • createTime
  • - #
  • creativePlaceholders.size.canonicalName
  • - #
  • dealInfo.externalDealId
  • - #
  • deliveryRateType
  • - #
  • displayName
  • - #
  • endTime
  • - #
  • environmentType
  • - #
  • externalLineItemId
  • - #
  • goal.units
  • - #
  • grpSettings.growbirdNielsenEnabled
  • - #
  • grpSettings.inTargetRatioEstimateMilliPercent
  • - #
  • lineItemType
  • - #
  • missingCreatives
  • - #
  • name
  • - #
  • notes
  • - #
  • order
  • - #
  • orderDisplayName
  • - #
  • priority
  • - #
  • roadblockingType
  • - #
  • startTime
  • - #
  • stats.clickThroughRate
  • - #
  • stats.clicksDelivered
  • - #
  • stats.impressionsDelivered
  • - #
  • stats.viewableImpressionsDelivered
  • - #
  • status
  • - #
  • targeting.inventoryTargeting.targetedAdUnits.adUnit
  • - #
  • targeting.inventoryTargeting.targetedPlacements
  • - #
  • targeting.mobileApplicationTargeting.firstPartyTargeting.targetedApplications
  • - #
  • updateSource
  • - #
  • updateTime
  • - #
  • webPropertyCode
  • - #
+ # **Filterable fields:** + # + # * `archived` + # * `contractedUnitsBought` + # * `costType` + # * `createTime` + # * `creativePlaceholders.size.canonicalName` + # * `dealInfo.externalDealId` + # * `deliveryRateType` + # * `displayName` + # * `endTime` + # * `environmentType` + # * `externalLineItemId` + # * `goal.units` + # * `grpSettings.growbirdNielsenEnabled` + # * `grpSettings.inTargetRatioEstimateMilliPercent` + # * `lineItemType` + # * `missingCreatives` + # * `name` + # * `notes` + # * `order` + # * `orderDisplayName` + # * `priority` + # * `roadblockingType` + # * `startTime` + # * `stats.clickThroughRate` + # * `stats.clicksDelivered` + # * `stats.impressionsDelivered` + # * `stats.viewableImpressionsDelivered` + # * `status` + # * `targeting.inventoryTargeting.targetedAdUnits.adUnit` + # * `targeting.inventoryTargeting.targetedPlacements` + # * `targeting.mobileApplicationTargeting.firstPartyTargeting.targetedApplications` + # * `updateSource` + # * `updateTime` + # * `webPropertyCode` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/linked_device_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/linked_device_service.rb index 6018be8a0388..a67f15624b5f 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/linked_device_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/linked_device_service.rb @@ -55,13 +55,12 @@ class GetLinkedDeviceRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • name
  • - #
  • owner
  • - #
  • visibility
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `name` + # * `owner` + # * `visibility` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/live_stream_messages.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/live_stream_messages.rb index 00f7fdcb92b1..1a096a903da9 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/live_stream_messages.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/live_stream_messages.rb @@ -75,6 +75,16 @@ module V1 # @return [::String] # Output only. The code used in constructing a live stream master playlist # URL. + # @!attribute [rw] slate + # @return [::String] + # Optional. The slate to use for this live stream. If not set, network + # default slate will be used. Format: + # "networks/\\{network_code}/slates/\\{slate_id}" + # @!attribute [rw] dvr_window_duration + # @return [::Google::Protobuf::Duration] + # Optional. The duration of the DVR window. If unset the default window as + # provided by the input encoder will be used. Modifying this value for an + # active live stream can impact traffic. # @!attribute [rw] enable_dai_authentication_keys # @return [::Boolean] # Optional. Whether the live stream's requests to the IMA SDK API will be @@ -121,6 +131,13 @@ module V1 # @return [::Google::Protobuf::Duration] # Optional. The default ad pod duration that will be requested when an ad # break cue-out does not specify a duration. Defaults to 0. + # @!attribute [rw] dai_authentication_keys + # @return [::Array<::String>] + # Optional. The list of DaiAuthenticationKey objects used to authenticate + # stream create requests for this live stream. Modifying settings for an + # active live stream may break the stream for some users. Exercise caution. + # Format: + # "networks/\\{network_code}/daiAuthenticationKeys/\\{dai_authentication_key_id}" # @!attribute [rw] source_content_configurations # @return [::Array<::String>] # Optional. The list of CdnConfigurations that provide settings for ingesting @@ -184,6 +201,16 @@ module V1 # key may be at most 64 characters and can contain alphanumeric characters # and symbols other than the following: # ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character. + # @!attribute [rw] dai_encoding_profiles + # @return [::Array<::String>] + # Optional. The list of DaiEncodingProfiles that will be used for this live + # stream event. Format: + # "networks/\\{network_code}/daiEncodingProfiles/\\{dai_encoding_profile_id}" + # @!attribute [rw] segment_url_authentication_keys + # @return [::Array<::String>] + # Optional. The list of DaiAuthenticationKeys used to authenticate ad segment + # url requests for this live stream. Format: + # "networks/\\{network_code}/daiAuthenticationKeys/\\{dai_authentication_key_id}" # @!attribute [rw] ad_break_markups # @return [::Array<::Google::Ads::AdManager::V1::AdBreakMarkupTypeEnum::AdBreakMarkupType>] # Optional. The formats that will be recognized as ad break start/end diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/live_stream_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/live_stream_service.rb index b609fc435272..fb6995365430 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/live_stream_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/live_stream_service.rb @@ -55,21 +55,24 @@ class GetLiveStreamRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • assetKey
  • - #
  • createTime
  • - #
  • customAssetKey
  • - #
  • displayName
  • - #
  • dynamicAdInsertionType
  • - #
  • effectiveAssetKey
  • - #
  • endTime
  • - #
  • sourceContentConfigurations
  • - #
  • startTime
  • - #
  • status
  • - #
  • streamingFormat
  • - #
  • updateTime
  • - #
+ # **Filterable fields:** + # + # * `assetKey` + # * `createTime` + # * `customAssetKey` + # * `daiAuthenticationKeys` + # * `daiEncodingProfiles` + # * `displayName` + # * `dynamicAdInsertionType` + # * `effectiveAssetKey` + # * `endTime` + # * `segmentUrlAuthenticationKeys` + # * `slate` + # * `sourceContentConfigurations` + # * `startTime` + # * `status` + # * `streamingFormat` + # * `updateTime` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/mcm_enums.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/mcm_enums.rb index 18446a62b0d8..02c79cf9426a 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/mcm_enums.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/mcm_enums.rb @@ -44,6 +44,272 @@ module DelegationType end end + # Wrapper for + # {::Google::Ads::AdManager::V1::McmReadinessStatusEnum::McmReadinessStatus McmReadinessStatus} + class McmReadinessStatusEnum + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Status of the MCM child publisher's Ad Manager network onboarding readiness + # status + module McmReadinessStatus + # No value specified + MCM_READINESS_STATUS_UNSPECIFIED = 0 + + # Indicates the invitation to the child is declined or withdrawn. + INACTIVE = 1 + + # Indicates the MCM setup has not yet completed. It could be child not yet + # accepted the invitation, Google found noncompliance settings or child has + # not yet completed identity or address verifications. + NOT_READY = 2 + + # Indicates MCM setup has completed. Including the child publisher accepted + # the invite, Google found it to be compliant with its policies, i.e. no + # policy violations were found, related verifications have completed and + # the child publisher can be served ads. + READY = 3 + end + end + + # Wrapper for + # {::Google::Ads::AdManager::V1::DelegationInvitationStatusEnum::DelegationInvitationStatus DelegationInvitationStatus} + class DelegationInvitationStatusEnum + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Status of the association between networks. When a parent network requests + # access, it is marked as pending. Once the child network accepts the + # agreement, it is marked as accepted. + module DelegationInvitationStatus + # No value specified + DELEGATION_INVITATION_STATUS_UNSPECIFIED = 0 + + # Indicates the association request from the parent network is accepted by + # the child network. + ACCEPTED = 1 + + # Indicates the invite was sent to the child publisher more than 90 days + # ago, due to which it has been deactivated. + EXPIRED = 2 + + # Indicates the child publisher has not acted on the invite from the + # parent. + PENDING = 3 + + # Indicates the child publisher has declined the invite. + REJECTED = 4 + + # Indicates the parent network withdrew the invite. + WITHDRAWN = 5 + + # Indicates the invitation was disapproved by Google. + DEACTIVATED_BY_AD_MANAGER = 6 + end + end + + # Wrapper for + # {::Google::Ads::AdManager::V1::DelegationAccountStatusEnum::DelegationAccountStatus DelegationAccountStatus} + class DelegationAccountStatusEnum + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Status of the MCM child publisher's Ad Manager account with respect to + # delegated serving. In order for the child network to be served ads for + # MCM, it must have accepted the invite from the parent network, and must + # have passed Google's policy compliance verifications. + module DelegationAccountStatus + # No value specified + DELEGATION_ACCOUNT_STATUS_UNSPECIFIED = 0 + + # Indicates the child publisher has not acted on the invite from the + # parent. + INVITED = 1 + + # Indicates the child publisher has declined the invite. + DECLINED = 2 + + # Indicates the child publisher accepted the invite, and Google found it to + # be compliant with its policies, i.e. no policy violations were found, + # and the child publisher can be served ads. + APPROVED = 3 + + # Indicates the child publisher has closed their own account. + CLOSED_BY_PUBLISHER = 4 + + # Indicates the child publisher accepted the invite, but was disapproved by + # Google for invalid activity. + CLOSED_INVALID_ACTIVITY = 5 + + # Indicates the child publisher accepted the invite, but was disapproved by + # Google for violating its policies. + CLOSED_POLICY_VIOLATION = 6 + + # Indicates the child publisher accepted the invite, but was disapproved by + # a Googler. + DEACTIVATED_BY_AD_MANAGER = 7 + + # Indicates the child publisher accepted the invite, but was disapproved by + # Google for being a duplicate of another account. + DISAPPROVED_DUPLICATE_ACCOUNT = 8 + + # Indicates the child publisher accepted the invite, but was disapproved as + # ineligible by Google. + DISAPPROVED_INELIGIBLE = 9 + + # Indicates the child publisher has accepted the invite, and is awaiting + # Google's policy compliance verifications. + PENDING_GOOGLE_APPROVAL = 10 + + # Indicates the invite was sent to the child publisher more than 90 days + # ago, due to which it has been deactivated. + EXPIRED = 11 + + # Indicates either the child publisher disconnected from the parent + # network, or the parent network withdrew the invite. + INACTIVE = 12 + end + end + + # Wrapper for + # {::Google::Ads::AdManager::V1::DelegationApprovalStatusEnum::DelegationApprovalStatus DelegationApprovalStatus} + class DelegationApprovalStatusEnum + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Status of the MCM child publisher's Ad Manager network with respect to + # delegated serving. It is only valid when the invitation is accepted by the + # child network. If the child has not yet accepted the parent's invite, this + # will be null. + module DelegationApprovalStatus + # No value specified + DELEGATION_APPROVAL_STATUS_UNSPECIFIED = 0 + + # Indicates the child publisher accepted the invite, and Google found it to + # be compliant with its policies, i.e. no policy violations were found, + # and the child publisher can be served ads. + APPROVED = 1 + + # Indicates the child publisher has closed their own account. + CLOSED_BY_PUBLISHER = 2 + + # Indicates the child publisher accepted the invite, but was disapproved by + # Google for invalid activity. + CLOSED_INVALID_ACTIVITY = 3 + + # Indicates the child publisher accepted the invite, but was disapproved by + # Google for violating its policies. + CLOSED_POLICY_VIOLATION = 4 + + # Indicates the child publisher accepted the invite, but was disapproved by + # a Googler. + DEACTIVATED_BY_AD_MANAGER = 5 + + # Indicates the child publisher accepted the invite, but was disapproved by + # Google for being a duplicate of another account. + DISAPPROVED_DUPLICATE_ACCOUNT = 6 + + # Indicates the child publisher accepted the invite, but was disapproved as + # ineligible by Google. + DISAPPROVED_INELIGIBLE = 7 + + # Indicates the child publisher has accepted the invite, and is awaiting + # Google's policy compliance verifications. + PENDING_GOOGLE_APPROVAL = 8 + end + end + + # Wrapper for + # {::Google::Ads::AdManager::V1::ChildPublisherIdentityVerificationStatusEnum::ChildPublisherIdentityVerificationStatus ChildPublisherIdentityVerificationStatus} + class ChildPublisherIdentityVerificationStatusEnum + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The status of the Mcm child identity verification. + module ChildPublisherIdentityVerificationStatus + # No value specified + CHILD_PUBLISHER_IDENTITY_VERIFICATION_STATUS_UNSPECIFIED = 0 + + # Indicates publisher is exempt from identify verification. + EXEMPT = 1 + + # Indicates publisher hasn't completed identity verification before the + # expiration date. + EXPIRED = 2 + + # Indicates publisher failed identity verification. + FAILED = 3 + + # Indicates publisher is pending identity verification. + PENDING = 4 + + # Indicates publisher is not eligible for identity verification. + NOT_ELIGIBLE = 5 + + # Indicates publisher has completed identity verification. + VERIFIED = 6 + end + end + + # Wrapper for + # {::Google::Ads::AdManager::V1::ChildPublisherAddressVerificationStatusEnum::ChildPublisherAddressVerificationStatus ChildPublisherAddressVerificationStatus} + class ChildPublisherAddressVerificationStatusEnum + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The status of the Mcm child address verification. + module ChildPublisherAddressVerificationStatus + # No value specified + CHILD_PUBLISHER_ADDRESS_VERIFICATION_STATUS_UNSPECIFIED = 0 + + # Indicates publisher is exempt from address verification. + EXEMPT = 1 + + # Indicates publisher hasn't completed address verification before the + # expiration date. + EXPIRED = 2 + + # Indicates publisher failed address verification. + FAILED = 3 + + # Indicates publisher's address pin has been mailed and must be verified. + PENDING = 4 + + # Indicates publisher is not eligible for address verification. + NOT_ELIGIBLE = 5 + + # Indicates publisher's address is verified. + VERIFIED = 6 + end + end + + # Wrapper for + # {::Google::Ads::AdManager::V1::ChildPublisherOnboardingTaskEnum::ChildPublisherOnboardingTask ChildPublisherOnboardingTask} + class ChildPublisherOnboardingTaskEnum + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The pending tasks that must be completed by the child publisher before + # Google's policy complicance (i.e., + # {::Google::Ads::AdManager::V1::DelegationApprovalStatusEnum::DelegationApprovalStatus::PENDING_GOOGLE_APPROVAL PENDING_GOOGLE_APPROVAL}) + # can be verified. + module ChildPublisherOnboardingTask + # No value specified + CHILD_PUBLISHER_ONBOARDING_TASK_UNSPECIFIED = 0 + + # Indicates the child publisher is required to create a payments billing + # profile. + BILLING_PROFILE_CREATION = 1 + + # Indicates the child publisher is required to verify their phone number. + PHONE_PIN_VERIFICATION = 2 + + # Indicates the child publisher is required to setup their Ad Manager + # account. + AD_MANAGER_ACCOUNT_SETUP = 4 + end + end + # Wrapper for # {::Google::Ads::AdManager::V1::McmEarningsProductTypeEnum::McmEarningsProductType McmEarningsProductType} class McmEarningsProductTypeEnum diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/mobile_carrier_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/mobile_carrier_service.rb index 3715c019af2d..d2f66ef6c81f 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/mobile_carrier_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/mobile_carrier_service.rb @@ -55,12 +55,11 @@ class GetMobileCarrierRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • name
  • - #
  • regionCode
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `name` + # * `regionCode` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/mobile_device_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/mobile_device_service.rb index 72ad8a0e39e7..66cf85415291 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/mobile_device_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/mobile_device_service.rb @@ -55,12 +55,11 @@ class GetMobileDeviceRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • manufacturer
  • - #
  • name
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `manufacturer` + # * `name` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/mobile_device_submodel_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/mobile_device_submodel_service.rb index 8926b661f5b3..542cb72864e8 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/mobile_device_submodel_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/mobile_device_submodel_service.rb @@ -58,12 +58,11 @@ class GetMobileDeviceSubmodelRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • mobileDevice
  • - #
  • name
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `mobileDevice` + # * `name` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/operating_system_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/operating_system_service.rb index 3e9aaca30cd5..c485f3c64ed4 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/operating_system_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/operating_system_service.rb @@ -55,11 +55,10 @@ class GetOperatingSystemRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • name
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `name` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/operating_system_version_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/operating_system_version_service.rb index a8c173637974..7000993fb7f6 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/operating_system_version_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/operating_system_version_service.rb @@ -58,13 +58,12 @@ class GetOperatingSystemVersionRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • majorVersion
  • - #
  • microVersion
  • - #
  • minorVersion
  • - #
  • name
  • - #
+ # **Filterable fields:** + # + # * `majorVersion` + # * `microVersion` + # * `minorVersion` + # * `name` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/order_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/order_service.rb index 522bae981769..8cb973d94412 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/order_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/order_service.rb @@ -392,31 +392,30 @@ class GetOrderRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • advertiser
  • - #
  • agency
  • - #
  • appliedTeams
  • - #
  • archived
  • - #
  • creator
  • - #
  • displayName
  • - #
  • endTime
  • - #
  • externalOrderId
  • - #
  • impressionsDelivered
  • - #
  • name
  • - #
  • orderId
  • - #
  • poNumber
  • - #
  • programmatic
  • - #
  • salesperson
  • - #
  • secondarySalespeople
  • - #
  • secondaryTraffickers
  • - #
  • startTime
  • - #
  • status
  • - #
  • totalClicksDelivered
  • - #
  • totalViewableImpressionsDelivered
  • - #
  • trafficker
  • - #
  • updateTime
  • - #
+ # **Filterable fields:** + # + # * `advertiser` + # * `agency` + # * `appliedTeams` + # * `archived` + # * `creator` + # * `displayName` + # * `endTime` + # * `externalOrderId` + # * `impressionsDelivered` + # * `name` + # * `orderId` + # * `poNumber` + # * `programmatic` + # * `salesperson` + # * `secondarySalespeople` + # * `secondaryTraffickers` + # * `startTime` + # * `status` + # * `totalClicksDelivered` + # * `totalViewableImpressionsDelivered` + # * `trafficker` + # * `updateTime` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/partner_messages.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/partner_messages.rb new file mode 100644 index 000000000000..71cd67c820d4 --- /dev/null +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/partner_messages.rb @@ -0,0 +1,106 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module AdManager + module V1 + # The {::Google::Ads::AdManager::V1::Partner Partner} resource. + # + # Represents a publishing partner with established agreements to share + # inventory and revenue based on assignments. + # + # For more information, see [Add publishing partner assignments] + # (https://support.google.com/admanager/answer/7032752). + # @!attribute [rw] name + # @return [::String] + # Identifier. The resource name of the + # {::Google::Ads::AdManager::V1::Partner Partner}. Format: + # `networks/{network_code}/partners/{partner_id}` + # @!attribute [rw] display_name + # @return [::String] + # Required. The display name of the + # {::Google::Ads::AdManager::V1::Partner Partner}. + # @!attribute [rw] address + # @return [::String] + # Optional. The address for the {::Google::Ads::AdManager::V1::Partner Partner}. + # + # This value has a maximum length of 1024 characters. + # @!attribute [rw] email + # @return [::String] + # Optional. The email for the {::Google::Ads::AdManager::V1::Partner Partner}. + # + # This value has a maximum length of 128 characters. + # @!attribute [rw] fax + # @return [::String] + # Optional. The fax number for the + # {::Google::Ads::AdManager::V1::Partner Partner}. + # + # This value has a maximum length of 63 characters. + # @!attribute [rw] phone + # @return [::String] + # Optional. The phone number for the + # {::Google::Ads::AdManager::V1::Partner Partner}. + # + # This value has a maximum length of 63 characters. + # @!attribute [rw] external_id + # @return [::String] + # Optional. The external ID for the + # {::Google::Ads::AdManager::V1::Partner Partner}. + # + # This value has a maximum length of 255 characters. + # @!attribute [rw] comment + # @return [::String] + # Optional. Comments about the {::Google::Ads::AdManager::V1::Partner Partner}. + # + # This value has a maximum length of 1024 characters. + # @!attribute [rw] applied_labels + # @return [::Array<::Google::Ads::AdManager::V1::AppliedLabel>] + # Optional. The labels that are directly applied to the + # {::Google::Ads::AdManager::V1::Partner Partner}. + # @!attribute [rw] primary_contact + # @return [::String] + # Optional. The resource names of primary Contact of the + # {::Google::Ads::AdManager::V1::Partner Partner}. Format: + # "networks/\\{network_code}/contacts/\\{contact_id}" + # @!attribute [rw] applied_teams + # @return [::Array<::String>] + # Optional. The resource names of Teams that are directly associated with the + # {::Google::Ads::AdManager::V1::Partner Partner}. + # Format: "networks/\\{network_code}/teams/\\{team_id}" + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time the {::Google::Ads::AdManager::V1::Partner Partner} was + # last updated. + # @!attribute [rw] credit_status + # @return [::Google::Ads::AdManager::V1::CompanyCreditStatusEnum::CompanyCreditStatus] + # Optional. The credit status of the + # {::Google::Ads::AdManager::V1::Partner Partner}. + # + # This attribute defaults to [CompanyCreditStatus.ACTIVE][] if basic + # settings are enabled and [CompanyCreditStatus.ON_HOLD][] if advance + # settings are enabled. + class Partner + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/partner_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/partner_service.rb new file mode 100644 index 000000000000..136bfebe2536 --- /dev/null +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/partner_service.rb @@ -0,0 +1,156 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module AdManager + module V1 + # Request object for [GetPartner][] method. + # @!attribute [rw] name + # @return [::String] + # Required. The resource name of the + # {::Google::Ads::AdManager::V1::Partner Partner}. Format: + # `networks/{network_code}/partners/{partner_id}` + class GetPartnerRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for [ListPartners][] method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent, which owns this collection of + # {::Google::Ads::AdManager::V1::Partner Partner}s. Format: + # `networks/{network_code}` + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of {::Google::Ads::AdManager::V1::Partner Partner}s + # to return. The service may return fewer than this value. If unspecified, at + # most 50 {::Google::Ads::AdManager::V1::Partner Partner}s will be returned. The + # maximum value is 1000; values greater than 1000 will be coerced to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous [ListPartners][] call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to [ListPartners][] must + # match the call that provided the page token. + # @!attribute [rw] filter + # @return [::String] + # Optional. Expression to filter the response. + # See syntax details at + # https://developers.google.com/ad-manager/api/beta/filters + # + # **Filterable fields:** + # + # * `address` + # * `comment` + # * `creditStatus` + # * `displayName` + # * `email` + # * `externalId` + # * `fax` + # * `name` + # * `phone` + # @!attribute [rw] order_by + # @return [::String] + # Optional. Expression to specify sorting order. + # See syntax details at + # https://developers.google.com/ad-manager/api/beta/filters#order + # @!attribute [rw] skip + # @return [::Integer] + # Optional. Number of individual resources to skip while paginating. + class ListPartnersRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response object for + # {::Google::Ads::AdManager::V1::ListPartnersRequest ListPartnersRequest} containing + # matching {::Google::Ads::AdManager::V1::Partner Partner} objects. + # @!attribute [rw] partners + # @return [::Array<::Google::Ads::AdManager::V1::Partner>] + # The {::Google::Ads::AdManager::V1::Partner Partner} objects from the specified + # network. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] total_size + # @return [::Integer] + # Total number of {::Google::Ads::AdManager::V1::Partner Partner} objects. + # If a filter was included in the request, this reflects the total number + # after the filtering is applied. + # + # `total_size` won't be calculated in the response unless it has been + # included in a response field mask. The response field mask can be provided + # to the method by using the URL parameter `$fields` or `fields`, or by using + # the HTTP/gRPC header `X-Goog-FieldMask`. + # + # For more information, see + # https://developers.google.com/ad-manager/api/beta/field-masks + class ListPartnersResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for [UpdatePartner][] method. + # @!attribute [rw] partner + # @return [::Google::Ads::AdManager::V1::Partner] + # Required. The {::Google::Ads::AdManager::V1::Partner Partner} to update. + # + # The {::Google::Ads::AdManager::V1::Partner Partner}'s `name` is used to identify + # the {::Google::Ads::AdManager::V1::Partner Partner} to update. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. The list of fields to update. + class UpdatePartnerRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for [BatchUpdatePartners][] method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource where + # {::Google::Ads::AdManager::V1::Partner Partner}s will be updated. Format: + # `networks/{network_code}` The parent field in the + # {::Google::Ads::AdManager::V1::UpdatePartnerRequest UpdatePartnerRequest} must + # match this field. + # @!attribute [rw] requests + # @return [::Array<::Google::Ads::AdManager::V1::UpdatePartnerRequest>] + # Required. The {::Google::Ads::AdManager::V1::Partner Partner} objects to update. + # A maximum of 100 objects can be updated in a batch. + class BatchUpdatePartnersRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response object for [BatchUpdatePartners][] method. + # @!attribute [rw] partners + # @return [::Array<::Google::Ads::AdManager::V1::Partner>] + # The {::Google::Ads::AdManager::V1::Partner Partner} objects updated. + class BatchUpdatePartnersResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/placement_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/placement_service.rb index e9d543793e0c..67c699a43b4a 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/placement_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/placement_service.rb @@ -55,16 +55,15 @@ class GetPlacementRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • description
  • - #
  • displayName
  • - #
  • name
  • - #
  • placementCode
  • - #
  • status
  • - #
  • targetedAdUnits
  • - #
  • updateTime
  • - #
+ # **Filterable fields:** + # + # * `description` + # * `displayName` + # * `name` + # * `placementCode` + # * `status` + # * `targetedAdUnits` + # * `updateTime` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/private_auction_deal_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/private_auction_deal_service.rb index ec8dc1ccc37a..0ce34f3e2c36 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/private_auction_deal_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/private_auction_deal_service.rb @@ -58,22 +58,21 @@ class GetPrivateAuctionDealRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • auctionPriorityEnabled
  • - #
  • blockOverrideEnabled
  • - #
  • buyerAccountId
  • - #
  • buyerPermissionType
  • - #
  • endTime
  • - #
  • externalDealId
  • - #
  • floorPrice
  • - #
  • name
  • - #
  • privateAuctionDealId
  • - #
  • privateAuctionDisplayName
  • - #
  • privateAuctionId
  • - #
  • status
  • - #
  • updateTime
  • - #
+ # **Filterable fields:** + # + # * `auctionPriorityEnabled` + # * `blockOverrideEnabled` + # * `buyerAccountId` + # * `buyerPermissionType` + # * `endTime` + # * `externalDealId` + # * `floorPrice` + # * `name` + # * `privateAuctionDealId` + # * `privateAuctionDisplayName` + # * `privateAuctionId` + # * `status` + # * `updateTime` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/programmatic_buyer_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/programmatic_buyer_service.rb index 3a29d01f448d..3a51a791b22c 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/programmatic_buyer_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/programmatic_buyer_service.rb @@ -56,17 +56,16 @@ class GetProgrammaticBuyerRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • agency
  • - #
  • buyerAccountId
  • - #
  • displayName
  • - #
  • name
  • - #
  • parentAccountId
  • - #
  • partnerClientId
  • - #
  • preferredDealsEnabled
  • - #
  • programmaticGuaranteedEnabled
  • - #
+ # **Filterable fields:** + # + # * `agency` + # * `buyerAccountId` + # * `displayName` + # * `name` + # * `parentAccountId` + # * `partnerClientId` + # * `preferredDealsEnabled` + # * `programmaticGuaranteedEnabled` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/report_definition.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/report_definition.rb index e666e9eebcb1..0cb4e4067947 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/report_definition.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/report_definition.rb @@ -629,7 +629,7 @@ module Dimension # # Corresponds to "Landing page domain" in the Ad Manager UI. # - # Compatible with the following report types: `HISTORICAL` + # Compatible with the following report types: `HISTORICAL`, `REACH` # # Data format: `STRING` ADVERTISER_DOMAIN_NAME = 242 @@ -2327,7 +2327,8 @@ module Dimension # # Corresponds to "City ID" in the Ad Manager UI. # - # Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + # Compatible with the following report types: `HISTORICAL`, `AD_SPEED`, + # `OFF_PROPERTY_CAMPAIGNS` # # Data format: `IDENTIFIER` CITY_ID = 459 @@ -2350,7 +2351,8 @@ module Dimension # # Corresponds to "Advertiser ID (classified)" in the Ad Manager UI. # - # Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + # Compatible with the following report types: `HISTORICAL`, `AD_SPEED`, + # `REACH` # # Data format: `IDENTIFIER` CLASSIFIED_ADVERTISER_ID = 133 @@ -2362,7 +2364,8 @@ module Dimension # # Corresponds to "Advertiser (classified)" in the Ad Manager UI. # - # Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + # Compatible with the following report types: `HISTORICAL`, `AD_SPEED`, + # `REACH` # # Data format: `STRING` CLASSIFIED_ADVERTISER_NAME = 134 @@ -3853,6 +3856,10 @@ module Dimension # Data format: `STRING_LIST` KEY_VALUES_SET = 713 + # The landing page domain name of the advertiser. + # This will eventually replace ADVERTISER_DOMAIN_NAME. + LANDING_PAGE_DOMAIN = 242 + # The agency of the order associated with the line item. # # @@ -4680,7 +4687,8 @@ module Dimension # # Corresponds to "Metro ID" in the Ad Manager UI. # - # Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + # Compatible with the following report types: `HISTORICAL`, `AD_SPEED`, + # `OFF_PROPERTY_CAMPAIGNS` # # Data format: `IDENTIFIER` METRO_ID = 453 @@ -5042,6 +5050,17 @@ module Dimension # Data format: `STRING` NO_FILL_REASON_CATEGORY_NAME = 587 + # Number of ads served in a pod response. + # + # + # + # Corresponds to "Number of ads in pod" in the Ad Manager UI. + # + # Compatible with the following report types: `HISTORICAL` + # + # Data format: `INTEGER` + NUM_ADS_IN_POD = 804 + # Operating system category. # # @@ -6037,6 +6056,29 @@ module Dimension # Data format: `STRING` REQUESTED_AD_SIZES = 352 + # The orientation of the creative requested. + # + # + # + # Corresponds to "Requested creative orientation value" in the Ad Manager + # UI (when showing API fields). + # + # Compatible with the following report types: `HISTORICAL` + # + # Data format: `ENUM_LIST` + REQUESTED_CREATIVE_ORIENTATION = 828 + + # Localized name of the requested creative orientation. + # + # + # + # Corresponds to "Requested creative orientation" in the Ad Manager UI. + # + # Compatible with the following report types: `HISTORICAL` + # + # Data format: `STRING_LIST` + REQUESTED_CREATIVE_ORIENTATION_NAME = 829 + # Request type ENUM # # @@ -6685,7 +6727,7 @@ module Dimension # Corresponds to "Position of pod" in the Ad Manager UI. # # Compatible with the following report types: `HISTORICAL`, - # `REAL_TIME_VIDEO` + # `REAL_TIME_VIDEO`, `OFF_PROPERTY_CAMPAIGNS` # # Data format: `STRING` VIDEO_POSITION_OF_POD = 539 @@ -10702,6 +10744,21 @@ module Metric # Data format: `PERCENT` CTR = 3 + # For standard ads, your ad clickthrough rate (CTR) is the number of ad + # clicks divided by the number of individual ad impressions expressed as a + # fraction. Ad CTR = Clicks / Ad impressions. Counts companion impressions + # in the number of ad impressions. + # + # + # + # Corresponds to "Total CTR with companion" in the Ad Manager UI. + # + # Compatible with the following report types: `HISTORICAL`, + # `ADS_TRAFFIC_NAVIGATOR`, `AD_SPEED` + # + # Data format: `PERCENT` + CTR_WITH_COMPANION = 742 + # Number of bids received for a deal. # # @@ -11167,6 +11224,19 @@ module Metric # Data format: `INTEGER` IMPRESSIONS = 1 + # Total impressions from the Google Ad Manager server, AdSense, + # Ad Exchange, and yield group partners, including companion ads. + # + # + # + # Corresponds to "Total impressions with companion" in the Ad Manager UI. + # + # Compatible with the following report types: `HISTORICAL`, + # `ADS_TRAFFIC_NAVIGATOR`, `AD_SPEED` + # + # Data format: `INTEGER` + IMPRESSIONS_WITH_COMPANION = 741 + # The number of impressions (via begin to render methodology) considered # inactive, as defined by served to a device receiving ad or bid requests # continuously for a session of greater than 16 hours without a "reset" @@ -11857,6 +11927,39 @@ module Metric # Data format: `INTEGER` PARTNER_SOLD_IMPRESSIONS = 123 + # Total pod eCPM. + # + # + # + # Corresponds to "Total pod eCPM" in the Ad Manager UI. + # + # Compatible with the following report types: `HISTORICAL` + # + # Data format: `MONEY` + POD_ECPM = 738 + + # Total pod eCPM without CPD. + # + # + # + # Corresponds to "Total pod eCPM without CPD" in the Ad Manager UI. + # + # Compatible with the following report types: `HISTORICAL` + # + # Data format: `MONEY` + POD_ECPM_WITHOUT_CPD = 739 + + # Total pod views. + # + # + # + # Corresponds to "Total pod views" in the Ad Manager UI. + # + # Compatible with the following report types: `HISTORICAL` + # + # Data format: `INTEGER` + POD_VIEWS = 740 + # The total number of ad requests eligible for programmatic inventory, # including Programmatic Guaranteed, Preferred Deals, backfill, and open # auction. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/report_messages.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/report_messages.rb index cd7bc9c2ac47..42109a4b0636 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/report_messages.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/report_messages.rb @@ -31,7 +31,7 @@ module V1 # @return [::Integer] # Output only. Report ID. # @!attribute [rw] visibility - # @return [::Google::Ads::AdManager::V1::Report::Visibility] + # @return [::Google::Ads::AdManager::V1::ReportVisibilityEnum::ReportVisibility] # Optional. The visibility of a report. # @!attribute [rw] report_definition # @return [::Google::Ads::AdManager::V1::ReportDefinition] @@ -55,26 +55,6 @@ module V1 class Report include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods - - # The visibility of a report. - module Visibility - # Default value. Reports with hidden visibility won't appear in the Ad - # Manager UI. - HIDDEN = 0 - - # Reports with draft visibility will appear in the Ad Manager UI only if - # the user has configured the UI to show them. - DRAFT = 1 - - # Reports with this visibility will appear in the Ad Manager UI. - VISIBLE = 2 - - # Deprecated: Use `VISIBLE`. - # Reports with saved visibility will appear in the Ad Manager UI by - # default. This is an alias for `VISIBLE` and will be removed in the - # future. - SAVED = 2 - end end # A table containing report data including dimension and metric values. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/report_visibility_enum.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/report_visibility_enum.rb new file mode 100644 index 000000000000..a2209b7e0a20 --- /dev/null +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/report_visibility_enum.rb @@ -0,0 +1,42 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module AdManager + module V1 + # Wrapper message for ReportVisibility enum. + class ReportVisibilityEnum + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The visibility of a report. + module ReportVisibility + # Default value. Reports with hidden visibility won't appear in the Ad + # Manager UI. + HIDDEN = 0 + + # Reports with this visibility will appear in the Ad Manager UI. + VISIBLE = 2 + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/rich_media_ads_company_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/rich_media_ads_company_service.rb index ca85d25ce2af..bc197c379aa3 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/rich_media_ads_company_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/rich_media_ads_company_service.rb @@ -58,14 +58,13 @@ class GetRichMediaAdsCompanyRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • companyGvlId
  • - #
  • displayName
  • - #
  • gdprStatus
  • - #
  • name
  • - #
  • policyUrl
  • - #
+ # **Filterable fields:** + # + # * `companyGvlId` + # * `displayName` + # * `gdprStatus` + # * `name` + # * `policyUrl` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/role_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/role_service.rb index 9e8399927bee..908a9bdfce56 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/role_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/role_service.rb @@ -55,14 +55,13 @@ class GetRoleRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • builtIn
  • - #
  • description
  • - #
  • displayName
  • - #
  • name
  • - #
  • status
  • - #
+ # **Filterable fields:** + # + # * `builtIn` + # * `description` + # * `displayName` + # * `name` + # * `status` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/site_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/site_service.rb index a6f1027f3a03..f30708506fbb 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/site_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/site_service.rb @@ -55,14 +55,13 @@ class GetSiteRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • approvalStatus
  • - #
  • approvalStatusUpdateTime
  • - #
  • childNetworkCode
  • - #
  • name
  • - #
  • url
  • - #
+ # **Filterable fields:** + # + # * `approvalStatus` + # * `approvalStatusUpdateTime` + # * `childNetworkCode` + # * `name` + # * `url` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/slate_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/slate_service.rb index a33016057ec9..bd89c4f3717a 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/slate_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/slate_service.rb @@ -54,12 +54,11 @@ class GetSlateRequest # Optional. Expression to filter the response. # See syntax details at https://google.aip.dev/160 # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • name
  • - #
  • status
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `name` + # * `status` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/suggested_ad_unit_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/suggested_ad_unit_service.rb index 12a36d865dbe..fd1728c33540 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/suggested_ad_unit_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/suggested_ad_unit_service.rb @@ -55,12 +55,11 @@ class GetSuggestedAdUnitRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • name
  • - #
  • newCodePath
  • - #
  • weeklyRequestCount
  • - #
+ # **Filterable fields:** + # + # * `name` + # * `newCodePath` + # * `weeklyRequestCount` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/targeting_preset_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/targeting_preset_service.rb index 9de1133d8bbe..5f4bb1f3e839 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/targeting_preset_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/targeting_preset_service.rb @@ -55,12 +55,11 @@ class GetTargetingPresetRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • name
  • - #
  • status
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `name` + # * `status` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/team_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/team_service.rb index fa6d3adb9e31..73c7296bedfa 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/team_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/team_service.rb @@ -55,16 +55,15 @@ class GetTeamRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • accessType
  • - #
  • allCompaniesAccess
  • - #
  • allInventoryAccess
  • - #
  • description
  • - #
  • displayName
  • - #
  • name
  • - #
  • status
  • - #
+ # **Filterable fields:** + # + # * `accessType` + # * `allCompaniesAccess` + # * `allInventoryAccess` + # * `description` + # * `displayName` + # * `name` + # * `status` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/third_party_company_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/third_party_company_service.rb index f37f2dca132f..8aff9870bb98 100644 --- a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/third_party_company_service.rb +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/third_party_company_service.rb @@ -56,13 +56,12 @@ class GetThirdPartyCompanyRequest # See syntax details at # https://developers.google.com/ad-manager/api/beta/filters # - # Filterable fields: - #
    - #
  • displayName
  • - #
  • name
  • - #
  • status
  • - #
  • type
  • - #
+ # **Filterable fields:** + # + # * `displayName` + # * `name` + # * `status` + # * `type` # @!attribute [rw] order_by # @return [::String] # Optional. Expression to specify sorting order. diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/third_party_data_declaration.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/third_party_data_declaration.rb new file mode 100644 index 000000000000..112743009bc6 --- /dev/null +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/third_party_data_declaration.rb @@ -0,0 +1,42 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module AdManager + module V1 + # Represents a set of declarations about what (if any) third party companies + # are associated with a given creative. This can also be set on the Network to + # serve as a default for those creatives that don't have such field set. + # @!attribute [rw] declaration_type + # @return [::Google::Ads::AdManager::V1::ThirdPartyDataDeclarationTypeEnum::ThirdPartyDataDeclarationType] + # Optional. The declaration about third party data usage on the associated + # entity. + # @!attribute [rw] third_party_companies + # @return [::Array<::String>] + # Optional. A list of ThirdPartyCompanies associated with this entity. + # Format: "networks/\\{network_code}/thirdPartyCompanies/\\{third_party_company}" + class ThirdPartyDataDeclaration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/third_party_data_declaration_type_enum.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/third_party_data_declaration_type_enum.rb new file mode 100644 index 000000000000..5ef0b5f3c118 --- /dev/null +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/third_party_data_declaration_type_enum.rb @@ -0,0 +1,46 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module AdManager + module V1 + # Wrapper message for + # {::Google::Ads::AdManager::V1::ThirdPartyDataDeclarationTypeEnum ThirdPartyDataDeclarationTypeEnum} + class ThirdPartyDataDeclarationTypeEnum + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The declaration about third party data usage on the associated entity. + module ThirdPartyDataDeclarationType + # Default value. This value is unused. + THIRD_PARTY_DATA_DECLARATION_TYPE_UNSPECIFIED = 0 + + # There is a set of ThirdPartyCompanies associated with this entity. + DECLARED = 1 + + # There are no companies associated. Functionally the same as DECLARED, + # combined with an empty company list. + NONE = 2 + end + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/video_tracking_url.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/video_tracking_url.rb new file mode 100644 index 000000000000..8b9f96ec1774 --- /dev/null +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/video_tracking_url.rb @@ -0,0 +1,40 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module AdManager + module V1 + # Represents a + # {::Google::Ads::AdManager::V1::ConversionEventEnum ConversionEventEnum} to URL + # pair that will be pinged when the event happens. + # @!attribute [rw] conversion_event + # @return [::Google::Ads::AdManager::V1::ConversionEventEnum::ConversionEvent] + # Required. All possible tracking event types. + # @!attribute [rw] url + # @return [::String] + # Optional. A URL that should be pinged for the conversion event. + class VideoTrackingUrl + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/viewability_provider_messages.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/viewability_provider_messages.rb new file mode 100644 index 000000000000..7782dc879f65 --- /dev/null +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/viewability_provider_messages.rb @@ -0,0 +1,99 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module AdManager + module V1 + # The {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider} + # resource. + # + # Represents a third-party company used to measure creative viewability. + # @!attribute [rw] name + # @return [::String] + # Identifier. The resource name of the + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider}. Format: + # `networks/{network_code}/viewabilityProviders/{viewability_provider}` + # @!attribute [rw] display_name + # @return [::String] + # Required. The display name of the + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider}. + # @!attribute [rw] vendor_key + # @return [::String] + # Required. The key for the + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider}. + # @!attribute [rw] verification_script_url + # @return [::String] + # Required. The URL that hosts the verification script for the + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider}. + # @!attribute [rw] verification_script_url_parameters + # @return [::String] + # Optional. The URL parameters that will be passed to the verification + # script. + # @!attribute [rw] rejection_tracker_url + # @return [::String] + # Optional. The URL that should be pinged if the verification script cannot + # be run. + # @!attribute [rw] address + # @return [::String] + # Optional. The address of the + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider}. + # @!attribute [rw] email + # @return [::String] + # Optional. The email of the + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider}. + # @!attribute [rw] fax + # @return [::String] + # Optional. The fax number of the + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider}. + # @!attribute [rw] phone + # @return [::String] + # Optional. The phone number of the + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider}. + # @!attribute [rw] external_id + # @return [::String] + # Optional. The external ID of the + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider}. + # @!attribute [rw] comment + # @return [::String] + # Optional. Comment about the + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider}. + # @!attribute [rw] primary_contact + # @return [::String] + # Optional. The resource name of primary Contact of the + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider}. Format: + # "networks/\\{network_code}/contacts/\\{contact_id}" + # @!attribute [rw] applied_teams + # @return [::Array<::String>] + # Optional. The resource names of Teams that are directly associated with the + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider}. + # Format: "networks/\\{network_code}/teams/\\{team_id}" + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time the + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider} was last + # updated. + class ViewabilityProvider + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/viewability_provider_service.rb b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/viewability_provider_service.rb new file mode 100644 index 000000000000..a29479d9e04b --- /dev/null +++ b/google-ads-ad_manager-v1/proto_docs/google/ads/admanager/v1/viewability_provider_service.rb @@ -0,0 +1,212 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module AdManager + module V1 + # Request object for [GetViewabilityProvider][] method. + # @!attribute [rw] name + # @return [::String] + # Required. The resource name of the + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider}. Format: + # `networks/{network_code}/viewabilityProviders/{viewability_provider}` + class GetViewabilityProviderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for [ListViewabilityProviders][] method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent, which owns this collection of + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider}s. + # Format: `networks/{network_code}` + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider}s to + # return. The service may return fewer than this value. If unspecified, at + # most 50 {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider}s + # will be returned. The maximum value is 1000; values above 1000 will be + # coerced to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous + # [ListViewabilityProviders][] call. Provide this to retrieve the subsequent + # page. + # + # When paginating, all other parameters provided to + # [ListViewabilityProviders][] must match the call that provided the page + # token. + # @!attribute [rw] filter + # @return [::String] + # Optional. Expression to filter the response. + # See syntax details at + # https://developers.google.com/ad-manager/api/beta/filters + # + # **Filterable fields:** + # + # * `address` + # * `comment` + # * `displayName` + # * `email` + # * `externalId` + # * `fax` + # * `name` + # * `phone` + # * `primaryContact` + # * `rejectionTrackerUrl` + # * `vendorKey` + # * `verificationScriptUrl` + # * `verificationScriptUrlParameters` + # @!attribute [rw] order_by + # @return [::String] + # Optional. Expression to specify sorting order. + # See syntax details at + # https://developers.google.com/ad-manager/api/beta/filters#order + # @!attribute [rw] skip + # @return [::Integer] + # Optional. Number of individual resources to skip while paginating. + class ListViewabilityProvidersRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response object for [ListViewabilityProviders][] containing matching + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider} objects. + # @!attribute [rw] viewability_providers + # @return [::Array<::Google::Ads::AdManager::V1::ViewabilityProvider>] + # The {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider} + # objects from the specified network. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] total_size + # @return [::Integer] + # Total number of + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider} objects. + # If a filter was included in the request, this reflects the total number + # after the filtering is applied. + # + # `total_size` won't be calculated in the response unless it has been + # included in a response field mask. The response field mask can be provided + # to the method by using the URL parameter `$fields` or `fields`, or by using + # the HTTP/gRPC header `X-Goog-FieldMask`. + # + # For more information, see + # https://developers.google.com/ad-manager/api/beta/field-masks + class ListViewabilityProvidersResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for [CreateViewabilityProvider][] method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource where this + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider} will be + # created. Format: `networks/{network_code}` + # @!attribute [rw] viewability_provider + # @return [::Google::Ads::AdManager::V1::ViewabilityProvider] + # Required. The + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider} to + # create. + class CreateViewabilityProviderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for [BatchCreateViewabilityProviders][] method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource where + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider}s will be + # created. Format: `networks/{network_code}` The parent field in the + # CreateViewabilityProviderRequest must match this field. + # @!attribute [rw] requests + # @return [::Array<::Google::Ads::AdManager::V1::CreateViewabilityProviderRequest>] + # Required. The + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider} objects + # to create. A maximum of 100 objects can be created in a batch. + class BatchCreateViewabilityProvidersRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response object for [BatchCreateViewabilityProviders][] method. + # @!attribute [rw] viewability_providers + # @return [::Array<::Google::Ads::AdManager::V1::ViewabilityProvider>] + # The {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider} + # objects created. + class BatchCreateViewabilityProvidersResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for [UpdateViewabilityProvider][] method. + # @!attribute [rw] viewability_provider + # @return [::Google::Ads::AdManager::V1::ViewabilityProvider] + # Required. The + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider} to + # update. + # + # The {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider}'s + # `name` is used to identify the + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider} to + # update. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. The list of fields to update. + class UpdateViewabilityProviderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request object for [BatchUpdateViewabilityProviders][] method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource where + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider}s will be + # updated. Format: `networks/{network_code}` The parent field in the + # UpdateViewabilityProviderRequest must match this field. + # @!attribute [rw] requests + # @return [::Array<::Google::Ads::AdManager::V1::UpdateViewabilityProviderRequest>] + # Required. The + # {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider} objects + # to update. A maximum of 100 objects can be updated in a batch. + class BatchUpdateViewabilityProvidersRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response object for [BatchUpdateViewabilityProviders][] method. + # @!attribute [rw] viewability_providers + # @return [::Array<::Google::Ads::AdManager::V1::ViewabilityProvider>] + # The {::Google::Ads::AdManager::V1::ViewabilityProvider ViewabilityProvider} + # objects updated. + class BatchUpdateViewabilityProvidersResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/google-ads-ad_manager-v1/snippets/child_publisher_service/batch_create_child_publishers.rb b/google-ads-ad_manager-v1/snippets/child_publisher_service/batch_create_child_publishers.rb new file mode 100644 index 000000000000..a17d68be53d4 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/child_publisher_service/batch_create_child_publishers.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_ChildPublisherService_BatchCreateChildPublishers_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the batch_create_child_publishers call in the ChildPublisherService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client#batch_create_child_publishers. +# +def batch_create_child_publishers + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::BatchCreateChildPublishersRequest.new + + # Call the batch_create_child_publishers method. + result = client.batch_create_child_publishers request + + # The returned object is of type Google::Ads::AdManager::V1::BatchCreateChildPublishersResponse. + p result +end +# [END admanager_v1_generated_ChildPublisherService_BatchCreateChildPublishers_sync] diff --git a/google-ads-ad_manager-v1/snippets/child_publisher_service/batch_update_child_publishers.rb b/google-ads-ad_manager-v1/snippets/child_publisher_service/batch_update_child_publishers.rb new file mode 100644 index 000000000000..f29d31b1f915 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/child_publisher_service/batch_update_child_publishers.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_ChildPublisherService_BatchUpdateChildPublishers_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the batch_update_child_publishers call in the ChildPublisherService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client#batch_update_child_publishers. +# +def batch_update_child_publishers + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::BatchUpdateChildPublishersRequest.new + + # Call the batch_update_child_publishers method. + result = client.batch_update_child_publishers request + + # The returned object is of type Google::Ads::AdManager::V1::BatchUpdateChildPublishersResponse. + p result +end +# [END admanager_v1_generated_ChildPublisherService_BatchUpdateChildPublishers_sync] diff --git a/google-ads-ad_manager-v1/snippets/child_publisher_service/create_child_publisher.rb b/google-ads-ad_manager-v1/snippets/child_publisher_service/create_child_publisher.rb new file mode 100644 index 000000000000..7323a1ae772d --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/child_publisher_service/create_child_publisher.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_ChildPublisherService_CreateChildPublisher_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the create_child_publisher call in the ChildPublisherService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client#create_child_publisher. +# +def create_child_publisher + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::CreateChildPublisherRequest.new + + # Call the create_child_publisher method. + result = client.create_child_publisher request + + # The returned object is of type Google::Ads::AdManager::V1::ChildPublisher. + p result +end +# [END admanager_v1_generated_ChildPublisherService_CreateChildPublisher_sync] diff --git a/google-ads-ad_manager-v1/snippets/child_publisher_service/get_child_publisher.rb b/google-ads-ad_manager-v1/snippets/child_publisher_service/get_child_publisher.rb new file mode 100644 index 000000000000..69c82b2a744b --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/child_publisher_service/get_child_publisher.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_ChildPublisherService_GetChildPublisher_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the get_child_publisher call in the ChildPublisherService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client#get_child_publisher. +# +def get_child_publisher + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::GetChildPublisherRequest.new + + # Call the get_child_publisher method. + result = client.get_child_publisher request + + # The returned object is of type Google::Ads::AdManager::V1::ChildPublisher. + p result +end +# [END admanager_v1_generated_ChildPublisherService_GetChildPublisher_sync] diff --git a/google-ads-ad_manager-v1/snippets/child_publisher_service/list_child_publishers.rb b/google-ads-ad_manager-v1/snippets/child_publisher_service/list_child_publishers.rb new file mode 100644 index 000000000000..1384a94584f7 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/child_publisher_service/list_child_publishers.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_ChildPublisherService_ListChildPublishers_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the list_child_publishers call in the ChildPublisherService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client#list_child_publishers. +# +def list_child_publishers + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::ListChildPublishersRequest.new + + # Call the list_child_publishers method. + result = client.list_child_publishers request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Ads::AdManager::V1::ChildPublisher. + p item + end +end +# [END admanager_v1_generated_ChildPublisherService_ListChildPublishers_sync] diff --git a/google-ads-ad_manager-v1/snippets/child_publisher_service/update_child_publisher.rb b/google-ads-ad_manager-v1/snippets/child_publisher_service/update_child_publisher.rb new file mode 100644 index 000000000000..8185c584c4c7 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/child_publisher_service/update_child_publisher.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_ChildPublisherService_UpdateChildPublisher_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the update_child_publisher call in the ChildPublisherService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client#update_child_publisher. +# +def update_child_publisher + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::UpdateChildPublisherRequest.new + + # Call the update_child_publisher method. + result = client.update_child_publisher request + + # The returned object is of type Google::Ads::AdManager::V1::ChildPublisher. + p result +end +# [END admanager_v1_generated_ChildPublisherService_UpdateChildPublisher_sync] diff --git a/google-ads-ad_manager-v1/snippets/company_service/batch_create_companies.rb b/google-ads-ad_manager-v1/snippets/company_service/batch_create_companies.rb new file mode 100644 index 000000000000..bf35fdd2ae64 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/company_service/batch_create_companies.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_CompanyService_BatchCreateCompanies_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the batch_create_companies call in the CompanyService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::CompanyService::Rest::Client#batch_create_companies. +# +def batch_create_companies + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::CompanyService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::BatchCreateCompaniesRequest.new + + # Call the batch_create_companies method. + result = client.batch_create_companies request + + # The returned object is of type Google::Ads::AdManager::V1::BatchCreateCompaniesResponse. + p result +end +# [END admanager_v1_generated_CompanyService_BatchCreateCompanies_sync] diff --git a/google-ads-ad_manager-v1/snippets/company_service/batch_update_companies.rb b/google-ads-ad_manager-v1/snippets/company_service/batch_update_companies.rb new file mode 100644 index 000000000000..ff84e003d5c8 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/company_service/batch_update_companies.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_CompanyService_BatchUpdateCompanies_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the batch_update_companies call in the CompanyService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::CompanyService::Rest::Client#batch_update_companies. +# +def batch_update_companies + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::CompanyService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::BatchUpdateCompaniesRequest.new + + # Call the batch_update_companies method. + result = client.batch_update_companies request + + # The returned object is of type Google::Ads::AdManager::V1::BatchUpdateCompaniesResponse. + p result +end +# [END admanager_v1_generated_CompanyService_BatchUpdateCompanies_sync] diff --git a/google-ads-ad_manager-v1/snippets/company_service/create_company.rb b/google-ads-ad_manager-v1/snippets/company_service/create_company.rb new file mode 100644 index 000000000000..112fcca6e7c7 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/company_service/create_company.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_CompanyService_CreateCompany_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the create_company call in the CompanyService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::CompanyService::Rest::Client#create_company. +# +def create_company + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::CompanyService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::CreateCompanyRequest.new + + # Call the create_company method. + result = client.create_company request + + # The returned object is of type Google::Ads::AdManager::V1::Company. + p result +end +# [END admanager_v1_generated_CompanyService_CreateCompany_sync] diff --git a/google-ads-ad_manager-v1/snippets/company_service/update_company.rb b/google-ads-ad_manager-v1/snippets/company_service/update_company.rb new file mode 100644 index 000000000000..1cd57889b9f5 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/company_service/update_company.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_CompanyService_UpdateCompany_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the update_company call in the CompanyService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::CompanyService::Rest::Client#update_company. +# +def update_company + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::CompanyService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::UpdateCompanyRequest.new + + # Call the update_company method. + result = client.update_company request + + # The returned object is of type Google::Ads::AdManager::V1::Company. + p result +end +# [END admanager_v1_generated_CompanyService_UpdateCompany_sync] diff --git a/google-ads-ad_manager-v1/snippets/creative_wrapper_service/batch_activate_creative_wrappers.rb b/google-ads-ad_manager-v1/snippets/creative_wrapper_service/batch_activate_creative_wrappers.rb new file mode 100644 index 000000000000..15ec5a18ff73 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/creative_wrapper_service/batch_activate_creative_wrappers.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_CreativeWrapperService_BatchActivateCreativeWrappers_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the batch_activate_creative_wrappers call in the CreativeWrapperService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client#batch_activate_creative_wrappers. +# +def batch_activate_creative_wrappers + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::BatchActivateCreativeWrappersRequest.new + + # Call the batch_activate_creative_wrappers method. + result = client.batch_activate_creative_wrappers request + + # The returned object is of type Google::Ads::AdManager::V1::BatchActivateCreativeWrappersResponse. + p result +end +# [END admanager_v1_generated_CreativeWrapperService_BatchActivateCreativeWrappers_sync] diff --git a/google-ads-ad_manager-v1/snippets/creative_wrapper_service/batch_create_creative_wrappers.rb b/google-ads-ad_manager-v1/snippets/creative_wrapper_service/batch_create_creative_wrappers.rb new file mode 100644 index 000000000000..bbb9a854b480 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/creative_wrapper_service/batch_create_creative_wrappers.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_CreativeWrapperService_BatchCreateCreativeWrappers_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the batch_create_creative_wrappers call in the CreativeWrapperService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client#batch_create_creative_wrappers. +# +def batch_create_creative_wrappers + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::BatchCreateCreativeWrappersRequest.new + + # Call the batch_create_creative_wrappers method. + result = client.batch_create_creative_wrappers request + + # The returned object is of type Google::Ads::AdManager::V1::BatchCreateCreativeWrappersResponse. + p result +end +# [END admanager_v1_generated_CreativeWrapperService_BatchCreateCreativeWrappers_sync] diff --git a/google-ads-ad_manager-v1/snippets/creative_wrapper_service/batch_deactivate_creative_wrappers.rb b/google-ads-ad_manager-v1/snippets/creative_wrapper_service/batch_deactivate_creative_wrappers.rb new file mode 100644 index 000000000000..4e01344b4a12 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/creative_wrapper_service/batch_deactivate_creative_wrappers.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_CreativeWrapperService_BatchDeactivateCreativeWrappers_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the batch_deactivate_creative_wrappers call in the CreativeWrapperService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client#batch_deactivate_creative_wrappers. +# +def batch_deactivate_creative_wrappers + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::BatchDeactivateCreativeWrappersRequest.new + + # Call the batch_deactivate_creative_wrappers method. + result = client.batch_deactivate_creative_wrappers request + + # The returned object is of type Google::Ads::AdManager::V1::BatchDeactivateCreativeWrappersResponse. + p result +end +# [END admanager_v1_generated_CreativeWrapperService_BatchDeactivateCreativeWrappers_sync] diff --git a/google-ads-ad_manager-v1/snippets/creative_wrapper_service/batch_update_creative_wrappers.rb b/google-ads-ad_manager-v1/snippets/creative_wrapper_service/batch_update_creative_wrappers.rb new file mode 100644 index 000000000000..067669d429c9 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/creative_wrapper_service/batch_update_creative_wrappers.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_CreativeWrapperService_BatchUpdateCreativeWrappers_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the batch_update_creative_wrappers call in the CreativeWrapperService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client#batch_update_creative_wrappers. +# +def batch_update_creative_wrappers + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::BatchUpdateCreativeWrappersRequest.new + + # Call the batch_update_creative_wrappers method. + result = client.batch_update_creative_wrappers request + + # The returned object is of type Google::Ads::AdManager::V1::BatchUpdateCreativeWrappersResponse. + p result +end +# [END admanager_v1_generated_CreativeWrapperService_BatchUpdateCreativeWrappers_sync] diff --git a/google-ads-ad_manager-v1/snippets/creative_wrapper_service/create_creative_wrapper.rb b/google-ads-ad_manager-v1/snippets/creative_wrapper_service/create_creative_wrapper.rb new file mode 100644 index 000000000000..2abb8b739343 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/creative_wrapper_service/create_creative_wrapper.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_CreativeWrapperService_CreateCreativeWrapper_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the create_creative_wrapper call in the CreativeWrapperService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client#create_creative_wrapper. +# +def create_creative_wrapper + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::CreateCreativeWrapperRequest.new + + # Call the create_creative_wrapper method. + result = client.create_creative_wrapper request + + # The returned object is of type Google::Ads::AdManager::V1::CreativeWrapper. + p result +end +# [END admanager_v1_generated_CreativeWrapperService_CreateCreativeWrapper_sync] diff --git a/google-ads-ad_manager-v1/snippets/creative_wrapper_service/get_creative_wrapper.rb b/google-ads-ad_manager-v1/snippets/creative_wrapper_service/get_creative_wrapper.rb new file mode 100644 index 000000000000..46a1d03c6a12 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/creative_wrapper_service/get_creative_wrapper.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_CreativeWrapperService_GetCreativeWrapper_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the get_creative_wrapper call in the CreativeWrapperService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client#get_creative_wrapper. +# +def get_creative_wrapper + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::GetCreativeWrapperRequest.new + + # Call the get_creative_wrapper method. + result = client.get_creative_wrapper request + + # The returned object is of type Google::Ads::AdManager::V1::CreativeWrapper. + p result +end +# [END admanager_v1_generated_CreativeWrapperService_GetCreativeWrapper_sync] diff --git a/google-ads-ad_manager-v1/snippets/creative_wrapper_service/list_creative_wrappers.rb b/google-ads-ad_manager-v1/snippets/creative_wrapper_service/list_creative_wrappers.rb new file mode 100644 index 000000000000..12794492f1ec --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/creative_wrapper_service/list_creative_wrappers.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_CreativeWrapperService_ListCreativeWrappers_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the list_creative_wrappers call in the CreativeWrapperService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client#list_creative_wrappers. +# +def list_creative_wrappers + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::ListCreativeWrappersRequest.new + + # Call the list_creative_wrappers method. + result = client.list_creative_wrappers request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Ads::AdManager::V1::CreativeWrapper. + p item + end +end +# [END admanager_v1_generated_CreativeWrapperService_ListCreativeWrappers_sync] diff --git a/google-ads-ad_manager-v1/snippets/creative_wrapper_service/update_creative_wrapper.rb b/google-ads-ad_manager-v1/snippets/creative_wrapper_service/update_creative_wrapper.rb new file mode 100644 index 000000000000..b155e6b5d43f --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/creative_wrapper_service/update_creative_wrapper.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_CreativeWrapperService_UpdateCreativeWrapper_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the update_creative_wrapper call in the CreativeWrapperService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client#update_creative_wrapper. +# +def update_creative_wrapper + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::UpdateCreativeWrapperRequest.new + + # Call the update_creative_wrapper method. + result = client.update_creative_wrapper request + + # The returned object is of type Google::Ads::AdManager::V1::CreativeWrapper. + p result +end +# [END admanager_v1_generated_CreativeWrapperService_UpdateCreativeWrapper_sync] diff --git a/google-ads-ad_manager-v1/snippets/dai_authentication_key_service/batch_activate_dai_authentication_keys.rb b/google-ads-ad_manager-v1/snippets/dai_authentication_key_service/batch_activate_dai_authentication_keys.rb new file mode 100644 index 000000000000..1519db703355 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/dai_authentication_key_service/batch_activate_dai_authentication_keys.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_DaiAuthenticationKeyService_BatchActivateDaiAuthenticationKeys_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the batch_activate_dai_authentication_keys call in the DaiAuthenticationKeyService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client#batch_activate_dai_authentication_keys. +# +def batch_activate_dai_authentication_keys + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::BatchActivateDaiAuthenticationKeysRequest.new + + # Call the batch_activate_dai_authentication_keys method. + result = client.batch_activate_dai_authentication_keys request + + # The returned object is of type Google::Ads::AdManager::V1::BatchActivateDaiAuthenticationKeysResponse. + p result +end +# [END admanager_v1_generated_DaiAuthenticationKeyService_BatchActivateDaiAuthenticationKeys_sync] diff --git a/google-ads-ad_manager-v1/snippets/dai_authentication_key_service/batch_create_dai_authentication_keys.rb b/google-ads-ad_manager-v1/snippets/dai_authentication_key_service/batch_create_dai_authentication_keys.rb new file mode 100644 index 000000000000..abe77007b546 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/dai_authentication_key_service/batch_create_dai_authentication_keys.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_DaiAuthenticationKeyService_BatchCreateDaiAuthenticationKeys_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the batch_create_dai_authentication_keys call in the DaiAuthenticationKeyService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client#batch_create_dai_authentication_keys. +# +def batch_create_dai_authentication_keys + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::BatchCreateDaiAuthenticationKeysRequest.new + + # Call the batch_create_dai_authentication_keys method. + result = client.batch_create_dai_authentication_keys request + + # The returned object is of type Google::Ads::AdManager::V1::BatchCreateDaiAuthenticationKeysResponse. + p result +end +# [END admanager_v1_generated_DaiAuthenticationKeyService_BatchCreateDaiAuthenticationKeys_sync] diff --git a/google-ads-ad_manager-v1/snippets/dai_authentication_key_service/batch_deactivate_dai_authentication_keys.rb b/google-ads-ad_manager-v1/snippets/dai_authentication_key_service/batch_deactivate_dai_authentication_keys.rb new file mode 100644 index 000000000000..ee30b7f9d2b9 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/dai_authentication_key_service/batch_deactivate_dai_authentication_keys.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_DaiAuthenticationKeyService_BatchDeactivateDaiAuthenticationKeys_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the batch_deactivate_dai_authentication_keys call in the DaiAuthenticationKeyService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client#batch_deactivate_dai_authentication_keys. +# +def batch_deactivate_dai_authentication_keys + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::BatchDeactivateDaiAuthenticationKeysRequest.new + + # Call the batch_deactivate_dai_authentication_keys method. + result = client.batch_deactivate_dai_authentication_keys request + + # The returned object is of type Google::Ads::AdManager::V1::BatchDeactivateDaiAuthenticationKeysResponse. + p result +end +# [END admanager_v1_generated_DaiAuthenticationKeyService_BatchDeactivateDaiAuthenticationKeys_sync] diff --git a/google-ads-ad_manager-v1/snippets/dai_authentication_key_service/batch_update_dai_authentication_keys.rb b/google-ads-ad_manager-v1/snippets/dai_authentication_key_service/batch_update_dai_authentication_keys.rb new file mode 100644 index 000000000000..361566220073 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/dai_authentication_key_service/batch_update_dai_authentication_keys.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_DaiAuthenticationKeyService_BatchUpdateDaiAuthenticationKeys_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the batch_update_dai_authentication_keys call in the DaiAuthenticationKeyService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client#batch_update_dai_authentication_keys. +# +def batch_update_dai_authentication_keys + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::BatchUpdateDaiAuthenticationKeysRequest.new + + # Call the batch_update_dai_authentication_keys method. + result = client.batch_update_dai_authentication_keys request + + # The returned object is of type Google::Ads::AdManager::V1::BatchUpdateDaiAuthenticationKeysResponse. + p result +end +# [END admanager_v1_generated_DaiAuthenticationKeyService_BatchUpdateDaiAuthenticationKeys_sync] diff --git a/google-ads-ad_manager-v1/snippets/dai_authentication_key_service/create_dai_authentication_key.rb b/google-ads-ad_manager-v1/snippets/dai_authentication_key_service/create_dai_authentication_key.rb new file mode 100644 index 000000000000..f7093dcced11 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/dai_authentication_key_service/create_dai_authentication_key.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_DaiAuthenticationKeyService_CreateDaiAuthenticationKey_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the create_dai_authentication_key call in the DaiAuthenticationKeyService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client#create_dai_authentication_key. +# +def create_dai_authentication_key + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::CreateDaiAuthenticationKeyRequest.new + + # Call the create_dai_authentication_key method. + result = client.create_dai_authentication_key request + + # The returned object is of type Google::Ads::AdManager::V1::DaiAuthenticationKey. + p result +end +# [END admanager_v1_generated_DaiAuthenticationKeyService_CreateDaiAuthenticationKey_sync] diff --git a/google-ads-ad_manager-v1/snippets/dai_authentication_key_service/get_dai_authentication_key.rb b/google-ads-ad_manager-v1/snippets/dai_authentication_key_service/get_dai_authentication_key.rb new file mode 100644 index 000000000000..976b15cf153e --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/dai_authentication_key_service/get_dai_authentication_key.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_DaiAuthenticationKeyService_GetDaiAuthenticationKey_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the get_dai_authentication_key call in the DaiAuthenticationKeyService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client#get_dai_authentication_key. +# +def get_dai_authentication_key + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::GetDaiAuthenticationKeyRequest.new + + # Call the get_dai_authentication_key method. + result = client.get_dai_authentication_key request + + # The returned object is of type Google::Ads::AdManager::V1::DaiAuthenticationKey. + p result +end +# [END admanager_v1_generated_DaiAuthenticationKeyService_GetDaiAuthenticationKey_sync] diff --git a/google-ads-ad_manager-v1/snippets/dai_authentication_key_service/list_dai_authentication_keys.rb b/google-ads-ad_manager-v1/snippets/dai_authentication_key_service/list_dai_authentication_keys.rb new file mode 100644 index 000000000000..4584139c945c --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/dai_authentication_key_service/list_dai_authentication_keys.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_DaiAuthenticationKeyService_ListDaiAuthenticationKeys_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the list_dai_authentication_keys call in the DaiAuthenticationKeyService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client#list_dai_authentication_keys. +# +def list_dai_authentication_keys + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::ListDaiAuthenticationKeysRequest.new + + # Call the list_dai_authentication_keys method. + result = client.list_dai_authentication_keys request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Ads::AdManager::V1::DaiAuthenticationKey. + p item + end +end +# [END admanager_v1_generated_DaiAuthenticationKeyService_ListDaiAuthenticationKeys_sync] diff --git a/google-ads-ad_manager-v1/snippets/dai_authentication_key_service/update_dai_authentication_key.rb b/google-ads-ad_manager-v1/snippets/dai_authentication_key_service/update_dai_authentication_key.rb new file mode 100644 index 000000000000..e83d79aa75f9 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/dai_authentication_key_service/update_dai_authentication_key.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_DaiAuthenticationKeyService_UpdateDaiAuthenticationKey_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the update_dai_authentication_key call in the DaiAuthenticationKeyService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client#update_dai_authentication_key. +# +def update_dai_authentication_key + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::UpdateDaiAuthenticationKeyRequest.new + + # Call the update_dai_authentication_key method. + result = client.update_dai_authentication_key request + + # The returned object is of type Google::Ads::AdManager::V1::DaiAuthenticationKey. + p result +end +# [END admanager_v1_generated_DaiAuthenticationKeyService_UpdateDaiAuthenticationKey_sync] diff --git a/google-ads-ad_manager-v1/snippets/dai_encoding_profile_service/batch_activate_dai_encoding_profiles.rb b/google-ads-ad_manager-v1/snippets/dai_encoding_profile_service/batch_activate_dai_encoding_profiles.rb new file mode 100644 index 000000000000..316209104d05 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/dai_encoding_profile_service/batch_activate_dai_encoding_profiles.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_DaiEncodingProfileService_BatchActivateDaiEncodingProfiles_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the batch_activate_dai_encoding_profiles call in the DaiEncodingProfileService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client#batch_activate_dai_encoding_profiles. +# +def batch_activate_dai_encoding_profiles + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::BatchActivateDaiEncodingProfilesRequest.new + + # Call the batch_activate_dai_encoding_profiles method. + result = client.batch_activate_dai_encoding_profiles request + + # The returned object is of type Google::Ads::AdManager::V1::BatchActivateDaiEncodingProfilesResponse. + p result +end +# [END admanager_v1_generated_DaiEncodingProfileService_BatchActivateDaiEncodingProfiles_sync] diff --git a/google-ads-ad_manager-v1/snippets/dai_encoding_profile_service/batch_archive_dai_encoding_profiles.rb b/google-ads-ad_manager-v1/snippets/dai_encoding_profile_service/batch_archive_dai_encoding_profiles.rb new file mode 100644 index 000000000000..bbbb1aa9a0e1 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/dai_encoding_profile_service/batch_archive_dai_encoding_profiles.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_DaiEncodingProfileService_BatchArchiveDaiEncodingProfiles_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the batch_archive_dai_encoding_profiles call in the DaiEncodingProfileService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client#batch_archive_dai_encoding_profiles. +# +def batch_archive_dai_encoding_profiles + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::BatchArchiveDaiEncodingProfilesRequest.new + + # Call the batch_archive_dai_encoding_profiles method. + result = client.batch_archive_dai_encoding_profiles request + + # The returned object is of type Google::Ads::AdManager::V1::BatchArchiveDaiEncodingProfilesResponse. + p result +end +# [END admanager_v1_generated_DaiEncodingProfileService_BatchArchiveDaiEncodingProfiles_sync] diff --git a/google-ads-ad_manager-v1/snippets/dai_encoding_profile_service/batch_create_dai_encoding_profiles.rb b/google-ads-ad_manager-v1/snippets/dai_encoding_profile_service/batch_create_dai_encoding_profiles.rb new file mode 100644 index 000000000000..56ec090e34da --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/dai_encoding_profile_service/batch_create_dai_encoding_profiles.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_DaiEncodingProfileService_BatchCreateDaiEncodingProfiles_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the batch_create_dai_encoding_profiles call in the DaiEncodingProfileService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client#batch_create_dai_encoding_profiles. +# +def batch_create_dai_encoding_profiles + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::BatchCreateDaiEncodingProfilesRequest.new + + # Call the batch_create_dai_encoding_profiles method. + result = client.batch_create_dai_encoding_profiles request + + # The returned object is of type Google::Ads::AdManager::V1::BatchCreateDaiEncodingProfilesResponse. + p result +end +# [END admanager_v1_generated_DaiEncodingProfileService_BatchCreateDaiEncodingProfiles_sync] diff --git a/google-ads-ad_manager-v1/snippets/dai_encoding_profile_service/batch_update_dai_encoding_profiles.rb b/google-ads-ad_manager-v1/snippets/dai_encoding_profile_service/batch_update_dai_encoding_profiles.rb new file mode 100644 index 000000000000..8c79f4d9abf9 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/dai_encoding_profile_service/batch_update_dai_encoding_profiles.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_DaiEncodingProfileService_BatchUpdateDaiEncodingProfiles_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the batch_update_dai_encoding_profiles call in the DaiEncodingProfileService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client#batch_update_dai_encoding_profiles. +# +def batch_update_dai_encoding_profiles + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::BatchUpdateDaiEncodingProfilesRequest.new + + # Call the batch_update_dai_encoding_profiles method. + result = client.batch_update_dai_encoding_profiles request + + # The returned object is of type Google::Ads::AdManager::V1::BatchUpdateDaiEncodingProfilesResponse. + p result +end +# [END admanager_v1_generated_DaiEncodingProfileService_BatchUpdateDaiEncodingProfiles_sync] diff --git a/google-ads-ad_manager-v1/snippets/dai_encoding_profile_service/create_dai_encoding_profile.rb b/google-ads-ad_manager-v1/snippets/dai_encoding_profile_service/create_dai_encoding_profile.rb new file mode 100644 index 000000000000..6ab81bb457ed --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/dai_encoding_profile_service/create_dai_encoding_profile.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_DaiEncodingProfileService_CreateDaiEncodingProfile_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the create_dai_encoding_profile call in the DaiEncodingProfileService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client#create_dai_encoding_profile. +# +def create_dai_encoding_profile + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::CreateDaiEncodingProfileRequest.new + + # Call the create_dai_encoding_profile method. + result = client.create_dai_encoding_profile request + + # The returned object is of type Google::Ads::AdManager::V1::DaiEncodingProfile. + p result +end +# [END admanager_v1_generated_DaiEncodingProfileService_CreateDaiEncodingProfile_sync] diff --git a/google-ads-ad_manager-v1/snippets/dai_encoding_profile_service/get_dai_encoding_profile.rb b/google-ads-ad_manager-v1/snippets/dai_encoding_profile_service/get_dai_encoding_profile.rb new file mode 100644 index 000000000000..2b83ff39ec3c --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/dai_encoding_profile_service/get_dai_encoding_profile.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_DaiEncodingProfileService_GetDaiEncodingProfile_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the get_dai_encoding_profile call in the DaiEncodingProfileService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client#get_dai_encoding_profile. +# +def get_dai_encoding_profile + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::GetDaiEncodingProfileRequest.new + + # Call the get_dai_encoding_profile method. + result = client.get_dai_encoding_profile request + + # The returned object is of type Google::Ads::AdManager::V1::DaiEncodingProfile. + p result +end +# [END admanager_v1_generated_DaiEncodingProfileService_GetDaiEncodingProfile_sync] diff --git a/google-ads-ad_manager-v1/snippets/dai_encoding_profile_service/list_dai_encoding_profiles.rb b/google-ads-ad_manager-v1/snippets/dai_encoding_profile_service/list_dai_encoding_profiles.rb new file mode 100644 index 000000000000..ba588276cab8 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/dai_encoding_profile_service/list_dai_encoding_profiles.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_DaiEncodingProfileService_ListDaiEncodingProfiles_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the list_dai_encoding_profiles call in the DaiEncodingProfileService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client#list_dai_encoding_profiles. +# +def list_dai_encoding_profiles + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::ListDaiEncodingProfilesRequest.new + + # Call the list_dai_encoding_profiles method. + result = client.list_dai_encoding_profiles request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Ads::AdManager::V1::DaiEncodingProfile. + p item + end +end +# [END admanager_v1_generated_DaiEncodingProfileService_ListDaiEncodingProfiles_sync] diff --git a/google-ads-ad_manager-v1/snippets/dai_encoding_profile_service/update_dai_encoding_profile.rb b/google-ads-ad_manager-v1/snippets/dai_encoding_profile_service/update_dai_encoding_profile.rb new file mode 100644 index 000000000000..de2b16b874a4 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/dai_encoding_profile_service/update_dai_encoding_profile.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_DaiEncodingProfileService_UpdateDaiEncodingProfile_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the update_dai_encoding_profile call in the DaiEncodingProfileService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client#update_dai_encoding_profile. +# +def update_dai_encoding_profile + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::UpdateDaiEncodingProfileRequest.new + + # Call the update_dai_encoding_profile method. + result = client.update_dai_encoding_profile request + + # The returned object is of type Google::Ads::AdManager::V1::DaiEncodingProfile. + p result +end +# [END admanager_v1_generated_DaiEncodingProfileService_UpdateDaiEncodingProfile_sync] diff --git a/google-ads-ad_manager-v1/snippets/partner_service/batch_update_partners.rb b/google-ads-ad_manager-v1/snippets/partner_service/batch_update_partners.rb new file mode 100644 index 000000000000..cb8870195663 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/partner_service/batch_update_partners.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_PartnerService_BatchUpdatePartners_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the batch_update_partners call in the PartnerService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::PartnerService::Rest::Client#batch_update_partners. +# +def batch_update_partners + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::PartnerService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::BatchUpdatePartnersRequest.new + + # Call the batch_update_partners method. + result = client.batch_update_partners request + + # The returned object is of type Google::Ads::AdManager::V1::BatchUpdatePartnersResponse. + p result +end +# [END admanager_v1_generated_PartnerService_BatchUpdatePartners_sync] diff --git a/google-ads-ad_manager-v1/snippets/partner_service/get_partner.rb b/google-ads-ad_manager-v1/snippets/partner_service/get_partner.rb new file mode 100644 index 000000000000..1fa2a59021ec --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/partner_service/get_partner.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_PartnerService_GetPartner_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the get_partner call in the PartnerService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::PartnerService::Rest::Client#get_partner. +# +def get_partner + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::PartnerService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::GetPartnerRequest.new + + # Call the get_partner method. + result = client.get_partner request + + # The returned object is of type Google::Ads::AdManager::V1::Partner. + p result +end +# [END admanager_v1_generated_PartnerService_GetPartner_sync] diff --git a/google-ads-ad_manager-v1/snippets/partner_service/list_partners.rb b/google-ads-ad_manager-v1/snippets/partner_service/list_partners.rb new file mode 100644 index 000000000000..8cd37c231ab1 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/partner_service/list_partners.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_PartnerService_ListPartners_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the list_partners call in the PartnerService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::PartnerService::Rest::Client#list_partners. +# +def list_partners + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::PartnerService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::ListPartnersRequest.new + + # Call the list_partners method. + result = client.list_partners request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Ads::AdManager::V1::Partner. + p item + end +end +# [END admanager_v1_generated_PartnerService_ListPartners_sync] diff --git a/google-ads-ad_manager-v1/snippets/partner_service/update_partner.rb b/google-ads-ad_manager-v1/snippets/partner_service/update_partner.rb new file mode 100644 index 000000000000..7c5138f27f9d --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/partner_service/update_partner.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_PartnerService_UpdatePartner_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the update_partner call in the PartnerService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::PartnerService::Rest::Client#update_partner. +# +def update_partner + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::PartnerService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::UpdatePartnerRequest.new + + # Call the update_partner method. + result = client.update_partner request + + # The returned object is of type Google::Ads::AdManager::V1::Partner. + p result +end +# [END admanager_v1_generated_PartnerService_UpdatePartner_sync] diff --git a/google-ads-ad_manager-v1/snippets/viewability_provider_service/batch_create_viewability_providers.rb b/google-ads-ad_manager-v1/snippets/viewability_provider_service/batch_create_viewability_providers.rb new file mode 100644 index 000000000000..b5c811a679c6 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/viewability_provider_service/batch_create_viewability_providers.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_ViewabilityProviderService_BatchCreateViewabilityProviders_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the batch_create_viewability_providers call in the ViewabilityProviderService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client#batch_create_viewability_providers. +# +def batch_create_viewability_providers + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::BatchCreateViewabilityProvidersRequest.new + + # Call the batch_create_viewability_providers method. + result = client.batch_create_viewability_providers request + + # The returned object is of type Google::Ads::AdManager::V1::BatchCreateViewabilityProvidersResponse. + p result +end +# [END admanager_v1_generated_ViewabilityProviderService_BatchCreateViewabilityProviders_sync] diff --git a/google-ads-ad_manager-v1/snippets/viewability_provider_service/batch_update_viewability_providers.rb b/google-ads-ad_manager-v1/snippets/viewability_provider_service/batch_update_viewability_providers.rb new file mode 100644 index 000000000000..1e5c185aac43 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/viewability_provider_service/batch_update_viewability_providers.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_ViewabilityProviderService_BatchUpdateViewabilityProviders_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the batch_update_viewability_providers call in the ViewabilityProviderService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client#batch_update_viewability_providers. +# +def batch_update_viewability_providers + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::BatchUpdateViewabilityProvidersRequest.new + + # Call the batch_update_viewability_providers method. + result = client.batch_update_viewability_providers request + + # The returned object is of type Google::Ads::AdManager::V1::BatchUpdateViewabilityProvidersResponse. + p result +end +# [END admanager_v1_generated_ViewabilityProviderService_BatchUpdateViewabilityProviders_sync] diff --git a/google-ads-ad_manager-v1/snippets/viewability_provider_service/create_viewability_provider.rb b/google-ads-ad_manager-v1/snippets/viewability_provider_service/create_viewability_provider.rb new file mode 100644 index 000000000000..d5cd9b90c218 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/viewability_provider_service/create_viewability_provider.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_ViewabilityProviderService_CreateViewabilityProvider_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the create_viewability_provider call in the ViewabilityProviderService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client#create_viewability_provider. +# +def create_viewability_provider + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::CreateViewabilityProviderRequest.new + + # Call the create_viewability_provider method. + result = client.create_viewability_provider request + + # The returned object is of type Google::Ads::AdManager::V1::ViewabilityProvider. + p result +end +# [END admanager_v1_generated_ViewabilityProviderService_CreateViewabilityProvider_sync] diff --git a/google-ads-ad_manager-v1/snippets/viewability_provider_service/get_viewability_provider.rb b/google-ads-ad_manager-v1/snippets/viewability_provider_service/get_viewability_provider.rb new file mode 100644 index 000000000000..edd2827914b9 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/viewability_provider_service/get_viewability_provider.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_ViewabilityProviderService_GetViewabilityProvider_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the get_viewability_provider call in the ViewabilityProviderService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client#get_viewability_provider. +# +def get_viewability_provider + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::GetViewabilityProviderRequest.new + + # Call the get_viewability_provider method. + result = client.get_viewability_provider request + + # The returned object is of type Google::Ads::AdManager::V1::ViewabilityProvider. + p result +end +# [END admanager_v1_generated_ViewabilityProviderService_GetViewabilityProvider_sync] diff --git a/google-ads-ad_manager-v1/snippets/viewability_provider_service/list_viewability_providers.rb b/google-ads-ad_manager-v1/snippets/viewability_provider_service/list_viewability_providers.rb new file mode 100644 index 000000000000..32d43aa31c85 --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/viewability_provider_service/list_viewability_providers.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_ViewabilityProviderService_ListViewabilityProviders_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the list_viewability_providers call in the ViewabilityProviderService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client#list_viewability_providers. +# +def list_viewability_providers + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::ListViewabilityProvidersRequest.new + + # Call the list_viewability_providers method. + result = client.list_viewability_providers request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Ads::AdManager::V1::ViewabilityProvider. + p item + end +end +# [END admanager_v1_generated_ViewabilityProviderService_ListViewabilityProviders_sync] diff --git a/google-ads-ad_manager-v1/snippets/viewability_provider_service/update_viewability_provider.rb b/google-ads-ad_manager-v1/snippets/viewability_provider_service/update_viewability_provider.rb new file mode 100644 index 000000000000..94d90b54b58a --- /dev/null +++ b/google-ads-ad_manager-v1/snippets/viewability_provider_service/update_viewability_provider.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START admanager_v1_generated_ViewabilityProviderService_UpdateViewabilityProvider_sync] +require "google/ads/ad_manager/v1" + +## +# Snippet for the update_viewability_provider call in the ViewabilityProviderService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client#update_viewability_provider. +# +def update_viewability_provider + # Create a client object. The client can be reused for multiple calls. + client = Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Ads::AdManager::V1::UpdateViewabilityProviderRequest.new + + # Call the update_viewability_provider method. + result = client.update_viewability_provider request + + # The returned object is of type Google::Ads::AdManager::V1::ViewabilityProvider. + p result +end +# [END admanager_v1_generated_ViewabilityProviderService_UpdateViewabilityProvider_sync] diff --git a/google-ads-ad_manager-v1/test/google/ads/ad_manager/v1/child_publisher_service_rest_test.rb b/google-ads-ad_manager-v1/test/google/ads/ad_manager/v1/child_publisher_service_rest_test.rb new file mode 100644 index 000000000000..0a336fa5fad4 --- /dev/null +++ b/google-ads-ad_manager-v1/test/google/ads/ad_manager/v1/child_publisher_service_rest_test.rb @@ -0,0 +1,432 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" +require "gapic/rest" +require "google/ads/admanager/v1/child_publisher_service_pb" +require "google/ads/ad_manager/v1/child_publisher_service/rest" + + +class ::Google::Ads::AdManager::V1::ChildPublisherService::Rest::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_count, :requests + + def initialize response, &block + @response = response + @block = block + @call_count = 0 + @requests = [] + end + + def make_get_request uri:, params: {}, options: {}, method_name: nil + make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_delete_request uri:, params: {}, options: {}, method_name: nil + make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil + make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_put_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_http_request *args, **kwargs + @call_count += 1 + + @requests << @block&.call(*args, **kwargs) + + @response + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_get_child_publisher + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::ChildPublisher.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_child_publisher_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::ChildPublisherService::Rest::ServiceStub.stub :transcode_get_child_publisher_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_child_publisher_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_child_publisher({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_child_publisher name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_child_publisher ::Google::Ads::AdManager::V1::GetChildPublisherRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_child_publisher({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_child_publisher(::Google::Ads::AdManager::V1::GetChildPublisherRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_child_publisher_client_stub.call_count + end + end + end + + def test_list_child_publishers + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::ListChildPublishersResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + skip = 42 + + list_child_publishers_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::ChildPublisherService::Rest::ServiceStub.stub :transcode_list_child_publishers_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_child_publishers_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_child_publishers({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_child_publishers parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_child_publishers ::Google::Ads::AdManager::V1::ListChildPublishersRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_child_publishers({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_child_publishers(::Google::Ads::AdManager::V1::ListChildPublishersRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_child_publishers_client_stub.call_count + end + end + end + + def test_create_child_publisher + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::ChildPublisher.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + child_publisher = {} + + create_child_publisher_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::ChildPublisherService::Rest::ServiceStub.stub :transcode_create_child_publisher_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_child_publisher_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_child_publisher({ parent: parent, child_publisher: child_publisher }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_child_publisher parent: parent, child_publisher: child_publisher do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_child_publisher ::Google::Ads::AdManager::V1::CreateChildPublisherRequest.new(parent: parent, child_publisher: child_publisher) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_child_publisher({ parent: parent, child_publisher: child_publisher }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_child_publisher(::Google::Ads::AdManager::V1::CreateChildPublisherRequest.new(parent: parent, child_publisher: child_publisher), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_child_publisher_client_stub.call_count + end + end + end + + def test_batch_create_child_publishers + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::BatchCreateChildPublishersResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + requests = [{}] + + batch_create_child_publishers_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::ChildPublisherService::Rest::ServiceStub.stub :transcode_batch_create_child_publishers_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, batch_create_child_publishers_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.batch_create_child_publishers({ parent: parent, requests: requests }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.batch_create_child_publishers parent: parent, requests: requests do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.batch_create_child_publishers ::Google::Ads::AdManager::V1::BatchCreateChildPublishersRequest.new(parent: parent, requests: requests) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.batch_create_child_publishers({ parent: parent, requests: requests }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.batch_create_child_publishers(::Google::Ads::AdManager::V1::BatchCreateChildPublishersRequest.new(parent: parent, requests: requests), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, batch_create_child_publishers_client_stub.call_count + end + end + end + + def test_update_child_publisher + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::ChildPublisher.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + child_publisher = {} + update_mask = {} + + update_child_publisher_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::ChildPublisherService::Rest::ServiceStub.stub :transcode_update_child_publisher_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_child_publisher_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_child_publisher({ child_publisher: child_publisher, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_child_publisher child_publisher: child_publisher, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_child_publisher ::Google::Ads::AdManager::V1::UpdateChildPublisherRequest.new(child_publisher: child_publisher, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_child_publisher({ child_publisher: child_publisher, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_child_publisher(::Google::Ads::AdManager::V1::UpdateChildPublisherRequest.new(child_publisher: child_publisher, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_child_publisher_client_stub.call_count + end + end + end + + def test_batch_update_child_publishers + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::BatchUpdateChildPublishersResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + requests = [{}] + + batch_update_child_publishers_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::ChildPublisherService::Rest::ServiceStub.stub :transcode_batch_update_child_publishers_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, batch_update_child_publishers_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.batch_update_child_publishers({ parent: parent, requests: requests }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.batch_update_child_publishers parent: parent, requests: requests do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.batch_update_child_publishers ::Google::Ads::AdManager::V1::BatchUpdateChildPublishersRequest.new(parent: parent, requests: requests) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.batch_update_child_publishers({ parent: parent, requests: requests }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.batch_update_child_publishers(::Google::Ads::AdManager::V1::BatchUpdateChildPublishersRequest.new(parent: parent, requests: requests), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, batch_update_child_publishers_client_stub.call_count + end + end + end + + def test_configure + credentials_token = :dummy_value + + client = block_config = config = nil + dummy_stub = ClientStub.new nil + Gapic::Rest::ClientStub.stub :new, dummy_stub do + client = ::Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client.new do |config| + config.credentials = credentials_token + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client::Configuration, config + end +end diff --git a/google-ads-ad_manager-v1/test/google/ads/ad_manager/v1/company_service_rest_test.rb b/google-ads-ad_manager-v1/test/google/ads/ad_manager/v1/company_service_rest_test.rb index 8ac185d857cc..3740db17634f 100644 --- a/google-ads-ad_manager-v1/test/google/ads/ad_manager/v1/company_service_rest_test.rb +++ b/google-ads-ad_manager-v1/test/google/ads/ad_manager/v1/company_service_rest_test.rb @@ -191,6 +191,226 @@ def test_list_companies end end + def test_create_company + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::Company.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + company = {} + + create_company_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::CompanyService::Rest::ServiceStub.stub :transcode_create_company_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_company_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::CompanyService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_company({ parent: parent, company: company }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_company parent: parent, company: company do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_company ::Google::Ads::AdManager::V1::CreateCompanyRequest.new(parent: parent, company: company) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_company({ parent: parent, company: company }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_company(::Google::Ads::AdManager::V1::CreateCompanyRequest.new(parent: parent, company: company), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_company_client_stub.call_count + end + end + end + + def test_batch_create_companies + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::BatchCreateCompaniesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + requests = [{}] + + batch_create_companies_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::CompanyService::Rest::ServiceStub.stub :transcode_batch_create_companies_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, batch_create_companies_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::CompanyService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.batch_create_companies({ parent: parent, requests: requests }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.batch_create_companies parent: parent, requests: requests do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.batch_create_companies ::Google::Ads::AdManager::V1::BatchCreateCompaniesRequest.new(parent: parent, requests: requests) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.batch_create_companies({ parent: parent, requests: requests }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.batch_create_companies(::Google::Ads::AdManager::V1::BatchCreateCompaniesRequest.new(parent: parent, requests: requests), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, batch_create_companies_client_stub.call_count + end + end + end + + def test_update_company + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::Company.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + company = {} + update_mask = {} + + update_company_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::CompanyService::Rest::ServiceStub.stub :transcode_update_company_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_company_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::CompanyService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_company({ company: company, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_company company: company, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_company ::Google::Ads::AdManager::V1::UpdateCompanyRequest.new(company: company, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_company({ company: company, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_company(::Google::Ads::AdManager::V1::UpdateCompanyRequest.new(company: company, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_company_client_stub.call_count + end + end + end + + def test_batch_update_companies + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::BatchUpdateCompaniesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + requests = [{}] + + batch_update_companies_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::CompanyService::Rest::ServiceStub.stub :transcode_batch_update_companies_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, batch_update_companies_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::CompanyService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.batch_update_companies({ parent: parent, requests: requests }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.batch_update_companies parent: parent, requests: requests do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.batch_update_companies ::Google::Ads::AdManager::V1::BatchUpdateCompaniesRequest.new(parent: parent, requests: requests) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.batch_update_companies({ parent: parent, requests: requests }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.batch_update_companies(::Google::Ads::AdManager::V1::BatchUpdateCompaniesRequest.new(parent: parent, requests: requests), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, batch_update_companies_client_stub.call_count + end + end + end + def test_configure credentials_token = :dummy_value diff --git a/google-ads-ad_manager-v1/test/google/ads/ad_manager/v1/creative_wrapper_service_rest_test.rb b/google-ads-ad_manager-v1/test/google/ads/ad_manager/v1/creative_wrapper_service_rest_test.rb new file mode 100644 index 000000000000..c2bb1d208a79 --- /dev/null +++ b/google-ads-ad_manager-v1/test/google/ads/ad_manager/v1/creative_wrapper_service_rest_test.rb @@ -0,0 +1,542 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" +require "gapic/rest" +require "google/ads/admanager/v1/creative_wrapper_service_pb" +require "google/ads/ad_manager/v1/creative_wrapper_service/rest" + + +class ::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_count, :requests + + def initialize response, &block + @response = response + @block = block + @call_count = 0 + @requests = [] + end + + def make_get_request uri:, params: {}, options: {}, method_name: nil + make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_delete_request uri:, params: {}, options: {}, method_name: nil + make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil + make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_put_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_http_request *args, **kwargs + @call_count += 1 + + @requests << @block&.call(*args, **kwargs) + + @response + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_get_creative_wrapper + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::CreativeWrapper.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_creative_wrapper_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::ServiceStub.stub :transcode_get_creative_wrapper_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_creative_wrapper_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_creative_wrapper({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_creative_wrapper name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_creative_wrapper ::Google::Ads::AdManager::V1::GetCreativeWrapperRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_creative_wrapper({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_creative_wrapper(::Google::Ads::AdManager::V1::GetCreativeWrapperRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_creative_wrapper_client_stub.call_count + end + end + end + + def test_list_creative_wrappers + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::ListCreativeWrappersResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + skip = 42 + + list_creative_wrappers_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::ServiceStub.stub :transcode_list_creative_wrappers_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_creative_wrappers_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_creative_wrappers({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_creative_wrappers parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_creative_wrappers ::Google::Ads::AdManager::V1::ListCreativeWrappersRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_creative_wrappers({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_creative_wrappers(::Google::Ads::AdManager::V1::ListCreativeWrappersRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_creative_wrappers_client_stub.call_count + end + end + end + + def test_create_creative_wrapper + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::CreativeWrapper.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + creative_wrapper = {} + + create_creative_wrapper_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::ServiceStub.stub :transcode_create_creative_wrapper_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_creative_wrapper_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_creative_wrapper({ parent: parent, creative_wrapper: creative_wrapper }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_creative_wrapper parent: parent, creative_wrapper: creative_wrapper do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_creative_wrapper ::Google::Ads::AdManager::V1::CreateCreativeWrapperRequest.new(parent: parent, creative_wrapper: creative_wrapper) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_creative_wrapper({ parent: parent, creative_wrapper: creative_wrapper }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_creative_wrapper(::Google::Ads::AdManager::V1::CreateCreativeWrapperRequest.new(parent: parent, creative_wrapper: creative_wrapper), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_creative_wrapper_client_stub.call_count + end + end + end + + def test_batch_create_creative_wrappers + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::BatchCreateCreativeWrappersResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + requests = [{}] + + batch_create_creative_wrappers_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::ServiceStub.stub :transcode_batch_create_creative_wrappers_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, batch_create_creative_wrappers_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.batch_create_creative_wrappers({ parent: parent, requests: requests }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.batch_create_creative_wrappers parent: parent, requests: requests do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.batch_create_creative_wrappers ::Google::Ads::AdManager::V1::BatchCreateCreativeWrappersRequest.new(parent: parent, requests: requests) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.batch_create_creative_wrappers({ parent: parent, requests: requests }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.batch_create_creative_wrappers(::Google::Ads::AdManager::V1::BatchCreateCreativeWrappersRequest.new(parent: parent, requests: requests), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, batch_create_creative_wrappers_client_stub.call_count + end + end + end + + def test_update_creative_wrapper + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::CreativeWrapper.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + creative_wrapper = {} + update_mask = {} + + update_creative_wrapper_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::ServiceStub.stub :transcode_update_creative_wrapper_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_creative_wrapper_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_creative_wrapper({ creative_wrapper: creative_wrapper, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_creative_wrapper creative_wrapper: creative_wrapper, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_creative_wrapper ::Google::Ads::AdManager::V1::UpdateCreativeWrapperRequest.new(creative_wrapper: creative_wrapper, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_creative_wrapper({ creative_wrapper: creative_wrapper, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_creative_wrapper(::Google::Ads::AdManager::V1::UpdateCreativeWrapperRequest.new(creative_wrapper: creative_wrapper, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_creative_wrapper_client_stub.call_count + end + end + end + + def test_batch_update_creative_wrappers + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::BatchUpdateCreativeWrappersResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + requests = [{}] + + batch_update_creative_wrappers_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::ServiceStub.stub :transcode_batch_update_creative_wrappers_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, batch_update_creative_wrappers_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.batch_update_creative_wrappers({ parent: parent, requests: requests }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.batch_update_creative_wrappers parent: parent, requests: requests do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.batch_update_creative_wrappers ::Google::Ads::AdManager::V1::BatchUpdateCreativeWrappersRequest.new(parent: parent, requests: requests) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.batch_update_creative_wrappers({ parent: parent, requests: requests }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.batch_update_creative_wrappers(::Google::Ads::AdManager::V1::BatchUpdateCreativeWrappersRequest.new(parent: parent, requests: requests), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, batch_update_creative_wrappers_client_stub.call_count + end + end + end + + def test_batch_activate_creative_wrappers + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::BatchActivateCreativeWrappersResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + names = ["hello world"] + + batch_activate_creative_wrappers_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::ServiceStub.stub :transcode_batch_activate_creative_wrappers_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, batch_activate_creative_wrappers_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.batch_activate_creative_wrappers({ parent: parent, names: names }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.batch_activate_creative_wrappers parent: parent, names: names do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.batch_activate_creative_wrappers ::Google::Ads::AdManager::V1::BatchActivateCreativeWrappersRequest.new(parent: parent, names: names) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.batch_activate_creative_wrappers({ parent: parent, names: names }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.batch_activate_creative_wrappers(::Google::Ads::AdManager::V1::BatchActivateCreativeWrappersRequest.new(parent: parent, names: names), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, batch_activate_creative_wrappers_client_stub.call_count + end + end + end + + def test_batch_deactivate_creative_wrappers + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::BatchDeactivateCreativeWrappersResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + names = ["hello world"] + + batch_deactivate_creative_wrappers_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::ServiceStub.stub :transcode_batch_deactivate_creative_wrappers_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, batch_deactivate_creative_wrappers_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.batch_deactivate_creative_wrappers({ parent: parent, names: names }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.batch_deactivate_creative_wrappers parent: parent, names: names do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.batch_deactivate_creative_wrappers ::Google::Ads::AdManager::V1::BatchDeactivateCreativeWrappersRequest.new(parent: parent, names: names) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.batch_deactivate_creative_wrappers({ parent: parent, names: names }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.batch_deactivate_creative_wrappers(::Google::Ads::AdManager::V1::BatchDeactivateCreativeWrappersRequest.new(parent: parent, names: names), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, batch_deactivate_creative_wrappers_client_stub.call_count + end + end + end + + def test_configure + credentials_token = :dummy_value + + client = block_config = config = nil + dummy_stub = ClientStub.new nil + Gapic::Rest::ClientStub.stub :new, dummy_stub do + client = ::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client.new do |config| + config.credentials = credentials_token + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client::Configuration, config + end +end diff --git a/google-ads-ad_manager-v1/test/google/ads/ad_manager/v1/dai_authentication_key_service_rest_test.rb b/google-ads-ad_manager-v1/test/google/ads/ad_manager/v1/dai_authentication_key_service_rest_test.rb new file mode 100644 index 000000000000..929b5d292e12 --- /dev/null +++ b/google-ads-ad_manager-v1/test/google/ads/ad_manager/v1/dai_authentication_key_service_rest_test.rb @@ -0,0 +1,542 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" +require "gapic/rest" +require "google/ads/admanager/v1/dai_authentication_key_service_pb" +require "google/ads/ad_manager/v1/dai_authentication_key_service/rest" + + +class ::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_count, :requests + + def initialize response, &block + @response = response + @block = block + @call_count = 0 + @requests = [] + end + + def make_get_request uri:, params: {}, options: {}, method_name: nil + make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_delete_request uri:, params: {}, options: {}, method_name: nil + make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil + make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_put_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_http_request *args, **kwargs + @call_count += 1 + + @requests << @block&.call(*args, **kwargs) + + @response + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_get_dai_authentication_key + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::DaiAuthenticationKey.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_dai_authentication_key_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::ServiceStub.stub :transcode_get_dai_authentication_key_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_dai_authentication_key_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_dai_authentication_key({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_dai_authentication_key name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_dai_authentication_key ::Google::Ads::AdManager::V1::GetDaiAuthenticationKeyRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_dai_authentication_key({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_dai_authentication_key(::Google::Ads::AdManager::V1::GetDaiAuthenticationKeyRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_dai_authentication_key_client_stub.call_count + end + end + end + + def test_list_dai_authentication_keys + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::ListDaiAuthenticationKeysResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + skip = 42 + + list_dai_authentication_keys_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::ServiceStub.stub :transcode_list_dai_authentication_keys_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_dai_authentication_keys_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_dai_authentication_keys({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_dai_authentication_keys parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_dai_authentication_keys ::Google::Ads::AdManager::V1::ListDaiAuthenticationKeysRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_dai_authentication_keys({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_dai_authentication_keys(::Google::Ads::AdManager::V1::ListDaiAuthenticationKeysRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_dai_authentication_keys_client_stub.call_count + end + end + end + + def test_create_dai_authentication_key + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::DaiAuthenticationKey.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + dai_authentication_key = {} + + create_dai_authentication_key_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::ServiceStub.stub :transcode_create_dai_authentication_key_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_dai_authentication_key_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_dai_authentication_key({ parent: parent, dai_authentication_key: dai_authentication_key }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_dai_authentication_key parent: parent, dai_authentication_key: dai_authentication_key do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_dai_authentication_key ::Google::Ads::AdManager::V1::CreateDaiAuthenticationKeyRequest.new(parent: parent, dai_authentication_key: dai_authentication_key) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_dai_authentication_key({ parent: parent, dai_authentication_key: dai_authentication_key }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_dai_authentication_key(::Google::Ads::AdManager::V1::CreateDaiAuthenticationKeyRequest.new(parent: parent, dai_authentication_key: dai_authentication_key), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_dai_authentication_key_client_stub.call_count + end + end + end + + def test_batch_create_dai_authentication_keys + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::BatchCreateDaiAuthenticationKeysResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + requests = [{}] + + batch_create_dai_authentication_keys_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::ServiceStub.stub :transcode_batch_create_dai_authentication_keys_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, batch_create_dai_authentication_keys_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.batch_create_dai_authentication_keys({ parent: parent, requests: requests }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.batch_create_dai_authentication_keys parent: parent, requests: requests do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.batch_create_dai_authentication_keys ::Google::Ads::AdManager::V1::BatchCreateDaiAuthenticationKeysRequest.new(parent: parent, requests: requests) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.batch_create_dai_authentication_keys({ parent: parent, requests: requests }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.batch_create_dai_authentication_keys(::Google::Ads::AdManager::V1::BatchCreateDaiAuthenticationKeysRequest.new(parent: parent, requests: requests), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, batch_create_dai_authentication_keys_client_stub.call_count + end + end + end + + def test_update_dai_authentication_key + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::DaiAuthenticationKey.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + dai_authentication_key = {} + update_mask = {} + + update_dai_authentication_key_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::ServiceStub.stub :transcode_update_dai_authentication_key_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_dai_authentication_key_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_dai_authentication_key({ dai_authentication_key: dai_authentication_key, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_dai_authentication_key dai_authentication_key: dai_authentication_key, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_dai_authentication_key ::Google::Ads::AdManager::V1::UpdateDaiAuthenticationKeyRequest.new(dai_authentication_key: dai_authentication_key, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_dai_authentication_key({ dai_authentication_key: dai_authentication_key, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_dai_authentication_key(::Google::Ads::AdManager::V1::UpdateDaiAuthenticationKeyRequest.new(dai_authentication_key: dai_authentication_key, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_dai_authentication_key_client_stub.call_count + end + end + end + + def test_batch_update_dai_authentication_keys + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::BatchUpdateDaiAuthenticationKeysResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + requests = [{}] + + batch_update_dai_authentication_keys_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::ServiceStub.stub :transcode_batch_update_dai_authentication_keys_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, batch_update_dai_authentication_keys_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.batch_update_dai_authentication_keys({ parent: parent, requests: requests }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.batch_update_dai_authentication_keys parent: parent, requests: requests do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.batch_update_dai_authentication_keys ::Google::Ads::AdManager::V1::BatchUpdateDaiAuthenticationKeysRequest.new(parent: parent, requests: requests) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.batch_update_dai_authentication_keys({ parent: parent, requests: requests }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.batch_update_dai_authentication_keys(::Google::Ads::AdManager::V1::BatchUpdateDaiAuthenticationKeysRequest.new(parent: parent, requests: requests), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, batch_update_dai_authentication_keys_client_stub.call_count + end + end + end + + def test_batch_activate_dai_authentication_keys + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::BatchActivateDaiAuthenticationKeysResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + names = ["hello world"] + + batch_activate_dai_authentication_keys_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::ServiceStub.stub :transcode_batch_activate_dai_authentication_keys_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, batch_activate_dai_authentication_keys_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.batch_activate_dai_authentication_keys({ parent: parent, names: names }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.batch_activate_dai_authentication_keys parent: parent, names: names do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.batch_activate_dai_authentication_keys ::Google::Ads::AdManager::V1::BatchActivateDaiAuthenticationKeysRequest.new(parent: parent, names: names) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.batch_activate_dai_authentication_keys({ parent: parent, names: names }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.batch_activate_dai_authentication_keys(::Google::Ads::AdManager::V1::BatchActivateDaiAuthenticationKeysRequest.new(parent: parent, names: names), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, batch_activate_dai_authentication_keys_client_stub.call_count + end + end + end + + def test_batch_deactivate_dai_authentication_keys + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::BatchDeactivateDaiAuthenticationKeysResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + names = ["hello world"] + + batch_deactivate_dai_authentication_keys_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::ServiceStub.stub :transcode_batch_deactivate_dai_authentication_keys_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, batch_deactivate_dai_authentication_keys_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.batch_deactivate_dai_authentication_keys({ parent: parent, names: names }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.batch_deactivate_dai_authentication_keys parent: parent, names: names do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.batch_deactivate_dai_authentication_keys ::Google::Ads::AdManager::V1::BatchDeactivateDaiAuthenticationKeysRequest.new(parent: parent, names: names) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.batch_deactivate_dai_authentication_keys({ parent: parent, names: names }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.batch_deactivate_dai_authentication_keys(::Google::Ads::AdManager::V1::BatchDeactivateDaiAuthenticationKeysRequest.new(parent: parent, names: names), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, batch_deactivate_dai_authentication_keys_client_stub.call_count + end + end + end + + def test_configure + credentials_token = :dummy_value + + client = block_config = config = nil + dummy_stub = ClientStub.new nil + Gapic::Rest::ClientStub.stub :new, dummy_stub do + client = ::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client.new do |config| + config.credentials = credentials_token + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client::Configuration, config + end +end diff --git a/google-ads-ad_manager-v1/test/google/ads/ad_manager/v1/dai_encoding_profile_service_rest_test.rb b/google-ads-ad_manager-v1/test/google/ads/ad_manager/v1/dai_encoding_profile_service_rest_test.rb new file mode 100644 index 000000000000..ff7f363c2a91 --- /dev/null +++ b/google-ads-ad_manager-v1/test/google/ads/ad_manager/v1/dai_encoding_profile_service_rest_test.rb @@ -0,0 +1,542 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" +require "gapic/rest" +require "google/ads/admanager/v1/dai_encoding_profile_service_pb" +require "google/ads/ad_manager/v1/dai_encoding_profile_service/rest" + + +class ::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_count, :requests + + def initialize response, &block + @response = response + @block = block + @call_count = 0 + @requests = [] + end + + def make_get_request uri:, params: {}, options: {}, method_name: nil + make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_delete_request uri:, params: {}, options: {}, method_name: nil + make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil + make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_put_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_http_request *args, **kwargs + @call_count += 1 + + @requests << @block&.call(*args, **kwargs) + + @response + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_get_dai_encoding_profile + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::DaiEncodingProfile.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_dai_encoding_profile_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::ServiceStub.stub :transcode_get_dai_encoding_profile_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_dai_encoding_profile_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_dai_encoding_profile({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_dai_encoding_profile name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_dai_encoding_profile ::Google::Ads::AdManager::V1::GetDaiEncodingProfileRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_dai_encoding_profile({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_dai_encoding_profile(::Google::Ads::AdManager::V1::GetDaiEncodingProfileRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_dai_encoding_profile_client_stub.call_count + end + end + end + + def test_list_dai_encoding_profiles + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::ListDaiEncodingProfilesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + skip = 42 + + list_dai_encoding_profiles_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::ServiceStub.stub :transcode_list_dai_encoding_profiles_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_dai_encoding_profiles_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_dai_encoding_profiles({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_dai_encoding_profiles parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_dai_encoding_profiles ::Google::Ads::AdManager::V1::ListDaiEncodingProfilesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_dai_encoding_profiles({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_dai_encoding_profiles(::Google::Ads::AdManager::V1::ListDaiEncodingProfilesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_dai_encoding_profiles_client_stub.call_count + end + end + end + + def test_create_dai_encoding_profile + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::DaiEncodingProfile.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + dai_encoding_profile = {} + + create_dai_encoding_profile_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::ServiceStub.stub :transcode_create_dai_encoding_profile_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_dai_encoding_profile_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_dai_encoding_profile({ parent: parent, dai_encoding_profile: dai_encoding_profile }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_dai_encoding_profile parent: parent, dai_encoding_profile: dai_encoding_profile do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_dai_encoding_profile ::Google::Ads::AdManager::V1::CreateDaiEncodingProfileRequest.new(parent: parent, dai_encoding_profile: dai_encoding_profile) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_dai_encoding_profile({ parent: parent, dai_encoding_profile: dai_encoding_profile }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_dai_encoding_profile(::Google::Ads::AdManager::V1::CreateDaiEncodingProfileRequest.new(parent: parent, dai_encoding_profile: dai_encoding_profile), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_dai_encoding_profile_client_stub.call_count + end + end + end + + def test_batch_create_dai_encoding_profiles + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::BatchCreateDaiEncodingProfilesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + requests = [{}] + + batch_create_dai_encoding_profiles_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::ServiceStub.stub :transcode_batch_create_dai_encoding_profiles_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, batch_create_dai_encoding_profiles_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.batch_create_dai_encoding_profiles({ parent: parent, requests: requests }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.batch_create_dai_encoding_profiles parent: parent, requests: requests do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.batch_create_dai_encoding_profiles ::Google::Ads::AdManager::V1::BatchCreateDaiEncodingProfilesRequest.new(parent: parent, requests: requests) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.batch_create_dai_encoding_profiles({ parent: parent, requests: requests }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.batch_create_dai_encoding_profiles(::Google::Ads::AdManager::V1::BatchCreateDaiEncodingProfilesRequest.new(parent: parent, requests: requests), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, batch_create_dai_encoding_profiles_client_stub.call_count + end + end + end + + def test_update_dai_encoding_profile + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::DaiEncodingProfile.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + dai_encoding_profile = {} + update_mask = {} + + update_dai_encoding_profile_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::ServiceStub.stub :transcode_update_dai_encoding_profile_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_dai_encoding_profile_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_dai_encoding_profile({ dai_encoding_profile: dai_encoding_profile, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_dai_encoding_profile dai_encoding_profile: dai_encoding_profile, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_dai_encoding_profile ::Google::Ads::AdManager::V1::UpdateDaiEncodingProfileRequest.new(dai_encoding_profile: dai_encoding_profile, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_dai_encoding_profile({ dai_encoding_profile: dai_encoding_profile, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_dai_encoding_profile(::Google::Ads::AdManager::V1::UpdateDaiEncodingProfileRequest.new(dai_encoding_profile: dai_encoding_profile, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_dai_encoding_profile_client_stub.call_count + end + end + end + + def test_batch_update_dai_encoding_profiles + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::BatchUpdateDaiEncodingProfilesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + requests = [{}] + + batch_update_dai_encoding_profiles_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::ServiceStub.stub :transcode_batch_update_dai_encoding_profiles_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, batch_update_dai_encoding_profiles_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.batch_update_dai_encoding_profiles({ parent: parent, requests: requests }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.batch_update_dai_encoding_profiles parent: parent, requests: requests do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.batch_update_dai_encoding_profiles ::Google::Ads::AdManager::V1::BatchUpdateDaiEncodingProfilesRequest.new(parent: parent, requests: requests) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.batch_update_dai_encoding_profiles({ parent: parent, requests: requests }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.batch_update_dai_encoding_profiles(::Google::Ads::AdManager::V1::BatchUpdateDaiEncodingProfilesRequest.new(parent: parent, requests: requests), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, batch_update_dai_encoding_profiles_client_stub.call_count + end + end + end + + def test_batch_activate_dai_encoding_profiles + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::BatchActivateDaiEncodingProfilesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + requests = [{}] + + batch_activate_dai_encoding_profiles_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::ServiceStub.stub :transcode_batch_activate_dai_encoding_profiles_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, batch_activate_dai_encoding_profiles_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.batch_activate_dai_encoding_profiles({ parent: parent, requests: requests }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.batch_activate_dai_encoding_profiles parent: parent, requests: requests do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.batch_activate_dai_encoding_profiles ::Google::Ads::AdManager::V1::BatchActivateDaiEncodingProfilesRequest.new(parent: parent, requests: requests) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.batch_activate_dai_encoding_profiles({ parent: parent, requests: requests }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.batch_activate_dai_encoding_profiles(::Google::Ads::AdManager::V1::BatchActivateDaiEncodingProfilesRequest.new(parent: parent, requests: requests), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, batch_activate_dai_encoding_profiles_client_stub.call_count + end + end + end + + def test_batch_archive_dai_encoding_profiles + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::BatchArchiveDaiEncodingProfilesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + requests = [{}] + + batch_archive_dai_encoding_profiles_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::ServiceStub.stub :transcode_batch_archive_dai_encoding_profiles_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, batch_archive_dai_encoding_profiles_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.batch_archive_dai_encoding_profiles({ parent: parent, requests: requests }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.batch_archive_dai_encoding_profiles parent: parent, requests: requests do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.batch_archive_dai_encoding_profiles ::Google::Ads::AdManager::V1::BatchArchiveDaiEncodingProfilesRequest.new(parent: parent, requests: requests) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.batch_archive_dai_encoding_profiles({ parent: parent, requests: requests }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.batch_archive_dai_encoding_profiles(::Google::Ads::AdManager::V1::BatchArchiveDaiEncodingProfilesRequest.new(parent: parent, requests: requests), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, batch_archive_dai_encoding_profiles_client_stub.call_count + end + end + end + + def test_configure + credentials_token = :dummy_value + + client = block_config = config = nil + dummy_stub = ClientStub.new nil + Gapic::Rest::ClientStub.stub :new, dummy_stub do + client = ::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client.new do |config| + config.credentials = credentials_token + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client::Configuration, config + end +end diff --git a/google-ads-ad_manager-v1/test/google/ads/ad_manager/v1/partner_service_rest_test.rb b/google-ads-ad_manager-v1/test/google/ads/ad_manager/v1/partner_service_rest_test.rb new file mode 100644 index 000000000000..3c9db95c1de7 --- /dev/null +++ b/google-ads-ad_manager-v1/test/google/ads/ad_manager/v1/partner_service_rest_test.rb @@ -0,0 +1,322 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" +require "gapic/rest" +require "google/ads/admanager/v1/partner_service_pb" +require "google/ads/ad_manager/v1/partner_service/rest" + + +class ::Google::Ads::AdManager::V1::PartnerService::Rest::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_count, :requests + + def initialize response, &block + @response = response + @block = block + @call_count = 0 + @requests = [] + end + + def make_get_request uri:, params: {}, options: {}, method_name: nil + make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_delete_request uri:, params: {}, options: {}, method_name: nil + make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil + make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_put_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_http_request *args, **kwargs + @call_count += 1 + + @requests << @block&.call(*args, **kwargs) + + @response + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_get_partner + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::Partner.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_partner_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::PartnerService::Rest::ServiceStub.stub :transcode_get_partner_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_partner_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::PartnerService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_partner({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_partner name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_partner ::Google::Ads::AdManager::V1::GetPartnerRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_partner({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_partner(::Google::Ads::AdManager::V1::GetPartnerRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_partner_client_stub.call_count + end + end + end + + def test_list_partners + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::ListPartnersResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + skip = 42 + + list_partners_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::PartnerService::Rest::ServiceStub.stub :transcode_list_partners_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_partners_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::PartnerService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_partners({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_partners parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_partners ::Google::Ads::AdManager::V1::ListPartnersRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_partners({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_partners(::Google::Ads::AdManager::V1::ListPartnersRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_partners_client_stub.call_count + end + end + end + + def test_update_partner + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::Partner.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + partner = {} + update_mask = {} + + update_partner_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::PartnerService::Rest::ServiceStub.stub :transcode_update_partner_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_partner_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::PartnerService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_partner({ partner: partner, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_partner partner: partner, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_partner ::Google::Ads::AdManager::V1::UpdatePartnerRequest.new(partner: partner, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_partner({ partner: partner, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_partner(::Google::Ads::AdManager::V1::UpdatePartnerRequest.new(partner: partner, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_partner_client_stub.call_count + end + end + end + + def test_batch_update_partners + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::BatchUpdatePartnersResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + requests = [{}] + + batch_update_partners_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::PartnerService::Rest::ServiceStub.stub :transcode_batch_update_partners_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, batch_update_partners_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::PartnerService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.batch_update_partners({ parent: parent, requests: requests }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.batch_update_partners parent: parent, requests: requests do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.batch_update_partners ::Google::Ads::AdManager::V1::BatchUpdatePartnersRequest.new(parent: parent, requests: requests) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.batch_update_partners({ parent: parent, requests: requests }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.batch_update_partners(::Google::Ads::AdManager::V1::BatchUpdatePartnersRequest.new(parent: parent, requests: requests), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, batch_update_partners_client_stub.call_count + end + end + end + + def test_configure + credentials_token = :dummy_value + + client = block_config = config = nil + dummy_stub = ClientStub.new nil + Gapic::Rest::ClientStub.stub :new, dummy_stub do + client = ::Google::Ads::AdManager::V1::PartnerService::Rest::Client.new do |config| + config.credentials = credentials_token + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Ads::AdManager::V1::PartnerService::Rest::Client::Configuration, config + end +end diff --git a/google-ads-ad_manager-v1/test/google/ads/ad_manager/v1/viewability_provider_service_rest_test.rb b/google-ads-ad_manager-v1/test/google/ads/ad_manager/v1/viewability_provider_service_rest_test.rb new file mode 100644 index 000000000000..57485a33ff13 --- /dev/null +++ b/google-ads-ad_manager-v1/test/google/ads/ad_manager/v1/viewability_provider_service_rest_test.rb @@ -0,0 +1,432 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" +require "gapic/rest" +require "google/ads/admanager/v1/viewability_provider_service_pb" +require "google/ads/ad_manager/v1/viewability_provider_service/rest" + + +class ::Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_count, :requests + + def initialize response, &block + @response = response + @block = block + @call_count = 0 + @requests = [] + end + + def make_get_request uri:, params: {}, options: {}, method_name: nil + make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_delete_request uri:, params: {}, options: {}, method_name: nil + make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil + make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_put_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_http_request *args, **kwargs + @call_count += 1 + + @requests << @block&.call(*args, **kwargs) + + @response + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_get_viewability_provider + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::ViewabilityProvider.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_viewability_provider_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::ServiceStub.stub :transcode_get_viewability_provider_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_viewability_provider_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_viewability_provider({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_viewability_provider name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_viewability_provider ::Google::Ads::AdManager::V1::GetViewabilityProviderRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_viewability_provider({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_viewability_provider(::Google::Ads::AdManager::V1::GetViewabilityProviderRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_viewability_provider_client_stub.call_count + end + end + end + + def test_list_viewability_providers + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::ListViewabilityProvidersResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + skip = 42 + + list_viewability_providers_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::ServiceStub.stub :transcode_list_viewability_providers_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_viewability_providers_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_viewability_providers({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_viewability_providers parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_viewability_providers ::Google::Ads::AdManager::V1::ListViewabilityProvidersRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_viewability_providers({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_viewability_providers(::Google::Ads::AdManager::V1::ListViewabilityProvidersRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, skip: skip), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_viewability_providers_client_stub.call_count + end + end + end + + def test_create_viewability_provider + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::ViewabilityProvider.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + viewability_provider = {} + + create_viewability_provider_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::ServiceStub.stub :transcode_create_viewability_provider_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_viewability_provider_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_viewability_provider({ parent: parent, viewability_provider: viewability_provider }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_viewability_provider parent: parent, viewability_provider: viewability_provider do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_viewability_provider ::Google::Ads::AdManager::V1::CreateViewabilityProviderRequest.new(parent: parent, viewability_provider: viewability_provider) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_viewability_provider({ parent: parent, viewability_provider: viewability_provider }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_viewability_provider(::Google::Ads::AdManager::V1::CreateViewabilityProviderRequest.new(parent: parent, viewability_provider: viewability_provider), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_viewability_provider_client_stub.call_count + end + end + end + + def test_batch_create_viewability_providers + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::BatchCreateViewabilityProvidersResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + requests = [{}] + + batch_create_viewability_providers_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::ServiceStub.stub :transcode_batch_create_viewability_providers_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, batch_create_viewability_providers_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.batch_create_viewability_providers({ parent: parent, requests: requests }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.batch_create_viewability_providers parent: parent, requests: requests do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.batch_create_viewability_providers ::Google::Ads::AdManager::V1::BatchCreateViewabilityProvidersRequest.new(parent: parent, requests: requests) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.batch_create_viewability_providers({ parent: parent, requests: requests }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.batch_create_viewability_providers(::Google::Ads::AdManager::V1::BatchCreateViewabilityProvidersRequest.new(parent: parent, requests: requests), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, batch_create_viewability_providers_client_stub.call_count + end + end + end + + def test_update_viewability_provider + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::ViewabilityProvider.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + viewability_provider = {} + update_mask = {} + + update_viewability_provider_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::ServiceStub.stub :transcode_update_viewability_provider_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_viewability_provider_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_viewability_provider({ viewability_provider: viewability_provider, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_viewability_provider viewability_provider: viewability_provider, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_viewability_provider ::Google::Ads::AdManager::V1::UpdateViewabilityProviderRequest.new(viewability_provider: viewability_provider, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_viewability_provider({ viewability_provider: viewability_provider, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_viewability_provider(::Google::Ads::AdManager::V1::UpdateViewabilityProviderRequest.new(viewability_provider: viewability_provider, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_viewability_provider_client_stub.call_count + end + end + end + + def test_batch_update_viewability_providers + # Create test objects. + client_result = ::Google::Ads::AdManager::V1::BatchUpdateViewabilityProvidersResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + requests = [{}] + + batch_update_viewability_providers_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::ServiceStub.stub :transcode_batch_update_viewability_providers_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, batch_update_viewability_providers_client_stub do + # Create client + c = ::Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.batch_update_viewability_providers({ parent: parent, requests: requests }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.batch_update_viewability_providers parent: parent, requests: requests do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.batch_update_viewability_providers ::Google::Ads::AdManager::V1::BatchUpdateViewabilityProvidersRequest.new(parent: parent, requests: requests) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.batch_update_viewability_providers({ parent: parent, requests: requests }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.batch_update_viewability_providers(::Google::Ads::AdManager::V1::BatchUpdateViewabilityProvidersRequest.new(parent: parent, requests: requests), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, batch_update_viewability_providers_client_stub.call_count + end + end + end + + def test_configure + credentials_token = :dummy_value + + client = block_config = config = nil + dummy_stub = ClientStub.new nil + Gapic::Rest::ClientStub.stub :new, dummy_stub do + client = ::Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client.new do |config| + config.credentials = credentials_token + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client::Configuration, config + end +end diff --git a/google-ads-ad_manager/lib/google/ads/ad_manager.rb b/google-ads-ad_manager/lib/google/ads/ad_manager.rb index 4e8d9515d8e0..205603eda4df 100644 --- a/google-ads-ad_manager/lib/google/ads/ad_manager.rb +++ b/google-ads-ad_manager/lib/google/ads/ad_manager.rb @@ -720,6 +720,70 @@ def self.cdn_config_service_available? version: :v1 false end + ## + # Create a new client object for ChildPublisherService. + # + # By default, this returns an instance of + # [Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/ChildPublisherService/Rest/Client) + # for a REST client for version V1 of the API. + # However, you can specify a different API version by passing it in the + # `version` parameter. If the ChildPublisherService service is + # supported by that API version, and the corresponding gem is available, the + # appropriate versioned client will be returned. + # + # Raises an exception if the currently installed versioned client gem for the + # given API version does not support the ChildPublisherService service. + # You can determine whether the method will succeed by calling + # {Google::Ads::AdManager.child_publisher_service_available?}. + # + # ## About ChildPublisherService + # + # Provides methods for handling + # ChildPublisher objects. + # + # @param version [::String, ::Symbol] The API version to connect to. Optional. + # Defaults to `:v1`. + # @return [::Object] A client object for the specified version. + # + def self.child_publisher_service version: :v1, &block + require "google/ads/ad_manager/#{version.to_s.downcase}" + + package_name = Google::Ads::AdManager + .constants + .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } + .first + service_module = Google::Ads::AdManager.const_get(package_name).const_get(:ChildPublisherService) + service_module.const_get(:Rest).const_get(:Client).new(&block) + end + + ## + # Determines whether the ChildPublisherService service is supported by the current client. + # If true, you can retrieve a client object by calling {Google::Ads::AdManager.child_publisher_service}. + # If false, that method will raise an exception. This could happen if the given + # API version does not exist or does not support the ChildPublisherService service, + # or if the versioned client gem needs an update to support the ChildPublisherService service. + # + # @param version [::String, ::Symbol] The API version to connect to. Optional. + # Defaults to `:v1`. + # @return [boolean] Whether the service is available. + # + def self.child_publisher_service_available? version: :v1 + require "google/ads/ad_manager/#{version.to_s.downcase}" + package_name = Google::Ads::AdManager + .constants + .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } + .first + return false unless package_name + service_module = Google::Ads::AdManager.const_get package_name + return false unless service_module.const_defined? :ChildPublisherService + service_module = service_module.const_get :ChildPublisherService + return false unless service_module.const_defined? :Rest + service_module = service_module.const_get :Rest + service_module.const_defined? :Client + rescue ::LoadError + false + end + ## # Create a new client object for CmsMetadataKeyService. # @@ -864,7 +928,8 @@ def self.cms_metadata_value_service_available? version: :v1 # # ## About CompanyService # - # Provides methods for handling `Company` objects. + # Provides methods for handling Company + # objects. # # @param version [::String, ::Symbol] The API version to connect to. Optional. # Defaults to `:v1`. @@ -1287,6 +1352,69 @@ def self.creative_template_service_available? version: :v1 false end + ## + # Create a new client object for CreativeWrapperService. + # + # By default, this returns an instance of + # [Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/CreativeWrapperService/Rest/Client) + # for a REST client for version V1 of the API. + # However, you can specify a different API version by passing it in the + # `version` parameter. If the CreativeWrapperService service is + # supported by that API version, and the corresponding gem is available, the + # appropriate versioned client will be returned. + # + # Raises an exception if the currently installed versioned client gem for the + # given API version does not support the CreativeWrapperService service. + # You can determine whether the method will succeed by calling + # {Google::Ads::AdManager.creative_wrapper_service_available?}. + # + # ## About CreativeWrapperService + # + # Provides methods for handling `CreativeWrapper` objects. + # + # @param version [::String, ::Symbol] The API version to connect to. Optional. + # Defaults to `:v1`. + # @return [::Object] A client object for the specified version. + # + def self.creative_wrapper_service version: :v1, &block + require "google/ads/ad_manager/#{version.to_s.downcase}" + + package_name = Google::Ads::AdManager + .constants + .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } + .first + service_module = Google::Ads::AdManager.const_get(package_name).const_get(:CreativeWrapperService) + service_module.const_get(:Rest).const_get(:Client).new(&block) + end + + ## + # Determines whether the CreativeWrapperService service is supported by the current client. + # If true, you can retrieve a client object by calling {Google::Ads::AdManager.creative_wrapper_service}. + # If false, that method will raise an exception. This could happen if the given + # API version does not exist or does not support the CreativeWrapperService service, + # or if the versioned client gem needs an update to support the CreativeWrapperService service. + # + # @param version [::String, ::Symbol] The API version to connect to. Optional. + # Defaults to `:v1`. + # @return [boolean] Whether the service is available. + # + def self.creative_wrapper_service_available? version: :v1 + require "google/ads/ad_manager/#{version.to_s.downcase}" + package_name = Google::Ads::AdManager + .constants + .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } + .first + return false unless package_name + service_module = Google::Ads::AdManager.const_get package_name + return false unless service_module.const_defined? :CreativeWrapperService + service_module = service_module.const_get :CreativeWrapperService + return false unless service_module.const_defined? :Rest + service_module = service_module.const_get :Rest + service_module.const_defined? :Client + rescue ::LoadError + false + end + ## # Create a new client object for CustomFieldService. # @@ -1476,6 +1604,132 @@ def self.custom_targeting_value_service_available? version: :v1 false end + ## + # Create a new client object for DaiAuthenticationKeyService. + # + # By default, this returns an instance of + # [Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/DaiAuthenticationKeyService/Rest/Client) + # for a REST client for version V1 of the API. + # However, you can specify a different API version by passing it in the + # `version` parameter. If the DaiAuthenticationKeyService service is + # supported by that API version, and the corresponding gem is available, the + # appropriate versioned client will be returned. + # + # Raises an exception if the currently installed versioned client gem for the + # given API version does not support the DaiAuthenticationKeyService service. + # You can determine whether the method will succeed by calling + # {Google::Ads::AdManager.dai_authentication_key_service_available?}. + # + # ## About DaiAuthenticationKeyService + # + # Provides methods for handling `DaiAuthenticationKey` objects. + # + # @param version [::String, ::Symbol] The API version to connect to. Optional. + # Defaults to `:v1`. + # @return [::Object] A client object for the specified version. + # + def self.dai_authentication_key_service version: :v1, &block + require "google/ads/ad_manager/#{version.to_s.downcase}" + + package_name = Google::Ads::AdManager + .constants + .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } + .first + service_module = Google::Ads::AdManager.const_get(package_name).const_get(:DaiAuthenticationKeyService) + service_module.const_get(:Rest).const_get(:Client).new(&block) + end + + ## + # Determines whether the DaiAuthenticationKeyService service is supported by the current client. + # If true, you can retrieve a client object by calling {Google::Ads::AdManager.dai_authentication_key_service}. + # If false, that method will raise an exception. This could happen if the given + # API version does not exist or does not support the DaiAuthenticationKeyService service, + # or if the versioned client gem needs an update to support the DaiAuthenticationKeyService service. + # + # @param version [::String, ::Symbol] The API version to connect to. Optional. + # Defaults to `:v1`. + # @return [boolean] Whether the service is available. + # + def self.dai_authentication_key_service_available? version: :v1 + require "google/ads/ad_manager/#{version.to_s.downcase}" + package_name = Google::Ads::AdManager + .constants + .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } + .first + return false unless package_name + service_module = Google::Ads::AdManager.const_get package_name + return false unless service_module.const_defined? :DaiAuthenticationKeyService + service_module = service_module.const_get :DaiAuthenticationKeyService + return false unless service_module.const_defined? :Rest + service_module = service_module.const_get :Rest + service_module.const_defined? :Client + rescue ::LoadError + false + end + + ## + # Create a new client object for DaiEncodingProfileService. + # + # By default, this returns an instance of + # [Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/DaiEncodingProfileService/Rest/Client) + # for a REST client for version V1 of the API. + # However, you can specify a different API version by passing it in the + # `version` parameter. If the DaiEncodingProfileService service is + # supported by that API version, and the corresponding gem is available, the + # appropriate versioned client will be returned. + # + # Raises an exception if the currently installed versioned client gem for the + # given API version does not support the DaiEncodingProfileService service. + # You can determine whether the method will succeed by calling + # {Google::Ads::AdManager.dai_encoding_profile_service_available?}. + # + # ## About DaiEncodingProfileService + # + # Provides methods for handling `DaiEncodingProfile` objects. + # + # @param version [::String, ::Symbol] The API version to connect to. Optional. + # Defaults to `:v1`. + # @return [::Object] A client object for the specified version. + # + def self.dai_encoding_profile_service version: :v1, &block + require "google/ads/ad_manager/#{version.to_s.downcase}" + + package_name = Google::Ads::AdManager + .constants + .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } + .first + service_module = Google::Ads::AdManager.const_get(package_name).const_get(:DaiEncodingProfileService) + service_module.const_get(:Rest).const_get(:Client).new(&block) + end + + ## + # Determines whether the DaiEncodingProfileService service is supported by the current client. + # If true, you can retrieve a client object by calling {Google::Ads::AdManager.dai_encoding_profile_service}. + # If false, that method will raise an exception. This could happen if the given + # API version does not exist or does not support the DaiEncodingProfileService service, + # or if the versioned client gem needs an update to support the DaiEncodingProfileService service. + # + # @param version [::String, ::Symbol] The API version to connect to. Optional. + # Defaults to `:v1`. + # @return [boolean] Whether the service is available. + # + def self.dai_encoding_profile_service_available? version: :v1 + require "google/ads/ad_manager/#{version.to_s.downcase}" + package_name = Google::Ads::AdManager + .constants + .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } + .first + return false unless package_name + service_module = Google::Ads::AdManager.const_get package_name + return false unless service_module.const_defined? :DaiEncodingProfileService + service_module = service_module.const_get :DaiEncodingProfileService + return false unless service_module.const_defined? :Rest + service_module = service_module.const_get :Rest + service_module.const_defined? :Client + rescue ::LoadError + false + end + ## # Create a new client object for DeviceCapabilityService. # @@ -2547,6 +2801,70 @@ def self.order_service_available? version: :v1 false end + ## + # Create a new client object for PartnerService. + # + # By default, this returns an instance of + # [Google::Ads::AdManager::V1::PartnerService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/PartnerService/Rest/Client) + # for a REST client for version V1 of the API. + # However, you can specify a different API version by passing it in the + # `version` parameter. If the PartnerService service is + # supported by that API version, and the corresponding gem is available, the + # appropriate versioned client will be returned. + # + # Raises an exception if the currently installed versioned client gem for the + # given API version does not support the PartnerService service. + # You can determine whether the method will succeed by calling + # {Google::Ads::AdManager.partner_service_available?}. + # + # ## About PartnerService + # + # Provides methods for handling Partner + # objects. + # + # @param version [::String, ::Symbol] The API version to connect to. Optional. + # Defaults to `:v1`. + # @return [::Object] A client object for the specified version. + # + def self.partner_service version: :v1, &block + require "google/ads/ad_manager/#{version.to_s.downcase}" + + package_name = Google::Ads::AdManager + .constants + .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } + .first + service_module = Google::Ads::AdManager.const_get(package_name).const_get(:PartnerService) + service_module.const_get(:Rest).const_get(:Client).new(&block) + end + + ## + # Determines whether the PartnerService service is supported by the current client. + # If true, you can retrieve a client object by calling {Google::Ads::AdManager.partner_service}. + # If false, that method will raise an exception. This could happen if the given + # API version does not exist or does not support the PartnerService service, + # or if the versioned client gem needs an update to support the PartnerService service. + # + # @param version [::String, ::Symbol] The API version to connect to. Optional. + # Defaults to `:v1`. + # @return [boolean] Whether the service is available. + # + def self.partner_service_available? version: :v1 + require "google/ads/ad_manager/#{version.to_s.downcase}" + package_name = Google::Ads::AdManager + .constants + .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } + .first + return false unless package_name + service_module = Google::Ads::AdManager.const_get package_name + return false unless service_module.const_defined? :PartnerService + service_module = service_module.const_get :PartnerService + return false unless service_module.const_defined? :Rest + service_module = service_module.const_get :Rest + service_module.const_defined? :Client + rescue ::LoadError + false + end + ## # Create a new client object for PlacementService. # @@ -3492,6 +3810,70 @@ def self.user_service_available? version: :v1 rescue ::LoadError false end + + ## + # Create a new client object for ViewabilityProviderService. + # + # By default, this returns an instance of + # [Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/ViewabilityProviderService/Rest/Client) + # for a REST client for version V1 of the API. + # However, you can specify a different API version by passing it in the + # `version` parameter. If the ViewabilityProviderService service is + # supported by that API version, and the corresponding gem is available, the + # appropriate versioned client will be returned. + # + # Raises an exception if the currently installed versioned client gem for the + # given API version does not support the ViewabilityProviderService service. + # You can determine whether the method will succeed by calling + # {Google::Ads::AdManager.viewability_provider_service_available?}. + # + # ## About ViewabilityProviderService + # + # Provides methods for handling + # ViewabilityProvider objects. + # + # @param version [::String, ::Symbol] The API version to connect to. Optional. + # Defaults to `:v1`. + # @return [::Object] A client object for the specified version. + # + def self.viewability_provider_service version: :v1, &block + require "google/ads/ad_manager/#{version.to_s.downcase}" + + package_name = Google::Ads::AdManager + .constants + .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } + .first + service_module = Google::Ads::AdManager.const_get(package_name).const_get(:ViewabilityProviderService) + service_module.const_get(:Rest).const_get(:Client).new(&block) + end + + ## + # Determines whether the ViewabilityProviderService service is supported by the current client. + # If true, you can retrieve a client object by calling {Google::Ads::AdManager.viewability_provider_service}. + # If false, that method will raise an exception. This could happen if the given + # API version does not exist or does not support the ViewabilityProviderService service, + # or if the versioned client gem needs an update to support the ViewabilityProviderService service. + # + # @param version [::String, ::Symbol] The API version to connect to. Optional. + # Defaults to `:v1`. + # @return [boolean] Whether the service is available. + # + def self.viewability_provider_service_available? version: :v1 + require "google/ads/ad_manager/#{version.to_s.downcase}" + package_name = Google::Ads::AdManager + .constants + .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } + .first + return false unless package_name + service_module = Google::Ads::AdManager.const_get package_name + return false unless service_module.const_defined? :ViewabilityProviderService + service_module = service_module.const_get :ViewabilityProviderService + return false unless service_module.const_defined? :Rest + service_module = service_module.const_get :Rest + service_module.const_defined? :Client + rescue ::LoadError + false + end end end end diff --git a/google-ads-ad_manager/test/google/ads/ad_manager/client_test.rb b/google-ads-ad_manager/test/google/ads/ad_manager/client_test.rb index 10167dc4847e..d902e50b8841 100644 --- a/google-ads-ad_manager/test/google/ads/ad_manager/client_test.rb +++ b/google-ads-ad_manager/test/google/ads/ad_manager/client_test.rb @@ -150,6 +150,16 @@ def test_cdn_config_service_rest end end + def test_child_publisher_service_rest + skip unless Google::Ads::AdManager.child_publisher_service_available? + Gapic::Rest::ClientStub.stub :new, DummyStub.new do + client = Google::Ads::AdManager.child_publisher_service do |config| + config.credentials = :dummy_credentials + end + assert_kind_of Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client, client + end + end + def test_cms_metadata_key_service_rest skip unless Google::Ads::AdManager.cms_metadata_key_service_available? Gapic::Rest::ClientStub.stub :new, DummyStub.new do @@ -240,6 +250,16 @@ def test_creative_template_service_rest end end + def test_creative_wrapper_service_rest + skip unless Google::Ads::AdManager.creative_wrapper_service_available? + Gapic::Rest::ClientStub.stub :new, DummyStub.new do + client = Google::Ads::AdManager.creative_wrapper_service do |config| + config.credentials = :dummy_credentials + end + assert_kind_of Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client, client + end + end + def test_custom_field_service_rest skip unless Google::Ads::AdManager.custom_field_service_available? Gapic::Rest::ClientStub.stub :new, DummyStub.new do @@ -270,6 +290,26 @@ def test_custom_targeting_value_service_rest end end + def test_dai_authentication_key_service_rest + skip unless Google::Ads::AdManager.dai_authentication_key_service_available? + Gapic::Rest::ClientStub.stub :new, DummyStub.new do + client = Google::Ads::AdManager.dai_authentication_key_service do |config| + config.credentials = :dummy_credentials + end + assert_kind_of Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client, client + end + end + + def test_dai_encoding_profile_service_rest + skip unless Google::Ads::AdManager.dai_encoding_profile_service_available? + Gapic::Rest::ClientStub.stub :new, DummyStub.new do + client = Google::Ads::AdManager.dai_encoding_profile_service do |config| + config.credentials = :dummy_credentials + end + assert_kind_of Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client, client + end + end + def test_device_capability_service_rest skip unless Google::Ads::AdManager.device_capability_service_available? Gapic::Rest::ClientStub.stub :new, DummyStub.new do @@ -440,6 +480,16 @@ def test_order_service_rest end end + def test_partner_service_rest + skip unless Google::Ads::AdManager.partner_service_available? + Gapic::Rest::ClientStub.stub :new, DummyStub.new do + client = Google::Ads::AdManager.partner_service do |config| + config.credentials = :dummy_credentials + end + assert_kind_of Google::Ads::AdManager::V1::PartnerService::Rest::Client, client + end + end + def test_placement_service_rest skip unless Google::Ads::AdManager.placement_service_available? Gapic::Rest::ClientStub.stub :new, DummyStub.new do @@ -589,4 +639,14 @@ def test_user_service_rest assert_kind_of Google::Ads::AdManager::V1::UserService::Rest::Client, client end end + + def test_viewability_provider_service_rest + skip unless Google::Ads::AdManager.viewability_provider_service_available? + Gapic::Rest::ClientStub.stub :new, DummyStub.new do + client = Google::Ads::AdManager.viewability_provider_service do |config| + config.credentials = :dummy_credentials + end + assert_kind_of Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client, client + end + end end diff --git a/google-apps-chat-v1/lib/google/apps/chat/v1/chat_service/client.rb b/google-apps-chat-v1/lib/google/apps/chat/v1/chat_service/client.rb index 8cb5f68608b6..73a3507cb7f5 100644 --- a/google-apps-chat-v1/lib/google/apps/chat/v1/chat_service/client.rb +++ b/google-apps-chat-v1/lib/google/apps/chat/v1/chat_service/client.rb @@ -642,7 +642,7 @@ def create_message request, options = nil # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. # - # @overload list_messages(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil, show_deleted: nil) + # @overload list_messages(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil, show_deleted: nil, markup_syntax: nil) # Pass arguments to `list_messages` via keyword arguments. Note that at # least one keyword argument is required. To specify no parameters, or to keep all # the default parameter values, pass an empty Hash as a request object (see above). @@ -719,6 +719,9 @@ def create_message request, options = nil # Optional. Whether to include deleted messages. Deleted messages include # deleted time and metadata about their deletion, but message content is # unavailable. + # @param markup_syntax [::Google::Apps::Chat::V1::MarkupSyntax] + # Optional. Specifies the desired output syntax for the Chat message + # `formatted_text` field. # # @yield [response, operation] Access the result along with the RPC operation # @yieldparam response [::Gapic::PagedEnumerable<::Google::Apps::Chat::V1::Message>] @@ -1173,7 +1176,7 @@ def get_membership request, options = nil # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. # - # @overload get_message(name: nil) + # @overload get_message(name: nil, markup_syntax: nil) # Pass arguments to `get_message` via keyword arguments. Note that at # least one keyword argument is required. To specify no parameters, or to keep all # the default parameter values, pass an empty Hash as a request object (see above). @@ -1187,6 +1190,9 @@ def get_membership request, options = nil # `clientAssignedMessageId` field for `{message}`. For details, see [Name a # message] # (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). + # @param markup_syntax [::Google::Apps::Chat::V1::MarkupSyntax] + # Optional. Specifies the desired output syntax for the Chat message + # `formatted_text` field. # # @yield [response, operation] Access the result along with the RPC operation # @yieldparam response [::Google::Apps::Chat::V1::Message] @@ -1544,7 +1550,7 @@ def delete_message request, options = nil # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. # - # @overload search_messages(parent: nil, filter: nil, page_size: nil, page_token: nil, order_by: nil, view: nil) + # @overload search_messages(parent: nil, filter: nil, page_size: nil, page_token: nil, order_by: nil, markup_syntax: nil, view: nil) # Pass arguments to `search_messages` via keyword arguments. Note that at # least one keyword argument is required. To specify no parameters, or to keep all # the default parameter values, pass an empty Hash as a request object (see above). @@ -1711,6 +1717,9 @@ def delete_message request, options = nil # The default ordering is `create_time desc`. Only a single order per query # (`create_time` or `relevance`) is supported. Only descending order (`desc`) # is supported, and it must be specified after the order attribute. + # @param markup_syntax [::Google::Apps::Chat::V1::MarkupSyntax] + # Optional. Specifies the desired output syntax for the Chat message + # `formatted_text` field. # @param view [::Google::Apps::Chat::V1::SearchMessagesRequest::SearchMessagesView] # Optional. Specifies what kind of search results view to return. The default # is `SEARCH_MESSAGES_VIEW_BASIC`. @@ -2320,6 +2329,7 @@ def list_spaces request, options = nil # # - `create_time DESC` # - `relevance DESC` + # [Developer Preview](https://developers.google.com/workspace/preview). # # @yield [response, operation] Access the result along with the RPC operation # @yieldparam response [::Gapic::PagedEnumerable<::Google::Apps::Chat::V1::Space>] diff --git a/google-apps-chat-v1/lib/google/apps/chat/v1/chat_service/credentials.rb b/google-apps-chat-v1/lib/google/apps/chat/v1/chat_service/credentials.rb index 98faa05a8571..5e3e1b441ed7 100644 --- a/google-apps-chat-v1/lib/google/apps/chat/v1/chat_service/credentials.rb +++ b/google-apps-chat-v1/lib/google/apps/chat/v1/chat_service/credentials.rb @@ -31,6 +31,9 @@ class Credentials < ::Google::Auth::Credentials "https://www.googleapis.com/auth/chat.admin.memberships.readonly", "https://www.googleapis.com/auth/chat.admin.spaces", "https://www.googleapis.com/auth/chat.admin.spaces.readonly", + "https://www.googleapis.com/auth/chat.app.all.memberships.readonly", + "https://www.googleapis.com/auth/chat.app.all.messages.readonly", + "https://www.googleapis.com/auth/chat.app.all.spaces.readonly", "https://www.googleapis.com/auth/chat.app.delete", "https://www.googleapis.com/auth/chat.app.memberships", "https://www.googleapis.com/auth/chat.app.memberships.readonly", diff --git a/google-apps-chat-v1/lib/google/apps/chat/v1/chat_service/rest/client.rb b/google-apps-chat-v1/lib/google/apps/chat/v1/chat_service/rest/client.rb index 627dfc6df645..82c6274f7e5a 100644 --- a/google-apps-chat-v1/lib/google/apps/chat/v1/chat_service/rest/client.rb +++ b/google-apps-chat-v1/lib/google/apps/chat/v1/chat_service/rest/client.rb @@ -628,7 +628,7 @@ def create_message request, options = nil # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # - # @overload list_messages(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil, show_deleted: nil) + # @overload list_messages(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil, show_deleted: nil, markup_syntax: nil) # Pass arguments to `list_messages` via keyword arguments. Note that at # least one keyword argument is required. To specify no parameters, or to keep all # the default parameter values, pass an empty Hash as a request object (see above). @@ -705,6 +705,9 @@ def create_message request, options = nil # Optional. Whether to include deleted messages. Deleted messages include # deleted time and metadata about their deletion, but message content is # unavailable. + # @param markup_syntax [::Google::Apps::Chat::V1::MarkupSyntax] + # Optional. Specifies the desired output syntax for the Chat message + # `formatted_text` field. # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Apps::Chat::V1::Message>] # @yieldparam operation [::Gapic::Rest::TransportOperation] @@ -1138,7 +1141,7 @@ def get_membership request, options = nil # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # - # @overload get_message(name: nil) + # @overload get_message(name: nil, markup_syntax: nil) # Pass arguments to `get_message` via keyword arguments. Note that at # least one keyword argument is required. To specify no parameters, or to keep all # the default parameter values, pass an empty Hash as a request object (see above). @@ -1152,6 +1155,9 @@ def get_membership request, options = nil # `clientAssignedMessageId` field for `{message}`. For details, see [Name a # message] # (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). + # @param markup_syntax [::Google::Apps::Chat::V1::MarkupSyntax] + # Optional. Specifies the desired output syntax for the Chat message + # `formatted_text` field. # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Apps::Chat::V1::Message] # @yieldparam operation [::Gapic::Rest::TransportOperation] @@ -1488,7 +1494,7 @@ def delete_message request, options = nil # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # - # @overload search_messages(parent: nil, filter: nil, page_size: nil, page_token: nil, order_by: nil, view: nil) + # @overload search_messages(parent: nil, filter: nil, page_size: nil, page_token: nil, order_by: nil, markup_syntax: nil, view: nil) # Pass arguments to `search_messages` via keyword arguments. Note that at # least one keyword argument is required. To specify no parameters, or to keep all # the default parameter values, pass an empty Hash as a request object (see above). @@ -1655,6 +1661,9 @@ def delete_message request, options = nil # The default ordering is `create_time desc`. Only a single order per query # (`create_time` or `relevance`) is supported. Only descending order (`desc`) # is supported, and it must be specified after the order attribute. + # @param markup_syntax [::Google::Apps::Chat::V1::MarkupSyntax] + # Optional. Specifies the desired output syntax for the Chat message + # `formatted_text` field. # @param view [::Google::Apps::Chat::V1::SearchMessagesRequest::SearchMessagesView] # Optional. Specifies what kind of search results view to return. The default # is `SEARCH_MESSAGES_VIEW_BASIC`. @@ -2244,6 +2253,7 @@ def list_spaces request, options = nil # # - `create_time DESC` # - `relevance DESC` + # [Developer Preview](https://developers.google.com/workspace/preview). # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Apps::Chat::V1::Space>] # @yieldparam operation [::Gapic::Rest::TransportOperation] diff --git a/google-apps-chat-v1/lib/google/chat/v1/chat_service_pb.rb b/google-apps-chat-v1/lib/google/chat/v1/chat_service_pb.rb index 236c5c0aa31f..3726ffaacd53 100644 --- a/google-apps-chat-v1/lib/google/chat/v1/chat_service_pb.rb +++ b/google-apps-chat-v1/lib/google/chat/v1/chat_service_pb.rb @@ -21,7 +21,7 @@ require 'google/protobuf/empty_pb' -descriptor_data = "\n!google/chat/v1/chat_service.proto\x12\x0egoogle.chat.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/chat/v1/attachment.proto\x1a!google/chat/v1/availability.proto\x1a\x1fgoogle/chat/v1/membership.proto\x1a\x1cgoogle/chat/v1/message.proto\x1a\x1dgoogle/chat/v1/reaction.proto\x1a\x1cgoogle/chat/v1/section.proto\x1a\x1agoogle/chat/v1/space.proto\x1a google/chat/v1/space_event.proto\x1a/google/chat/v1/space_notification_setting.proto\x1a%google/chat/v1/space_read_state.proto\x1a google/chat/v1/space_setup.proto\x1a&google/chat/v1/thread_read_state.proto\x1a\x1bgoogle/protobuf/empty.proto2\xeaH\n\x0b\x43hatService\x12\x9b\x01\n\rCreateMessage\x12$.google.chat.v1.CreateMessageRequest\x1a\x17.google.chat.v1.Message\"K\xda\x41\x19parent,message,message_id\x82\xd3\xe4\x93\x02)\"\x1e/v1/{parent=spaces/*}/messages:\x07message\x12\x8a\x01\n\x0cListMessages\x12#.google.chat.v1.ListMessagesRequest\x1a$.google.chat.v1.ListMessagesResponse\"/\xda\x41\x06parent\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{parent=spaces/*}/messages\x12\x92\x01\n\x0fListMemberships\x12&.google.chat.v1.ListMembershipsRequest\x1a\'.google.chat.v1.ListMembershipsResponse\".\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{parent=spaces/*}/members\x12\x7f\n\rGetMembership\x12$.google.chat.v1.GetMembershipRequest\x1a\x1a.google.chat.v1.Membership\",\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{name=spaces/*/members/*}\x12w\n\nGetMessage\x12!.google.chat.v1.GetMessageRequest\x1a\x17.google.chat.v1.Message\"-\xda\x41\x04name\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{name=spaces/*/messages/*}\x12\xd1\x01\n\rUpdateMessage\x12$.google.chat.v1.UpdateMessageRequest\x1a\x17.google.chat.v1.Message\"\x80\x01\xda\x41\x13message,update_mask\x82\xd3\xe4\x93\x02\x64\x1a&/v1/{message.name=spaces/*/messages/*}:\x07messageZ12&/v1/{message.name=spaces/*/messages/*}:\x07message\x12|\n\rDeleteMessage\x12$.google.chat.v1.DeleteMessageRequest\x1a\x16.google.protobuf.Empty\"-\xda\x41\x04name\x82\xd3\xe4\x93\x02 *\x1e/v1/{name=spaces/*/messages/*}\x12\xa1\x01\n\x0eSearchMessages\x12%.google.chat.v1.SearchMessagesRequest\x1a&.google.chat.v1.SearchMessagesResponse\"@\xda\x41\rparent,filter\x82\xd3\xe4\x93\x02*\"%/v1/{parent=spaces/*}/messages:search:\x01*\x12\x8e\x01\n\rGetAttachment\x12$.google.chat.v1.GetAttachmentRequest\x1a\x1a.google.chat.v1.Attachment\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1/{name=spaces/*/messages/*/attachments/*}\x12\x9a\x01\n\x10UploadAttachment\x12\'.google.chat.v1.UploadAttachmentRequest\x1a(.google.chat.v1.UploadAttachmentResponse\"3\x82\xd3\xe4\x93\x02-\"(/v1/{parent=spaces/*}/attachments:upload:\x01*\x12j\n\nListSpaces\x12!.google.chat.v1.ListSpacesRequest\x1a\".google.chat.v1.ListSpacesResponse\"\x15\xda\x41\x00\x82\xd3\xe4\x93\x02\x0c\x12\n/v1/spaces\x12w\n\x0cSearchSpaces\x12#.google.chat.v1.SearchSpacesRequest\x1a$.google.chat.v1.SearchSpacesResponse\"\x1c\xda\x41\x00\x82\xd3\xe4\x93\x02\x13\x12\x11/v1/spaces:search\x12\x66\n\x08GetSpace\x12\x1f.google.chat.v1.GetSpaceRequest\x1a\x15.google.chat.v1.Space\"\"\xda\x41\x04name\x82\xd3\xe4\x93\x02\x15\x12\x13/v1/{name=spaces/*}\x12k\n\x0b\x43reateSpace\x12\".google.chat.v1.CreateSpaceRequest\x1a\x15.google.chat.v1.Space\"!\xda\x41\x05space\x82\xd3\xe4\x93\x02\x13\"\n/v1/spaces:\x05space\x12\x63\n\nSetUpSpace\x12!.google.chat.v1.SetUpSpaceRequest\x1a\x15.google.chat.v1.Space\"\x1b\x82\xd3\xe4\x93\x02\x15\"\x10/v1/spaces:setup:\x01*\x12\x86\x01\n\x0bUpdateSpace\x12\".google.chat.v1.UpdateSpaceRequest\x1a\x15.google.chat.v1.Space\"<\xda\x41\x11space,update_mask\x82\xd3\xe4\x93\x02\"2\x19/v1/{space.name=spaces/*}:\x05space\x12m\n\x0b\x44\x65leteSpace\x12\".google.chat.v1.DeleteSpaceRequest\x1a\x16.google.protobuf.Empty\"\"\xda\x41\x04name\x82\xd3\xe4\x93\x02\x15*\x13/v1/{name=spaces/*}\x12\x9d\x01\n\x13\x43ompleteImportSpace\x12*.google.chat.v1.CompleteImportSpaceRequest\x1a+.google.chat.v1.CompleteImportSpaceResponse\"-\x82\xd3\xe4\x93\x02\'\"\"/v1/{name=spaces/*}:completeImport:\x01*\x12z\n\x11\x46indDirectMessage\x12(.google.chat.v1.FindDirectMessageRequest\x1a\x15.google.chat.v1.Space\"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/v1/spaces:findDirectMessage\x12\x82\x01\n\x0e\x46indGroupChats\x12%.google.chat.v1.FindGroupChatsRequest\x1a&.google.chat.v1.FindGroupChatsResponse\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/v1/spaces:findGroupChats\x12\x9e\x01\n\x10\x43reateMembership\x12\'.google.chat.v1.CreateMembershipRequest\x1a\x1a.google.chat.v1.Membership\"E\xda\x41\x11parent,membership\x82\xd3\xe4\x93\x02+\"\x1d/v1/{parent=spaces/*}/members:\nmembership\x12\xae\x01\n\x10UpdateMembership\x12\'.google.chat.v1.UpdateMembershipRequest\x1a\x1a.google.chat.v1.Membership\"U\xda\x41\x16membership,update_mask\x82\xd3\xe4\x93\x02\x36\x32(/v1/{membership.name=spaces/*/members/*}:\nmembership\x12\x85\x01\n\x10\x44\x65leteMembership\x12\'.google.chat.v1.DeleteMembershipRequest\x1a\x1a.google.chat.v1.Membership\",\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1f*\x1d/v1/{name=spaces/*/members/*}\x12\xa1\x01\n\x0e\x43reateReaction\x12%.google.chat.v1.CreateReactionRequest\x1a\x18.google.chat.v1.Reaction\"N\xda\x41\x0fparent,reaction\x82\xd3\xe4\x93\x02\x36\"*/v1/{parent=spaces/*/messages/*}/reactions:\x08reaction\x12\x99\x01\n\rListReactions\x12$.google.chat.v1.ListReactionsRequest\x1a%.google.chat.v1.ListReactionsResponse\";\xda\x41\x06parent\x82\xd3\xe4\x93\x02,\x12*/v1/{parent=spaces/*/messages/*}/reactions\x12\x8a\x01\n\x0e\x44\x65leteReaction\x12%.google.chat.v1.DeleteReactionRequest\x1a\x16.google.protobuf.Empty\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,**/v1/{name=spaces/*/messages/*/reactions/*}\x12\x91\x01\n\x11\x43reateCustomEmoji\x12(.google.chat.v1.CreateCustomEmojiRequest\x1a\x1b.google.chat.v1.CustomEmoji\"5\xda\x41\x0c\x63ustom_emoji\x82\xd3\xe4\x93\x02 \"\x10/v1/customEmojis:\x0c\x63ustom_emoji\x12~\n\x0eGetCustomEmoji\x12%.google.chat.v1.GetCustomEmojiRequest\x1a\x1b.google.chat.v1.CustomEmoji\"(\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1b\x12\x19/v1/{name=customEmojis/*}\x12\x82\x01\n\x10ListCustomEmojis\x12\'.google.chat.v1.ListCustomEmojisRequest\x1a(.google.chat.v1.ListCustomEmojisResponse\"\x1b\xda\x41\x00\x82\xd3\xe4\x93\x02\x12\x12\x10/v1/customEmojis\x12\x7f\n\x11\x44\x65leteCustomEmoji\x12(.google.chat.v1.DeleteCustomEmojiRequest\x1a\x16.google.protobuf.Empty\"(\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1b*\x19/v1/{name=customEmojis/*}\x12\x98\x01\n\x11GetSpaceReadState\x12(.google.chat.v1.GetSpaceReadStateRequest\x1a\x1e.google.chat.v1.SpaceReadState\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,\x12*/v1/{name=users/*/spaces/*/spaceReadState}\x12\xd9\x01\n\x14UpdateSpaceReadState\x12+.google.chat.v1.UpdateSpaceReadStateRequest\x1a\x1e.google.chat.v1.SpaceReadState\"t\xda\x41\x1cspace_read_state,update_mask\x82\xd3\xe4\x93\x02O2;/v1/{space_read_state.name=users/*/spaces/*/spaceReadState}:\x10space_read_state\x12\xa6\x01\n\x12GetThreadReadState\x12).google.chat.v1.GetThreadReadStateRequest\x1a\x1f.google.chat.v1.ThreadReadState\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{name=users/*/spaces/*/threads/*/threadReadState}\x12\x87\x01\n\x0fGetAvailability\x12&.google.chat.v1.GetAvailabilityRequest\x1a\x1c.google.chat.v1.Availability\".\xda\x41\x04name\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{name=users/*/availability}\x12\x8a\x01\n\x0cMarkAsActive\x12#.google.chat.v1.MarkAsActiveRequest\x1a\x1c.google.chat.v1.Availability\"7\x82\xd3\xe4\x93\x02\x31\",/v1/{name=users/*/availability}:markAsActive:\x01*\x12\x84\x01\n\nMarkAsAway\x12!.google.chat.v1.MarkAsAwayRequest\x1a\x1c.google.chat.v1.Availability\"5\x82\xd3\xe4\x93\x02/\"*/v1/{name=users/*/availability}:markAsAway:\x01*\x12\x9c\x01\n\x12MarkAsDoNotDisturb\x12).google.chat.v1.MarkAsDoNotDisturbRequest\x1a\x1c.google.chat.v1.Availability\"=\x82\xd3\xe4\x93\x02\x37\"2/v1/{name=users/*/availability}:markAsDoNotDisturb:\x01*\x12\xbc\x01\n\x12UpdateAvailability\x12).google.chat.v1.UpdateAvailabilityRequest\x1a\x1c.google.chat.v1.Availability\"]\xda\x41\x18\x61vailability,update_mask\x82\xd3\xe4\x93\x02<2,/v1/{availability.name=users/*/availability}:\x0c\x61vailability\x12\x83\x01\n\rGetSpaceEvent\x12$.google.chat.v1.GetSpaceEventRequest\x1a\x1a.google.chat.v1.SpaceEvent\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#\x12!/v1/{name=spaces/*/spaceEvents/*}\x12\x9d\x01\n\x0fListSpaceEvents\x12&.google.chat.v1.ListSpaceEventsRequest\x1a\'.google.chat.v1.ListSpaceEventsResponse\"9\xda\x41\rparent,filter\x82\xd3\xe4\x93\x02#\x12!/v1/{parent=spaces/*}/spaceEvents\x12\xc0\x01\n\x1bGetSpaceNotificationSetting\x12\x32.google.chat.v1.GetSpaceNotificationSettingRequest\x1a(.google.chat.v1.SpaceNotificationSetting\"C\xda\x41\x04name\x82\xd3\xe4\x93\x02\x36\x12\x34/v1/{name=users/*/spaces/*/spaceNotificationSetting}\x12\xa0\x02\n\x1eUpdateSpaceNotificationSetting\x12\x35.google.chat.v1.UpdateSpaceNotificationSettingRequest\x1a(.google.chat.v1.SpaceNotificationSetting\"\x9c\x01\xda\x41&space_notification_setting,update_mask\x82\xd3\xe4\x93\x02m2O/v1/{space_notification_setting.name=users/*/spaces/*/spaceNotificationSetting}:\x1aspace_notification_setting\x12\x8f\x01\n\rCreateSection\x12$.google.chat.v1.CreateSectionRequest\x1a\x17.google.chat.v1.Section\"?\xda\x41\x0eparent,section\x82\xd3\xe4\x93\x02(\"\x1d/v1/{parent=users/*}/sections:\x07section\x12{\n\rDeleteSection\x12$.google.chat.v1.DeleteSectionRequest\x1a\x16.google.protobuf.Empty\",\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1f*\x1d/v1/{name=users/*/sections/*}\x12\x9c\x01\n\rUpdateSection\x12$.google.chat.v1.UpdateSectionRequest\x1a\x17.google.chat.v1.Section\"L\xda\x41\x13section,update_mask\x82\xd3\xe4\x93\x02\x30\x32%/v1/{section.name=users/*/sections/*}:\x07section\x12\x89\x01\n\x0cListSections\x12#.google.chat.v1.ListSectionsRequest\x1a$.google.chat.v1.ListSectionsResponse\".\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{parent=users/*}/sections\x12\x95\x01\n\x0fPositionSection\x12&.google.chat.v1.PositionSectionRequest\x1a\'.google.chat.v1.PositionSectionResponse\"1\x82\xd3\xe4\x93\x02+\"&/v1/{name=users/*/sections/*}:position:\x01*\x12\x9d\x01\n\x10ListSectionItems\x12\'.google.chat.v1.ListSectionItemsRequest\x1a(.google.chat.v1.ListSectionItemsResponse\"6\xda\x41\x06parent\x82\xd3\xe4\x93\x02\'\x12%/v1/{parent=users/*/sections/*}/items\x12\xaf\x01\n\x0fMoveSectionItem\x12&.google.chat.v1.MoveSectionItemRequest\x1a\'.google.chat.v1.MoveSectionItemResponse\"K\xda\x41\x13name,target_section\x82\xd3\xe4\x93\x02/\"*/v1/{name=users/*/sections/*/items/*}:move:\x01*\x1a\xb7\x0f\xca\x41\x13\x63hat.googleapis.com\xd2\x41\x9d\x0fhttps://www.googleapis.com/auth/chat.admin.delete,https://www.googleapis.com/auth/chat.admin.memberships,https://www.googleapis.com/auth/chat.admin.memberships.readonly,https://www.googleapis.com/auth/chat.admin.spaces,https://www.googleapis.com/auth/chat.admin.spaces.readonly,https://www.googleapis.com/auth/chat.app.delete,https://www.googleapis.com/auth/chat.app.memberships,https://www.googleapis.com/auth/chat.app.memberships.readonly,https://www.googleapis.com/auth/chat.app.messages.readonly,https://www.googleapis.com/auth/chat.app.spaces,https://www.googleapis.com/auth/chat.app.spaces.create,https://www.googleapis.com/auth/chat.app.spaces.readonly,https://www.googleapis.com/auth/chat.bot,https://www.googleapis.com/auth/chat.customemojis,https://www.googleapis.com/auth/chat.customemojis.readonly,https://www.googleapis.com/auth/chat.delete,https://www.googleapis.com/auth/chat.import,https://www.googleapis.com/auth/chat.memberships,https://www.googleapis.com/auth/chat.memberships.app,https://www.googleapis.com/auth/chat.memberships.readonly,https://www.googleapis.com/auth/chat.messages,https://www.googleapis.com/auth/chat.messages.create,https://www.googleapis.com/auth/chat.messages.reactions,https://www.googleapis.com/auth/chat.messages.reactions.create,https://www.googleapis.com/auth/chat.messages.reactions.readonly,https://www.googleapis.com/auth/chat.messages.readonly,https://www.googleapis.com/auth/chat.spaces,https://www.googleapis.com/auth/chat.spaces.create,https://www.googleapis.com/auth/chat.spaces.readonly,https://www.googleapis.com/auth/chat.users.availability,https://www.googleapis.com/auth/chat.users.availability.readonly,https://www.googleapis.com/auth/chat.users.readstate,https://www.googleapis.com/auth/chat.users.readstate.readonly,https://www.googleapis.com/auth/chat.users.sections,https://www.googleapis.com/auth/chat.users.sections.readonly,https://www.googleapis.com/auth/chat.users.spacesettingsB\xa9\x01\n\x12\x63om.google.chat.v1B\x10\x43hatServiceProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xa2\x02\x0b\x44YNAPIProto\xaa\x02\x13Google.Apps.Chat.V1\xca\x02\x13Google\\Apps\\Chat\\V1\xea\x02\x16Google::Apps::Chat::V1b\x06proto3" +descriptor_data = "\n!google/chat/v1/chat_service.proto\x12\x0egoogle.chat.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/chat/v1/attachment.proto\x1a!google/chat/v1/availability.proto\x1a\x1fgoogle/chat/v1/membership.proto\x1a\x1cgoogle/chat/v1/message.proto\x1a\x1dgoogle/chat/v1/reaction.proto\x1a\x1cgoogle/chat/v1/section.proto\x1a\x1agoogle/chat/v1/space.proto\x1a google/chat/v1/space_event.proto\x1a/google/chat/v1/space_notification_setting.proto\x1a%google/chat/v1/space_read_state.proto\x1a google/chat/v1/space_setup.proto\x1a&google/chat/v1/thread_read_state.proto\x1a\x1bgoogle/protobuf/empty.proto2\xa8J\n\x0b\x43hatService\x12\x9b\x01\n\rCreateMessage\x12$.google.chat.v1.CreateMessageRequest\x1a\x17.google.chat.v1.Message\"K\xda\x41\x19parent,message,message_id\x82\xd3\xe4\x93\x02)\"\x1e/v1/{parent=spaces/*}/messages:\x07message\x12\x8a\x01\n\x0cListMessages\x12#.google.chat.v1.ListMessagesRequest\x1a$.google.chat.v1.ListMessagesResponse\"/\xda\x41\x06parent\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{parent=spaces/*}/messages\x12\x92\x01\n\x0fListMemberships\x12&.google.chat.v1.ListMembershipsRequest\x1a\'.google.chat.v1.ListMembershipsResponse\".\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{parent=spaces/*}/members\x12\x7f\n\rGetMembership\x12$.google.chat.v1.GetMembershipRequest\x1a\x1a.google.chat.v1.Membership\",\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{name=spaces/*/members/*}\x12w\n\nGetMessage\x12!.google.chat.v1.GetMessageRequest\x1a\x17.google.chat.v1.Message\"-\xda\x41\x04name\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{name=spaces/*/messages/*}\x12\xd1\x01\n\rUpdateMessage\x12$.google.chat.v1.UpdateMessageRequest\x1a\x17.google.chat.v1.Message\"\x80\x01\xda\x41\x13message,update_mask\x82\xd3\xe4\x93\x02\x64\x1a&/v1/{message.name=spaces/*/messages/*}:\x07messageZ12&/v1/{message.name=spaces/*/messages/*}:\x07message\x12|\n\rDeleteMessage\x12$.google.chat.v1.DeleteMessageRequest\x1a\x16.google.protobuf.Empty\"-\xda\x41\x04name\x82\xd3\xe4\x93\x02 *\x1e/v1/{name=spaces/*/messages/*}\x12\xa1\x01\n\x0eSearchMessages\x12%.google.chat.v1.SearchMessagesRequest\x1a&.google.chat.v1.SearchMessagesResponse\"@\xda\x41\rparent,filter\x82\xd3\xe4\x93\x02*\"%/v1/{parent=spaces/*}/messages:search:\x01*\x12\x8e\x01\n\rGetAttachment\x12$.google.chat.v1.GetAttachmentRequest\x1a\x1a.google.chat.v1.Attachment\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1/{name=spaces/*/messages/*/attachments/*}\x12\x9a\x01\n\x10UploadAttachment\x12\'.google.chat.v1.UploadAttachmentRequest\x1a(.google.chat.v1.UploadAttachmentResponse\"3\x82\xd3\xe4\x93\x02-\"(/v1/{parent=spaces/*}/attachments:upload:\x01*\x12j\n\nListSpaces\x12!.google.chat.v1.ListSpacesRequest\x1a\".google.chat.v1.ListSpacesResponse\"\x15\xda\x41\x00\x82\xd3\xe4\x93\x02\x0c\x12\n/v1/spaces\x12w\n\x0cSearchSpaces\x12#.google.chat.v1.SearchSpacesRequest\x1a$.google.chat.v1.SearchSpacesResponse\"\x1c\xda\x41\x00\x82\xd3\xe4\x93\x02\x13\x12\x11/v1/spaces:search\x12\x66\n\x08GetSpace\x12\x1f.google.chat.v1.GetSpaceRequest\x1a\x15.google.chat.v1.Space\"\"\xda\x41\x04name\x82\xd3\xe4\x93\x02\x15\x12\x13/v1/{name=spaces/*}\x12k\n\x0b\x43reateSpace\x12\".google.chat.v1.CreateSpaceRequest\x1a\x15.google.chat.v1.Space\"!\xda\x41\x05space\x82\xd3\xe4\x93\x02\x13\"\n/v1/spaces:\x05space\x12\x63\n\nSetUpSpace\x12!.google.chat.v1.SetUpSpaceRequest\x1a\x15.google.chat.v1.Space\"\x1b\x82\xd3\xe4\x93\x02\x15\"\x10/v1/spaces:setup:\x01*\x12\x86\x01\n\x0bUpdateSpace\x12\".google.chat.v1.UpdateSpaceRequest\x1a\x15.google.chat.v1.Space\"<\xda\x41\x11space,update_mask\x82\xd3\xe4\x93\x02\"2\x19/v1/{space.name=spaces/*}:\x05space\x12m\n\x0b\x44\x65leteSpace\x12\".google.chat.v1.DeleteSpaceRequest\x1a\x16.google.protobuf.Empty\"\"\xda\x41\x04name\x82\xd3\xe4\x93\x02\x15*\x13/v1/{name=spaces/*}\x12\x9d\x01\n\x13\x43ompleteImportSpace\x12*.google.chat.v1.CompleteImportSpaceRequest\x1a+.google.chat.v1.CompleteImportSpaceResponse\"-\x82\xd3\xe4\x93\x02\'\"\"/v1/{name=spaces/*}:completeImport:\x01*\x12z\n\x11\x46indDirectMessage\x12(.google.chat.v1.FindDirectMessageRequest\x1a\x15.google.chat.v1.Space\"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/v1/spaces:findDirectMessage\x12\x82\x01\n\x0e\x46indGroupChats\x12%.google.chat.v1.FindGroupChatsRequest\x1a&.google.chat.v1.FindGroupChatsResponse\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/v1/spaces:findGroupChats\x12\x9e\x01\n\x10\x43reateMembership\x12\'.google.chat.v1.CreateMembershipRequest\x1a\x1a.google.chat.v1.Membership\"E\xda\x41\x11parent,membership\x82\xd3\xe4\x93\x02+\"\x1d/v1/{parent=spaces/*}/members:\nmembership\x12\xae\x01\n\x10UpdateMembership\x12\'.google.chat.v1.UpdateMembershipRequest\x1a\x1a.google.chat.v1.Membership\"U\xda\x41\x16membership,update_mask\x82\xd3\xe4\x93\x02\x36\x32(/v1/{membership.name=spaces/*/members/*}:\nmembership\x12\x85\x01\n\x10\x44\x65leteMembership\x12\'.google.chat.v1.DeleteMembershipRequest\x1a\x1a.google.chat.v1.Membership\",\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1f*\x1d/v1/{name=spaces/*/members/*}\x12\xa1\x01\n\x0e\x43reateReaction\x12%.google.chat.v1.CreateReactionRequest\x1a\x18.google.chat.v1.Reaction\"N\xda\x41\x0fparent,reaction\x82\xd3\xe4\x93\x02\x36\"*/v1/{parent=spaces/*/messages/*}/reactions:\x08reaction\x12\x99\x01\n\rListReactions\x12$.google.chat.v1.ListReactionsRequest\x1a%.google.chat.v1.ListReactionsResponse\";\xda\x41\x06parent\x82\xd3\xe4\x93\x02,\x12*/v1/{parent=spaces/*/messages/*}/reactions\x12\x8a\x01\n\x0e\x44\x65leteReaction\x12%.google.chat.v1.DeleteReactionRequest\x1a\x16.google.protobuf.Empty\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,**/v1/{name=spaces/*/messages/*/reactions/*}\x12\x91\x01\n\x11\x43reateCustomEmoji\x12(.google.chat.v1.CreateCustomEmojiRequest\x1a\x1b.google.chat.v1.CustomEmoji\"5\xda\x41\x0c\x63ustom_emoji\x82\xd3\xe4\x93\x02 \"\x10/v1/customEmojis:\x0c\x63ustom_emoji\x12~\n\x0eGetCustomEmoji\x12%.google.chat.v1.GetCustomEmojiRequest\x1a\x1b.google.chat.v1.CustomEmoji\"(\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1b\x12\x19/v1/{name=customEmojis/*}\x12\x82\x01\n\x10ListCustomEmojis\x12\'.google.chat.v1.ListCustomEmojisRequest\x1a(.google.chat.v1.ListCustomEmojisResponse\"\x1b\xda\x41\x00\x82\xd3\xe4\x93\x02\x12\x12\x10/v1/customEmojis\x12\x7f\n\x11\x44\x65leteCustomEmoji\x12(.google.chat.v1.DeleteCustomEmojiRequest\x1a\x16.google.protobuf.Empty\"(\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1b*\x19/v1/{name=customEmojis/*}\x12\x98\x01\n\x11GetSpaceReadState\x12(.google.chat.v1.GetSpaceReadStateRequest\x1a\x1e.google.chat.v1.SpaceReadState\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,\x12*/v1/{name=users/*/spaces/*/spaceReadState}\x12\xd9\x01\n\x14UpdateSpaceReadState\x12+.google.chat.v1.UpdateSpaceReadStateRequest\x1a\x1e.google.chat.v1.SpaceReadState\"t\xda\x41\x1cspace_read_state,update_mask\x82\xd3\xe4\x93\x02O2;/v1/{space_read_state.name=users/*/spaces/*/spaceReadState}:\x10space_read_state\x12\xa6\x01\n\x12GetThreadReadState\x12).google.chat.v1.GetThreadReadStateRequest\x1a\x1f.google.chat.v1.ThreadReadState\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{name=users/*/spaces/*/threads/*/threadReadState}\x12\x87\x01\n\x0fGetAvailability\x12&.google.chat.v1.GetAvailabilityRequest\x1a\x1c.google.chat.v1.Availability\".\xda\x41\x04name\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{name=users/*/availability}\x12\x8a\x01\n\x0cMarkAsActive\x12#.google.chat.v1.MarkAsActiveRequest\x1a\x1c.google.chat.v1.Availability\"7\x82\xd3\xe4\x93\x02\x31\",/v1/{name=users/*/availability}:markAsActive:\x01*\x12\x84\x01\n\nMarkAsAway\x12!.google.chat.v1.MarkAsAwayRequest\x1a\x1c.google.chat.v1.Availability\"5\x82\xd3\xe4\x93\x02/\"*/v1/{name=users/*/availability}:markAsAway:\x01*\x12\x9c\x01\n\x12MarkAsDoNotDisturb\x12).google.chat.v1.MarkAsDoNotDisturbRequest\x1a\x1c.google.chat.v1.Availability\"=\x82\xd3\xe4\x93\x02\x37\"2/v1/{name=users/*/availability}:markAsDoNotDisturb:\x01*\x12\xbc\x01\n\x12UpdateAvailability\x12).google.chat.v1.UpdateAvailabilityRequest\x1a\x1c.google.chat.v1.Availability\"]\xda\x41\x18\x61vailability,update_mask\x82\xd3\xe4\x93\x02<2,/v1/{availability.name=users/*/availability}:\x0c\x61vailability\x12\x83\x01\n\rGetSpaceEvent\x12$.google.chat.v1.GetSpaceEventRequest\x1a\x1a.google.chat.v1.SpaceEvent\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#\x12!/v1/{name=spaces/*/spaceEvents/*}\x12\x9d\x01\n\x0fListSpaceEvents\x12&.google.chat.v1.ListSpaceEventsRequest\x1a\'.google.chat.v1.ListSpaceEventsResponse\"9\xda\x41\rparent,filter\x82\xd3\xe4\x93\x02#\x12!/v1/{parent=spaces/*}/spaceEvents\x12\xc0\x01\n\x1bGetSpaceNotificationSetting\x12\x32.google.chat.v1.GetSpaceNotificationSettingRequest\x1a(.google.chat.v1.SpaceNotificationSetting\"C\xda\x41\x04name\x82\xd3\xe4\x93\x02\x36\x12\x34/v1/{name=users/*/spaces/*/spaceNotificationSetting}\x12\xa0\x02\n\x1eUpdateSpaceNotificationSetting\x12\x35.google.chat.v1.UpdateSpaceNotificationSettingRequest\x1a(.google.chat.v1.SpaceNotificationSetting\"\x9c\x01\xda\x41&space_notification_setting,update_mask\x82\xd3\xe4\x93\x02m2O/v1/{space_notification_setting.name=users/*/spaces/*/spaceNotificationSetting}:\x1aspace_notification_setting\x12\x8f\x01\n\rCreateSection\x12$.google.chat.v1.CreateSectionRequest\x1a\x17.google.chat.v1.Section\"?\xda\x41\x0eparent,section\x82\xd3\xe4\x93\x02(\"\x1d/v1/{parent=users/*}/sections:\x07section\x12{\n\rDeleteSection\x12$.google.chat.v1.DeleteSectionRequest\x1a\x16.google.protobuf.Empty\",\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1f*\x1d/v1/{name=users/*/sections/*}\x12\x9c\x01\n\rUpdateSection\x12$.google.chat.v1.UpdateSectionRequest\x1a\x17.google.chat.v1.Section\"L\xda\x41\x13section,update_mask\x82\xd3\xe4\x93\x02\x30\x32%/v1/{section.name=users/*/sections/*}:\x07section\x12\x89\x01\n\x0cListSections\x12#.google.chat.v1.ListSectionsRequest\x1a$.google.chat.v1.ListSectionsResponse\".\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{parent=users/*}/sections\x12\x95\x01\n\x0fPositionSection\x12&.google.chat.v1.PositionSectionRequest\x1a\'.google.chat.v1.PositionSectionResponse\"1\x82\xd3\xe4\x93\x02+\"&/v1/{name=users/*/sections/*}:position:\x01*\x12\x9d\x01\n\x10ListSectionItems\x12\'.google.chat.v1.ListSectionItemsRequest\x1a(.google.chat.v1.ListSectionItemsResponse\"6\xda\x41\x06parent\x82\xd3\xe4\x93\x02\'\x12%/v1/{parent=users/*/sections/*}/items\x12\xaf\x01\n\x0fMoveSectionItem\x12&.google.chat.v1.MoveSectionItemRequest\x1a\'.google.chat.v1.MoveSectionItemResponse\"K\xda\x41\x13name,target_section\x82\xd3\xe4\x93\x02/\"*/v1/{name=users/*/sections/*/items/*}:move:\x01*\x1a\xf5\x10\xca\x41\x13\x63hat.googleapis.com\xd2\x41\xdb\x10https://www.googleapis.com/auth/chat.admin.delete,https://www.googleapis.com/auth/chat.admin.memberships,https://www.googleapis.com/auth/chat.admin.memberships.readonly,https://www.googleapis.com/auth/chat.admin.spaces,https://www.googleapis.com/auth/chat.admin.spaces.readonly,https://www.googleapis.com/auth/chat.app.all.memberships.readonly,https://www.googleapis.com/auth/chat.app.all.messages.readonly,https://www.googleapis.com/auth/chat.app.all.spaces.readonly,https://www.googleapis.com/auth/chat.app.delete,https://www.googleapis.com/auth/chat.app.memberships,https://www.googleapis.com/auth/chat.app.memberships.readonly,https://www.googleapis.com/auth/chat.app.messages.readonly,https://www.googleapis.com/auth/chat.app.spaces,https://www.googleapis.com/auth/chat.app.spaces.create,https://www.googleapis.com/auth/chat.app.spaces.readonly,https://www.googleapis.com/auth/chat.bot,https://www.googleapis.com/auth/chat.customemojis,https://www.googleapis.com/auth/chat.customemojis.readonly,https://www.googleapis.com/auth/chat.delete,https://www.googleapis.com/auth/chat.import,https://www.googleapis.com/auth/chat.memberships,https://www.googleapis.com/auth/chat.memberships.app,https://www.googleapis.com/auth/chat.memberships.readonly,https://www.googleapis.com/auth/chat.messages,https://www.googleapis.com/auth/chat.messages.create,https://www.googleapis.com/auth/chat.messages.reactions,https://www.googleapis.com/auth/chat.messages.reactions.create,https://www.googleapis.com/auth/chat.messages.reactions.readonly,https://www.googleapis.com/auth/chat.messages.readonly,https://www.googleapis.com/auth/chat.spaces,https://www.googleapis.com/auth/chat.spaces.create,https://www.googleapis.com/auth/chat.spaces.readonly,https://www.googleapis.com/auth/chat.users.availability,https://www.googleapis.com/auth/chat.users.availability.readonly,https://www.googleapis.com/auth/chat.users.readstate,https://www.googleapis.com/auth/chat.users.readstate.readonly,https://www.googleapis.com/auth/chat.users.sections,https://www.googleapis.com/auth/chat.users.sections.readonly,https://www.googleapis.com/auth/chat.users.spacesettingsB\xa9\x01\n\x12\x63om.google.chat.v1B\x10\x43hatServiceProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xa2\x02\x0b\x44YNAPIProto\xaa\x02\x13Google.Apps.Chat.V1\xca\x02\x13Google\\Apps\\Chat\\V1\xea\x02\x16Google::Apps::Chat::V1b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-apps-chat-v1/lib/google/chat/v1/markup_syntax_pb.rb b/google-apps-chat-v1/lib/google/chat/v1/markup_syntax_pb.rb new file mode 100644 index 000000000000..85373f317184 --- /dev/null +++ b/google-apps-chat-v1/lib/google/chat/v1/markup_syntax_pb.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/chat/v1/markup_syntax.proto + +require 'google/protobuf' + + +descriptor_data = "\n\"google/chat/v1/markup_syntax.proto\x12\x0egoogle.chat.v1*a\n\x0cMarkupSyntax\x12\x1d\n\x19MARKUP_SYNTAX_UNSPECIFIED\x10\x00\x12\x16\n\x12MARKUP_SYNTAX_CHAT\x10\x01\x12\x1a\n\x16MARKUP_SYNTAX_MARKDOWN\x10\x02\x42\xaa\x01\n\x12\x63om.google.chat.v1B\x11MarkupSyntaxProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xa2\x02\x0b\x44YNAPIProto\xaa\x02\x13Google.Apps.Chat.V1\xca\x02\x13Google\\Apps\\Chat\\V1\xea\x02\x16Google::Apps::Chat::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Apps + module Chat + module V1 + MarkupSyntax = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.MarkupSyntax").enummodule + end + end + end +end diff --git a/google-apps-chat-v1/lib/google/chat/v1/message_pb.rb b/google-apps-chat-v1/lib/google/chat/v1/message_pb.rb index e2f2a1e789ea..cb2b2c1619e5 100644 --- a/google-apps-chat-v1/lib/google/chat/v1/message_pb.rb +++ b/google-apps-chat-v1/lib/google/chat/v1/message_pb.rb @@ -12,6 +12,7 @@ require 'google/chat/v1/attachment_pb' require 'google/chat/v1/contextual_addon_pb' require 'google/chat/v1/deletion_metadata_pb' +require 'google/chat/v1/markup_syntax_pb' require 'google/chat/v1/matched_url_pb' require 'google/chat/v1/reaction_pb' require 'google/chat/v1/slash_command_pb' @@ -22,7 +23,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n\x1cgoogle/chat/v1/message.proto\x12\x0egoogle.chat.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/apps/card/v1/card.proto\x1a\"google/chat/v1/action_status.proto\x1a\x1fgoogle/chat/v1/annotation.proto\x1a\x1fgoogle/chat/v1/attachment.proto\x1a%google/chat/v1/contextual_addon.proto\x1a&google/chat/v1/deletion_metadata.proto\x1a google/chat/v1/matched_url.proto\x1a\x1dgoogle/chat/v1/reaction.proto\x1a\"google/chat/v1/slash_command.proto\x1a\x1agoogle/chat/v1/space.proto\x1a/google/chat/v1/space_notification_setting.proto\x1a\x19google/chat/v1/user.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe9\n\n\x07Message\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12)\n\x06sender\x18\x02 \x01(\x0b\x32\x14.google.chat.v1.UserB\x03\xe0\x41\x03\x12\x37\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x06\xe0\x41\x05\xe0\x41\x01\x12\x39\n\x10last_update_time\x18\x17 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x1a \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04text\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x66ormatted_text\x18+ \x01(\tB\x03\xe0\x41\x03\x12=\n\x05\x63\x61rds\x18\x05 \x03(\x0b\x32*.google.chat.v1.ContextualAddOnMarkup.CardB\x02\x18\x01\x12\x31\n\x08\x63\x61rds_v2\x18\x16 \x03(\x0b\x32\x1a.google.chat.v1.CardWithIdB\x03\xe0\x41\x01\x12\x34\n\x0b\x61nnotations\x18\n \x03(\x0b\x32\x1a.google.chat.v1.AnnotationB\x03\xe0\x41\x03\x12&\n\x06thread\x18\x0b \x01(\x0b\x32\x16.google.chat.v1.Thread\x12)\n\x05space\x18\x0c \x01(\x0b\x32\x15.google.chat.v1.SpaceB\x03\xe0\x41\x03\x12\x1a\n\rfallback_text\x18\r \x01(\tB\x03\xe0\x41\x01\x12<\n\x0f\x61\x63tion_response\x18\x0e \x01(\x0b\x32\x1e.google.chat.v1.ActionResponseB\x03\xe0\x41\x04\x12\x1a\n\rargument_text\x18\x0f \x01(\tB\x03\xe0\x41\x03\x12\x38\n\rslash_command\x18\x11 \x01(\x0b\x32\x1c.google.chat.v1.SlashCommandB\x03\xe0\x41\x03\x12\x33\n\nattachment\x18\x12 \x03(\x0b\x32\x1a.google.chat.v1.AttachmentB\x03\xe0\x41\x01\x12\x34\n\x0bmatched_url\x18\x14 \x01(\x0b\x32\x1a.google.chat.v1.MatchedUrlB\x03\xe0\x41\x03\x12\x19\n\x0cthread_reply\x18\x19 \x01(\x08\x42\x03\xe0\x41\x03\x12\x13\n\x06silent\x18. \x01(\x08\x42\x03\xe0\x41\x03\x12\'\n\x1a\x63lient_assigned_message_id\x18 \x01(\tB\x03\xe0\x41\x01\x12K\n\x18\x65moji_reaction_summaries\x18! \x03(\x0b\x32$.google.chat.v1.EmojiReactionSummaryB\x03\xe0\x41\x03\x12<\n\x16private_message_viewer\x18$ \x01(\x0b\x32\x14.google.chat.v1.UserB\x06\xe0\x41\x05\xe0\x41\x01\x12@\n\x11\x64\x65letion_metadata\x18& \x01(\x0b\x32 .google.chat.v1.DeletionMetadataB\x03\xe0\x41\x03\x12K\n\x17quoted_message_metadata\x18\' \x01(\x0b\x32%.google.chat.v1.QuotedMessageMetadataB\x03\xe0\x41\x01\x12\x37\n\rattached_gifs\x18* \x03(\x0b\x32\x1b.google.chat.v1.AttachedGifB\x03\xe0\x41\x03\x12?\n\x11\x61\x63\x63\x65ssory_widgets\x18, \x03(\x0b\x32\x1f.google.chat.v1.AccessoryWidgetB\x03\xe0\x41\x01:C\xea\x41@\n\x1b\x63hat.googleapis.com/Message\x12!spaces/{space}/messages/{message}\"\x1f\n\x0b\x41ttachedGif\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x03\"\xa5\x04\n\x15QuotedMessageMetadata\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x63hat.googleapis.com/Message\x12\x39\n\x10last_update_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12H\n\nquote_type\x18\x04 \x01(\x0e\x32/.google.chat.v1.QuotedMessageMetadata.QuoteTypeB\x03\xe0\x41\x01\x12K\n\x17quoted_message_snapshot\x18\x05 \x01(\x0b\x32%.google.chat.v1.QuotedMessageSnapshotB\x03\xe0\x41\x03\x12\x42\n\x12\x66orwarded_metadata\x18\x06 \x01(\x0b\x32!.google.chat.v1.ForwardedMetadataB\x03\xe0\x41\x03\"?\n\tQuoteType\x12\x1a\n\x16QUOTE_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05REPLY\x10\x01\x12\x0b\n\x07\x46ORWARD\x10\x02:\x81\x01\xea\x41~\n)chat.googleapis.com/QuotedMessageMetadata\x12Qspaces/{space}/messages/{message}/quotedMessageMetadata/{quoted_message_metadata}\"\xc8\x01\n\x15QuotedMessageSnapshot\x12\x13\n\x06sender\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04text\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0e\x66ormatted_text\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x1a.google.chat.v1.AnnotationB\x03\xe0\x41\x03\x12\x34\n\x0b\x61ttachments\x18\x05 \x03(\x0b\x32\x1a.google.chat.v1.AttachmentB\x03\xe0\x41\x03\"f\n\x11\x46orwardedMetadata\x12\x30\n\x05space\x18\x01 \x01(\tB!\xe0\x41\x03\xfa\x41\x1b\n\x19\x63hat.googleapis.com/Space\x12\x1f\n\x12space_display_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\"v\n\x06Thread\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x17\n\nthread_key\x18\x03 \x01(\tB\x03\xe0\x41\x01:@\xea\x41=\n\x1a\x63hat.googleapis.com/Thread\x12\x1fspaces/{space}/threads/{thread}\"\xd2\x04\n\x0e\x41\x63tionResponse\x12>\n\x04type\x18\x01 \x01(\x0e\x32+.google.chat.v1.ActionResponse.ResponseTypeB\x03\xe0\x41\x04\x12\x10\n\x03url\x18\x02 \x01(\tB\x03\xe0\x41\x04\x12\x38\n\rdialog_action\x18\x03 \x01(\x0b\x32\x1c.google.chat.v1.DialogActionB\x03\xe0\x41\x04\x12I\n\x0eupdated_widget\x18\x04 \x01(\x0b\x32,.google.chat.v1.ActionResponse.UpdatedWidgetB\x03\xe0\x41\x04\x1aR\n\x0eSelectionItems\x12@\n\x05items\x18\x01 \x03(\x0b\x32\x31.google.apps.card.v1.SelectionInput.SelectionItem\x1aw\n\rUpdatedWidget\x12\x44\n\x0bsuggestions\x18\x01 \x01(\x0b\x32-.google.chat.v1.ActionResponse.SelectionItemsH\x00\x12\x0e\n\x06widget\x18\x02 \x01(\tB\x10\n\x0eupdated_widget\"\x9b\x01\n\x0cResponseType\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bNEW_MESSAGE\x10\x01\x12\x12\n\x0eUPDATE_MESSAGE\x10\x02\x12\x1d\n\x19UPDATE_USER_MESSAGE_CARDS\x10\x06\x12\x12\n\x0eREQUEST_CONFIG\x10\x03\x12\n\n\x06\x44IALOG\x10\x04\x12\x11\n\rUPDATE_WIDGET\x10\x07\"S\n\x0f\x41\x63\x63\x65ssoryWidget\x12\x36\n\x0b\x62utton_list\x18\x01 \x01(\x0b\x32\x1f.google.apps.card.v1.ButtonListH\x00\x42\x08\n\x06\x61\x63tion\"F\n\x11GetMessageRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x63hat.googleapis.com/Message\"]\n\x14\x44\x65leteMessageRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x63hat.googleapis.com/Message\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\x97\x01\n\x14UpdateMessageRequest\x12-\n\x07message\x18\x01 \x01(\x0b\x32\x17.google.chat.v1.MessageB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x1a\n\rallow_missing\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\x88\x04\n\x14\x43reateMessageRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1b\x63hat.googleapis.com/Message\x12-\n\x07message\x18\x04 \x01(\x0b\x32\x17.google.chat.v1.MessageB\x03\xe0\x41\x02\x12\x19\n\nthread_key\x18\x06 \x01(\tB\x05\x18\x01\xe0\x41\x01\x12\x17\n\nrequest_id\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12Z\n\x14message_reply_option\x18\x08 \x01(\x0e\x32\x37.google.chat.v1.CreateMessageRequest.MessageReplyOptionB\x03\xe0\x41\x01\x12\x17\n\nmessage_id\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x62\n#create_message_notification_options\x18\n \x01(\x0b\x32\x30.google.chat.v1.CreateMessageNotificationOptionsB\x03\xe0\x41\x01\"\x7f\n\x12MessageReplyOption\x12$\n MESSAGE_REPLY_OPTION_UNSPECIFIED\x10\x00\x12(\n$REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD\x10\x01\x12\x19\n\x15REPLY_MESSAGE_OR_FAIL\x10\x02\"\xf2\x01\n CreateMessageNotificationOptions\x12\\\n\x11notification_type\x18\x01 \x01(\x0e\x32\x41.google.chat.v1.CreateMessageNotificationOptions.NotificationType\"p\n\x10NotificationType\x12\x1a\n\x16NOTIFICATION_TYPE_NONE\x10\x00\x12\"\n\x1eNOTIFICATION_TYPE_FORCE_NOTIFY\x10\x02\x12\x1c\n\x18NOTIFICATION_TYPE_SILENT\x10\x03\"\xc2\x01\n\x13ListMessagesRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1b\x63hat.googleapis.com/Message\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\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0cshow_deleted\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\"Z\n\x14ListMessagesResponse\x12)\n\x08messages\x18\x01 \x03(\x0b\x32\x17.google.chat.v1.Message\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x81\x01\n\x0c\x44ialogAction\x12-\n\x06\x64ialog\x18\x01 \x01(\x0b\x32\x16.google.chat.v1.DialogB\x03\xe0\x41\x04H\x00\x12\x38\n\raction_status\x18\x02 \x01(\x0b\x32\x1c.google.chat.v1.ActionStatusB\x03\xe0\x41\x04\x42\x08\n\x06\x61\x63tion\"6\n\x06\x44ialog\x12,\n\x04\x62ody\x18\x01 \x01(\x0b\x32\x19.google.apps.card.v1.CardB\x03\xe0\x41\x04\"F\n\nCardWithId\x12\x0f\n\x07\x63\x61rd_id\x18\x01 \x01(\t\x12\'\n\x04\x63\x61rd\x18\x02 \x01(\x0b\x32\x19.google.apps.card.v1.Card\"\xef\x02\n\x15SearchMessagesRequest\x12\x31\n\x06parent\x18\x01 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\n\x19\x63hat.googleapis.com/Space\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12K\n\x04view\x18\x07 \x01(\x0e\x32\x38.google.chat.v1.SearchMessagesRequest.SearchMessagesViewB\x03\xe0\x41\x01\"y\n\x12SearchMessagesView\x12$\n SEARCH_MESSAGES_VIEW_UNSPECIFIED\x10\x00\x12\x1e\n\x1aSEARCH_MESSAGES_VIEW_BASIC\x10\x01\x12\x1d\n\x19SEARCH_MESSAGES_VIEW_FULL\x10\x02\"g\n\x16SearchMessagesResponse\x12\x34\n\x07results\x18\x01 \x03(\x0b\x32#.google.chat.v1.SearchMessageResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xad\x01\n\x13SearchMessageResult\x12(\n\x07message\x18\x01 \x01(\x0b\x32\x17.google.chat.v1.Message\x12\x11\n\x04read\x18\x03 \x01(\x08H\x00\x88\x01\x01\x12P\n\x12space_mute_setting\x18\x04 \x01(\x0e\x32\x34.google.chat.v1.SpaceNotificationSetting.MuteSettingB\x07\n\x05_readB\xa5\x01\n\x12\x63om.google.chat.v1B\x0cMessageProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xa2\x02\x0b\x44YNAPIProto\xaa\x02\x13Google.Apps.Chat.V1\xca\x02\x13Google\\Apps\\Chat\\V1\xea\x02\x16Google::Apps::Chat::V1b\x06proto3" +descriptor_data = "\n\x1cgoogle/chat/v1/message.proto\x12\x0egoogle.chat.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/apps/card/v1/card.proto\x1a\"google/chat/v1/action_status.proto\x1a\x1fgoogle/chat/v1/annotation.proto\x1a\x1fgoogle/chat/v1/attachment.proto\x1a%google/chat/v1/contextual_addon.proto\x1a&google/chat/v1/deletion_metadata.proto\x1a\"google/chat/v1/markup_syntax.proto\x1a google/chat/v1/matched_url.proto\x1a\x1dgoogle/chat/v1/reaction.proto\x1a\"google/chat/v1/slash_command.proto\x1a\x1agoogle/chat/v1/space.proto\x1a/google/chat/v1/space_notification_setting.proto\x1a\x19google/chat/v1/user.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa3\x0b\n\x07Message\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12)\n\x06sender\x18\x02 \x01(\x0b\x32\x14.google.chat.v1.UserB\x03\xe0\x41\x03\x12\x37\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x06\xe0\x41\x05\xe0\x41\x01\x12\x39\n\x10last_update_time\x18\x17 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x1a \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04text\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x66ormatted_text\x18+ \x01(\tB\x03\xe0\x41\x03\x12=\n\x05\x63\x61rds\x18\x05 \x03(\x0b\x32*.google.chat.v1.ContextualAddOnMarkup.CardB\x02\x18\x01\x12\x31\n\x08\x63\x61rds_v2\x18\x16 \x03(\x0b\x32\x1a.google.chat.v1.CardWithIdB\x03\xe0\x41\x01\x12\x34\n\x0b\x61nnotations\x18\n \x03(\x0b\x32\x1a.google.chat.v1.AnnotationB\x03\xe0\x41\x03\x12&\n\x06thread\x18\x0b \x01(\x0b\x32\x16.google.chat.v1.Thread\x12)\n\x05space\x18\x0c \x01(\x0b\x32\x15.google.chat.v1.SpaceB\x03\xe0\x41\x03\x12\x1a\n\rfallback_text\x18\r \x01(\tB\x03\xe0\x41\x01\x12<\n\x0f\x61\x63tion_response\x18\x0e \x01(\x0b\x32\x1e.google.chat.v1.ActionResponseB\x03\xe0\x41\x04\x12\x1a\n\rargument_text\x18\x0f \x01(\tB\x03\xe0\x41\x03\x12\x38\n\rslash_command\x18\x11 \x01(\x0b\x32\x1c.google.chat.v1.SlashCommandB\x03\xe0\x41\x03\x12\x33\n\nattachment\x18\x12 \x03(\x0b\x32\x1a.google.chat.v1.AttachmentB\x03\xe0\x41\x01\x12\x34\n\x0bmatched_url\x18\x14 \x01(\x0b\x32\x1a.google.chat.v1.MatchedUrlB\x03\xe0\x41\x03\x12\x19\n\x0cthread_reply\x18\x19 \x01(\x08\x42\x03\xe0\x41\x03\x12\x13\n\x06silent\x18. \x01(\x08\x42\x03\xe0\x41\x03\x12\'\n\x1a\x63lient_assigned_message_id\x18 \x01(\tB\x03\xe0\x41\x01\x12K\n\x18\x65moji_reaction_summaries\x18! \x03(\x0b\x32$.google.chat.v1.EmojiReactionSummaryB\x03\xe0\x41\x03\x12<\n\x16private_message_viewer\x18$ \x01(\x0b\x32\x14.google.chat.v1.UserB\x06\xe0\x41\x05\xe0\x41\x01\x12@\n\x11\x64\x65letion_metadata\x18& \x01(\x0b\x32 .google.chat.v1.DeletionMetadataB\x03\xe0\x41\x03\x12K\n\x17quoted_message_metadata\x18\' \x01(\x0b\x32%.google.chat.v1.QuotedMessageMetadataB\x03\xe0\x41\x01\x12\x37\n\rattached_gifs\x18* \x03(\x0b\x32\x1b.google.chat.v1.AttachedGifB\x03\xe0\x41\x03\x12?\n\x11\x61\x63\x63\x65ssory_widgets\x18, \x03(\x0b\x32\x1f.google.chat.v1.AccessoryWidgetB\x03\xe0\x41\x01\x12\x38\n\rmarkup_syntax\x18/ \x01(\x0e\x32\x1c.google.chat.v1.MarkupSyntaxB\x03\xe0\x41\x01:C\xea\x41@\n\x1b\x63hat.googleapis.com/Message\x12!spaces/{space}/messages/{message}\"\x1f\n\x0b\x41ttachedGif\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x03\"\xa5\x04\n\x15QuotedMessageMetadata\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x63hat.googleapis.com/Message\x12\x39\n\x10last_update_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12H\n\nquote_type\x18\x04 \x01(\x0e\x32/.google.chat.v1.QuotedMessageMetadata.QuoteTypeB\x03\xe0\x41\x01\x12K\n\x17quoted_message_snapshot\x18\x05 \x01(\x0b\x32%.google.chat.v1.QuotedMessageSnapshotB\x03\xe0\x41\x03\x12\x42\n\x12\x66orwarded_metadata\x18\x06 \x01(\x0b\x32!.google.chat.v1.ForwardedMetadataB\x03\xe0\x41\x03\"?\n\tQuoteType\x12\x1a\n\x16QUOTE_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05REPLY\x10\x01\x12\x0b\n\x07\x46ORWARD\x10\x02:\x81\x01\xea\x41~\n)chat.googleapis.com/QuotedMessageMetadata\x12Qspaces/{space}/messages/{message}/quotedMessageMetadata/{quoted_message_metadata}\"\xc8\x01\n\x15QuotedMessageSnapshot\x12\x13\n\x06sender\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04text\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0e\x66ormatted_text\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x1a.google.chat.v1.AnnotationB\x03\xe0\x41\x03\x12\x34\n\x0b\x61ttachments\x18\x05 \x03(\x0b\x32\x1a.google.chat.v1.AttachmentB\x03\xe0\x41\x03\"f\n\x11\x46orwardedMetadata\x12\x30\n\x05space\x18\x01 \x01(\tB!\xe0\x41\x03\xfa\x41\x1b\n\x19\x63hat.googleapis.com/Space\x12\x1f\n\x12space_display_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\"v\n\x06Thread\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x17\n\nthread_key\x18\x03 \x01(\tB\x03\xe0\x41\x01:@\xea\x41=\n\x1a\x63hat.googleapis.com/Thread\x12\x1fspaces/{space}/threads/{thread}\"\xd2\x04\n\x0e\x41\x63tionResponse\x12>\n\x04type\x18\x01 \x01(\x0e\x32+.google.chat.v1.ActionResponse.ResponseTypeB\x03\xe0\x41\x04\x12\x10\n\x03url\x18\x02 \x01(\tB\x03\xe0\x41\x04\x12\x38\n\rdialog_action\x18\x03 \x01(\x0b\x32\x1c.google.chat.v1.DialogActionB\x03\xe0\x41\x04\x12I\n\x0eupdated_widget\x18\x04 \x01(\x0b\x32,.google.chat.v1.ActionResponse.UpdatedWidgetB\x03\xe0\x41\x04\x1aR\n\x0eSelectionItems\x12@\n\x05items\x18\x01 \x03(\x0b\x32\x31.google.apps.card.v1.SelectionInput.SelectionItem\x1aw\n\rUpdatedWidget\x12\x44\n\x0bsuggestions\x18\x01 \x01(\x0b\x32-.google.chat.v1.ActionResponse.SelectionItemsH\x00\x12\x0e\n\x06widget\x18\x02 \x01(\tB\x10\n\x0eupdated_widget\"\x9b\x01\n\x0cResponseType\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bNEW_MESSAGE\x10\x01\x12\x12\n\x0eUPDATE_MESSAGE\x10\x02\x12\x1d\n\x19UPDATE_USER_MESSAGE_CARDS\x10\x06\x12\x12\n\x0eREQUEST_CONFIG\x10\x03\x12\n\n\x06\x44IALOG\x10\x04\x12\x11\n\rUPDATE_WIDGET\x10\x07\"S\n\x0f\x41\x63\x63\x65ssoryWidget\x12\x36\n\x0b\x62utton_list\x18\x01 \x01(\x0b\x32\x1f.google.apps.card.v1.ButtonListH\x00\x42\x08\n\x06\x61\x63tion\"\x80\x01\n\x11GetMessageRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x63hat.googleapis.com/Message\x12\x38\n\rmarkup_syntax\x18\x03 \x01(\x0e\x32\x1c.google.chat.v1.MarkupSyntaxB\x03\xe0\x41\x01\"]\n\x14\x44\x65leteMessageRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x63hat.googleapis.com/Message\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\x97\x01\n\x14UpdateMessageRequest\x12-\n\x07message\x18\x01 \x01(\x0b\x32\x17.google.chat.v1.MessageB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x1a\n\rallow_missing\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\x88\x04\n\x14\x43reateMessageRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1b\x63hat.googleapis.com/Message\x12-\n\x07message\x18\x04 \x01(\x0b\x32\x17.google.chat.v1.MessageB\x03\xe0\x41\x02\x12\x19\n\nthread_key\x18\x06 \x01(\tB\x05\x18\x01\xe0\x41\x01\x12\x17\n\nrequest_id\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12Z\n\x14message_reply_option\x18\x08 \x01(\x0e\x32\x37.google.chat.v1.CreateMessageRequest.MessageReplyOptionB\x03\xe0\x41\x01\x12\x17\n\nmessage_id\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x62\n#create_message_notification_options\x18\n \x01(\x0b\x32\x30.google.chat.v1.CreateMessageNotificationOptionsB\x03\xe0\x41\x01\"\x7f\n\x12MessageReplyOption\x12$\n MESSAGE_REPLY_OPTION_UNSPECIFIED\x10\x00\x12(\n$REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD\x10\x01\x12\x19\n\x15REPLY_MESSAGE_OR_FAIL\x10\x02\"\xf2\x01\n CreateMessageNotificationOptions\x12\\\n\x11notification_type\x18\x01 \x01(\x0e\x32\x41.google.chat.v1.CreateMessageNotificationOptions.NotificationType\"p\n\x10NotificationType\x12\x1a\n\x16NOTIFICATION_TYPE_NONE\x10\x00\x12\"\n\x1eNOTIFICATION_TYPE_FORCE_NOTIFY\x10\x02\x12\x1c\n\x18NOTIFICATION_TYPE_SILENT\x10\x03\"\xfc\x01\n\x13ListMessagesRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1b\x63hat.googleapis.com/Message\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\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0cshow_deleted\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\x12\x38\n\rmarkup_syntax\x18\t \x01(\x0e\x32\x1c.google.chat.v1.MarkupSyntaxB\x03\xe0\x41\x01\"Z\n\x14ListMessagesResponse\x12)\n\x08messages\x18\x01 \x03(\x0b\x32\x17.google.chat.v1.Message\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x81\x01\n\x0c\x44ialogAction\x12-\n\x06\x64ialog\x18\x01 \x01(\x0b\x32\x16.google.chat.v1.DialogB\x03\xe0\x41\x04H\x00\x12\x38\n\raction_status\x18\x02 \x01(\x0b\x32\x1c.google.chat.v1.ActionStatusB\x03\xe0\x41\x04\x42\x08\n\x06\x61\x63tion\"6\n\x06\x44ialog\x12,\n\x04\x62ody\x18\x01 \x01(\x0b\x32\x19.google.apps.card.v1.CardB\x03\xe0\x41\x04\"F\n\nCardWithId\x12\x0f\n\x07\x63\x61rd_id\x18\x01 \x01(\t\x12\'\n\x04\x63\x61rd\x18\x02 \x01(\x0b\x32\x19.google.apps.card.v1.Card\"\xa9\x03\n\x15SearchMessagesRequest\x12\x31\n\x06parent\x18\x01 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\n\x19\x63hat.googleapis.com/Space\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x38\n\rmarkup_syntax\x18\x06 \x01(\x0e\x32\x1c.google.chat.v1.MarkupSyntaxB\x03\xe0\x41\x01\x12K\n\x04view\x18\x07 \x01(\x0e\x32\x38.google.chat.v1.SearchMessagesRequest.SearchMessagesViewB\x03\xe0\x41\x01\"y\n\x12SearchMessagesView\x12$\n SEARCH_MESSAGES_VIEW_UNSPECIFIED\x10\x00\x12\x1e\n\x1aSEARCH_MESSAGES_VIEW_BASIC\x10\x01\x12\x1d\n\x19SEARCH_MESSAGES_VIEW_FULL\x10\x02\"g\n\x16SearchMessagesResponse\x12\x34\n\x07results\x18\x01 \x03(\x0b\x32#.google.chat.v1.SearchMessageResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xad\x01\n\x13SearchMessageResult\x12(\n\x07message\x18\x01 \x01(\x0b\x32\x17.google.chat.v1.Message\x12\x11\n\x04read\x18\x03 \x01(\x08H\x00\x88\x01\x01\x12P\n\x12space_mute_setting\x18\x04 \x01(\x0e\x32\x34.google.chat.v1.SpaceNotificationSetting.MuteSettingB\x07\n\x05_readB\xa5\x01\n\x12\x63om.google.chat.v1B\x0cMessageProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xa2\x02\x0b\x44YNAPIProto\xaa\x02\x13Google.Apps.Chat.V1\xca\x02\x13Google\\Apps\\Chat\\V1\xea\x02\x16Google::Apps::Chat::V1b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-apps-chat-v1/proto_docs/google/chat/v1/markup_syntax.rb b/google-apps-chat-v1/proto_docs/google/chat/v1/markup_syntax.rb new file mode 100644 index 000000000000..8a09752be5ff --- /dev/null +++ b/google-apps-chat-v1/proto_docs/google/chat/v1/markup_syntax.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Apps + module Chat + module V1 + # Specifies the markup syntax used to format the Chat message text. + # Applies to the `text` field of the `Message` resource. + module MarkupSyntax + # Represents the unspecified value. + MARKUP_SYNTAX_UNSPECIFIED = 0 + + # Uses Google Chat's markup syntax. + # See + # https://developers.google.com/workspace/chat/format-messages#format-texts + # for more information. + MARKUP_SYNTAX_CHAT = 1 + + # Uses Markdown syntax. This syntax is based on the + # [CommonMark](https://commonmark.org/help/) specification, with additional + # extensions. + # See + # https://developers.google.com/workspace/chat/format-messages#format-texts + # for more information. + MARKUP_SYNTAX_MARKDOWN = 2 + end + end + end + end +end diff --git a/google-apps-chat-v1/proto_docs/google/chat/v1/message.rb b/google-apps-chat-v1/proto_docs/google/chat/v1/message.rb index da4f9fe0fbb9..9fec6873aceb 100644 --- a/google-apps-chat-v1/proto_docs/google/chat/v1/message.rb +++ b/google-apps-chat-v1/proto_docs/google/chat/v1/message.rb @@ -116,9 +116,14 @@ module V1 # Optional. An array of # [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). # - # Only Chat apps can create cards. If your Chat app [authenticates as a + # Chat apps can create cards with [app + # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + # As part of the [Developer Preview + # Program](https://developers.google.com/workspace/preview), if your Chat app + # [authenticates as a # user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - # the messages can't contain cards. + # it can create card messages. If your Chat app is not part of Developer + # Preview Program, it can't create cards with user authentication. # # To learn how to create a message that contains cards, see [Send a # message](https://developers.google.com/workspace/chat/create-messages). @@ -231,6 +236,10 @@ module V1 # Creating a message with accessory widgets requires [app # authentication] # (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + # @!attribute [rw] markup_syntax + # @return [::Google::Apps::Chat::V1::MarkupSyntax] + # Optional. Specifies how the server interprets the message `text` field + # content. class Message include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -471,6 +480,10 @@ class AccessoryWidget # `clientAssignedMessageId` field for `{message}`. For details, see [Name a # message] # (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). + # @!attribute [rw] markup_syntax + # @return [::Google::Apps::Chat::V1::MarkupSyntax] + # Optional. Specifies the desired output syntax for the Chat message + # `formatted_text` field. class GetMessageRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -733,6 +746,10 @@ module NotificationType # Optional. Whether to include deleted messages. Deleted messages include # deleted time and metadata about their deletion, but message content is # unavailable. + # @!attribute [rw] markup_syntax + # @return [::Google::Apps::Chat::V1::MarkupSyntax] + # Optional. Specifies the desired output syntax for the Chat message + # `formatted_text` field. class ListMessagesRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -785,9 +802,17 @@ class Dialog # [card](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards) # in a Google Chat message. # - # Only Chat apps can create cards. If your Chat app [authenticates as a + # Chat apps can create cards with [app + # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + # As part of the [Developer Preview + # Program](https://developers.google.com/workspace/preview), if your Chat app + # [authenticates as a # user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - # the message can't contain cards. + # it can create card messages. If your Chat app is not part of Developer + # Preview Program, it can't create cards with user authentication. + # + # To learn how to create a message that contains cards, see [Send a + # message](https://developers.google.com/workspace/chat/create-messages). # # [Card builder](https://addons.gsuite.google.com/uikit/builder) # @!attribute [rw] card_id @@ -970,6 +995,10 @@ class CardWithId # The default ordering is `create_time desc`. Only a single order per query # (`create_time` or `relevance`) is supported. Only descending order (`desc`) # is supported, and it must be specified after the order attribute. + # @!attribute [rw] markup_syntax + # @return [::Google::Apps::Chat::V1::MarkupSyntax] + # Optional. Specifies the desired output syntax for the Chat message + # `formatted_text` field. # @!attribute [rw] view # @return [::Google::Apps::Chat::V1::SearchMessagesRequest::SearchMessagesView] # Optional. Specifies what kind of search results view to return. The default diff --git a/google-apps-chat-v1/proto_docs/google/chat/v1/space.rb b/google-apps-chat-v1/proto_docs/google/chat/v1/space.rb index 55c68af5db40..114f60e8fd6f 100644 --- a/google-apps-chat-v1/proto_docs/google/chat/v1/space.rb +++ b/google-apps-chat-v1/proto_docs/google/chat/v1/space.rb @@ -911,6 +911,7 @@ class UpdateSpaceRequest # # - `create_time DESC` # - `relevance DESC` + # [Developer Preview](https://developers.google.com/workspace/preview). class SearchSpacesRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods diff --git a/google-apps-chat-v1/test/google/apps/chat/v1/chat_service_rest_test.rb b/google-apps-chat-v1/test/google/apps/chat/v1/chat_service_rest_test.rb index 557e4c6c19a4..bfe7d101292e 100644 --- a/google-apps-chat-v1/test/google/apps/chat/v1/chat_service_rest_test.rb +++ b/google-apps-chat-v1/test/google/apps/chat/v1/chat_service_rest_test.rb @@ -152,6 +152,7 @@ def test_list_messages filter = "hello world" order_by = "hello world" show_deleted = true + markup_syntax = :MARKUP_SYNTAX_UNSPECIFIED list_messages_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| assert options.metadata.key? :"x-goog-api-client" @@ -167,27 +168,27 @@ def test_list_messages end # Use hash object - c.list_messages({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, show_deleted: show_deleted }) do |_result, response| + c.list_messages({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, show_deleted: show_deleted, markup_syntax: markup_syntax }) do |_result, response| assert_equal http_response, response.underlying_op end # Use named arguments - c.list_messages parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, show_deleted: show_deleted do |_result, response| + c.list_messages parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, show_deleted: show_deleted, markup_syntax: markup_syntax do |_result, response| assert_equal http_response, response.underlying_op end # Use protobuf object - c.list_messages ::Google::Apps::Chat::V1::ListMessagesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, show_deleted: show_deleted) do |_result, response| + c.list_messages ::Google::Apps::Chat::V1::ListMessagesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, show_deleted: show_deleted, markup_syntax: markup_syntax) do |_result, response| assert_equal http_response, response.underlying_op end # Use hash object with options - c.list_messages({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, show_deleted: show_deleted }, call_options) do |_result, response| + c.list_messages({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, show_deleted: show_deleted, markup_syntax: markup_syntax }, call_options) do |_result, response| assert_equal http_response, response.underlying_op end # Use protobuf object with options - c.list_messages(::Google::Apps::Chat::V1::ListMessagesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, show_deleted: show_deleted), call_options) do |_result, response| + c.list_messages(::Google::Apps::Chat::V1::ListMessagesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, show_deleted: show_deleted, markup_syntax: markup_syntax), call_options) do |_result, response| assert_equal http_response, response.underlying_op end @@ -321,6 +322,7 @@ def test_get_message # Create request parameters for a unary method. name = "hello world" + markup_syntax = :MARKUP_SYNTAX_UNSPECIFIED get_message_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| assert options.metadata.key? :"x-goog-api-client" @@ -336,27 +338,27 @@ def test_get_message end # Use hash object - c.get_message({ name: name }) do |_result, response| + c.get_message({ name: name, markup_syntax: markup_syntax }) do |_result, response| assert_equal http_response, response.underlying_op end # Use named arguments - c.get_message name: name do |_result, response| + c.get_message name: name, markup_syntax: markup_syntax do |_result, response| assert_equal http_response, response.underlying_op end # Use protobuf object - c.get_message ::Google::Apps::Chat::V1::GetMessageRequest.new(name: name) do |_result, response| + c.get_message ::Google::Apps::Chat::V1::GetMessageRequest.new(name: name, markup_syntax: markup_syntax) do |_result, response| assert_equal http_response, response.underlying_op end # Use hash object with options - c.get_message({ name: name }, call_options) do |_result, response| + c.get_message({ name: name, markup_syntax: markup_syntax }, call_options) do |_result, response| assert_equal http_response, response.underlying_op end # Use protobuf object with options - c.get_message(::Google::Apps::Chat::V1::GetMessageRequest.new(name: name), call_options) do |_result, response| + c.get_message(::Google::Apps::Chat::V1::GetMessageRequest.new(name: name, markup_syntax: markup_syntax), call_options) do |_result, response| assert_equal http_response, response.underlying_op end @@ -490,6 +492,7 @@ def test_search_messages page_size = 42 page_token = "hello world" order_by = "hello world" + markup_syntax = :MARKUP_SYNTAX_UNSPECIFIED view = :SEARCH_MESSAGES_VIEW_UNSPECIFIED search_messages_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| @@ -506,27 +509,27 @@ def test_search_messages end # Use hash object - c.search_messages({ parent: parent, filter: filter, page_size: page_size, page_token: page_token, order_by: order_by, view: view }) do |_result, response| + c.search_messages({ parent: parent, filter: filter, page_size: page_size, page_token: page_token, order_by: order_by, markup_syntax: markup_syntax, view: view }) do |_result, response| assert_equal http_response, response.underlying_op end # Use named arguments - c.search_messages parent: parent, filter: filter, page_size: page_size, page_token: page_token, order_by: order_by, view: view do |_result, response| + c.search_messages parent: parent, filter: filter, page_size: page_size, page_token: page_token, order_by: order_by, markup_syntax: markup_syntax, view: view do |_result, response| assert_equal http_response, response.underlying_op end # Use protobuf object - c.search_messages ::Google::Apps::Chat::V1::SearchMessagesRequest.new(parent: parent, filter: filter, page_size: page_size, page_token: page_token, order_by: order_by, view: view) do |_result, response| + c.search_messages ::Google::Apps::Chat::V1::SearchMessagesRequest.new(parent: parent, filter: filter, page_size: page_size, page_token: page_token, order_by: order_by, markup_syntax: markup_syntax, view: view) do |_result, response| assert_equal http_response, response.underlying_op end # Use hash object with options - c.search_messages({ parent: parent, filter: filter, page_size: page_size, page_token: page_token, order_by: order_by, view: view }, call_options) do |_result, response| + c.search_messages({ parent: parent, filter: filter, page_size: page_size, page_token: page_token, order_by: order_by, markup_syntax: markup_syntax, view: view }, call_options) do |_result, response| assert_equal http_response, response.underlying_op end # Use protobuf object with options - c.search_messages(::Google::Apps::Chat::V1::SearchMessagesRequest.new(parent: parent, filter: filter, page_size: page_size, page_token: page_token, order_by: order_by, view: view), call_options) do |_result, response| + c.search_messages(::Google::Apps::Chat::V1::SearchMessagesRequest.new(parent: parent, filter: filter, page_size: page_size, page_token: page_token, order_by: order_by, markup_syntax: markup_syntax, view: view), call_options) do |_result, response| assert_equal http_response, response.underlying_op end diff --git a/google-apps-chat-v1/test/google/apps/chat/v1/chat_service_test.rb b/google-apps-chat-v1/test/google/apps/chat/v1/chat_service_test.rb index 77de9bff46b0..ce2e6d43b01a 100644 --- a/google-apps-chat-v1/test/google/apps/chat/v1/chat_service_test.rb +++ b/google-apps-chat-v1/test/google/apps/chat/v1/chat_service_test.rb @@ -147,6 +147,7 @@ def test_list_messages filter = "hello world" order_by = "hello world" show_deleted = true + markup_syntax = :MARKUP_SYNTAX_UNSPECIFIED list_messages_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| assert_equal :list_messages, name @@ -157,6 +158,7 @@ def test_list_messages assert_equal "hello world", request["filter"] assert_equal "hello world", request["order_by"] assert_equal true, request["show_deleted"] + assert_equal :MARKUP_SYNTAX_UNSPECIFIED, request["markup_syntax"] refute_nil options end @@ -167,35 +169,35 @@ def test_list_messages end # Use hash object - c.list_messages({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, show_deleted: show_deleted }) do |response, operation| + c.list_messages({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, show_deleted: show_deleted, markup_syntax: markup_syntax }) do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation end # Use named arguments - c.list_messages parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, show_deleted: show_deleted do |response, operation| + c.list_messages parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, show_deleted: show_deleted, markup_syntax: markup_syntax do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation end # Use protobuf object - c.list_messages ::Google::Apps::Chat::V1::ListMessagesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, show_deleted: show_deleted) do |response, operation| + c.list_messages ::Google::Apps::Chat::V1::ListMessagesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, show_deleted: show_deleted, markup_syntax: markup_syntax) do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation end # Use hash object with options - c.list_messages({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, show_deleted: show_deleted }, grpc_options) do |response, operation| + c.list_messages({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, show_deleted: show_deleted, markup_syntax: markup_syntax }, grpc_options) do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation end # Use protobuf object with options - c.list_messages(::Google::Apps::Chat::V1::ListMessagesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, show_deleted: show_deleted), grpc_options) do |response, operation| + c.list_messages(::Google::Apps::Chat::V1::ListMessagesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by, show_deleted: show_deleted, markup_syntax: markup_syntax), grpc_options) do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation @@ -350,11 +352,13 @@ def test_get_message # Create request parameters for a unary method. name = "hello world" + markup_syntax = :MARKUP_SYNTAX_UNSPECIFIED get_message_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| assert_equal :get_message, name assert_kind_of ::Google::Apps::Chat::V1::GetMessageRequest, request assert_equal "hello world", request["name"] + assert_equal :MARKUP_SYNTAX_UNSPECIFIED, request["markup_syntax"] refute_nil options end @@ -365,31 +369,31 @@ def test_get_message end # Use hash object - c.get_message({ name: name }) do |response, operation| + c.get_message({ name: name, markup_syntax: markup_syntax }) do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end # Use named arguments - c.get_message name: name do |response, operation| + c.get_message name: name, markup_syntax: markup_syntax do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end # Use protobuf object - c.get_message ::Google::Apps::Chat::V1::GetMessageRequest.new(name: name) do |response, operation| + c.get_message ::Google::Apps::Chat::V1::GetMessageRequest.new(name: name, markup_syntax: markup_syntax) do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end # Use hash object with options - c.get_message({ name: name }, grpc_options) do |response, operation| + c.get_message({ name: name, markup_syntax: markup_syntax }, grpc_options) do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end # Use protobuf object with options - c.get_message(::Google::Apps::Chat::V1::GetMessageRequest.new(name: name), grpc_options) do |response, operation| + c.get_message(::Google::Apps::Chat::V1::GetMessageRequest.new(name: name, markup_syntax: markup_syntax), grpc_options) do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end @@ -534,6 +538,7 @@ def test_search_messages page_size = 42 page_token = "hello world" order_by = "hello world" + markup_syntax = :MARKUP_SYNTAX_UNSPECIFIED view = :SEARCH_MESSAGES_VIEW_UNSPECIFIED search_messages_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| @@ -544,6 +549,7 @@ def test_search_messages assert_equal 42, request["page_size"] assert_equal "hello world", request["page_token"] assert_equal "hello world", request["order_by"] + assert_equal :MARKUP_SYNTAX_UNSPECIFIED, request["markup_syntax"] assert_equal :SEARCH_MESSAGES_VIEW_UNSPECIFIED, request["view"] refute_nil options end @@ -555,35 +561,35 @@ def test_search_messages end # Use hash object - c.search_messages({ parent: parent, filter: filter, page_size: page_size, page_token: page_token, order_by: order_by, view: view }) do |response, operation| + c.search_messages({ parent: parent, filter: filter, page_size: page_size, page_token: page_token, order_by: order_by, markup_syntax: markup_syntax, view: view }) do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation end # Use named arguments - c.search_messages parent: parent, filter: filter, page_size: page_size, page_token: page_token, order_by: order_by, view: view do |response, operation| + c.search_messages parent: parent, filter: filter, page_size: page_size, page_token: page_token, order_by: order_by, markup_syntax: markup_syntax, view: view do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation end # Use protobuf object - c.search_messages ::Google::Apps::Chat::V1::SearchMessagesRequest.new(parent: parent, filter: filter, page_size: page_size, page_token: page_token, order_by: order_by, view: view) do |response, operation| + c.search_messages ::Google::Apps::Chat::V1::SearchMessagesRequest.new(parent: parent, filter: filter, page_size: page_size, page_token: page_token, order_by: order_by, markup_syntax: markup_syntax, view: view) do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation end # Use hash object with options - c.search_messages({ parent: parent, filter: filter, page_size: page_size, page_token: page_token, order_by: order_by, view: view }, grpc_options) do |response, operation| + c.search_messages({ parent: parent, filter: filter, page_size: page_size, page_token: page_token, order_by: order_by, markup_syntax: markup_syntax, view: view }, grpc_options) do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation end # Use protobuf object with options - c.search_messages(::Google::Apps::Chat::V1::SearchMessagesRequest.new(parent: parent, filter: filter, page_size: page_size, page_token: page_token, order_by: order_by, view: view), grpc_options) do |response, operation| + c.search_messages(::Google::Apps::Chat::V1::SearchMessagesRequest.new(parent: parent, filter: filter, page_size: page_size, page_token: page_token, order_by: order_by, markup_syntax: markup_syntax, view: view), grpc_options) do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/reasoning_engine_pb.rb b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/reasoning_engine_pb.rb index 524958f6454e..335ac9a89148 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/reasoning_engine_pb.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/reasoning_engine_pb.rb @@ -13,7 +13,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n1google/cloud/aiplatform/v1/reasoning_engine.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/aiplatform/v1/encryption_spec.proto\x1a(google/cloud/aiplatform/v1/env_var.proto\x1a\x33google/cloud/aiplatform/v1/service_networking.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa6\x14\n\x13ReasoningEngineSpec\x12Z\n\x10source_code_spec\x18\x0b \x01(\x0b\x32>.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpecH\x00\x12W\n\x0e\x63ontainer_spec\x18\x0f \x01(\x0b\x32=.google.cloud.aiplatform.v1.ReasoningEngineSpec.ContainerSpecH\x00\x12!\n\x0fservice_account\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x01\x88\x01\x01\x12V\n\x0cpackage_spec\x18\x02 \x01(\x0b\x32;.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpecB\x03\xe0\x41\x01\x12\\\n\x0f\x64\x65ployment_spec\x18\x04 \x01(\x0b\x32>.google.cloud.aiplatform.v1.ReasoningEngineSpec.DeploymentSpecB\x03\xe0\x41\x01\x12\x33\n\rclass_methods\x18\x03 \x03(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12\x1c\n\x0f\x61gent_framework\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12X\n\ridentity_type\x18\x0c \x01(\x0e\x32<.google.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityTypeB\x03\xe0\x41\x01\x1a\x98\x01\n\x0bPackageSpec\x12\"\n\x15pickle_object_gcs_uri\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12%\n\x18\x64\x65pendency_files_gcs_uri\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12!\n\x14requirements_gcs_uri\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0epython_version\x18\x04 \x01(\tB\x03\xe0\x41\x01\x1a\xae\x04\n\x0e\x44\x65ploymentSpec\x12\x34\n\x03\x65nv\x18\x01 \x03(\x0b\x32\".google.cloud.aiplatform.v1.EnvVarB\x03\xe0\x41\x01\x12\x41\n\nsecret_env\x18\x02 \x03(\x0b\x32(.google.cloud.aiplatform.v1.SecretEnvVarB\x03\xe0\x41\x01\x12Q\n\x14psc_interface_config\x18\x04 \x01(\x0b\x32..google.cloud.aiplatform.v1.PscInterfaceConfigB\x03\xe0\x41\x01\x12\x1f\n\rmin_instances\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\x1f\n\rmax_instances\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12p\n\x0fresource_limits\x18\x07 \x03(\x0b\x32R.google.cloud.aiplatform.v1.ReasoningEngineSpec.DeploymentSpec.ResourceLimitsEntryB\x03\xe0\x41\x01\x12\'\n\x15\x63ontainer_concurrency\x18\x08 \x01(\x05\x42\x03\xe0\x41\x01H\x02\x88\x01\x01\x1a\x35\n\x13ResourceLimitsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x10\n\x0e_min_instancesB\x10\n\x0e_max_instancesB\x18\n\x16_container_concurrency\x1a\xdd\x08\n\x0eSourceCodeSpec\x12\x64\n\rinline_source\x18\x01 \x01(\x0b\x32K.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.InlineSourceH\x00\x12y\n\x18\x64\x65veloper_connect_source\x18\x03 \x01(\x0b\x32U.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSourceH\x00\x12`\n\x0bpython_spec\x18\x02 \x01(\x0b\x32I.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpecH\x01\x12\x63\n\nimage_spec\x18\x05 \x01(\x0b\x32H.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.ImageSpecB\x03\xe0\x41\x01H\x01\x1a.\n\x0cInlineSource\x12\x1e\n\x0esource_archive\x18\x01 \x01(\x0c\x42\x06\xe0\x41\x02\xe0\x41\x04\x1a\xaf\x01\n\tImageSpec\x12p\n\nbuild_args\x18\x01 \x03(\x0b\x32W.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.ImageSpec.BuildArgsEntryB\x03\xe0\x41\x01\x1a\x30\n\x0e\x42uildArgsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x99\x01\n\x16\x44\x65veloperConnectConfig\x12V\n\x13git_repository_link\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1developerconnect.googleapis.com/GitRepositoryLink\x12\x10\n\x03\x64ir\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08revision\x18\x03 \x01(\tB\x03\xe0\x41\x02\x1a\x84\x01\n\x16\x44\x65veloperConnectSource\x12j\n\x06\x63onfig\x18\x01 \x01(\x0b\x32U.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfigB\x03\xe0\x41\x02\x1a\x82\x01\n\nPythonSpec\x12\x14\n\x07version\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11\x65ntrypoint_module\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11\x65ntrypoint_object\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11requirements_file\x18\x04 \x01(\tB\x03\xe0\x41\x01\x42\x08\n\x06sourceB\x0f\n\rlanguage_spec\x1a\'\n\rContainerSpec\x12\x16\n\timage_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\"V\n\x0cIdentityType\x12\x1d\n\x19IDENTITY_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fSERVICE_ACCOUNT\x10\x02\x12\x12\n\x0e\x41GENT_IDENTITY\x10\x03\x42\x13\n\x11\x64\x65ployment_sourceB\x12\n\x10_service_account\"\xfb\x04\n\x0fReasoningEngine\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x42\n\x04spec\x18\x03 \x01(\x0b\x32/.google.cloud.aiplatform.v1.ReasoningEngineSpecB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x43\n\x0f\x65ncryption_spec\x18\x0b \x01(\x0b\x32*.google.cloud.aiplatform.v1.EncryptionSpec\x12G\n\x06labels\x18\x11 \x03(\x0b\x32\x37.google.cloud.aiplatform.v1.ReasoningEngine.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x9f\x01\xea\x41\x9b\x01\n)aiplatform.googleapis.com/ReasoningEngine\x12Kprojects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}*\x10reasoningEngines2\x0freasoningEngineB\xf4\x02\n\x1e\x63om.google.cloud.aiplatform.v1B\x14ReasoningEngineProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xaa\x02\x1aGoogle.Cloud.AIPlatform.V1\xca\x02\x1aGoogle\\Cloud\\AIPlatform\\V1\xea\x02\x1dGoogle::Cloud::AIPlatform::V1\xea\x41\x9e\x01\n1developerconnect.googleapis.com/GitRepositoryLink\x12iprojects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_link}b\x06proto3" +descriptor_data = "\n1google/cloud/aiplatform/v1/reasoning_engine.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/aiplatform/v1/encryption_spec.proto\x1a(google/cloud/aiplatform/v1/env_var.proto\x1a\x33google/cloud/aiplatform/v1/service_networking.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xbf\x15\n\x13ReasoningEngineSpec\x12Z\n\x10source_code_spec\x18\x0b \x01(\x0b\x32>.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpecH\x00\x12W\n\x0e\x63ontainer_spec\x18\x0f \x01(\x0b\x32=.google.cloud.aiplatform.v1.ReasoningEngineSpec.ContainerSpecH\x00\x12!\n\x0fservice_account\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x01\x88\x01\x01\x12V\n\x0cpackage_spec\x18\x02 \x01(\x0b\x32;.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpecB\x03\xe0\x41\x01\x12\\\n\x0f\x64\x65ployment_spec\x18\x04 \x01(\x0b\x32>.google.cloud.aiplatform.v1.ReasoningEngineSpec.DeploymentSpecB\x03\xe0\x41\x01\x12\x33\n\rclass_methods\x18\x03 \x03(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12\x1c\n\x0f\x61gent_framework\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12X\n\ridentity_type\x18\x0c \x01(\x0e\x32<.google.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityTypeB\x03\xe0\x41\x01\x12R\n\nbuild_spec\x18\x10 \x01(\x0b\x32\x39.google.cloud.aiplatform.v1.ReasoningEngineSpec.BuildSpecB\x03\xe0\x41\x01\x1a\x98\x01\n\x0bPackageSpec\x12\"\n\x15pickle_object_gcs_uri\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12%\n\x18\x64\x65pendency_files_gcs_uri\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12!\n\x14requirements_gcs_uri\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0epython_version\x18\x04 \x01(\tB\x03\xe0\x41\x01\x1a\xae\x04\n\x0e\x44\x65ploymentSpec\x12\x34\n\x03\x65nv\x18\x01 \x03(\x0b\x32\".google.cloud.aiplatform.v1.EnvVarB\x03\xe0\x41\x01\x12\x41\n\nsecret_env\x18\x02 \x03(\x0b\x32(.google.cloud.aiplatform.v1.SecretEnvVarB\x03\xe0\x41\x01\x12Q\n\x14psc_interface_config\x18\x04 \x01(\x0b\x32..google.cloud.aiplatform.v1.PscInterfaceConfigB\x03\xe0\x41\x01\x12\x1f\n\rmin_instances\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\x1f\n\rmax_instances\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12p\n\x0fresource_limits\x18\x07 \x03(\x0b\x32R.google.cloud.aiplatform.v1.ReasoningEngineSpec.DeploymentSpec.ResourceLimitsEntryB\x03\xe0\x41\x01\x12\'\n\x15\x63ontainer_concurrency\x18\x08 \x01(\x05\x42\x03\xe0\x41\x01H\x02\x88\x01\x01\x1a\x35\n\x13ResourceLimitsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x10\n\x0e_min_instancesB\x10\n\x0e_max_instancesB\x18\n\x16_container_concurrency\x1a\xdd\x08\n\x0eSourceCodeSpec\x12\x64\n\rinline_source\x18\x01 \x01(\x0b\x32K.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.InlineSourceH\x00\x12y\n\x18\x64\x65veloper_connect_source\x18\x03 \x01(\x0b\x32U.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSourceH\x00\x12`\n\x0bpython_spec\x18\x02 \x01(\x0b\x32I.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpecH\x01\x12\x63\n\nimage_spec\x18\x05 \x01(\x0b\x32H.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.ImageSpecB\x03\xe0\x41\x01H\x01\x1a.\n\x0cInlineSource\x12\x1e\n\x0esource_archive\x18\x01 \x01(\x0c\x42\x06\xe0\x41\x02\xe0\x41\x04\x1a\xaf\x01\n\tImageSpec\x12p\n\nbuild_args\x18\x01 \x03(\x0b\x32W.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.ImageSpec.BuildArgsEntryB\x03\xe0\x41\x01\x1a\x30\n\x0e\x42uildArgsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x99\x01\n\x16\x44\x65veloperConnectConfig\x12V\n\x13git_repository_link\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1developerconnect.googleapis.com/GitRepositoryLink\x12\x10\n\x03\x64ir\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08revision\x18\x03 \x01(\tB\x03\xe0\x41\x02\x1a\x84\x01\n\x16\x44\x65veloperConnectSource\x12j\n\x06\x63onfig\x18\x01 \x01(\x0b\x32U.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfigB\x03\xe0\x41\x02\x1a\x82\x01\n\nPythonSpec\x12\x14\n\x07version\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11\x65ntrypoint_module\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11\x65ntrypoint_object\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11requirements_file\x18\x04 \x01(\tB\x03\xe0\x41\x01\x42\x08\n\x06sourceB\x0f\n\rlanguage_spec\x1a\'\n\rContainerSpec\x12\x16\n\timage_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x1a\x43\n\tBuildSpec\x12\x18\n\x0bworker_pool\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0fservice_account\x18\x02 \x01(\tB\x03\xe0\x41\x01\"V\n\x0cIdentityType\x12\x1d\n\x19IDENTITY_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fSERVICE_ACCOUNT\x10\x02\x12\x12\n\x0e\x41GENT_IDENTITY\x10\x03\x42\x13\n\x11\x64\x65ployment_sourceB\x12\n\x10_service_account\"\xfb\x04\n\x0fReasoningEngine\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x42\n\x04spec\x18\x03 \x01(\x0b\x32/.google.cloud.aiplatform.v1.ReasoningEngineSpecB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x43\n\x0f\x65ncryption_spec\x18\x0b \x01(\x0b\x32*.google.cloud.aiplatform.v1.EncryptionSpec\x12G\n\x06labels\x18\x11 \x03(\x0b\x32\x37.google.cloud.aiplatform.v1.ReasoningEngine.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x9f\x01\xea\x41\x9b\x01\n)aiplatform.googleapis.com/ReasoningEngine\x12Kprojects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}*\x10reasoningEngines2\x0freasoningEngineB\xf4\x02\n\x1e\x63om.google.cloud.aiplatform.v1B\x14ReasoningEngineProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xaa\x02\x1aGoogle.Cloud.AIPlatform.V1\xca\x02\x1aGoogle\\Cloud\\AIPlatform\\V1\xea\x02\x1dGoogle::Cloud::AIPlatform::V1\xea\x41\x9e\x01\n1developerconnect.googleapis.com/GitRepositoryLink\x12iprojects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_link}b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) @@ -32,6 +32,7 @@ module V1 ReasoningEngineSpec::SourceCodeSpec::DeveloperConnectSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource").msgclass ReasoningEngineSpec::SourceCodeSpec::PythonSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec").msgclass ReasoningEngineSpec::ContainerSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ReasoningEngineSpec.ContainerSpec").msgclass + ReasoningEngineSpec::BuildSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ReasoningEngineSpec.BuildSpec").msgclass ReasoningEngineSpec::IdentityType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityType").enummodule ReasoningEngine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ReasoningEngine").msgclass end diff --git a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/reasoning_engine.rb b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/reasoning_engine.rb index 9b15cbb170b6..a72a1962c370 100644 --- a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/reasoning_engine.rb +++ b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/reasoning_engine.rb @@ -65,6 +65,9 @@ module V1 # specified, the `service_account` field will be used if set, otherwise the # default Vertex AI Reasoning Engine Service Agent in the project will be # used. + # @!attribute [rw] build_spec + # @return [::Google::Cloud::AIPlatform::V1::ReasoningEngineSpec::BuildSpec] + # Optional. Configuration for building container image. class ReasoningEngineSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -272,6 +275,28 @@ class ContainerSpec extend ::Google::Protobuf::MessageExts::ClassMethods end + # Specification for building container image. + # @!attribute [rw] worker_pool + # @return [::String] + # Optional. The resource name of the Cloud Build WorkerPool to use for + # the build. + # Format: + # `projects/{project}/locations/{location}/workerPools/{worker_pool}` + # @!attribute [rw] service_account + # @return [::String] + # Optional. The service account that Cloud Build uses to run the build. + # + # This field is only applicable when `worker_pool` is specified (i.e., for + # custom worker pools). If `worker_pool` is not specified, this field is + # ignored and the build runs using the Google-managed service agent. + # + # Format: `projects/{project}/serviceAccounts/{service_account}` or + # `{service_account}@{project}.iam.gserviceaccount.com` + class BuildSpec + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # The identity type to use for the Reasoning Engine. module IdentityType # Default value. Use a custom service account if the `service_account` diff --git a/librarian.yaml b/librarian.yaml index c3ad33e3cbbb..b4f21cef4701 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -15,8 +15,8 @@ language: ruby version: v0.37.0 sources: googleapis: - commit: 57394718a71457aa37ab002352b22081976bdd91 - sha256: 633d12eb239bf48648613a8e8f1e4b4875ae8116150fdee0ba4abc910ffb9777 + commit: f76fc6dcdd744681c9d3e2fc30b0fc813118c295 + sha256: f89a9e70418646337d71fb79d3679e8a3183682bb5fd1e3457e325886c8dad9d tools: gem: - name: gapic-generator-cloud