Class: Google::Apis::GanV1beta1::Publisher

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 PublisherResource.

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

Returns a new instance of Publisher



1313
1314
1315
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1313

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

Instance Attribute Details

#classificationString

Classification that this publisher belongs to. See this link for all publisher classifications: http://www.google.com/support/affiliatenetwork/advertiser/bin/ answer.py?hl=en&answer=107625&ctx=cb&src=cb&cbid=-k5fihzthfaik&cbrank=4 Corresponds to the JSON property classification

Returns:

  • (String)


1259
1260
1261
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1259

def classification
  @classification
end

#epc_ninety_day_averageGoogle::Apis::GanV1beta1::Money

An ApiMoneyProto. Corresponds to the JSON property epcNinetyDayAverage



1264
1265
1266
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1264

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



1269
1270
1271
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1269

def epc_seven_day_average
  @epc_seven_day_average
end

#idString

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

Returns:

  • (String)


1274
1275
1276
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1274

def id
  @id
end

#itemGoogle::Apis::GanV1beta1::Publisher

A PublisherResource. Corresponds to the JSON property item



1279
1280
1281
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1279

def item
  @item
end

#join_dateDateTime

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

Returns:

  • (DateTime)


1284
1285
1286
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1284

def join_date
  @join_date
end

#kindString

The kind for a publisher. Corresponds to the JSON property kind

Returns:

  • (String)


1289
1290
1291
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1289

def kind
  @kind
end

#nameString

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

Returns:

  • (String)


1294
1295
1296
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1294

def name
  @name
end

#payout_rankString

A rank based on commissions paid to this publisher 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)


1301
1302
1303
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1301

def payout_rank
  @payout_rank
end

#sitesArray<String>

Websites that this publisher uses to advertise. Corresponds to the JSON property sites

Returns:

  • (Array<String>)


1306
1307
1308
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1306

def sites
  @sites
end

#statusString

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

Returns:

  • (String)


1311
1312
1313
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1311

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1318

def update!(**args)
  @classification = args[:classification] if args.key?(:classification)
  @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)
  @name = args[:name] if args.key?(:name)
  @payout_rank = args[:payout_rank] if args.key?(:payout_rank)
  @sites = args[:sites] if args.key?(:sites)
  @status = args[:status] if args.key?(:status)
end