Class: Google::Apis::RealtimebiddingV1::AddTargetedSitesRequest

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 sites in a specific pretargeting configuration. The pretargeting configuration itself specifies how these sites are targeted in PretargetingConfig.webTargeting.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#sitesArray<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

Returns:

  • (Array<String>)


168
169
170
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 168

def sites
  @sites
end

#targeting_modeString

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

Returns:

  • (String)


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