class Google::Apis::DfareportingV2_1::PlacementGroup

Contains properties of a package or roadblock.

Attributes

account_id[RW]

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

advertiser_id[RW]

Advertiser ID of this placement group. This is a required field on insertion. Corresponds to the JSON property `advertiserId` @return [String]

advertiser_id_dimension_value[RW]

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

archived[RW]

Whether this placement group is archived. Corresponds to the JSON property `archived` @return [Boolean]

archived?[RW]

Whether this placement group is archived. Corresponds to the JSON property `archived` @return [Boolean]

campaign_id[RW]

Campaign ID of this placement group. This field is required on insertion. Corresponds to the JSON property `campaignId` @return [String]

campaign_id_dimension_value[RW]

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

child_placement_ids[RW]

IDs of placements which are assigned to this placement group. This is a read- only, auto-generated field. Corresponds to the JSON property `childPlacementIds` @return [Array<String>]

comment[RW]

Comments for this placement group. Corresponds to the JSON property `comment` @return [String]

content_category_id[RW]

ID of the content category assigned to this placement group. Corresponds to the JSON property `contentCategoryId` @return [String]

create_info[RW]

Modification timestamp. Corresponds to the JSON property `createInfo` @return [Google::Apis::DfareportingV2_1::LastModifiedInfo]

directory_site_id[RW]

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

directory_site_id_dimension_value[RW]

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

external_id[RW]

External ID for this placement. Corresponds to the JSON property `externalId` @return [String]

id[RW]

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

id_dimension_value[RW]

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

kind[RW]

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

last_modified_info[RW]

Modification timestamp. Corresponds to the JSON property `lastModifiedInfo` @return [Google::Apis::DfareportingV2_1::LastModifiedInfo]

name[RW]

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

placement_group_type[RW]

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

placement_strategy_id[RW]

ID of the placement strategy assigned to this placement group. Corresponds to the JSON property `placementStrategyId` @return [String]

pricing_schedule[RW]

Pricing Schedule Corresponds to the JSON property `pricingSchedule` @return [Google::Apis::DfareportingV2_1::PricingSchedule]

primary_placement_id[RW]

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

primary_placement_id_dimension_value[RW]

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

programmatic_setting[RW]

Programmatic Setting Corresponds to the JSON property `programmaticSetting` @return [Google::Apis::DfareportingV2_1::ProgrammaticSetting]

site_id[RW]

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

site_id_dimension_value[RW]

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

subaccount_id[RW]

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

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/dfareporting_v2_1/classes.rb, line 7641
def update!(**args)
  @account_id = args[:account_id] unless args[:account_id].nil?
  @advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil?
  @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] unless args[:advertiser_id_dimension_value].nil?
  @archived = args[:archived] unless args[:archived].nil?
  @campaign_id = args[:campaign_id] unless args[:campaign_id].nil?
  @campaign_id_dimension_value = args[:campaign_id_dimension_value] unless args[:campaign_id_dimension_value].nil?
  @child_placement_ids = args[:child_placement_ids] unless args[:child_placement_ids].nil?
  @comment = args[:comment] unless args[:comment].nil?
  @content_category_id = args[:content_category_id] unless args[:content_category_id].nil?
  @create_info = args[:create_info] unless args[:create_info].nil?
  @directory_site_id = args[:directory_site_id] unless args[:directory_site_id].nil?
  @directory_site_id_dimension_value = args[:directory_site_id_dimension_value] unless args[:directory_site_id_dimension_value].nil?
  @external_id = args[:external_id] unless args[:external_id].nil?
  @id = args[:id] unless args[:id].nil?
  @id_dimension_value = args[:id_dimension_value] unless args[:id_dimension_value].nil?
  @kind = args[:kind] unless args[:kind].nil?
  @last_modified_info = args[:last_modified_info] unless args[:last_modified_info].nil?
  @name = args[:name] unless args[:name].nil?
  @placement_group_type = args[:placement_group_type] unless args[:placement_group_type].nil?
  @placement_strategy_id = args[:placement_strategy_id] unless args[:placement_strategy_id].nil?
  @pricing_schedule = args[:pricing_schedule] unless args[:pricing_schedule].nil?
  @primary_placement_id = args[:primary_placement_id] unless args[:primary_placement_id].nil?
  @primary_placement_id_dimension_value = args[:primary_placement_id_dimension_value] unless args[:primary_placement_id_dimension_value].nil?
  @programmatic_setting = args[:programmatic_setting] unless args[:programmatic_setting].nil?
  @site_id = args[:site_id] unless args[:site_id].nil?
  @site_id_dimension_value = args[:site_id_dimension_value] unless args[:site_id_dimension_value].nil?
  @subaccount_id = args[:subaccount_id] unless args[:subaccount_id].nil?
end