Class: Google::Apis::RealtimebiddingV1::AdvertiserAndBrand

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/realtimebidding_v1/classes.rb,
generated/google/apis/realtimebidding_v1/representations.rb,
generated/google/apis/realtimebidding_v1/representations.rb

Overview

Detected advertiser and brand information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AdvertiserAndBrand

Returns a new instance of AdvertiserAndBrand.



166
167
168
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 166

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

Instance Attribute Details

#advertiser_idFixnum

See https://storage.googleapis.com/adx-rtb-dictionaries/advertisers.txt for the list of possible values. Can be used to filter the response of the creatives.list method. Corresponds to the JSON property advertiserId

Returns:

  • (Fixnum)


146
147
148
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 146

def advertiser_id
  @advertiser_id
end

#advertiser_nameString

Advertiser name. Can be used to filter the response of the creatives.list method. Corresponds to the JSON property advertiserName

Returns:

  • (String)


152
153
154
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 152

def advertiser_name
  @advertiser_name
end

#brand_idFixnum

Detected brand ID or zero if no brand has been detected. See https://storage. googleapis.com/adx-rtb-dictionaries/brands.txt for the list of possible values. Can be used to filter the response of the creatives.list method. Corresponds to the JSON property brandId

Returns:

  • (Fixnum)


159
160
161
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 159

def brand_id
  @brand_id
end

#brand_nameString

Brand name. Can be used to filter the response of the creatives.list method. Corresponds to the JSON property brandName

Returns:

  • (String)


164
165
166
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 164

def brand_name
  @brand_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



171
172
173
174
175
176
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 171

def update!(**args)
  @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
  @advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name)
  @brand_id = args[:brand_id] if args.key?(:brand_id)
  @brand_name = args[:brand_name] if args.key?(:brand_name)
end