Class: Google::Apis::GanV1beta1::Publisher
- Inherits:
-
Object
- Object
- Google::Apis::GanV1beta1::Publisher
- 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
-
#classification ⇒ String
Classification that this publisher belongs to.
-
#epc_ninety_day_average ⇒ Google::Apis::GanV1beta1::Money
An ApiMoneyProto.
-
#epc_seven_day_average ⇒ Google::Apis::GanV1beta1::Money
An ApiMoneyProto.
-
#id ⇒ String
The ID of this publisher.
-
#item ⇒ Google::Apis::GanV1beta1::Publisher
A PublisherResource.
-
#join_date ⇒ DateTime
Date that this publisher was approved as a Google Affiliate Network publisher.
-
#kind ⇒ String
The kind for a publisher.
-
#name ⇒ String
The name of this publisher.
-
#payout_rank ⇒ String
A rank based on commissions paid to this publisher over the past 90 days.
-
#sites ⇒ Array<String>
Websites that this publisher uses to advertise.
-
#status ⇒ String
The status of the requesting advertiser's relationship with this publisher.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Publisher
constructor
A new instance of Publisher.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#classification ⇒ String
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
1259 1260 1261 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1259 def classification @classification end |
#epc_ninety_day_average ⇒ Google::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_average ⇒ Google::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 |
#id ⇒ String
The ID of this publisher.
Corresponds to the JSON property id
1274 1275 1276 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1274 def id @id end |
#item ⇒ Google::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_date ⇒ DateTime
Date that this publisher was approved as a Google Affiliate Network publisher.
Corresponds to the JSON property joinDate
1284 1285 1286 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1284 def join_date @join_date end |
#kind ⇒ String
The kind for a publisher.
Corresponds to the JSON property kind
1289 1290 1291 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1289 def kind @kind end |
#name ⇒ String
The name of this publisher.
Corresponds to the JSON property name
1294 1295 1296 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1294 def name @name end |
#payout_rank ⇒ String
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
1301 1302 1303 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1301 def payout_rank @payout_rank end |
#sites ⇒ Array<String>
Websites that this publisher uses to advertise.
Corresponds to the JSON property sites
1306 1307 1308 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1306 def sites @sites end |
#status ⇒ String
The status of the requesting advertiser's relationship with this publisher.
Corresponds to the JSON property status
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 |