Class: Google::Apis::PartnersV2::Company

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 company resource in the Google Partners API. Once certified, it qualifies for being searched by advertisers.

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) ⇒ Company

Returns a new instance of Company



474
475
476
# File 'generated/google/apis/partners_v2/classes.rb', line 474

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

Instance Attribute Details

#additional_websitesArray<String>

URL of the company's additional websites used to verify the dynamic badges. These are stored as full URLs as entered by the user, but only the TLD will be used for the actual verification. Corresponds to the JSON property additionalWebsites

Returns:

  • (Array<String>)


358
359
360
# File 'generated/google/apis/partners_v2/classes.rb', line 358

def additional_websites
  @additional_websites
end

#auto_approval_email_domainsArray<String>

Email domains that allow users with a matching email address to get auto-approved for associating with this company. Corresponds to the JSON property autoApprovalEmailDomains

Returns:

  • (Array<String>)


364
365
366
# File 'generated/google/apis/partners_v2/classes.rb', line 364

def auto_approval_email_domains
  @auto_approval_email_domains
end

#badge_authority_in_awnBoolean Also known as: badge_authority_in_awn?

Whether the company's badge authority is in AWN Corresponds to the JSON property badgeAuthorityInAwn

Returns:

  • (Boolean)


369
370
371
# File 'generated/google/apis/partners_v2/classes.rb', line 369

def badge_authority_in_awn
  @badge_authority_in_awn
end

#badge_tierString

Partner badge tier Corresponds to the JSON property badgeTier

Returns:

  • (String)


375
376
377
# File 'generated/google/apis/partners_v2/classes.rb', line 375

def badge_tier
  @badge_tier
end

#certification_statusesArray<Google::Apis::PartnersV2::CertificationStatus>

The list of Google Partners certification statuses for the company. Corresponds to the JSON property certificationStatuses



380
381
382
# File 'generated/google/apis/partners_v2/classes.rb', line 380

def certification_statuses
  @certification_statuses
end

#company_typesArray<String>

Company type labels listed on the company's profile. Corresponds to the JSON property companyTypes

Returns:

  • (Array<String>)


385
386
387
# File 'generated/google/apis/partners_v2/classes.rb', line 385

def company_types
  @company_types
end

#converted_min_monthly_budgetGoogle::Apis::PartnersV2::Money

Represents an amount of money with its currency type. Corresponds to the JSON property convertedMinMonthlyBudget



390
391
392
# File 'generated/google/apis/partners_v2/classes.rb', line 390

def converted_min_monthly_budget
  @converted_min_monthly_budget
end

#idString

The ID of the company. Corresponds to the JSON property id

Returns:

  • (String)


395
396
397
# File 'generated/google/apis/partners_v2/classes.rb', line 395

def id
  @id
end

#industriesArray<String>

Industries the company can help with. Corresponds to the JSON property industries

Returns:

  • (Array<String>)


400
401
402
# File 'generated/google/apis/partners_v2/classes.rb', line 400

def industries
  @industries
end

#localized_infosArray<Google::Apis::PartnersV2::LocalizedCompanyInfo>

The list of localized info for the company. Corresponds to the JSON property localizedInfos



405
406
407
# File 'generated/google/apis/partners_v2/classes.rb', line 405

def localized_infos
  @localized_infos
end

#locationsArray<Google::Apis::PartnersV2::Location>

The list of all company locations. If set, must include the primary_location in the list. Corresponds to the JSON property locations



413
414
415
# File 'generated/google/apis/partners_v2/classes.rb', line 413

def locations
  @locations
end

#nameString

The name of the company. Corresponds to the JSON property name

Returns:

  • (String)


418
419
420
# File 'generated/google/apis/partners_v2/classes.rb', line 418

def name
  @name
end

#original_min_monthly_budgetGoogle::Apis::PartnersV2::Money

Represents an amount of money with its currency type. Corresponds to the JSON property originalMinMonthlyBudget



423
424
425
# File 'generated/google/apis/partners_v2/classes.rb', line 423

def original_min_monthly_budget
  @original_min_monthly_budget
end

#primary_adwords_manager_account_idFixnum

The Primary AdWords Manager Account id. Corresponds to the JSON property primaryAdwordsManagerAccountId

Returns:

  • (Fixnum)


428
429
430
# File 'generated/google/apis/partners_v2/classes.rb', line 428

def 
  @primary_adwords_manager_account_id
end

#primary_language_codeString

The primary language code of the company, as defined by BCP 47 (IETF BCP 47, "Tags for Identifying Languages"). Corresponds to the JSON property primaryLanguageCode

Returns:

  • (String)


435
436
437
# File 'generated/google/apis/partners_v2/classes.rb', line 435

def primary_language_code
  @primary_language_code
end

#primary_locationGoogle::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 primaryLocation



441
442
443
# File 'generated/google/apis/partners_v2/classes.rb', line 441

def primary_location
  @primary_location
end

#profile_statusString

The public viewability status of the company's profile. Corresponds to the JSON property profileStatus

Returns:

  • (String)


446
447
448
# File 'generated/google/apis/partners_v2/classes.rb', line 446

def profile_status
  @profile_status
end

#public_profileGoogle::Apis::PartnersV2::PublicProfile

Basic information from a public profile. Corresponds to the JSON property publicProfile



451
452
453
# File 'generated/google/apis/partners_v2/classes.rb', line 451

def public_profile
  @public_profile
end

#ranksArray<Google::Apis::PartnersV2::Rank>

Information related to the ranking of the company within the list of companies. Corresponds to the JSON property ranks

Returns:



457
458
459
# File 'generated/google/apis/partners_v2/classes.rb', line 457

def ranks
  @ranks
end

#servicesArray<String>

Services the company can help with. Corresponds to the JSON property services

Returns:

  • (Array<String>)


462
463
464
# File 'generated/google/apis/partners_v2/classes.rb', line 462

def services
  @services
end

#specialization_statusArray<Google::Apis::PartnersV2::SpecializationStatus>

The list of Google Partners specialization statuses for the company. Corresponds to the JSON property specializationStatus



467
468
469
# File 'generated/google/apis/partners_v2/classes.rb', line 467

def specialization_status
  @specialization_status
end

#website_urlString

URL of the company's website. Corresponds to the JSON property websiteUrl

Returns:

  • (String)


472
473
474
# File 'generated/google/apis/partners_v2/classes.rb', line 472

def website_url
  @website_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
# File 'generated/google/apis/partners_v2/classes.rb', line 479

def update!(**args)
  @additional_websites = args[:additional_websites] if args.key?(:additional_websites)
  @auto_approval_email_domains = args[:auto_approval_email_domains] if args.key?(:auto_approval_email_domains)
  @badge_authority_in_awn = args[:badge_authority_in_awn] if args.key?(:badge_authority_in_awn)
  @badge_tier = args[:badge_tier] if args.key?(:badge_tier)
  @certification_statuses = args[:certification_statuses] if args.key?(:certification_statuses)
  @company_types = args[:company_types] if args.key?(:company_types)
  @converted_min_monthly_budget = args[:converted_min_monthly_budget] if args.key?(:converted_min_monthly_budget)
  @id = args[:id] if args.key?(:id)
  @industries = args[:industries] if args.key?(:industries)
  @localized_infos = args[:localized_infos] if args.key?(:localized_infos)
  @locations = args[:locations] if args.key?(:locations)
  @name = args[:name] if args.key?(:name)
  @original_min_monthly_budget = args[:original_min_monthly_budget] if args.key?(:original_min_monthly_budget)
  @primary_adwords_manager_account_id = args[:primary_adwords_manager_account_id] if args.key?(:primary_adwords_manager_account_id)
  @primary_language_code = args[:primary_language_code] if args.key?(:primary_language_code)
  @primary_location = args[:primary_location] if args.key?(:primary_location)
  @profile_status = args[:profile_status] if args.key?(:profile_status)
  @public_profile = args[:public_profile] if args.key?(:public_profile)
  @ranks = args[:ranks] if args.key?(:ranks)
  @services = args[:services] if args.key?(:services)
  @specialization_status = args[:specialization_status] if args.key?(:specialization_status)
  @website_url = args[:website_url] if args.key?(:website_url)
end