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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/realtimebidding_v1/classes.rb,
lib/google/apis/realtimebidding_v1/representations.rb,
lib/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.



218
219
220
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 218

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)


198
199
200
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 198

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)


204
205
206
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 204

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)


211
212
213
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 211

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)


216
217
218
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 216

def brand_name
  @brand_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



223
224
225
226
227
228
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 223

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