Method: PinterestSdkClient::AdGroupResponse#valid?
- Defined in:
- lib/pinterest_sdk/models/ad_group_response.rb
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
329 330 331 332 333 334 335 336 337 338 |
# File 'lib/pinterest_sdk/models/ad_group_response.rb', line 329 def valid? budget_type_validator = EnumAttributeValidator.new('String', ["DAILY", "LIFETIME", "CBO_ADGROUP"]) return false unless budget_type_validator.valid?(@budget_type) conversion_learning_mode_type_validator = EnumAttributeValidator.new('String', ["NOT_ACTIVE", "ACTIVE", "null"]) return false unless conversion_learning_mode_type_validator.valid?(@conversion_learning_mode_type) return false if !@campaign_id.nil? && @campaign_id !~ Regexp.new(/^\d+$/) return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/) return false if !@ad_account_id.nil? && @ad_account_id !~ Regexp.new(/^\d+$/) true end |