Class: Google::Apis::GanV1beta1::Link

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_idString

The advertiser id for the advertiser who owns this link. Corresponds to the JSON property advertiserId

Returns:

  • (String)


998
999
1000
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 998

def advertiser_id
  @advertiser_id
end

#authorshipString

Authorship Corresponds to the JSON property authorship

Returns:

  • (String)


1003
1004
1005
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1003

def authorship
  @authorship
end

#availabilityString

Availability. Corresponds to the JSON property availability

Returns:

  • (String)


1008
1009
1010
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1008

def availability
  @availability
end

#click_tracking_urlString

Tracking url for clicks. Corresponds to the JSON property clickTrackingUrl

Returns:

  • (String)


1013
1014
1015
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1013

def click_tracking_url
  @click_tracking_url
end

#create_dateDateTime

Date that this link was created. Corresponds to the JSON property createDate

Returns:

  • (DateTime)


1018
1019
1020
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1018

def create_date
  @create_date
end

#descriptionString

Description. Corresponds to the JSON property description

Returns:

  • (String)


1023
1024
1025
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1023

def description
  @description
end

#destination_urlString

The destination URL for the link. Corresponds to the JSON property destinationUrl

Returns:

  • (String)


1028
1029
1030
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1028

def destination_url
  @destination_url
end

#durationString

Duration Corresponds to the JSON property duration

Returns:

  • (String)


1033
1034
1035
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1033

def duration
  @duration
end

#end_dateDateTime

Date that this link becomes inactive. Corresponds to the JSON property endDate

Returns:

  • (DateTime)


1038
1039
1040
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1038

def end_date
  @end_date
end

#epc_ninety_day_averageGoogle::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_averageGoogle::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

#idString

The ID of this link. Corresponds to the JSON property id

Returns:

  • (String)


1053
1054
1055
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1053

def id
  @id
end

#image_alt_textString

image alt text. Corresponds to the JSON property imageAltText

Returns:

  • (String)


1058
1059
1060
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1058

def image_alt_text
  @image_alt_text
end

#impression_tracking_urlString

Tracking url for impressions. Corresponds to the JSON property impressionTrackingUrl

Returns:

  • (String)


1063
1064
1065
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1063

def impression_tracking_url
  @impression_tracking_url
end

#is_activeBoolean Also known as: is_active?

Flag for if this link is active. Corresponds to the JSON property isActive

Returns:

  • (Boolean)


1068
1069
1070
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1068

def is_active
  @is_active
end

#kindString

The kind for one entity. Corresponds to the JSON property kind

Returns:

  • (String)


1074
1075
1076
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1074

def kind
  @kind
end

The link type. Corresponds to the JSON property linkType

Returns:

  • (String)


1079
1080
1081
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1079

def link_type
  @link_type
end

#nameString

The logical name for this link. Corresponds to the JSON property name

Returns:

  • (String)


1084
1085
1086
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1084

def name
  @name
end

#promotion_typeString

Promotion Type Corresponds to the JSON property promotionType

Returns:

  • (String)


1089
1090
1091
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1089

def promotion_type
  @promotion_type
end

#special_offersGoogle::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_dateDateTime

Date that this link becomes active. Corresponds to the JSON property startDate

Returns:

  • (DateTime)


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