Class: Google::Apis::PartnersV2::UserProfile
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::PartnersV2::UserProfile
 
- 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
The profile information of a Partners user.
Instance Attribute Summary collapse
- 
  
    
      #address  ⇒ Google::Apis::PartnersV2::Location 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A location with address and geographic coordinates. 
- 
  
    
      #adwords_manager_account  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    If the user has edit access to multiple accounts, the user can choose the preferred account and it is used when a personal account is needed. 
- 
  
    
      #channels  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A list of ids representing which channels the user selected they were in. 
- 
  
    
      #email_address  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The email address the user has selected on the Partners site as primary. 
- 
  
    
      #email_opt_ins  ⇒ Google::Apis::PartnersV2::OptIns 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A set of opt-ins for a user. 
- 
  
    
      #family_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The user's family name. 
- 
  
    
      #given_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The user's given name. 
- 
  
    
      #industries  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A list of ids representing which industries the user selected. 
- 
  
    
      #job_functions  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A list of ids represnting which job categories the user selected. 
- 
  
    
      #languages  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The list of languages this user understands. 
- 
  
    
      #markets  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A list of ids representing which markets the user was interested in. 
- 
  
    
      #migrate_to_afa  ⇒ Boolean 
    
    
      (also: #migrate_to_afa?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Whether or not to migrate the user's exam data to Academy for Ads. 
- 
  
    
      #phone_number  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The user's phone number. 
- 
  
    
      #primary_country_code  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The user's primary country, an ISO 2-character code. 
- 
  
    
      #profile_public  ⇒ Boolean 
    
    
      (also: #profile_public?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Whether the user's public profile is visible to anyone with the URL. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ UserProfile 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of UserProfile. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ UserProfile
Returns a new instance of UserProfile
| 2225 2226 2227 | # File 'generated/google/apis/partners_v2/classes.rb', line 2225 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#address ⇒ Google::Apis::PartnersV2::Location
A location with address and geographic coordinates. May optionally contain a
detailed (multi-field) version of the address.
Corresponds to the JSON property address
| 2149 2150 2151 | # File 'generated/google/apis/partners_v2/classes.rb', line 2149 def address @address end | 
#adwords_manager_account ⇒ Fixnum
If the user has edit access to multiple accounts, the user can choose the
preferred account and it is used when a personal account is needed. Can
be empty.
Corresponds to the JSON property adwordsManagerAccount
| 2156 2157 2158 | # File 'generated/google/apis/partners_v2/classes.rb', line 2156 def adwords_manager_account @adwords_manager_account end | 
#channels ⇒ Array<String>
A list of ids representing which channels the user selected they were in.
Corresponds to the JSON property channels
| 2161 2162 2163 | # File 'generated/google/apis/partners_v2/classes.rb', line 2161 def channels @channels end | 
#email_address ⇒ String
The email address the user has selected on the Partners site as primary.
Corresponds to the JSON property emailAddress
| 2166 2167 2168 | # File 'generated/google/apis/partners_v2/classes.rb', line 2166 def email_address @email_address end | 
#email_opt_ins ⇒ Google::Apis::PartnersV2::OptIns
A set of opt-ins for a user.
Corresponds to the JSON property emailOptIns
| 2171 2172 2173 | # File 'generated/google/apis/partners_v2/classes.rb', line 2171 def email_opt_ins @email_opt_ins end | 
#family_name ⇒ String
The user's family name.
Corresponds to the JSON property familyName
| 2176 2177 2178 | # File 'generated/google/apis/partners_v2/classes.rb', line 2176 def family_name @family_name end | 
#given_name ⇒ String
The user's given name.
Corresponds to the JSON property givenName
| 2181 2182 2183 | # File 'generated/google/apis/partners_v2/classes.rb', line 2181 def given_name @given_name end | 
#industries ⇒ Array<String>
A list of ids representing which industries the user selected.
Corresponds to the JSON property industries
| 2186 2187 2188 | # File 'generated/google/apis/partners_v2/classes.rb', line 2186 def industries @industries end | 
#job_functions ⇒ Array<String>
A list of ids represnting which job categories the user selected.
Corresponds to the JSON property jobFunctions
| 2191 2192 2193 | # File 'generated/google/apis/partners_v2/classes.rb', line 2191 def job_functions @job_functions end | 
#languages ⇒ Array<String>
The list of languages this user understands.
Corresponds to the JSON property languages
| 2196 2197 2198 | # File 'generated/google/apis/partners_v2/classes.rb', line 2196 def languages @languages end | 
#markets ⇒ Array<String>
A list of ids representing which markets the user was interested in.
Corresponds to the JSON property markets
| 2201 2202 2203 | # File 'generated/google/apis/partners_v2/classes.rb', line 2201 def markets @markets end | 
#migrate_to_afa ⇒ Boolean Also known as: migrate_to_afa?
Whether or not to migrate the user's exam data to Academy for Ads.
Corresponds to the JSON property migrateToAfa
| 2206 2207 2208 | # File 'generated/google/apis/partners_v2/classes.rb', line 2206 def migrate_to_afa @migrate_to_afa end | 
#phone_number ⇒ String
The user's phone number.
Corresponds to the JSON property phoneNumber
| 2212 2213 2214 | # File 'generated/google/apis/partners_v2/classes.rb', line 2212 def phone_number @phone_number end | 
#primary_country_code ⇒ String
The user's primary country, an ISO 2-character code.
Corresponds to the JSON property primaryCountryCode
| 2217 2218 2219 | # File 'generated/google/apis/partners_v2/classes.rb', line 2217 def primary_country_code @primary_country_code end | 
#profile_public ⇒ Boolean Also known as: profile_public?
Whether the user's public profile is visible to anyone with the URL.
Corresponds to the JSON property profilePublic
| 2222 2223 2224 | # File 'generated/google/apis/partners_v2/classes.rb', line 2222 def profile_public @profile_public end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 | # File 'generated/google/apis/partners_v2/classes.rb', line 2230 def update!(**args) @address = args[:address] if args.key?(:address) @adwords_manager_account = args[:adwords_manager_account] if args.key?(:adwords_manager_account) @channels = args[:channels] if args.key?(:channels) @email_address = args[:email_address] if args.key?(:email_address) @email_opt_ins = args[:email_opt_ins] if args.key?(:email_opt_ins) @family_name = args[:family_name] if args.key?(:family_name) @given_name = args[:given_name] if args.key?(:given_name) @industries = args[:industries] if args.key?(:industries) @job_functions = args[:job_functions] if args.key?(:job_functions) @languages = args[:languages] if args.key?(:languages) @markets = args[:markets] if args.key?(:markets) @migrate_to_afa = args[:migrate_to_afa] if args.key?(:migrate_to_afa) @phone_number = args[:phone_number] if args.key?(:phone_number) @primary_country_code = args[:primary_country_code] if args.key?(:primary_country_code) @profile_public = args[:profile_public] if args.key?(:profile_public) end |