diff --git a/clients/display_video/lib/google_api/display_video/v3/metadata.ex b/clients/display_video/lib/google_api/display_video/v3/metadata.ex index a4b2e10381..c337f00e36 100644 --- a/clients/display_video/lib/google_api/display_video/v3/metadata.ex +++ b/clients/display_video/lib/google_api/display_video/v3/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.DisplayVideo.V3 do API client metadata for GoogleApi.DisplayVideo.V3. """ - @discovery_revision "20250313" + @discovery_revision "20250320" def discovery_revision(), do: @discovery_revision end diff --git a/clients/display_video/lib/google_api/display_video/v3/model/assigned_targeting_option.ex b/clients/display_video/lib/google_api/display_video/v3/model/assigned_targeting_option.ex index ea2db99dfa..9f31ba22d5 100644 --- a/clients/display_video/lib/google_api/display_video/v3/model/assigned_targeting_option.ex +++ b/clients/display_video/lib/google_api/display_video/v3/model/assigned_targeting_option.ex @@ -23,6 +23,7 @@ defmodule GoogleApi.DisplayVideo.V3.Model.AssignedTargetingOption do * `contentOutstreamPositionDetails` (*type:* `GoogleApi.DisplayVideo.V3.Model.ContentOutstreamPositionAssignedTargetingOptionDetails.t`, *default:* `nil`) - Content outstream position details. This field will be populated when the targeting_type is `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION`. * `contentDurationDetails` (*type:* `GoogleApi.DisplayVideo.V3.Model.ContentDurationAssignedTargetingOptionDetails.t`, *default:* `nil`) - Content duration details. This field will be populated when the targeting_type is `TARGETING_TYPE_CONTENT_DURATION`. + * `contentThemeExclusionDetails` (*type:* `GoogleApi.DisplayVideo.V3.Model.ContentThemeAssignedTargetingOptionDetails.t`, *default:* `nil`) - Content theme details. This field will be populated when the targeting_type is `TARGETING_TYPE_CONTENT_THEME_EXCLUSION`. Content theme are targeting exclusions. Advertiser level content theme exclusions, if set, are always applied in serving (even though they aren't visible in resource settings). Resource settings can exclude content theme in addition to advertiser exclusions. * `videoPlayerSizeDetails` (*type:* `GoogleApi.DisplayVideo.V3.Model.VideoPlayerSizeAssignedTargetingOptionDetails.t`, *default:* `nil`) - Video player size details. This field will be populated when the targeting_type is `TARGETING_TYPE_VIDEO_PLAYER_SIZE`. * `contentInstreamPositionDetails` (*type:* `GoogleApi.DisplayVideo.V3.Model.ContentInstreamPositionAssignedTargetingOptionDetails.t`, *default:* `nil`) - Content instream position details. This field will be populated when the targeting_type is `TARGETING_TYPE_CONTENT_INSTREAM_POSITION`. * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name for this assigned targeting option. @@ -85,6 +86,8 @@ defmodule GoogleApi.DisplayVideo.V3.Model.AssignedTargetingOption do :contentDurationDetails => GoogleApi.DisplayVideo.V3.Model.ContentDurationAssignedTargetingOptionDetails.t() | nil, + :contentThemeExclusionDetails => + GoogleApi.DisplayVideo.V3.Model.ContentThemeAssignedTargetingOptionDetails.t() | nil, :videoPlayerSizeDetails => GoogleApi.DisplayVideo.V3.Model.VideoPlayerSizeAssignedTargetingOptionDetails.t() | nil, @@ -212,6 +215,10 @@ defmodule GoogleApi.DisplayVideo.V3.Model.AssignedTargetingOption do as: GoogleApi.DisplayVideo.V3.Model.ContentDurationAssignedTargetingOptionDetails ) + field(:contentThemeExclusionDetails, + as: GoogleApi.DisplayVideo.V3.Model.ContentThemeAssignedTargetingOptionDetails + ) + field(:videoPlayerSizeDetails, as: GoogleApi.DisplayVideo.V3.Model.VideoPlayerSizeAssignedTargetingOptionDetails ) diff --git a/clients/display_video/lib/google_api/display_video/v3/model/content_theme_assigned_targeting_option_details.ex b/clients/display_video/lib/google_api/display_video/v3/model/content_theme_assigned_targeting_option_details.ex new file mode 100644 index 0000000000..3182bddfd9 --- /dev/null +++ b/clients/display_video/lib/google_api/display_video/v3/model/content_theme_assigned_targeting_option_details.ex @@ -0,0 +1,57 @@ +# Copyright 2019 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DisplayVideo.V3.Model.ContentThemeAssignedTargetingOptionDetails do + @moduledoc """ + Targeting details for content theme. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_CONTENT_THEME_EXCLUSION`. + + ## Attributes + + * `contentTheme` (*type:* `String.t`, *default:* `nil`) - Output only. An enum for the DV360 content theme classifier. + * `excludedContentTheme` (*type:* `String.t`, *default:* `nil`) - Required. An enum for the DV360 content theme classified to be EXCLUDED. + * `excludedTargetingOptionId` (*type:* `String.t`, *default:* `nil`) - Required. ID of the content theme to be EXCLUDED. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :contentTheme => String.t() | nil, + :excludedContentTheme => String.t() | nil, + :excludedTargetingOptionId => String.t() | nil + } + + field(:contentTheme) + field(:excludedContentTheme) + field(:excludedTargetingOptionId) +end + +defimpl Poison.Decoder, + for: GoogleApi.DisplayVideo.V3.Model.ContentThemeAssignedTargetingOptionDetails do + def decode(value, options) do + GoogleApi.DisplayVideo.V3.Model.ContentThemeAssignedTargetingOptionDetails.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DisplayVideo.V3.Model.ContentThemeAssignedTargetingOptionDetails do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/display_video/lib/google_api/display_video/v3/model/content_theme_targeting_option_details.ex b/clients/display_video/lib/google_api/display_video/v3/model/content_theme_targeting_option_details.ex new file mode 100644 index 0000000000..433c3c2939 --- /dev/null +++ b/clients/display_video/lib/google_api/display_video/v3/model/content_theme_targeting_option_details.ex @@ -0,0 +1,46 @@ +# Copyright 2019 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.DisplayVideo.V3.Model.ContentThemeTargetingOptionDetails do + @moduledoc """ + Represents a targetable content theme. This will be populated in the content_theme_details field of the TargetingOption when targeting_type is `TARGETING_TYPE_CONTENT_THEME_EXCLUSION`. + + ## Attributes + + * `contentTheme` (*type:* `String.t`, *default:* `nil`) - Output only. An enum for the DV360 content theme content classifier. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :contentTheme => String.t() | nil + } + + field(:contentTheme) +end + +defimpl Poison.Decoder, for: GoogleApi.DisplayVideo.V3.Model.ContentThemeTargetingOptionDetails do + def decode(value, options) do + GoogleApi.DisplayVideo.V3.Model.ContentThemeTargetingOptionDetails.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DisplayVideo.V3.Model.ContentThemeTargetingOptionDetails do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/display_video/lib/google_api/display_video/v3/model/targeting_option.ex b/clients/display_video/lib/google_api/display_video/v3/model/targeting_option.ex index acebb37329..680cf67cc2 100644 --- a/clients/display_video/lib/google_api/display_video/v3/model/targeting_option.ex +++ b/clients/display_video/lib/google_api/display_video/v3/model/targeting_option.ex @@ -48,6 +48,7 @@ defmodule GoogleApi.DisplayVideo.V3.Model.TargetingOption do * `categoryDetails` (*type:* `GoogleApi.DisplayVideo.V3.Model.CategoryTargetingOptionDetails.t`, *default:* `nil`) - Category resource details. * `contentStreamTypeDetails` (*type:* `GoogleApi.DisplayVideo.V3.Model.ContentStreamTypeTargetingOptionDetails.t`, *default:* `nil`) - Content stream type resource details. * `languageDetails` (*type:* `GoogleApi.DisplayVideo.V3.Model.LanguageTargetingOptionDetails.t`, *default:* `nil`) - Language resource details. + * `contentThemeDetails` (*type:* `GoogleApi.DisplayVideo.V3.Model.ContentThemeTargetingOptionDetails.t`, *default:* `nil`) - Content theme details. * `parentalStatusDetails` (*type:* `GoogleApi.DisplayVideo.V3.Model.ParentalStatusTargetingOptionDetails.t`, *default:* `nil`) - Parental status details. * `onScreenPositionDetails` (*type:* `GoogleApi.DisplayVideo.V3.Model.OnScreenPositionTargetingOptionDetails.t`, *default:* `nil`) - On screen position details. * `carrierAndIspDetails` (*type:* `GoogleApi.DisplayVideo.V3.Model.CarrierAndIspTargetingOptionDetails.t`, *default:* `nil`) - Carrier and ISP details. @@ -114,6 +115,8 @@ defmodule GoogleApi.DisplayVideo.V3.Model.TargetingOption do GoogleApi.DisplayVideo.V3.Model.ContentStreamTypeTargetingOptionDetails.t() | nil, :languageDetails => GoogleApi.DisplayVideo.V3.Model.LanguageTargetingOptionDetails.t() | nil, + :contentThemeDetails => + GoogleApi.DisplayVideo.V3.Model.ContentThemeTargetingOptionDetails.t() | nil, :parentalStatusDetails => GoogleApi.DisplayVideo.V3.Model.ParentalStatusTargetingOptionDetails.t() | nil, :onScreenPositionDetails => @@ -214,6 +217,10 @@ defmodule GoogleApi.DisplayVideo.V3.Model.TargetingOption do field(:languageDetails, as: GoogleApi.DisplayVideo.V3.Model.LanguageTargetingOptionDetails) + field(:contentThemeDetails, + as: GoogleApi.DisplayVideo.V3.Model.ContentThemeTargetingOptionDetails + ) + field(:parentalStatusDetails, as: GoogleApi.DisplayVideo.V3.Model.ParentalStatusTargetingOptionDetails )