Class: Google::Apis::DfareportingV3_3::Site

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dfareporting_v3_3/classes.rb,
generated/google/apis/dfareporting_v3_3/representations.rb,
generated/google/apis/dfareporting_v3_3/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.



10510
10511
10512
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 10510

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)


10442
10443
10444
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 10442

def 
  @account_id
end

#approvedBoolean Also known as: approved?

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

Returns:

  • (Boolean)


10447
10448
10449
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 10447

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)


10454
10455
10456
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 10454

def directory_site_id
  @directory_site_id
end

#directory_site_id_dimension_valueGoogle::Apis::DfareportingV3_3::DimensionValue

Represents a DimensionValue resource. Corresponds to the JSON property directorySiteIdDimensionValue



10459
10460
10461
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 10459

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)


10464
10465
10466
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 10464

def id
  @id
end

#id_dimension_valueGoogle::Apis::DfareportingV3_3::DimensionValue

Represents a DimensionValue resource. Corresponds to the JSON property idDimensionValue



10469
10470
10471
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 10469

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)


10474
10475
10476
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 10474

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)


10480
10481
10482
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 10480

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)


10488
10489
10490
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 10488

def name
  @name
end

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

Site contacts. Corresponds to the JSON property siteContacts



10493
10494
10495
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 10493

def site_contacts
  @site_contacts
end

#site_settingsGoogle::Apis::DfareportingV3_3::SiteSettings

Site Settings Corresponds to the JSON property siteSettings



10498
10499
10500
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 10498

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)


10503
10504
10505
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 10503

def subaccount_id
  @subaccount_id
end

#video_settingsGoogle::Apis::DfareportingV3_3::SiteVideoSettings

Video Settings Corresponds to the JSON property videoSettings



10508
10509
10510
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 10508

def video_settings
  @video_settings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 10515

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