class Google::Apis::DfareportingV3_3::Site

Contains properties of a site.

Attributes

account_id[RW]

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

approved[RW]

Whether this site is approved. Corresponds to the JSON property `approved` @return [Boolean]

approved?[RW]

Whether this site is approved. Corresponds to the JSON property `approved` @return [Boolean]

directory_site_id[RW]

Directory site associated with this site. This is a required field that is read-only after insertion. Corresponds to the JSON property `directorySiteId` @return [Fixnum]

directory_site_id_dimension_value[RW]

Represents a DimensionValue resource. Corresponds to the JSON property `directorySiteIdDimensionValue` @return [Google::Apis::DfareportingV3_3::DimensionValue]

id[RW]

ID of this site. This is a read-only, auto-generated field. Corresponds to the JSON property `id` @return [Fixnum]

id_dimension_value[RW]

Represents a DimensionValue resource. Corresponds to the JSON property `idDimensionValue` @return [Google::Apis::DfareportingV3_3::DimensionValue]

key_name[RW]

Key name of this site. This is a read-only, auto-generated field. Corresponds to the JSON property `keyName` @return [String]

kind[RW]

Identifies what kind of resource this is. Value: the fixed string “ dfareporting#site”. Corresponds to the JSON property `kind` @return [String]

name[RW]

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` @return [String]

site_contacts[RW]

Site contacts. Corresponds to the JSON property `siteContacts` @return [Array<Google::Apis::DfareportingV3_3::SiteContact>]

site_settings[RW]

Site Settings Corresponds to the JSON property `siteSettings` @return [Google::Apis::DfareportingV3_3::SiteSettings]

subaccount_id[RW]

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

video_settings[RW]

Video Settings Corresponds to the JSON property `videoSettings` @return [Google::Apis::DfareportingV3_3::SiteVideoSettings]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dfareporting_v3_3/classes.rb, line 10510
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/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