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



1306
1307
1308
# File 'generated/google/apis/partners_v2/classes.rb', line 1306

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


1231
1232
1233
# File 'generated/google/apis/partners_v2/classes.rb', line 1231

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


1299
1300
1301
# File 'generated/google/apis/partners_v2/classes.rb', line 1299

def auto_approval_email_domains
  @auto_approval_email_domains
end

#badge_tierString

Partner badge tier Corresponds to the JSON property badgeTier

Returns:

  • (String)


1293
1294
1295
# File 'generated/google/apis/partners_v2/classes.rb', line 1293

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



1251
1252
1253
# File 'generated/google/apis/partners_v2/classes.rb', line 1251

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


1304
1305
1306
# File 'generated/google/apis/partners_v2/classes.rb', line 1304

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



1214
1215
1216
# File 'generated/google/apis/partners_v2/classes.rb', line 1214

def converted_min_monthly_budget
  @converted_min_monthly_budget
end

#idString

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

Returns:

  • (String)


1256
1257
1258
# File 'generated/google/apis/partners_v2/classes.rb', line 1256

def id
  @id
end

#industriesArray<String>

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

Returns:

  • (Array<String>)


1219
1220
1221
# File 'generated/google/apis/partners_v2/classes.rb', line 1219

def industries
  @industries
end

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

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



1246
1247
1248
# File 'generated/google/apis/partners_v2/classes.rb', line 1246

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



1209
1210
1211
# File 'generated/google/apis/partners_v2/classes.rb', line 1209

def locations
  @locations
end

#nameString

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

Returns:

  • (String)


1241
1242
1243
# File 'generated/google/apis/partners_v2/classes.rb', line 1241

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



1261
1262
1263
# File 'generated/google/apis/partners_v2/classes.rb', line 1261

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)


1236
1237
1238
# File 'generated/google/apis/partners_v2/classes.rb', line 1236

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)


1201
1202
1203
# File 'generated/google/apis/partners_v2/classes.rb', line 1201

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



1272
1273
1274
# File 'generated/google/apis/partners_v2/classes.rb', line 1272

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)


1194
1195
1196
# File 'generated/google/apis/partners_v2/classes.rb', line 1194

def profile_status
  @profile_status
end

#public_profileGoogle::Apis::PartnersV2::PublicProfile

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



1266
1267
1268
# File 'generated/google/apis/partners_v2/classes.rb', line 1266

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:



1283
1284
1285
# File 'generated/google/apis/partners_v2/classes.rb', line 1283

def ranks
  @ranks
end

#servicesArray<String>

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

Returns:

  • (Array<String>)


1277
1278
1279
# File 'generated/google/apis/partners_v2/classes.rb', line 1277

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



1288
1289
1290
# File 'generated/google/apis/partners_v2/classes.rb', line 1288

def specialization_status
  @specialization_status
end

#website_urlString

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

Returns:

  • (String)


1224
1225
1226
# File 'generated/google/apis/partners_v2/classes.rb', line 1224

def website_url
  @website_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
# File 'generated/google/apis/partners_v2/classes.rb', line 1311

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