Current section

Files

Jump to
google_api_analytics lib google_api analytics v3 model include_conditions.ex
Raw

lib/google_api/analytics/v3/model/include_conditions.ex

# 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.Analytics.V3.Model.IncludeConditions do
@moduledoc """
JSON template for an Analytics Remarketing Include Conditions.
## Attributes
* `daysToLookBack` (*type:* `integer()`, *default:* `nil`) - The look-back window lets you specify a time frame for evaluating the behavior that qualifies users for your audience. For example, if your filters include users from Central Asia, and Transactions Greater than 2, and you set the look-back window to 14 days, then any user from Central Asia whose cumulative transactions exceed 2 during the last 14 days is added to the audience.
* `isSmartList` (*type:* `boolean()`, *default:* `nil`) - Boolean indicating whether this segment is a smart list. https://support.google.com/analytics/answer/4628577
* `kind` (*type:* `String.t`, *default:* `analytics#includeConditions`) - Resource type for include conditions.
* `membershipDurationDays` (*type:* `integer()`, *default:* `nil`) - Number of days (in the range 1 to 540) a user remains in the audience.
* `segment` (*type:* `String.t`, *default:* `nil`) - The segment condition that will cause a user to be added to an audience.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:daysToLookBack => integer(),
:isSmartList => boolean(),
:kind => String.t(),
:membershipDurationDays => integer(),
:segment => String.t()
}
field(:daysToLookBack)
field(:isSmartList)
field(:kind)
field(:membershipDurationDays)
field(:segment)
end
defimpl Poison.Decoder, for: GoogleApi.Analytics.V3.Model.IncludeConditions do
def decode(value, options) do
GoogleApi.Analytics.V3.Model.IncludeConditions.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Analytics.V3.Model.IncludeConditions do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end