Class: Google::Apis::GanV1beta1::Advertiser

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

An AdvertiserResource.

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) ⇒ Advertiser

Returns a new instance of Advertiser.



142
143
144
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 142

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

True if the advertiser allows publisher created links, otherwise false. Corresponds to the JSON property allowPublisherCreatedLinks

Returns:

  • (Boolean)


32
33
34
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 32

def allow_publisher_created_links
  @allow_publisher_created_links
end

#categoryString

Category that this advertiser belongs to. A valid list of categories can be found here: http://www.google.com/support/affiliatenetwork/advertiser/bin/ answer.py?hl=en&answer=107581 Corresponds to the JSON property category

Returns:

  • (String)


40
41
42
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 40

def category
  @category
end

#commission_durationFixnum

The longest possible length of a commission (how long the cookies on the customer's browser last before they expire). Corresponds to the JSON property commissionDuration

Returns:

  • (Fixnum)


46
47
48
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 46

def commission_duration
  @commission_duration
end

#contact_emailString

Email that this advertiser would like publishers to contact them with. Corresponds to the JSON property contactEmail

Returns:

  • (String)


51
52
53
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 51

def contact_email
  @contact_email
end

#contact_phoneString

Phone that this advertiser would like publishers to contact them with. Corresponds to the JSON property contactPhone

Returns:

  • (String)


56
57
58
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 56

def contact_phone
  @contact_phone
end

The default link id for this advertiser. Corresponds to the JSON property defaultLinkId

Returns:

  • (String)


61
62
63
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 61

def default_link_id
  @default_link_id
end

#descriptionString

Description of the website the advertiser advertises from. Corresponds to the JSON property description

Returns:

  • (String)


66
67
68
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 66

def description
  @description
end

#epc_ninety_day_averageGoogle::Apis::GanV1beta1::Money

An ApiMoneyProto. Corresponds to the JSON property epcNinetyDayAverage



71
72
73
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 71

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



76
77
78
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 76

def epc_seven_day_average
  @epc_seven_day_average
end

#idString

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

Returns:

  • (String)


81
82
83
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 81

def id
  @id
end

#itemGoogle::Apis::GanV1beta1::Advertiser

An AdvertiserResource. Corresponds to the JSON property item



86
87
88
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 86

def item
  @item
end

#join_dateDateTime

Date that this advertiser was approved as a Google Affiliate Network advertiser. Corresponds to the JSON property joinDate

Returns:

  • (DateTime)


92
93
94
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 92

def join_date
  @join_date
end

#kindString

The kind for an advertiser. Corresponds to the JSON property kind

Returns:

  • (String)


97
98
99
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 97

def kind
  @kind
end

#logo_urlString

URL to the logo this advertiser uses on the Google Affiliate Network. Corresponds to the JSON property logoUrl

Returns:

  • (String)


102
103
104
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 102

def logo_url
  @logo_url
end

#merchant_center_idsArray<String>

List of merchant center ids for this advertiser Corresponds to the JSON property merchantCenterIds

Returns:

  • (Array<String>)


107
108
109
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 107

def merchant_center_ids
  @merchant_center_ids
end

#nameString

The name of this advertiser. Corresponds to the JSON property name

Returns:

  • (String)


112
113
114
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 112

def name
  @name
end

#payout_rankString

A rank based on commissions paid to publishers over the past 90 days. A number between 1 and 4 where 4 means the top quartile (most money paid) and 1 means the bottom quartile (least money paid). Corresponds to the JSON property payoutRank

Returns:

  • (String)


119
120
121
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 119

def payout_rank
  @payout_rank
end

#product_feeds_enabledBoolean Also known as: product_feeds_enabled?

Allows advertisers to submit product listings to Google Product Search. Corresponds to the JSON property productFeedsEnabled

Returns:

  • (Boolean)


124
125
126
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 124

def product_feeds_enabled
  @product_feeds_enabled
end

#redirect_domainsArray<String>

List of redirect URLs for this advertiser Corresponds to the JSON property redirectDomains

Returns:

  • (Array<String>)


130
131
132
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 130

def redirect_domains
  @redirect_domains
end

#site_urlString

URL of the website this advertiser advertises from. Corresponds to the JSON property siteUrl

Returns:

  • (String)


135
136
137
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 135

def site_url
  @site_url
end

#statusString

The status of the requesting publisher's relationship this advertiser. Corresponds to the JSON property status

Returns:

  • (String)


140
141
142
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 140

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 147

def update!(**args)
  @allow_publisher_created_links = args[:allow_publisher_created_links] if args.key?(:allow_publisher_created_links)
  @category = args[:category] if args.key?(:category)
  @commission_duration = args[:commission_duration] if args.key?(:commission_duration)
  @contact_email = args[:contact_email] if args.key?(:contact_email)
  @contact_phone = args[:contact_phone] if args.key?(:contact_phone)
  @default_link_id = args[:default_link_id] if args.key?(:default_link_id)
  @description = args[:description] if args.key?(:description)
  @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)
  @item = args[:item] if args.key?(:item)
  @join_date = args[:join_date] if args.key?(:join_date)
  @kind = args[:kind] if args.key?(:kind)
  @logo_url = args[:logo_url] if args.key?(:logo_url)
  @merchant_center_ids = args[:merchant_center_ids] if args.key?(:merchant_center_ids)
  @name = args[:name] if args.key?(:name)
  @payout_rank = args[:payout_rank] if args.key?(:payout_rank)
  @product_feeds_enabled = args[:product_feeds_enabled] if args.key?(:product_feeds_enabled)
  @redirect_domains = args[:redirect_domains] if args.key?(:redirect_domains)
  @site_url = args[:site_url] if args.key?(:site_url)
  @status = args[:status] if args.key?(:status)
end