Class: Google::Apis::RealtimebiddingV1::AddTargetedPublishersRequest

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

A request to start targeting the provided publishers in a specific pretargeting configuration. The pretargeting configuration itself specifies how these publishers are targeted in PretargetingConfig.publisherTargeting.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AddTargetedPublishersRequest

Returns a new instance of AddTargetedPublishersRequest.



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

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

Instance Attribute Details

#publisher_idsArray<String>

A list of publisher IDs to target in the pretargeting configuration. These values will be added to the list of targeted publisher IDs in PretargetingConfig.publisherTargeting.values. Publishers are identified by their publisher ID from ads.txt / app-ads.txt. See https://iabtechlab.com/ads- txt/ and https://iabtechlab.com/app-ads-txt/ for more details. Corresponds to the JSON property publisherIds

Returns:

  • (Array<String>)


136
137
138
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 136

def publisher_ids
  @publisher_ids
end

#targeting_modeString

Required. The targeting mode that should be applied to the list of publisher IDs. If are existing publisher IDs, must be equal to the existing PretargetingConfig.publisherTargeting.targetingMode or a 400 bad request error will be returned. Corresponds to the JSON property targetingMode

Returns:

  • (String)


144
145
146
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 144

def targeting_mode
  @targeting_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

def update!(**args)
  @publisher_ids = args[:publisher_ids] if args.key?(:publisher_ids)
  @targeting_mode = args[:targeting_mode] if args.key?(:targeting_mode)
end