Class: Google::Apis::DfareportingV3_5::Site

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

Overview

Contains properties of a site.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Site

Returns a new instance of Site.



11105
11106
11107
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 11105

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

Instance Attribute Details

#account_idFixnum

Account ID of this site. This is a read-only field that can be left blank. Corresponds to the JSON property accountId

Returns:

  • (Fixnum)


11037
11038
11039
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 11037

def 
  @account_id
end

#approvedBoolean Also known as: approved?

Whether this site is approved. Corresponds to the JSON property approved

Returns:

  • (Boolean)


11042
11043
11044
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 11042

def approved
  @approved
end

#directory_site_idFixnum

Directory site associated with this site. This is a required field that is read-only after insertion. Corresponds to the JSON property directorySiteId

Returns:

  • (Fixnum)


11049
11050
11051
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 11049

def directory_site_id
  @directory_site_id
end

#directory_site_id_dimension_valueGoogle::Apis::DfareportingV3_5::DimensionValue

Represents a DimensionValue resource. Corresponds to the JSON property directorySiteIdDimensionValue



11054
11055
11056
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 11054

def directory_site_id_dimension_value
  @directory_site_id_dimension_value
end

#idFixnum

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

Returns:

  • (Fixnum)


11059
11060
11061
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 11059

def id
  @id
end

#id_dimension_valueGoogle::Apis::DfareportingV3_5::DimensionValue

Represents a DimensionValue resource. Corresponds to the JSON property idDimensionValue



11064
11065
11066
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 11064

def id_dimension_value
  @id_dimension_value
end

#key_nameString

Key name of this site. This is a read-only, auto-generated field. Corresponds to the JSON property keyName

Returns:

  • (String)


11069
11070
11071
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 11069

def key_name
  @key_name
end

#kindString

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

Returns:

  • (String)


11075
11076
11077
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 11075

def kind
  @kind
end

#nameString

Name of this site.This is a required field. Must be less than 128 characters long. If this site is under a subaccount, the name must be unique among sites of the same subaccount. Otherwise, this site is a top-level site, and the name must be unique among top-level sites of the same account. Corresponds to the JSON property name

Returns:

  • (String)


11083
11084
11085
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 11083

def name
  @name
end

#site_contactsArray<Google::Apis::DfareportingV3_5::SiteContact>

Site contacts. Corresponds to the JSON property siteContacts



11088
11089
11090
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 11088

def site_contacts
  @site_contacts
end

#site_settingsGoogle::Apis::DfareportingV3_5::SiteSettings

Site Settings Corresponds to the JSON property siteSettings



11093
11094
11095
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 11093

def site_settings
  @site_settings
end

#subaccount_idFixnum

Subaccount ID of this site. This is a read-only field that can be left blank. Corresponds to the JSON property subaccountId

Returns:

  • (Fixnum)


11098
11099
11100
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 11098

def subaccount_id
  @subaccount_id
end

#video_settingsGoogle::Apis::DfareportingV3_5::SiteVideoSettings

Video Settings Corresponds to the JSON property videoSettings



11103
11104
11105
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 11103

def video_settings
  @video_settings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 11110

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @approved = args[:approved] if args.key?(:approved)
  @directory_site_id = args[:directory_site_id] if args.key?(:directory_site_id)
  @directory_site_id_dimension_value = args[:directory_site_id_dimension_value] if args.key?(:directory_site_id_dimension_value)
  @id = args[:id] if args.key?(:id)
  @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value)
  @key_name = args[:key_name] if args.key?(:key_name)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @site_contacts = args[:site_contacts] if args.key?(:site_contacts)
  @site_settings = args[:site_settings] if args.key?(:site_settings)
  @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id)
  @video_settings = args[:video_settings] if args.key?(:video_settings)
end