Class: Google::Apis::AdexchangebuyerV1_4::Product
- Inherits:
-
Object
- Object
- Google::Apis::AdexchangebuyerV1_4::Product
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/adexchangebuyer_v1_4/classes.rb,
generated/google/apis/adexchangebuyer_v1_4/representations.rb,
generated/google/apis/adexchangebuyer_v1_4/representations.rb
Overview
A product is segment of inventory that a seller wishes to sell. It is associated with certain terms and targeting information which helps buyer know more about the inventory. Each field in a product can have one of the following setting: (readonly) - It is an error to try and set this field. (buyer-readonly) - Only the seller can set this field. (seller-readonly) - Only the buyer can set this field. (updatable) - The field is updatable at all times by either buyer or the seller.
Instance Attribute Summary collapse
-
#billed_buyer ⇒ Google::Apis::AdexchangebuyerV1_4::Buyer
The billed buyer corresponding to the buyer that created the offer.
-
#buyer ⇒ Google::Apis::AdexchangebuyerV1_4::Buyer
The buyer that created the offer if this is a buyer initiated offer (readonly, except on create) Corresponds to the JSON property
buyer
. -
#creation_time_ms ⇒ Fixnum
Creation time in ms.
-
#creator_contacts ⇒ Array<Google::Apis::AdexchangebuyerV1_4::ContactInformation>
Optional contact information for the creator of this product.
-
#creator_role ⇒ String
The role that created the offer.
-
#delivery_control ⇒ Google::Apis::AdexchangebuyerV1_4::DeliveryControl
The set of fields around delivery control that are interesting for a buyer to see but are non-negotiable.
-
#flight_end_time_ms ⇒ Fixnum
The proposed end time for the deal (ms since epoch) (buyer-readonly) Corresponds to the JSON property
flightEndTimeMs
. -
#flight_start_time_ms ⇒ Fixnum
Inventory availability dates.
-
#has_creator_signed_off ⇒ Boolean
(also: #has_creator_signed_off?)
If the creator has already signed off on the product, then the buyer can finalize the deal by accepting the product as is.
-
#inventory_source ⇒ String
What exchange will provide this inventory (readonly, except on create).
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#labels ⇒ Array<Google::Apis::AdexchangebuyerV1_4::MarketplaceLabel>
Optional List of labels for the product (optional, buyer-readonly).
-
#last_update_time_ms ⇒ Fixnum
Time of last update in ms.
-
#legacy_offer_id ⇒ String
Optional legacy offer id if this offer is a preferred deal offer.
-
#marketplace_publisher_profile_id ⇒ String
Marketplace publisher profile Id.
-
#name ⇒ String
The name for this product as set by the seller.
-
#private_auction_id ⇒ String
Optional private auction id if this offer is a private auction offer.
-
#product_id ⇒ String
The unique id for the product (readonly) Corresponds to the JSON property
productId
. -
#publisher_profile_id ⇒ String
Id of the publisher profile for a given seller.
-
#publisher_provided_forecast ⇒ Google::Apis::AdexchangebuyerV1_4::PublisherProvidedForecast
This message carries publisher provided forecasting information.
-
#revision_number ⇒ Fixnum
The revision number of the product.
-
#seller ⇒ Google::Apis::AdexchangebuyerV1_4::Seller
Information about the seller that created this product (readonly, except on create) Corresponds to the JSON property
seller
. -
#shared_targetings ⇒ Array<Google::Apis::AdexchangebuyerV1_4::SharedTargeting>
Targeting that is shared between the buyer and the seller.
-
#state ⇒ String
The state of the product.
-
#syndication_product ⇒ String
The syndication product associated with the deal.
-
#terms ⇒ Google::Apis::AdexchangebuyerV1_4::DealTerms
The negotiable terms of the deal (buyer-readonly) Corresponds to the JSON property
terms
. -
#web_property_code ⇒ String
The web property code for the seller.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Product
constructor
A new instance of Product.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Product
Returns a new instance of Product
2979 2980 2981 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2979 def initialize(**args) update!(**args) end |
Instance Attribute Details
#billed_buyer ⇒ Google::Apis::AdexchangebuyerV1_4::Buyer
The billed buyer corresponding to the buyer that created the offer. (readonly,
except on create)
Corresponds to the JSON property billedBuyer
2827 2828 2829 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2827 def billed_buyer @billed_buyer end |
#buyer ⇒ Google::Apis::AdexchangebuyerV1_4::Buyer
The buyer that created the offer if this is a buyer initiated offer (readonly,
except on create)
Corresponds to the JSON property buyer
2833 2834 2835 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2833 def buyer @buyer end |
#creation_time_ms ⇒ Fixnum
Creation time in ms. since epoch (readonly)
Corresponds to the JSON property creationTimeMs
2838 2839 2840 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2838 def creation_time_ms @creation_time_ms end |
#creator_contacts ⇒ Array<Google::Apis::AdexchangebuyerV1_4::ContactInformation>
Optional contact information for the creator of this product. (buyer-readonly)
Corresponds to the JSON property creatorContacts
2843 2844 2845 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2843 def creator_contacts @creator_contacts end |
#creator_role ⇒ String
The role that created the offer. Set to BUYER for buyer initiated offers.
Corresponds to the JSON property creatorRole
2848 2849 2850 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2848 def creator_role @creator_role end |
#delivery_control ⇒ Google::Apis::AdexchangebuyerV1_4::DeliveryControl
The set of fields around delivery control that are interesting for a buyer to
see but are non-negotiable. These are set by the publisher. This message is
assigned an id of 100 since some day we would want to model this as a protobuf
extension.
Corresponds to the JSON property deliveryControl
2856 2857 2858 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2856 def delivery_control @delivery_control end |
#flight_end_time_ms ⇒ Fixnum
The proposed end time for the deal (ms since epoch) (buyer-readonly)
Corresponds to the JSON property flightEndTimeMs
2861 2862 2863 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2861 def flight_end_time_ms @flight_end_time_ms end |
#flight_start_time_ms ⇒ Fixnum
Inventory availability dates. (times are in ms since epoch) The granularity is
generally in the order of seconds. (buyer-readonly)
Corresponds to the JSON property flightStartTimeMs
2867 2868 2869 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2867 def flight_start_time_ms @flight_start_time_ms end |
#has_creator_signed_off ⇒ Boolean Also known as: has_creator_signed_off?
If the creator has already signed off on the product, then the buyer can
finalize the deal by accepting the product as is. When copying to a proposal,
if any of the terms are changed, then auto_finalize is automatically set to
false.
Corresponds to the JSON property hasCreatorSignedOff
2875 2876 2877 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2875 def has_creator_signed_off @has_creator_signed_off end |
#inventory_source ⇒ String
What exchange will provide this inventory (readonly, except on create).
Corresponds to the JSON property inventorySource
2881 2882 2883 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2881 def inventory_source @inventory_source end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
adexchangebuyer#product".
Corresponds to the JSON property kind
2887 2888 2889 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2887 def kind @kind end |
#labels ⇒ Array<Google::Apis::AdexchangebuyerV1_4::MarketplaceLabel>
Optional List of labels for the product (optional, buyer-readonly).
Corresponds to the JSON property labels
2892 2893 2894 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2892 def labels @labels end |
#last_update_time_ms ⇒ Fixnum
Time of last update in ms. since epoch (readonly)
Corresponds to the JSON property lastUpdateTimeMs
2897 2898 2899 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2897 def last_update_time_ms @last_update_time_ms end |
#legacy_offer_id ⇒ String
Optional legacy offer id if this offer is a preferred deal offer.
Corresponds to the JSON property legacyOfferId
2902 2903 2904 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2902 def legacy_offer_id @legacy_offer_id end |
#marketplace_publisher_profile_id ⇒ String
Marketplace publisher profile Id. This Id differs from the regular
publisher_profile_id in that 1. This is a new id, the old Id will be
deprecated in 2017. 2. This id uniquely identifies a publisher profile by
itself.
Corresponds to the JSON property marketplacePublisherProfileId
2910 2911 2912 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2910 def marketplace_publisher_profile_id @marketplace_publisher_profile_id end |
#name ⇒ String
The name for this product as set by the seller. (buyer-readonly)
Corresponds to the JSON property name
2915 2916 2917 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2915 def name @name end |
#private_auction_id ⇒ String
Optional private auction id if this offer is a private auction offer.
Corresponds to the JSON property privateAuctionId
2920 2921 2922 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2920 def private_auction_id @private_auction_id end |
#product_id ⇒ String
The unique id for the product (readonly)
Corresponds to the JSON property productId
2925 2926 2927 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2925 def product_id @product_id end |
#publisher_profile_id ⇒ String
Id of the publisher profile for a given seller. A (seller.account_id,
publisher_profile_id) pair uniquely identifies a publisher profile. Buyers can
call the PublisherProfiles::List endpoint to get a list of publisher profiles
for a given seller.
Corresponds to the JSON property publisherProfileId
2933 2934 2935 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2933 def publisher_profile_id @publisher_profile_id end |
#publisher_provided_forecast ⇒ Google::Apis::AdexchangebuyerV1_4::PublisherProvidedForecast
This message carries publisher provided forecasting information.
Corresponds to the JSON property publisherProvidedForecast
2938 2939 2940 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2938 def publisher_provided_forecast @publisher_provided_forecast end |
#revision_number ⇒ Fixnum
The revision number of the product. (readonly)
Corresponds to the JSON property revisionNumber
2943 2944 2945 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2943 def revision_number @revision_number end |
#seller ⇒ Google::Apis::AdexchangebuyerV1_4::Seller
Information about the seller that created this product (readonly, except on
create)
Corresponds to the JSON property seller
2949 2950 2951 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2949 def seller @seller end |
#shared_targetings ⇒ Array<Google::Apis::AdexchangebuyerV1_4::SharedTargeting>
Targeting that is shared between the buyer and the seller. Each targeting
criteria has a specified key and for each key there is a list of inclusion
value or exclusion values. (buyer-readonly)
Corresponds to the JSON property sharedTargetings
2956 2957 2958 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2956 def shared_targetings @shared_targetings end |
#state ⇒ String
The state of the product. (buyer-readonly)
Corresponds to the JSON property state
2961 2962 2963 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2961 def state @state end |
#syndication_product ⇒ String
The syndication product associated with the deal. (readonly, except on create)
Corresponds to the JSON property syndicationProduct
2966 2967 2968 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2966 def @syndication_product end |
#terms ⇒ Google::Apis::AdexchangebuyerV1_4::DealTerms
The negotiable terms of the deal (buyer-readonly)
Corresponds to the JSON property terms
2971 2972 2973 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2971 def terms @terms end |
#web_property_code ⇒ String
The web property code for the seller. This field is meant to be copied over as
is when creating deals.
Corresponds to the JSON property webPropertyCode
2977 2978 2979 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2977 def web_property_code @web_property_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2984 def update!(**args) @billed_buyer = args[:billed_buyer] if args.key?(:billed_buyer) @buyer = args[:buyer] if args.key?(:buyer) @creation_time_ms = args[:creation_time_ms] if args.key?(:creation_time_ms) @creator_contacts = args[:creator_contacts] if args.key?(:creator_contacts) @creator_role = args[:creator_role] if args.key?(:creator_role) @delivery_control = args[:delivery_control] if args.key?(:delivery_control) @flight_end_time_ms = args[:flight_end_time_ms] if args.key?(:flight_end_time_ms) @flight_start_time_ms = args[:flight_start_time_ms] if args.key?(:flight_start_time_ms) @has_creator_signed_off = args[:has_creator_signed_off] if args.key?(:has_creator_signed_off) @inventory_source = args[:inventory_source] if args.key?(:inventory_source) @kind = args[:kind] if args.key?(:kind) @labels = args[:labels] if args.key?(:labels) @last_update_time_ms = args[:last_update_time_ms] if args.key?(:last_update_time_ms) @legacy_offer_id = args[:legacy_offer_id] if args.key?(:legacy_offer_id) @marketplace_publisher_profile_id = args[:marketplace_publisher_profile_id] if args.key?(:marketplace_publisher_profile_id) @name = args[:name] if args.key?(:name) @private_auction_id = args[:private_auction_id] if args.key?(:private_auction_id) @product_id = args[:product_id] if args.key?(:product_id) @publisher_profile_id = args[:publisher_profile_id] if args.key?(:publisher_profile_id) @publisher_provided_forecast = args[:publisher_provided_forecast] if args.key?(:publisher_provided_forecast) @revision_number = args[:revision_number] if args.key?(:revision_number) @seller = args[:seller] if args.key?(:seller) @shared_targetings = args[:shared_targetings] if args.key?(:shared_targetings) @state = args[:state] if args.key?(:state) @syndication_product = args[:syndication_product] if args.key?(:syndication_product) @terms = args[:terms] if args.key?(:terms) @web_property_code = args[:web_property_code] if args.key?(:web_property_code) end |