Class: Google::Apis::RealtimebiddingV1::AddTargetedSitesRequest
- Inherits:
-
Object
- Object
- Google::Apis::RealtimebiddingV1::AddTargetedSitesRequest
- 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 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.
178 179 180 |
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 178 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
168 169 170 |
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 168 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
176 177 178 |
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 176 def targeting_mode @targeting_mode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
183 184 185 186 |
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 183 def update!(**args) @sites = args[:sites] if args.key?(:sites) @targeting_mode = args[:targeting_mode] if args.key?(:targeting_mode) end |