class Google::Apis::GanV1beta1::Publisher

A PublisherResource.

Attributes

classification[RW]

Classification that this publisher belongs to. See this link for all publisher classifications: 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` @return [String]

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 publisher. Corresponds to the JSON property `id` @return [String]

item[RW]

A PublisherResource. Corresponds to the JSON property `item` @return [Google::Apis::GanV1beta1::Publisher]

join_date[RW]

Date that this publisher was approved as a Google Affiliate Network publisher. Corresponds to the JSON property `joinDate` @return [DateTime]

kind[RW]

The kind for a publisher. Corresponds to the JSON property `kind` @return [String]

name[RW]

The name of this publisher. Corresponds to the JSON property `name` @return [String]

payout_rank[RW]

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` @return [String]

sites[RW]

Websites that this publisher uses to advertise. Corresponds to the JSON property `sites` @return [Array<String>]

status[RW]

The status of the requesting advertiser's relationship with this publisher. Corresponds to the JSON property `status` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/gan_v1beta1/classes.rb, line 1313
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 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