Class: Google::Apis::PartnersV2::OptIns

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

Overview

A set of opt-ins for a user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OptIns

Returns a new instance of OptIns



1882
1883
1884
# File 'generated/google/apis/partners_v2/classes.rb', line 1882

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

Instance Attribute Details

#market_commBoolean Also known as: market_comm?

An opt-in about receiving email from Partners marketing teams. Includes member-only events and special promotional offers for Google products. Corresponds to the JSON property marketComm

Returns:

  • (Boolean)


1854
1855
1856
# File 'generated/google/apis/partners_v2/classes.rb', line 1854

def market_comm
  @market_comm
end

#performance_suggestionsBoolean Also known as: performance_suggestions?

An opt-in about receiving email with customized AdWords campaign management tips. Corresponds to the JSON property performanceSuggestions

Returns:

  • (Boolean)


1861
1862
1863
# File 'generated/google/apis/partners_v2/classes.rb', line 1861

def performance_suggestions
  @performance_suggestions
end

#phone_contactBoolean Also known as: phone_contact?

An opt-in to allow recieivng phone calls about their Partners account. Corresponds to the JSON property phoneContact

Returns:

  • (Boolean)


1867
1868
1869
# File 'generated/google/apis/partners_v2/classes.rb', line 1867

def phone_contact
  @phone_contact
end

#physical_mailBoolean Also known as: physical_mail?

An opt-in to receive special promotional gifts and material in the mail. Corresponds to the JSON property physicalMail

Returns:

  • (Boolean)


1873
1874
1875
# File 'generated/google/apis/partners_v2/classes.rb', line 1873

def physical_mail
  @physical_mail
end

#special_offersBoolean Also known as: special_offers?

An opt-in about receiving email regarding new features and products. Corresponds to the JSON property specialOffers

Returns:

  • (Boolean)


1879
1880
1881
# File 'generated/google/apis/partners_v2/classes.rb', line 1879

def special_offers
  @special_offers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1887
1888
1889
1890
1891
1892
1893
# File 'generated/google/apis/partners_v2/classes.rb', line 1887

def update!(**args)
  @market_comm = args[:market_comm] if args.key?(:market_comm)
  @performance_suggestions = args[:performance_suggestions] if args.key?(:performance_suggestions)
  @phone_contact = args[:phone_contact] if args.key?(:phone_contact)
  @physical_mail = args[:physical_mail] if args.key?(:physical_mail)
  @special_offers = args[:special_offers] if args.key?(:special_offers)
end