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



534
535
536
# File 'generated/google/apis/content_v2/classes.rb', line 534

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)


512
513
514
# File 'generated/google/apis/content_v2/classes.rb', line 512

def item_id
  @item_id
end

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

Returns:

  • (String)


517
518
519
# File 'generated/google/apis/content_v2/classes.rb', line 517

def link
  @link
end

#submitted_valueString

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

Returns:

  • (String)


522
523
524
# File 'generated/google/apis/content_v2/classes.rb', line 522

def 
  @submitted_value
end

#titleString

Title of the item. Corresponds to the JSON property title

Returns:

  • (String)


527
528
529
# File 'generated/google/apis/content_v2/classes.rb', line 527

def title
  @title
end

#value_on_landing_pageString

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

Returns:

  • (String)


532
533
534
# File 'generated/google/apis/content_v2/classes.rb', line 532

def value_on_landing_page
  @value_on_landing_page
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



539
540
541
542
543
544
545
# File 'generated/google/apis/content_v2/classes.rb', line 539

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