Class: Google::Apis::DfareportingV3_1::PlacementGroup

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 package or roadblock.

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

Returns a new instance of PlacementGroup



8714
8715
8716
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 8714

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

Instance Attribute Details

#account_idFixnum

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

Returns:

  • (Fixnum)


8569
8570
8571
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 8569

def 
  @account_id
end

#advertiser_idFixnum

Advertiser ID of this placement group. This is a required field on insertion. Corresponds to the JSON property advertiserId

Returns:

  • (Fixnum)


8574
8575
8576
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 8574

def advertiser_id
  @advertiser_id
end

#advertiser_id_dimension_valueGoogle::Apis::DfareportingV3_1::DimensionValue

Represents a DimensionValue resource. Corresponds to the JSON property advertiserIdDimensionValue



8579
8580
8581
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 8579

def advertiser_id_dimension_value
  @advertiser_id_dimension_value
end

#archivedBoolean Also known as: archived?

Whether this placement group is archived. Corresponds to the JSON property archived

Returns:

  • (Boolean)


8584
8585
8586
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 8584

def archived
  @archived
end

#campaign_idFixnum

Campaign ID of this placement group. This field is required on insertion. Corresponds to the JSON property campaignId

Returns:

  • (Fixnum)


8590
8591
8592
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 8590

def campaign_id
  @campaign_id
end

#campaign_id_dimension_valueGoogle::Apis::DfareportingV3_1::DimensionValue

Represents a DimensionValue resource. Corresponds to the JSON property campaignIdDimensionValue



8595
8596
8597
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 8595

def campaign_id_dimension_value
  @campaign_id_dimension_value
end

#child_placement_idsArray<Fixnum>

IDs of placements which are assigned to this placement group. This is a read- only, auto-generated field. Corresponds to the JSON property childPlacementIds

Returns:

  • (Array<Fixnum>)


8601
8602
8603
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 8601

def child_placement_ids
  @child_placement_ids
end

#commentString

Comments for this placement group. Corresponds to the JSON property comment

Returns:

  • (String)


8606
8607
8608
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 8606

def comment
  @comment
end

#content_category_idFixnum

ID of the content category assigned to this placement group. Corresponds to the JSON property contentCategoryId

Returns:

  • (Fixnum)


8611
8612
8613
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 8611

def 
  @content_category_id
end

#create_infoGoogle::Apis::DfareportingV3_1::LastModifiedInfo

Modification timestamp. Corresponds to the JSON property createInfo



8616
8617
8618
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 8616

def create_info
  @create_info
end

#directory_site_idFixnum

Directory site ID associated with this placement group. On insert, you must set either this field or the site_id field to specify the site associated with this placement group. This is a required field that is read-only after insertion. Corresponds to the JSON property directorySiteId

Returns:

  • (Fixnum)


8624
8625
8626
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 8624

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



8629
8630
8631
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 8629

def directory_site_id_dimension_value
  @directory_site_id_dimension_value
end

#external_idString

External ID for this placement. Corresponds to the JSON property externalId

Returns:

  • (String)


8634
8635
8636
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 8634

def external_id
  @external_id
end

#idFixnum

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

Returns:

  • (Fixnum)


8639
8640
8641
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 8639

def id
  @id
end

#id_dimension_valueGoogle::Apis::DfareportingV3_1::DimensionValue

Represents a DimensionValue resource. Corresponds to the JSON property idDimensionValue



8644
8645
8646
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 8644

def id_dimension_value
  @id_dimension_value
end

#kindString

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

Returns:

  • (String)


8650
8651
8652
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 8650

def kind
  @kind
end

#last_modified_infoGoogle::Apis::DfareportingV3_1::LastModifiedInfo

Modification timestamp. Corresponds to the JSON property lastModifiedInfo



8655
8656
8657
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 8655

def last_modified_info
  @last_modified_info
end

#nameString

Name of this placement group. This is a required field and must be less than 256 characters long. Corresponds to the JSON property name

Returns:

  • (String)


8661
8662
8663
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 8661

def name
  @name
end

#placement_group_typeString

Type of this placement group. A package is a simple group of placements that acts as a single pricing point for a group of tags. A roadblock is a group of placements that not only acts as a single pricing point, but also assumes that all the tags in it will be served at the same time. A roadblock requires one of its assigned placements to be marked as primary for reporting. This field is required on insertion. Corresponds to the JSON property placementGroupType

Returns:

  • (String)


8671
8672
8673
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 8671

def placement_group_type
  @placement_group_type
end

#placement_strategy_idFixnum

ID of the placement strategy assigned to this placement group. Corresponds to the JSON property placementStrategyId

Returns:

  • (Fixnum)


8676
8677
8678
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 8676

def placement_strategy_id
  @placement_strategy_id
end

#pricing_scheduleGoogle::Apis::DfareportingV3_1::PricingSchedule

Pricing Schedule Corresponds to the JSON property pricingSchedule



8681
8682
8683
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 8681

def pricing_schedule
  @pricing_schedule
end

#primary_placement_idFixnum

ID of the primary placement, used to calculate the media cost of a roadblock ( placement group). Modifying this field will automatically modify the primary field on all affected roadblock child placements. Corresponds to the JSON property primaryPlacementId

Returns:

  • (Fixnum)


8688
8689
8690
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 8688

def primary_placement_id
  @primary_placement_id
end

#primary_placement_id_dimension_valueGoogle::Apis::DfareportingV3_1::DimensionValue

Represents a DimensionValue resource. Corresponds to the JSON property primaryPlacementIdDimensionValue



8693
8694
8695
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 8693

def primary_placement_id_dimension_value
  @primary_placement_id_dimension_value
end

#site_idFixnum

Site ID associated with this placement group. On insert, you must set either this field or the directorySiteId field to specify the site associated with this placement group. This is a required field that is read-only after insertion. Corresponds to the JSON property siteId

Returns:

  • (Fixnum)


8701
8702
8703
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 8701

def site_id
  @site_id
end

#site_id_dimension_valueGoogle::Apis::DfareportingV3_1::DimensionValue

Represents a DimensionValue resource. Corresponds to the JSON property siteIdDimensionValue



8706
8707
8708
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 8706

def site_id_dimension_value
  @site_id_dimension_value
end

#subaccount_idFixnum

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

Returns:

  • (Fixnum)


8712
8713
8714
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 8712

def subaccount_id
  @subaccount_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 8719

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
  @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value)
  @archived = args[:archived] if args.key?(:archived)
  @campaign_id = args[:campaign_id] if args.key?(:campaign_id)
  @campaign_id_dimension_value = args[:campaign_id_dimension_value] if args.key?(:campaign_id_dimension_value)
  @child_placement_ids = args[:child_placement_ids] if args.key?(:child_placement_ids)
  @comment = args[:comment] if args.key?(:comment)
  @content_category_id = args[:content_category_id] if args.key?(:content_category_id)
  @create_info = args[:create_info] if args.key?(:create_info)
  @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)
  @external_id = args[:external_id] if args.key?(:external_id)
  @id = args[:id] if args.key?(:id)
  @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value)
  @kind = args[:kind] if args.key?(:kind)
  @last_modified_info = args[:last_modified_info] if args.key?(:last_modified_info)
  @name = args[:name] if args.key?(:name)
  @placement_group_type = args[:placement_group_type] if args.key?(:placement_group_type)
  @placement_strategy_id = args[:placement_strategy_id] if args.key?(:placement_strategy_id)
  @pricing_schedule = args[:pricing_schedule] if args.key?(:pricing_schedule)
  @primary_placement_id = args[:primary_placement_id] if args.key?(:primary_placement_id)
  @primary_placement_id_dimension_value = args[:primary_placement_id_dimension_value] if args.key?(:primary_placement_id_dimension_value)
  @site_id = args[:site_id] if args.key?(:site_id)
  @site_id_dimension_value = args[:site_id_dimension_value] if args.key?(:site_id_dimension_value)
  @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id)
end