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

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

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.



94
95
96
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 94

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>)


84
85
86
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 84

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)


92
93
94
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 92

def targeting_mode
  @targeting_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



99
100
101
102
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 99

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