Class: Google::Apis::ContentV2::AccountStatusExampleItem

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

Overview

An example of an item that has poor data quality. An item value on the landing page differs from what is submitted, or conflicts with a policy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AccountStatusExampleItem

Returns a new instance of AccountStatusExampleItem.



745
746
747
# File 'generated/google/apis/content_v2/classes.rb', line 745

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

Instance Attribute Details

#item_idString

Unique item ID as specified in the uploaded product data. Corresponds to the JSON property itemId

Returns:

  • (String)


723
724
725
# File 'generated/google/apis/content_v2/classes.rb', line 723

def item_id
  @item_id
end

Landing page of the item. Corresponds to the JSON property link

Returns:

  • (String)


728
729
730
# File 'generated/google/apis/content_v2/classes.rb', line 728

def link
  @link
end

#submitted_valueString

The item value that was submitted. Corresponds to the JSON property submittedValue

Returns:

  • (String)


733
734
735
# File 'generated/google/apis/content_v2/classes.rb', line 733

def 
  @submitted_value
end

#titleString

Title of the item. Corresponds to the JSON property title

Returns:

  • (String)


738
739
740
# File 'generated/google/apis/content_v2/classes.rb', line 738

def title
  @title
end

#value_on_landing_pageString

The actual value on the landing page. Corresponds to the JSON property valueOnLandingPage

Returns:

  • (String)


743
744
745
# File 'generated/google/apis/content_v2/classes.rb', line 743

def value_on_landing_page
  @value_on_landing_page
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



750
751
752
753
754
755
756
# File 'generated/google/apis/content_v2/classes.rb', line 750

def update!(**args)
  @item_id = args[:item_id] if args.key?(:item_id)
  @link = args[:link] if args.key?(:link)
  @submitted_value = args[:submitted_value] if args.key?(:submitted_value)
  @title = args[:title] if args.key?(:title)
  @value_on_landing_page = args[:value_on_landing_page] if args.key?(:value_on_landing_page)
end