Class: Google::Apis::ContentV2_1::ShoppingAdsProgramStatusRegionStatus

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

Status of program and region.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ShoppingAdsProgramStatusRegionStatus

Returns a new instance of ShoppingAdsProgramStatusRegionStatus.



14612
14613
14614
# File 'lib/google/apis/content_v2_1/classes.rb', line 14612

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

Instance Attribute Details

#disapproval_dateString

Date by which eligibility_status will go from WARNING to DISAPPROVED. It will be present when eligibility_status is WARNING. Date will be provided in ISO 8601 format i.e. YYYY-MM-DD Corresponds to the JSON property disapprovalDate

Returns:

  • (String)


14580
14581
14582
# File 'lib/google/apis/content_v2_1/classes.rb', line 14580

def disapproval_date
  @disapproval_date
end

#eligibility_statusString

Eligibility status of the Shopping Ads program. Corresponds to the JSON property eligibilityStatus

Returns:

  • (String)


14585
14586
14587
# File 'lib/google/apis/content_v2_1/classes.rb', line 14585

def eligibility_status
  @eligibility_status
end

#ineligibility_reasonString

Reason if a program in a given country is not eligible for review. Populated only if review_eligibility_status is INELIGIBLE. Corresponds to the JSON property ineligibilityReason

Returns:

  • (String)


14591
14592
14593
# File 'lib/google/apis/content_v2_1/classes.rb', line 14591

def ineligibility_reason
  @ineligibility_reason
end

#region_codesArray<String>

The two-letter ISO 3166-1 alpha-2 codes for all the regions with the same eligibilityStatus and reviewEligibility. Corresponds to the JSON property regionCodes

Returns:

  • (Array<String>)


14598
14599
14600
# File 'lib/google/apis/content_v2_1/classes.rb', line 14598

def region_codes
  @region_codes
end

#review_eligibility_statusString

If a program in a given country is eligible for review. It will be present only if eligibility status is DISAPPROVED. Corresponds to the JSON property reviewEligibilityStatus

Returns:

  • (String)


14604
14605
14606
# File 'lib/google/apis/content_v2_1/classes.rb', line 14604

def review_eligibility_status
  @review_eligibility_status
end

#review_issuesArray<String>

These issues will be evaluated in review process. Fix all the issues before requesting the review. Corresponds to the JSON property reviewIssues

Returns:

  • (Array<String>)


14610
14611
14612
# File 'lib/google/apis/content_v2_1/classes.rb', line 14610

def review_issues
  @review_issues
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14617
14618
14619
14620
14621
14622
14623
14624
# File 'lib/google/apis/content_v2_1/classes.rb', line 14617

def update!(**args)
  @disapproval_date = args[:disapproval_date] if args.key?(:disapproval_date)
  @eligibility_status = args[:eligibility_status] if args.key?(:eligibility_status)
  @ineligibility_reason = args[:ineligibility_reason] if args.key?(:ineligibility_reason)
  @region_codes = args[:region_codes] if args.key?(:region_codes)
  @review_eligibility_status = args[:review_eligibility_status] if args.key?(:review_eligibility_status)
  @review_issues = args[:review_issues] if args.key?(:review_issues)
end