Class: Google::Apis::DfareportingV3_1::Site

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

Contains properties of a site.

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) ⇒ Site

Returns a new instance of Site



10772
10773
10774
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 10772

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)


10709
10710
10711
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 10709

def 
  @account_id
end

#approvedBoolean Also known as: approved?

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

Returns:

  • (Boolean)


10714
10715
10716
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 10714

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)


10721
10722
10723
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 10721

def directory_site_id
  @directory_site_id
end

#directory_site_id_dimension_valueGoogle::Apis::DfareportingV3_1::DimensionValue

Represents a DimensionValue resource. Corresponds to the JSON property directorySiteIdDimensionValue



10726
10727
10728
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 10726

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)


10731
10732
10733
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 10731

def id
  @id
end

#id_dimension_valueGoogle::Apis::DfareportingV3_1::DimensionValue

Represents a DimensionValue resource. Corresponds to the JSON property idDimensionValue



10736
10737
10738
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 10736

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)


10741
10742
10743
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 10741

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)


10747
10748
10749
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 10747

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)


10755
10756
10757
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 10755

def name
  @name
end

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

Site contacts. Corresponds to the JSON property siteContacts



10760
10761
10762
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 10760

def site_contacts
  @site_contacts
end

#site_settingsGoogle::Apis::DfareportingV3_1::SiteSettings

Site Settings Corresponds to the JSON property siteSettings



10765
10766
10767
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 10765

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)


10770
10771
10772
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 10770

def subaccount_id
  @subaccount_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 10777

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)
end