Class: Google::Apis::ContentV2_1::ShoppingAdsProgramStatus

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb

Overview

Response message for GetShoppingAdsProgramStatus.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ShoppingAdsProgramStatus

Returns a new instance of ShoppingAdsProgramStatus.



13847
13848
13849
# File 'lib/google/apis/content_v2_1/classes.rb', line 13847

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

Instance Attribute Details

#global_stateString

State of the program. ENABLED if there are offers for at least one region. Corresponds to the JSON property globalState

Returns:

  • (String)


13839
13840
13841
# File 'lib/google/apis/content_v2_1/classes.rb', line 13839

def global_state
  @global_state
end

#region_statusesArray<Google::Apis::ContentV2_1::ShoppingAdsProgramStatusRegionStatus>

Status of the program in each region. Regions with the same status and review eligibility are grouped together in regionCodes. Corresponds to the JSON property regionStatuses



13845
13846
13847
# File 'lib/google/apis/content_v2_1/classes.rb', line 13845

def region_statuses
  @region_statuses
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13852
13853
13854
13855
# File 'lib/google/apis/content_v2_1/classes.rb', line 13852

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