Class: Google::Apis::GanV1beta1::Link
- Inherits:
-
Object
- Object
- Google::Apis::GanV1beta1::Link
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/gan_v1beta1/classes.rb,
generated/google/apis/gan_v1beta1/representations.rb,
generated/google/apis/gan_v1beta1/representations.rb
Overview
A LinkResource.
Defined Under Namespace
Classes: SpecialOffers
Instance Attribute Summary collapse
-
#advertiser_id ⇒ String
The advertiser id for the advertiser who owns this link.
-
#authorship ⇒ String
Authorship Corresponds to the JSON property
authorship
. -
#availability ⇒ String
Availability.
-
#click_tracking_url ⇒ String
Tracking url for clicks.
-
#create_date ⇒ DateTime
Date that this link was created.
-
#description ⇒ String
Description.
-
#destination_url ⇒ String
The destination URL for the link.
-
#duration ⇒ String
Duration Corresponds to the JSON property
duration
. -
#end_date ⇒ DateTime
Date that this link becomes inactive.
-
#epc_ninety_day_average ⇒ Google::Apis::GanV1beta1::Money
An ApiMoneyProto.
-
#epc_seven_day_average ⇒ Google::Apis::GanV1beta1::Money
An ApiMoneyProto.
-
#id ⇒ String
The ID of this link.
-
#image_alt_text ⇒ String
image alt text.
-
#impression_tracking_url ⇒ String
Tracking url for impressions.
-
#is_active ⇒ Boolean
(also: #is_active?)
Flag for if this link is active.
-
#kind ⇒ String
The kind for one entity.
-
#link_type ⇒ String
The link type.
-
#name ⇒ String
The logical name for this link.
-
#promotion_type ⇒ String
Promotion Type Corresponds to the JSON property
promotionType
. -
#special_offers ⇒ Google::Apis::GanV1beta1::Link::SpecialOffers
Special offers on the link.
-
#start_date ⇒ DateTime
Date that this link becomes active.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Link
constructor
A new instance of Link.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Link
Returns a new instance of Link
1101 1102 1103 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1101 def initialize(**args) update!(**args) end |
Instance Attribute Details
#advertiser_id ⇒ String
The advertiser id for the advertiser who owns this link.
Corresponds to the JSON property advertiserId
998 999 1000 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 998 def advertiser_id @advertiser_id end |
#authorship ⇒ String
Authorship
Corresponds to the JSON property authorship
1003 1004 1005 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1003 def @authorship end |
#availability ⇒ String
Availability.
Corresponds to the JSON property availability
1008 1009 1010 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1008 def availability @availability end |
#click_tracking_url ⇒ String
Tracking url for clicks.
Corresponds to the JSON property clickTrackingUrl
1013 1014 1015 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1013 def click_tracking_url @click_tracking_url end |
#create_date ⇒ DateTime
Date that this link was created.
Corresponds to the JSON property createDate
1018 1019 1020 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1018 def create_date @create_date end |
#description ⇒ String
Description.
Corresponds to the JSON property description
1023 1024 1025 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1023 def description @description end |
#destination_url ⇒ String
The destination URL for the link.
Corresponds to the JSON property destinationUrl
1028 1029 1030 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1028 def destination_url @destination_url end |
#duration ⇒ String
Duration
Corresponds to the JSON property duration
1033 1034 1035 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1033 def duration @duration end |
#end_date ⇒ DateTime
Date that this link becomes inactive.
Corresponds to the JSON property endDate
1038 1039 1040 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1038 def end_date @end_date end |
#epc_ninety_day_average ⇒ Google::Apis::GanV1beta1::Money
An ApiMoneyProto.
Corresponds to the JSON property epcNinetyDayAverage
1043 1044 1045 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1043 def epc_ninety_day_average @epc_ninety_day_average end |
#epc_seven_day_average ⇒ Google::Apis::GanV1beta1::Money
An ApiMoneyProto.
Corresponds to the JSON property epcSevenDayAverage
1048 1049 1050 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1048 def epc_seven_day_average @epc_seven_day_average end |
#id ⇒ String
The ID of this link.
Corresponds to the JSON property id
1053 1054 1055 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1053 def id @id end |
#image_alt_text ⇒ String
image alt text.
Corresponds to the JSON property imageAltText
1058 1059 1060 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1058 def image_alt_text @image_alt_text end |
#impression_tracking_url ⇒ String
Tracking url for impressions.
Corresponds to the JSON property impressionTrackingUrl
1063 1064 1065 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1063 def impression_tracking_url @impression_tracking_url end |
#is_active ⇒ Boolean Also known as: is_active?
Flag for if this link is active.
Corresponds to the JSON property isActive
1068 1069 1070 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1068 def is_active @is_active end |
#kind ⇒ String
The kind for one entity.
Corresponds to the JSON property kind
1074 1075 1076 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1074 def kind @kind end |
#link_type ⇒ String
The link type.
Corresponds to the JSON property linkType
1079 1080 1081 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1079 def link_type @link_type end |
#name ⇒ String
The logical name for this link.
Corresponds to the JSON property name
1084 1085 1086 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1084 def name @name end |
#promotion_type ⇒ String
Promotion Type
Corresponds to the JSON property promotionType
1089 1090 1091 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1089 def promotion_type @promotion_type end |
#special_offers ⇒ Google::Apis::GanV1beta1::Link::SpecialOffers
Special offers on the link.
Corresponds to the JSON property specialOffers
1094 1095 1096 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1094 def special_offers @special_offers end |
#start_date ⇒ DateTime
Date that this link becomes active.
Corresponds to the JSON property startDate
1099 1100 1101 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1099 def start_date @start_date end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1106 def update!(**args) @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) @authorship = args[:authorship] if args.key?(:authorship) @availability = args[:availability] if args.key?(:availability) @click_tracking_url = args[:click_tracking_url] if args.key?(:click_tracking_url) @create_date = args[:create_date] if args.key?(:create_date) @description = args[:description] if args.key?(:description) @destination_url = args[:destination_url] if args.key?(:destination_url) @duration = args[:duration] if args.key?(:duration) @end_date = args[:end_date] if args.key?(:end_date) @epc_ninety_day_average = args[:epc_ninety_day_average] if args.key?(:epc_ninety_day_average) @epc_seven_day_average = args[:epc_seven_day_average] if args.key?(:epc_seven_day_average) @id = args[:id] if args.key?(:id) @image_alt_text = args[:image_alt_text] if args.key?(:image_alt_text) @impression_tracking_url = args[:impression_tracking_url] if args.key?(:impression_tracking_url) @is_active = args[:is_active] if args.key?(:is_active) @kind = args[:kind] if args.key?(:kind) @link_type = args[:link_type] if args.key?(:link_type) @name = args[:name] if args.key?(:name) @promotion_type = args[:promotion_type] if args.key?(:promotion_type) @special_offers = args[:special_offers] if args.key?(:special_offers) @start_date = args[:start_date] if args.key?(:start_date) end |