Class: Google::Apis::DfareportingV3_5::Placement
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV3_5::Placement
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dfareporting_v3_5/classes.rb,
lib/google/apis/dfareporting_v3_5/representations.rb,
lib/google/apis/dfareporting_v3_5/representations.rb
Overview
Contains properties of a placement.
Instance Attribute Summary collapse
-
#account_id ⇒ Fixnum
Account ID of this placement.
-
#ad_blocking_opt_out ⇒ Boolean
(also: #ad_blocking_opt_out?)
Whether this placement opts out of ad blocking.
-
#additional_sizes ⇒ Array<Google::Apis::DfareportingV3_5::Size>
Additional sizes associated with this placement.
-
#advertiser_id ⇒ Fixnum
Advertiser ID of this placement.
-
#advertiser_id_dimension_value ⇒ Google::Apis::DfareportingV3_5::DimensionValue
Represents a DimensionValue resource.
-
#archived ⇒ Boolean
(also: #archived?)
Whether this placement is archived.
-
#campaign_id ⇒ Fixnum
Campaign ID of this placement.
-
#campaign_id_dimension_value ⇒ Google::Apis::DfareportingV3_5::DimensionValue
Represents a DimensionValue resource.
-
#comment ⇒ String
Comments for this placement.
-
#compatibility ⇒ String
Placement compatibility.
-
#content_category_id ⇒ Fixnum
ID of the content category assigned to this placement.
-
#create_info ⇒ Google::Apis::DfareportingV3_5::LastModifiedInfo
Modification timestamp.
-
#directory_site_id ⇒ Fixnum
Directory site ID of this placement.
-
#directory_site_id_dimension_value ⇒ Google::Apis::DfareportingV3_5::DimensionValue
Represents a DimensionValue resource.
-
#external_id ⇒ String
External ID for this placement.
-
#id ⇒ Fixnum
ID of this placement.
-
#id_dimension_value ⇒ Google::Apis::DfareportingV3_5::DimensionValue
Represents a DimensionValue resource.
-
#key_name ⇒ String
Key name of this placement.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#last_modified_info ⇒ Google::Apis::DfareportingV3_5::LastModifiedInfo
Modification timestamp.
-
#lookback_configuration ⇒ Google::Apis::DfareportingV3_5::LookbackConfiguration
Lookback configuration settings.
-
#name ⇒ String
Name of this placement.This is a required field and must be less than or equal to 256 characters long.
-
#partner_wrapping_data ⇒ Google::Apis::DfareportingV3_5::MeasurementPartnerWrappingData
Placement tag wrapping Corresponds to the JSON property
partnerWrappingData. -
#payment_approved ⇒ Boolean
(also: #payment_approved?)
Whether payment was approved for this placement.
-
#payment_source ⇒ String
Payment source for this placement.
-
#placement_group_id ⇒ Fixnum
ID of this placement's group, if applicable.
-
#placement_group_id_dimension_value ⇒ Google::Apis::DfareportingV3_5::DimensionValue
Represents a DimensionValue resource.
-
#placement_strategy_id ⇒ Fixnum
ID of the placement strategy assigned to this placement.
-
#pricing_schedule ⇒ Google::Apis::DfareportingV3_5::PricingSchedule
Pricing Schedule Corresponds to the JSON property
pricingSchedule. -
#primary ⇒ Boolean
(also: #primary?)
Whether this placement is the primary placement of a roadblock (placement group).
-
#publisher_update_info ⇒ Google::Apis::DfareportingV3_5::LastModifiedInfo
Modification timestamp.
-
#site_id ⇒ Fixnum
Site ID associated with this placement.
-
#site_id_dimension_value ⇒ Google::Apis::DfareportingV3_5::DimensionValue
Represents a DimensionValue resource.
-
#size ⇒ Google::Apis::DfareportingV3_5::Size
Represents the dimensions of ads, placements, creatives, or creative assets.
-
#ssl_required ⇒ Boolean
(also: #ssl_required?)
Whether creatives assigned to this placement must be SSL-compliant.
-
#status ⇒ String
Third-party placement status.
-
#subaccount_id ⇒ Fixnum
Subaccount ID of this placement.
-
#tag_formats ⇒ Array<String>
Tag formats to generate for this placement.
-
#tag_setting ⇒ Google::Apis::DfareportingV3_5::TagSetting
Tag Settings Corresponds to the JSON property
tagSetting. -
#video_active_view_opt_out ⇒ Boolean
(also: #video_active_view_opt_out?)
Whether Verification and ActiveView are disabled for in-stream video creatives for this placement.
-
#video_settings ⇒ Google::Apis::DfareportingV3_5::VideoSettings
Video Settings Corresponds to the JSON property
videoSettings. -
#vpaid_adapter_choice ⇒ String
VPAID adapter setting for this placement.
-
#wrapping_opt_out ⇒ Boolean
(also: #wrapping_opt_out?)
Whether this placement opts out of tag wrapping.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Placement
constructor
A new instance of Placement.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Placement
Returns a new instance of Placement.
8697 8698 8699 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8697 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_id ⇒ Fixnum
Account ID of this placement. This field can be left blank.
Corresponds to the JSON property accountId
8439 8440 8441 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8439 def account_id @account_id end |
#ad_blocking_opt_out ⇒ Boolean Also known as: ad_blocking_opt_out?
Whether this placement opts out of ad blocking. When true, ad blocking is
disabled for this placement. When false, the campaign and site settings take
effect.
Corresponds to the JSON property adBlockingOptOut
8446 8447 8448 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8446 def ad_blocking_opt_out @ad_blocking_opt_out end |
#additional_sizes ⇒ Array<Google::Apis::DfareportingV3_5::Size>
Additional sizes associated with this placement. When inserting or updating a
placement, only the size ID field is used.
Corresponds to the JSON property additionalSizes
8453 8454 8455 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8453 def additional_sizes @additional_sizes end |
#advertiser_id ⇒ Fixnum
Advertiser ID of this placement. This field can be left blank.
Corresponds to the JSON property advertiserId
8458 8459 8460 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8458 def advertiser_id @advertiser_id end |
#advertiser_id_dimension_value ⇒ Google::Apis::DfareportingV3_5::DimensionValue
Represents a DimensionValue resource.
Corresponds to the JSON property advertiserIdDimensionValue
8463 8464 8465 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8463 def advertiser_id_dimension_value @advertiser_id_dimension_value end |
#archived ⇒ Boolean Also known as: archived?
Whether this placement is archived.
Corresponds to the JSON property archived
8468 8469 8470 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8468 def archived @archived end |
#campaign_id ⇒ Fixnum
Campaign ID of this placement. This field is a required field on insertion.
Corresponds to the JSON property campaignId
8474 8475 8476 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8474 def campaign_id @campaign_id end |
#campaign_id_dimension_value ⇒ Google::Apis::DfareportingV3_5::DimensionValue
Represents a DimensionValue resource.
Corresponds to the JSON property campaignIdDimensionValue
8479 8480 8481 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8479 def campaign_id_dimension_value @campaign_id_dimension_value end |
#comment ⇒ String
Comments for this placement.
Corresponds to the JSON property comment
8484 8485 8486 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8484 def comment @comment end |
#compatibility ⇒ String
Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering
on desktop, on mobile devices or in mobile apps for regular or interstitial
ads respectively. APP and APP_INTERSTITIAL are no longer allowed for new
placement insertions. Instead, use DISPLAY or DISPLAY_INTERSTITIAL.
IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the
VAST standard. This field is required on insertion.
Corresponds to the JSON property compatibility
8494 8495 8496 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8494 def compatibility @compatibility end |
#content_category_id ⇒ Fixnum
ID of the content category assigned to this placement.
Corresponds to the JSON property contentCategoryId
8499 8500 8501 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8499 def content_category_id @content_category_id end |
#create_info ⇒ Google::Apis::DfareportingV3_5::LastModifiedInfo
Modification timestamp.
Corresponds to the JSON property createInfo
8504 8505 8506 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8504 def create_info @create_info end |
#directory_site_id ⇒ Fixnum
Directory site ID of this placement. On insert, you must set either this field
or the siteId field to specify the site associated with this placement. This
is a required field that is read-only after insertion.
Corresponds to the JSON property directorySiteId
8511 8512 8513 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8511 def directory_site_id @directory_site_id end |
#directory_site_id_dimension_value ⇒ Google::Apis::DfareportingV3_5::DimensionValue
Represents a DimensionValue resource.
Corresponds to the JSON property directorySiteIdDimensionValue
8516 8517 8518 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8516 def directory_site_id_dimension_value @directory_site_id_dimension_value end |
#external_id ⇒ String
External ID for this placement.
Corresponds to the JSON property externalId
8521 8522 8523 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8521 def external_id @external_id end |
#id ⇒ Fixnum
ID of this placement. This is a read-only, auto-generated field.
Corresponds to the JSON property id
8526 8527 8528 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8526 def id @id end |
#id_dimension_value ⇒ Google::Apis::DfareportingV3_5::DimensionValue
Represents a DimensionValue resource.
Corresponds to the JSON property idDimensionValue
8531 8532 8533 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8531 def id_dimension_value @id_dimension_value end |
#key_name ⇒ String
Key name of this placement. This is a read-only, auto-generated field.
Corresponds to the JSON property keyName
8536 8537 8538 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8536 def key_name @key_name end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
dfareporting#placement".
Corresponds to the JSON property kind
8542 8543 8544 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8542 def kind @kind end |
#last_modified_info ⇒ Google::Apis::DfareportingV3_5::LastModifiedInfo
Modification timestamp.
Corresponds to the JSON property lastModifiedInfo
8547 8548 8549 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8547 def last_modified_info @last_modified_info end |
#lookback_configuration ⇒ Google::Apis::DfareportingV3_5::LookbackConfiguration
Lookback configuration settings.
Corresponds to the JSON property lookbackConfiguration
8552 8553 8554 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8552 def lookback_configuration @lookback_configuration end |
#name ⇒ String
Name of this placement.This is a required field and must be less than or equal
to 256 characters long.
Corresponds to the JSON property name
8558 8559 8560 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8558 def name @name end |
#partner_wrapping_data ⇒ Google::Apis::DfareportingV3_5::MeasurementPartnerWrappingData
Placement tag wrapping
Corresponds to the JSON property partnerWrappingData
8563 8564 8565 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8563 def partner_wrapping_data @partner_wrapping_data end |
#payment_approved ⇒ Boolean Also known as: payment_approved?
Whether payment was approved for this placement. This is a read-only field
relevant only to publisher-paid placements.
Corresponds to the JSON property paymentApproved
8569 8570 8571 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8569 def payment_approved @payment_approved end |
#payment_source ⇒ String
Payment source for this placement. This is a required field that is read-only
after insertion.
Corresponds to the JSON property paymentSource
8576 8577 8578 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8576 def payment_source @payment_source end |
#placement_group_id ⇒ Fixnum
ID of this placement's group, if applicable.
Corresponds to the JSON property placementGroupId
8581 8582 8583 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8581 def placement_group_id @placement_group_id end |
#placement_group_id_dimension_value ⇒ Google::Apis::DfareportingV3_5::DimensionValue
Represents a DimensionValue resource.
Corresponds to the JSON property placementGroupIdDimensionValue
8586 8587 8588 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8586 def placement_group_id_dimension_value @placement_group_id_dimension_value end |
#placement_strategy_id ⇒ Fixnum
ID of the placement strategy assigned to this placement.
Corresponds to the JSON property placementStrategyId
8591 8592 8593 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8591 def placement_strategy_id @placement_strategy_id end |
#pricing_schedule ⇒ Google::Apis::DfareportingV3_5::PricingSchedule
Pricing Schedule
Corresponds to the JSON property pricingSchedule
8596 8597 8598 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8596 def pricing_schedule @pricing_schedule end |
#primary ⇒ Boolean Also known as: primary?
Whether this placement is the primary placement of a roadblock (placement
group). You cannot change this field from true to false. Setting this field to
true will automatically set the primary field on the original primary
placement of the roadblock to false, and it will automatically set the
roadblock's primaryPlacementId field to the ID of this placement.
Corresponds to the JSON property primary
8605 8606 8607 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8605 def primary @primary end |
#publisher_update_info ⇒ Google::Apis::DfareportingV3_5::LastModifiedInfo
Modification timestamp.
Corresponds to the JSON property publisherUpdateInfo
8611 8612 8613 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8611 def publisher_update_info @publisher_update_info end |
#site_id ⇒ Fixnum
Site ID associated with this placement. On insert, you must set either this
field or the directorySiteId field to specify the site associated with this
placement. This is a required field that is read-only after insertion.
Corresponds to the JSON property siteId
8618 8619 8620 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8618 def site_id @site_id end |
#site_id_dimension_value ⇒ Google::Apis::DfareportingV3_5::DimensionValue
Represents a DimensionValue resource.
Corresponds to the JSON property siteIdDimensionValue
8623 8624 8625 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8623 def site_id_dimension_value @site_id_dimension_value end |
#size ⇒ Google::Apis::DfareportingV3_5::Size
Represents the dimensions of ads, placements, creatives, or creative assets.
Corresponds to the JSON property size
8628 8629 8630 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8628 def size @size end |
#ssl_required ⇒ Boolean Also known as: ssl_required?
Whether creatives assigned to this placement must be SSL-compliant.
Corresponds to the JSON property sslRequired
8633 8634 8635 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8633 def ssl_required @ssl_required end |
#status ⇒ String
Third-party placement status.
Corresponds to the JSON property status
8639 8640 8641 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8639 def status @status end |
#subaccount_id ⇒ Fixnum
Subaccount ID of this placement. This field can be left blank.
Corresponds to the JSON property subaccountId
8644 8645 8646 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8644 def subaccount_id @subaccount_id end |
#tag_formats ⇒ Array<String>
Tag formats to generate for this placement. This field is required on
insertion. Acceptable values are: - "PLACEMENT_TAG_STANDARD" - "
PLACEMENT_TAG_IFRAME_JAVASCRIPT" - "PLACEMENT_TAG_IFRAME_ILAYER" - "
PLACEMENT_TAG_INTERNAL_REDIRECT" - "PLACEMENT_TAG_JAVASCRIPT" - "
PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT" - "
PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT" - "
PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT" - "PLACEMENT_TAG_CLICK_COMMANDS" - "
PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH" - "
PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3" - "
PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4" - "PLACEMENT_TAG_TRACKING" - "
PLACEMENT_TAG_TRACKING_IFRAME" - "PLACEMENT_TAG_TRACKING_JAVASCRIPT"
Corresponds to the JSON property tagFormats
8659 8660 8661 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8659 def tag_formats @tag_formats end |
#tag_setting ⇒ Google::Apis::DfareportingV3_5::TagSetting
Tag Settings
Corresponds to the JSON property tagSetting
8664 8665 8666 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8664 def tag_setting @tag_setting end |
#video_active_view_opt_out ⇒ Boolean Also known as: video_active_view_opt_out?
Whether Verification and ActiveView are disabled for in-stream video creatives
for this placement. The same setting videoActiveViewOptOut exists on the site
level -- the opt out occurs if either of these settings are true. These
settings are distinct from DirectorySites.settings.activeViewOptOut or Sites.
siteSettings.activeViewOptOut which only apply to display ads. However,
Accounts.activeViewOptOut opts out both video traffic, as well as display ads,
from Verification and ActiveView.
Corresponds to the JSON property videoActiveViewOptOut
8675 8676 8677 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8675 def video_active_view_opt_out @video_active_view_opt_out end |
#video_settings ⇒ Google::Apis::DfareportingV3_5::VideoSettings
Video Settings
Corresponds to the JSON property videoSettings
8681 8682 8683 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8681 def video_settings @video_settings end |
#vpaid_adapter_choice ⇒ String
VPAID adapter setting for this placement. Controls which VPAID format the
measurement adapter will use for in-stream video creatives assigned to this
placement. Note: Flash is no longer supported. This field now defaults to
HTML5 when the following values are provided: FLASH, BOTH.
Corresponds to the JSON property vpaidAdapterChoice
8689 8690 8691 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8689 def vpaid_adapter_choice @vpaid_adapter_choice end |
#wrapping_opt_out ⇒ Boolean Also known as: wrapping_opt_out?
Whether this placement opts out of tag wrapping.
Corresponds to the JSON property wrappingOptOut
8694 8695 8696 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8694 def wrapping_opt_out @wrapping_opt_out end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 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 'lib/google/apis/dfareporting_v3_5/classes.rb', line 8702 def update!(**args) @account_id = args[:account_id] if args.key?(:account_id) @ad_blocking_opt_out = args[:ad_blocking_opt_out] if args.key?(:ad_blocking_opt_out) @additional_sizes = args[:additional_sizes] if args.key?(:additional_sizes) @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) @comment = args[:comment] if args.key?(:comment) @compatibility = args[:compatibility] if args.key?(:compatibility) @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) @key_name = args[:key_name] if args.key?(:key_name) @kind = args[:kind] if args.key?(:kind) @last_modified_info = args[:last_modified_info] if args.key?(:last_modified_info) @lookback_configuration = args[:lookback_configuration] if args.key?(:lookback_configuration) @name = args[:name] if args.key?(:name) @partner_wrapping_data = args[:partner_wrapping_data] if args.key?(:partner_wrapping_data) @payment_approved = args[:payment_approved] if args.key?(:payment_approved) @payment_source = args[:payment_source] if args.key?(:payment_source) @placement_group_id = args[:placement_group_id] if args.key?(:placement_group_id) @placement_group_id_dimension_value = args[:placement_group_id_dimension_value] if args.key?(:placement_group_id_dimension_value) @placement_strategy_id = args[:placement_strategy_id] if args.key?(:placement_strategy_id) @pricing_schedule = args[:pricing_schedule] if args.key?(:pricing_schedule) @primary = args[:primary] if args.key?(:primary) @publisher_update_info = args[:publisher_update_info] if args.key?(:publisher_update_info) @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) @size = args[:size] if args.key?(:size) @ssl_required = args[:ssl_required] if args.key?(:ssl_required) @status = args[:status] if args.key?(:status) @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) @tag_formats = args[:tag_formats] if args.key?(:tag_formats) @tag_setting = args[:tag_setting] if args.key?(:tag_setting) @video_active_view_opt_out = args[:video_active_view_opt_out] if args.key?(:video_active_view_opt_out) @video_settings = args[:video_settings] if args.key?(:video_settings) @vpaid_adapter_choice = args[:vpaid_adapter_choice] if args.key?(:vpaid_adapter_choice) @wrapping_opt_out = args[:wrapping_opt_out] if args.key?(:wrapping_opt_out) end |