class Google::Apis::DfareportingV3_4::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 [Fixnum]

advertiser_id[RW]

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

advertiser_id_dimension_value[RW]

Represents a DimensionValue resource. Corresponds to the JSON property `advertiserIdDimensionValue` @return [Google::Apis::DfareportingV3_4::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 [Fixnum]

campaign_id_dimension_value[RW]

Represents a DimensionValue resource. Corresponds to the JSON property `campaignIdDimensionValue` @return [Google::Apis::DfareportingV3_4::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<Fixnum>]

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 [Fixnum]

create_info[RW]

Modification timestamp. Corresponds to the JSON property `createInfo` @return [Google::Apis::DfareportingV3_4::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 [Fixnum]

directory_site_id_dimension_value[RW]

Represents a DimensionValue resource. Corresponds to the JSON property `directorySiteIdDimensionValue` @return [Google::Apis::DfareportingV3_4::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 [Fixnum]

id_dimension_value[RW]

Represents a DimensionValue resource. Corresponds to the JSON property `idDimensionValue` @return [Google::Apis::DfareportingV3_4::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::DfareportingV3_4::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 [Fixnum]

pricing_schedule[RW]

Pricing Schedule Corresponds to the JSON property `pricingSchedule` @return [Google::Apis::DfareportingV3_4::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 [Fixnum]

primary_placement_id_dimension_value[RW]

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

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 [Fixnum]

site_id_dimension_value[RW]

Represents a DimensionValue resource. Corresponds to the JSON property `siteIdDimensionValue` @return [Google::Apis::DfareportingV3_4::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 [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dfareporting_v3_4/classes.rb, line 9284
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_4/classes.rb, line 9289
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