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

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



126
127
128
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 126

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


116
117
118
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 116

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)


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