# 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.V1.Model.AuditAdvertiserResponse do
  @moduledoc """
  Response message for AdvertiserService.AuditAdvertiser.

  ## Attributes

  *   `adGroupCriteriaCount` (*type:* `String.t`, *default:* `nil`) - The number of individual targeting options from the following targeting types that are assigned to a line item under this advertiser. These individual targeting options count towards the limit of 4500000 ad group targeting options per advertiser. Qualifying Targeting types: * Channels, URLs, apps, and collections * Demographic * Google Audiences, including Affinity, Custom Affinity, and In-market audiences * Inventory source * Keyword * Mobile app category * User lists * Video targeting * Viewability
  *   `campaignCriteriaCount` (*type:* `String.t`, *default:* `nil`) - The number of individual targeting options from the following targeting types that are assigned to a line item under this advertiser. These individual targeting options count towards the limit of 900000 campaign targeting options per advertiser. Qualifying Targeting types: * Position * Browser * Connection speed * Day and time * Device and operating system * Digital content label * Sensitive categories * Environment * Geography, including business chains and proximity * ISP * Language * Third-party verification
  *   `channelsCount` (*type:* `String.t`, *default:* `nil`) - The number of channels created under this advertiser. These channels count towards the limit of 1000 channels per advertiser.
  *   `negativeKeywordListsCount` (*type:* `String.t`, *default:* `nil`) - The number of negative keyword lists created under this advertiser. These negative keyword lists count towards the limit of 20 negative keyword lists per advertiser.
  *   `negativelyTargetedChannelsCount` (*type:* `String.t`, *default:* `nil`) - The number of negatively targeted channels created under this advertiser. These negatively targeted channels count towards the limit of 5 negatively targeted channels per advertiser.
  *   `usedCampaignsCount` (*type:* `String.t`, *default:* `nil`) - The number of ACTIVE and PAUSED campaigns under this advertiser. These campaigns count towards the limit of 9999 campaigns per advertiser.
  *   `usedInsertionOrdersCount` (*type:* `String.t`, *default:* `nil`) - The number of ACTIVE, PAUSED and DRAFT insertion orders under this advertiser. These insertion orders count towards the limit of 9999 insertion orders per advertiser.
  *   `usedLineItemsCount` (*type:* `String.t`, *default:* `nil`) - The number of ACTIVE, PAUSED, and DRAFT line items under this advertiser. These line items count towards the limit of 9999 line items per advertiser.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :adGroupCriteriaCount => String.t() | nil,
          :campaignCriteriaCount => String.t() | nil,
          :channelsCount => String.t() | nil,
          :negativeKeywordListsCount => String.t() | nil,
          :negativelyTargetedChannelsCount => String.t() | nil,
          :usedCampaignsCount => String.t() | nil,
          :usedInsertionOrdersCount => String.t() | nil,
          :usedLineItemsCount => String.t() | nil
        }

  field(:adGroupCriteriaCount)
  field(:campaignCriteriaCount)
  field(:channelsCount)
  field(:negativeKeywordListsCount)
  field(:negativelyTargetedChannelsCount)
  field(:usedCampaignsCount)
  field(:usedInsertionOrdersCount)
  field(:usedLineItemsCount)
end

defimpl Poison.Decoder, for: GoogleApi.DisplayVideo.V1.Model.AuditAdvertiserResponse do
  def decode(value, options) do
    GoogleApi.DisplayVideo.V1.Model.AuditAdvertiserResponse.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.DisplayVideo.V1.Model.AuditAdvertiserResponse do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
