class Google::Apis::GanV1beta1::Link

A LinkResource.

Attributes

advertiser_id[RW]

The advertiser id for the advertiser who owns this link. Corresponds to the JSON property `advertiserId` @return [String]

authorship[RW]

Authorship Corresponds to the JSON property `authorship` @return [String]

availability[RW]

Availability. Corresponds to the JSON property `availability` @return [String]

click_tracking_url[RW]

Tracking url for clicks. Corresponds to the JSON property `clickTrackingUrl` @return [String]

create_date[RW]

Date that this link was created. Corresponds to the JSON property `createDate` @return [DateTime]

description[RW]

Description. Corresponds to the JSON property `description` @return [String]

destination_url[RW]

The destination URL for the link. Corresponds to the JSON property `destinationUrl` @return [String]

duration[RW]

Duration Corresponds to the JSON property `duration` @return [String]

end_date[RW]

Date that this link becomes inactive. Corresponds to the JSON property `endDate` @return [DateTime]

epc_ninety_day_average[RW]

An ApiMoneyProto. Corresponds to the JSON property `epcNinetyDayAverage` @return [Google::Apis::GanV1beta1::Money]

epc_seven_day_average[RW]

An ApiMoneyProto. Corresponds to the JSON property `epcSevenDayAverage` @return [Google::Apis::GanV1beta1::Money]

id[RW]

The ID of this link. Corresponds to the JSON property `id` @return [String]

image_alt_text[RW]

image alt text. Corresponds to the JSON property `imageAltText` @return [String]

impression_tracking_url[RW]

Tracking url for impressions. Corresponds to the JSON property `impressionTrackingUrl` @return [String]

is_active[RW]

Flag for if this link is active. Corresponds to the JSON property `isActive` @return [Boolean]

is_active?[RW]

Flag for if this link is active. Corresponds to the JSON property `isActive` @return [Boolean]

kind[RW]

The kind for one entity. Corresponds to the JSON property `kind` @return [String]

name[RW]

The logical name for this link. Corresponds to the JSON property `name` @return [String]

promotion_type[RW]

Promotion Type Corresponds to the JSON property `promotionType` @return [String]

special_offers[RW]

Special offers on the link. Corresponds to the JSON property `specialOffers` @return [Google::Apis::GanV1beta1::Link::SpecialOffers]

start_date[RW]

Date that this link becomes active. Corresponds to the JSON property `startDate` @return [DateTime]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/gan_v1beta1/classes.rb, line 1101
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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