Class: Google::Apis::RealtimebiddingV1::AddTargetedSitesRequest
- Inherits:
-
Object
- Object
- Google::Apis::RealtimebiddingV1::AddTargetedSitesRequest
- 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 sites in a specific pretargeting configuration. The pretargeting configuration itself specifies how these sites are targeted in PretargetingConfig.webTargeting.
Instance Attribute Summary collapse
-
#sites ⇒ Array<String>
A list of site URLs to target in the pretargeting configuration.
-
#targeting_mode ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AddTargetedSitesRequest
constructor
A new instance of AddTargetedSitesRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AddTargetedSitesRequest
Returns a new instance of AddTargetedSitesRequest.
126 127 128 |
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 126 def initialize(**args) update!(**args) end |
Instance Attribute Details
#sites ⇒ Array<String>
A list of site URLs to target in the pretargeting configuration. These values
will be added to the list of targeted URLs in PretargetingConfig.webTargeting.
values.
Corresponds to the JSON property sites
116 117 118 |
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 116 def sites @sites end |
#targeting_mode ⇒ String
Required. The targeting mode that should be applied to the list of site URLs.
If there are existing targeted sites, must be equal to the existing
PretargetingConfig.webTargeting.targetingMode or a 400 bad request error will
be returned.
Corresponds to the JSON property targetingMode
124 125 126 |
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 124 def targeting_mode @targeting_mode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
131 132 133 134 |
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 131 def update!(**args) @sites = args[:sites] if args.key?(:sites) @targeting_mode = args[:targeting_mode] if args.key?(:targeting_mode) end |