Class: Google::Apis::RealtimebiddingV1::PolicyCompliance

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

Policy compliance of the creative for a transaction type or a region.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PolicyCompliance

Returns a new instance of PolicyCompliance.



1486
1487
1488
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1486

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#statusString

Serving status for the given transaction type (e.g., open auction, deals) or region (e.g., China, Russia). Can be used to filter the response of the creatives.list method. Corresponds to the JSON property status

Returns:

  • (String)


1477
1478
1479
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1477

def status
  @status
end

#topicsArray<Google::Apis::RealtimebiddingV1::PolicyTopicEntry>

Topics related to the policy compliance for this transaction type (e.g., open auction, deals) or region (e.g., China, Russia). Topics may be present only if status is DISAPPROVED. Corresponds to the JSON property topics



1484
1485
1486
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1484

def topics
  @topics
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1491
1492
1493
1494
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1491

def update!(**args)
  @status = args[:status] if args.key?(:status)
  @topics = args[:topics] if args.key?(:topics)
end