Class: Google::Apis::GanV1beta1::Advertiser
- Inherits:
-
Object
- Object
- Google::Apis::GanV1beta1::Advertiser
- 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
-
#allow_publisher_created_links ⇒ Boolean
(also: #allow_publisher_created_links?)
True if the advertiser allows publisher created links, otherwise false.
-
#category ⇒ String
Category that this advertiser belongs to.
-
#commission_duration ⇒ Fixnum
The longest possible length of a commission (how long the cookies on the customer's browser last before they expire).
-
#contact_email ⇒ String
Email that this advertiser would like publishers to contact them with.
-
#contact_phone ⇒ String
Phone that this advertiser would like publishers to contact them with.
-
#default_link_id ⇒ String
The default link id for this advertiser.
-
#description ⇒ String
Description of the website the advertiser advertises from.
-
#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 advertiser.
-
#item ⇒ Google::Apis::GanV1beta1::Advertiser
An AdvertiserResource.
-
#join_date ⇒ DateTime
Date that this advertiser was approved as a Google Affiliate Network advertiser.
-
#kind ⇒ String
The kind for an advertiser.
-
#logo_url ⇒ String
URL to the logo this advertiser uses on the Google Affiliate Network.
-
#merchant_center_ids ⇒ Array<String>
List of merchant center ids for this advertiser Corresponds to the JSON property
merchantCenterIds
. -
#name ⇒ String
The name of this advertiser.
-
#payout_rank ⇒ String
A rank based on commissions paid to publishers over the past 90 days.
-
#product_feeds_enabled ⇒ Boolean
(also: #product_feeds_enabled?)
Allows advertisers to submit product listings to Google Product Search.
-
#redirect_domains ⇒ Array<String>
List of redirect URLs for this advertiser Corresponds to the JSON property
redirectDomains
. -
#site_url ⇒ String
URL of the website this advertiser advertises from.
-
#status ⇒ String
The status of the requesting publisher's relationship this advertiser.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Advertiser
constructor
A new instance of Advertiser.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#allow_publisher_created_links ⇒ Boolean Also known as: allow_publisher_created_links?
True if the advertiser allows publisher created links, otherwise false.
Corresponds to the JSON property allowPublisherCreatedLinks
32 33 34 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 32 def allow_publisher_created_links @allow_publisher_created_links end |
#category ⇒ String
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
40 41 42 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 40 def category @category end |
#commission_duration ⇒ Fixnum
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
46 47 48 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 46 def commission_duration @commission_duration end |
#contact_email ⇒ String
Email that this advertiser would like publishers to contact them with.
Corresponds to the JSON property contactEmail
51 52 53 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 51 def contact_email @contact_email end |
#contact_phone ⇒ String
Phone that this advertiser would like publishers to contact them with.
Corresponds to the JSON property contactPhone
56 57 58 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 56 def contact_phone @contact_phone end |
#default_link_id ⇒ String
The default link id for this advertiser.
Corresponds to the JSON property defaultLinkId
61 62 63 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 61 def default_link_id @default_link_id end |
#description ⇒ String
Description of the website the advertiser advertises from.
Corresponds to the JSON property description
66 67 68 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 66 def description @description end |
#epc_ninety_day_average ⇒ Google::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_average ⇒ Google::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 |
#id ⇒ String
The ID of this advertiser.
Corresponds to the JSON property id
81 82 83 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 81 def id @id end |
#item ⇒ Google::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_date ⇒ DateTime
Date that this advertiser was approved as a Google Affiliate Network
advertiser.
Corresponds to the JSON property joinDate
92 93 94 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 92 def join_date @join_date end |
#kind ⇒ String
The kind for an advertiser.
Corresponds to the JSON property kind
97 98 99 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 97 def kind @kind end |
#logo_url ⇒ String
URL to the logo this advertiser uses on the Google Affiliate Network.
Corresponds to the JSON property logoUrl
102 103 104 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 102 def logo_url @logo_url end |
#merchant_center_ids ⇒ Array<String>
List of merchant center ids for this advertiser
Corresponds to the JSON property merchantCenterIds
107 108 109 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 107 def merchant_center_ids @merchant_center_ids end |
#name ⇒ String
The name of this advertiser.
Corresponds to the JSON property name
112 113 114 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 112 def name @name end |
#payout_rank ⇒ String
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
119 120 121 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 119 def payout_rank @payout_rank end |
#product_feeds_enabled ⇒ Boolean Also known as: product_feeds_enabled?
Allows advertisers to submit product listings to Google Product Search.
Corresponds to the JSON property productFeedsEnabled
124 125 126 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 124 def product_feeds_enabled @product_feeds_enabled end |
#redirect_domains ⇒ Array<String>
List of redirect URLs for this advertiser
Corresponds to the JSON property redirectDomains
130 131 132 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 130 def redirect_domains @redirect_domains end |
#site_url ⇒ String
URL of the website this advertiser advertises from.
Corresponds to the JSON property siteUrl
135 136 137 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 135 def site_url @site_url end |
#status ⇒ String
The status of the requesting publisher's relationship this advertiser.
Corresponds to the JSON property status
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 |