Skip to content

feat: Automated regeneration of DisplayVideo client #13212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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
)
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 =>
Expand Down Expand Up @@ -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
)
Expand Down
Loading