Class: Google::Apis::DfareportingV3_1::DirectorySite

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dfareporting_v3_1/classes.rb,
generated/google/apis/dfareporting_v3_1/representations.rb,
generated/google/apis/dfareporting_v3_1/representations.rb

Overview

DirectorySites contains properties of a website from the Site Directory. Sites need to be added to an account via the Sites resource before they can be assigned to a placement.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DirectorySite

Returns a new instance of DirectorySite



5183
5184
5185
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 5183

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#activeBoolean Also known as: active?

Whether this directory site is active. Corresponds to the JSON property active

Returns:

  • (Boolean)


5055
5056
5057
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 5055

def active
  @active
end

#contact_assignmentsArray<Google::Apis::DfareportingV3_1::DirectorySiteContactAssignment>

Directory site contacts. Corresponds to the JSON property contactAssignments



5061
5062
5063
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 5061

def contact_assignments
  @contact_assignments
end

#country_idFixnum

Country ID of this directory site. This is a read-only field. Corresponds to the JSON property countryId

Returns:

  • (Fixnum)


5066
5067
5068
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 5066

def country_id
  @country_id
end

#currency_idFixnum

Currency ID of this directory site. This is a read-only field. Possible values are:

  • "1" for USD
  • "2" for GBP
  • "3" for ESP
  • "4" for SEK
  • "5" for CAD
  • "6" for JPY
  • "7" for DEM
  • "8" for AUD
  • "9" for FRF
  • "10" for ITL
  • "11" for DKK
  • "12" for NOK
  • "13" for FIM
  • "14" for ZAR
  • "15" for IEP
  • "16" for NLG
  • "17" for EUR
  • "18" for KRW
  • "19" for TWD
  • "20" for SGD
  • "21" for CNY
  • "22" for HKD
  • "23" for NZD
  • "24" for MYR
  • "25" for BRL
  • "26" for PTE
  • "27" for MXP
  • "28" for CLP
  • "29" for TRY
  • "30" for ARS
  • "31" for PEN
  • "32" for ILS
  • "33" for CHF
  • "34" for VEF
  • "35" for COP
  • "36" for GTQ
  • "37" for PLN
  • "39" for INR
  • "40" for THB
  • "41" for IDR
  • "42" for CZK
  • "43" for RON
  • "44" for HUF
  • "45" for RUB
  • "46" for AED
  • "47" for BGN
  • "48" for HRK
  • "49" for MXN
  • "50" for NGN Corresponds to the JSON property currencyId

Returns:

  • (Fixnum)


5121
5122
5123
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 5121

def currency_id
  @currency_id
end

#descriptionString

Description of this directory site. This is a read-only field. Corresponds to the JSON property description

Returns:

  • (String)


5126
5127
5128
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 5126

def description
  @description
end

#idFixnum

ID of this directory site. This is a read-only, auto-generated field. Corresponds to the JSON property id

Returns:

  • (Fixnum)


5131
5132
5133
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 5131

def id
  @id
end

#id_dimension_valueGoogle::Apis::DfareportingV3_1::DimensionValue

Represents a DimensionValue resource. Corresponds to the JSON property idDimensionValue



5136
5137
5138
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 5136

def id_dimension_value
  @id_dimension_value
end

#inpage_tag_formatsArray<String>

Tag types for regular placements. Acceptable values are:

  • "STANDARD"
  • "IFRAME_JAVASCRIPT_INPAGE"
  • "INTERNAL_REDIRECT_INPAGE"
  • "JAVASCRIPT_INPAGE" Corresponds to the JSON property inpageTagFormats

Returns:

  • (Array<String>)


5146
5147
5148
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 5146

def inpage_tag_formats
  @inpage_tag_formats
end

#interstitial_tag_formatsArray<String>

Tag types for interstitial placements. Acceptable values are:

  • "IFRAME_JAVASCRIPT_INTERSTITIAL"
  • "INTERNAL_REDIRECT_INTERSTITIAL"
  • "JAVASCRIPT_INTERSTITIAL" Corresponds to the JSON property interstitialTagFormats

Returns:

  • (Array<String>)


5155
5156
5157
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 5155

def interstitial_tag_formats
  @interstitial_tag_formats
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " dfareporting#directorySite". Corresponds to the JSON property kind

Returns:

  • (String)


5161
5162
5163
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 5161

def kind
  @kind
end

#nameString

Name of this directory site. Corresponds to the JSON property name

Returns:

  • (String)


5166
5167
5168
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 5166

def name
  @name
end

#parent_idFixnum

Parent directory site ID. Corresponds to the JSON property parentId

Returns:

  • (Fixnum)


5171
5172
5173
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 5171

def parent_id
  @parent_id
end

#settingsGoogle::Apis::DfareportingV3_1::DirectorySiteSettings

Directory Site Settings Corresponds to the JSON property settings



5176
5177
5178
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 5176

def settings
  @settings
end

#urlString

URL of this directory site. Corresponds to the JSON property url

Returns:

  • (String)


5181
5182
5183
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 5181

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 5188

def update!(**args)
  @active = args[:active] if args.key?(:active)
  @contact_assignments = args[:contact_assignments] if args.key?(:contact_assignments)
  @country_id = args[:country_id] if args.key?(:country_id)
  @currency_id = args[:currency_id] if args.key?(:currency_id)
  @description = args[:description] if args.key?(:description)
  @id = args[:id] if args.key?(:id)
  @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value)
  @inpage_tag_formats = args[:inpage_tag_formats] if args.key?(:inpage_tag_formats)
  @interstitial_tag_formats = args[:interstitial_tag_formats] if args.key?(:interstitial_tag_formats)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @parent_id = args[:parent_id] if args.key?(:parent_id)
  @settings = args[:settings] if args.key?(:settings)
  @url = args[:url] if args.key?(:url)
end