google-api-client 0.9.8 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +15 -8
- data/CHANGELOG.md +84 -0
- data/Gemfile +10 -2
- data/README.md +10 -2
- data/api_names.yaml +37172 -135
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +206 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
- data/generated/google/apis/admin_directory_v1/service.rb +41 -2
- data/generated/google/apis/admin_reports_v1.rb +5 -5
- data/generated/google/apis/admin_reports_v1/service.rb +6 -6
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +379 -3
- data/generated/google/apis/analytics_v3/representations.rb +136 -0
- data/generated/google/apis/analytics_v3/service.rb +256 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
- data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
- data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
- data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
- data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
- data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
- data/generated/google/apis/appengine_v1beta5.rb +7 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
- data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
- data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
- data/generated/google/apis/appsactivity_v1.rb +3 -3
- data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
- data/generated/google/apis/appsactivity_v1/service.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +360 -38
- data/generated/google/apis/bigquery_v2/representations.rb +106 -0
- data/generated/google/apis/bigquery_v2/service.rb +18 -4
- data/generated/google/apis/books_v1.rb +2 -2
- data/generated/google/apis/books_v1/classes.rb +83 -0
- data/generated/google/apis/books_v1/representations.rb +35 -0
- data/generated/google/apis/books_v1/service.rb +7 -3
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +208 -5
- data/generated/google/apis/calendar_v3/representations.rb +97 -0
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
- data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
- data/generated/google/apis/civicinfo_v2/service.rb +27 -6
- data/generated/google/apis/classroom_v1.rb +22 -25
- data/generated/google/apis/classroom_v1/classes.rb +998 -761
- data/generated/google/apis/classroom_v1/representations.rb +263 -198
- data/generated/google/apis/classroom_v1/service.rb +1349 -672
- data/generated/google/apis/cloudbilling_v1.rb +3 -3
- data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
- data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
- data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
- data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
- data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
- data/generated/google/apis/clouddebugger_v2.rb +5 -8
- data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
- data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
- data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
- data/generated/google/apis/cloudkms_v1.rb +35 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1/service.rb +933 -0
- data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1529 -167
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
- data/generated/google/apis/cloudtrace_v1.rb +9 -9
- data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
- data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
- data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +7007 -3648
- data/generated/google/apis/compute_beta/representations.rb +1459 -120
- data/generated/google/apis/compute_beta/service.rb +7943 -3726
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +2567 -370
- data/generated/google/apis/compute_v1/representations.rb +855 -0
- data/generated/google/apis/compute_v1/service.rb +6388 -2908
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +287 -16
- data/generated/google/apis/container_v1/representations.rb +113 -2
- data/generated/google/apis/container_v1/service.rb +130 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +778 -10
- data/generated/google/apis/content_v2/representations.rb +339 -0
- data/generated/google/apis/content_v2/service.rb +364 -49
- data/generated/google/apis/dataflow_v1b3.rb +37 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
- data/generated/google/apis/dataproc_v1/representations.rb +299 -225
- data/generated/google/apis/dataproc_v1/service.rb +277 -192
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1289 -0
- data/generated/google/apis/datastore_v1/representations.rb +572 -0
- data/generated/google/apis/datastore_v1/service.rb +259 -0
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +436 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
- data/generated/google/apis/dfareporting_v2_5.rb +40 -0
- data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
- data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
- data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
- data/generated/google/apis/dfareporting_v2_7.rb +40 -0
- data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
- data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
- data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +43 -0
- data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
- data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
- data/generated/google/apis/dns_v2beta1/service.rb +768 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +595 -37
- data/generated/google/apis/drive_v2/representations.rb +140 -0
- data/generated/google/apis/drive_v2/service.rb +406 -40
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +507 -40
- data/generated/google/apis/drive_v3/representations.rb +105 -0
- data/generated/google/apis/drive_v3/service.rb +326 -29
- data/generated/google/apis/fitness_v1.rb +38 -2
- data/generated/google/apis/fitness_v1/classes.rb +65 -7
- data/generated/google/apis/fitness_v1/representations.rb +20 -0
- data/generated/google/apis/fitness_v1/service.rb +17 -18
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +10 -12
- data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
- data/generated/google/apis/genomics_v1/representations.rb +468 -496
- data/generated/google/apis/genomics_v1/service.rb +978 -882
- data/generated/google/apis/gmail_v1.rb +11 -2
- data/generated/google/apis/gmail_v1/classes.rb +655 -5
- data/generated/google/apis/gmail_v1/representations.rb +261 -0
- data/generated/google/apis/gmail_v1/service.rb +1211 -48
- data/generated/google/apis/groupssettings_v1.rb +2 -2
- data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
- data/generated/google/apis/iam_v1.rb +2 -2
- data/generated/google/apis/iam_v1/classes.rb +446 -368
- data/generated/google/apis/iam_v1/representations.rb +109 -91
- data/generated/google/apis/iam_v1/service.rb +249 -162
- data/generated/google/apis/identitytoolkit_v3.rb +7 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
- data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
- data/generated/google/apis/kgsearch_v1.rb +2 -3
- data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +26 -24
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +757 -0
- data/generated/google/apis/language_v1beta1/representations.rb +339 -0
- data/generated/google/apis/language_v1beta1/service.rb +185 -0
- data/generated/google/apis/licensing_v1.rb +3 -3
- data/generated/google/apis/licensing_v1/classes.rb +14 -2
- data/generated/google/apis/licensing_v1/representations.rb +2 -0
- data/generated/google/apis/licensing_v1/service.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +6 -6
- data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
- data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
- data/generated/google/apis/logging_v2beta1/service.rb +427 -155
- data/generated/google/apis/manufacturers_v1.rb +34 -0
- data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
- data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
- data/generated/google/apis/manufacturers_v1/service.rb +138 -0
- data/generated/google/apis/mirror_v1.rb +2 -2
- data/generated/google/apis/mirror_v1/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +45 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1333 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +706 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +3 -3
- data/generated/google/apis/partners_v2/classes.rb +1831 -477
- data/generated/google/apis/partners_v2/representations.rb +571 -114
- data/generated/google/apis/partners_v2/service.rb +898 -167
- data/generated/google/apis/people_v1.rb +15 -16
- data/generated/google/apis/people_v1/classes.rb +1047 -859
- data/generated/google/apis/people_v1/representations.rb +252 -213
- data/generated/google/apis/people_v1/service.rb +75 -62
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +527 -456
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +363 -310
- data/generated/google/apis/pubsub_v1/representations.rb +76 -76
- data/generated/google/apis/pubsub_v1/service.rb +464 -335
- data/generated/google/apis/qpx_express_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2.rb +1 -1
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +222 -61
- data/generated/google/apis/reseller_v1/representations.rb +28 -0
- data/generated/google/apis/reseller_v1/service.rb +240 -47
- data/generated/google/apis/script_v1.rb +19 -19
- data/generated/google/apis/script_v1/classes.rb +151 -137
- data/generated/google/apis/script_v1/representations.rb +26 -26
- data/generated/google/apis/script_v1/service.rb +9 -8
- data/generated/google/apis/sheets_v4.rb +7 -7
- data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
- data/generated/google/apis/sheets_v4/representations.rb +988 -737
- data/generated/google/apis/sheets_v4/service.rb +266 -99
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/slides_v1.rb +49 -0
- data/generated/google/apis/slides_v1/classes.rb +4480 -0
- data/generated/google/apis/slides_v1/representations.rb +1926 -0
- data/generated/google/apis/slides_v1/service.rb +245 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
- data/generated/google/apis/speech_v1beta1/service.rb +270 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +205 -21
- data/generated/google/apis/storage_v1/representations.rb +51 -1
- data/generated/google/apis/storage_v1/service.rb +263 -9
- data/generated/google/apis/tagmanager_v1.rb +5 -5
- data/generated/google/apis/translate_v2.rb +2 -2
- data/generated/google/apis/translate_v2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1275 -731
- data/generated/google/apis/vision_v1/representations.rb +378 -111
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
- data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
- data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +430 -22
- data/generated/google/apis/youtube_v3/representations.rb +171 -4
- data/generated/google/apis/youtube_v3/service.rb +100 -9
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
- data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
- data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
- data/google-api-client.gemspec +4 -3
- data/lib/google/apis/core/api_command.rb +16 -6
- data/lib/google/apis/core/base_service.rb +17 -9
- data/lib/google/apis/core/download.rb +7 -2
- data/lib/google/apis/core/http_command.rb +5 -1
- data/lib/google/apis/core/json_representation.rb +2 -2
- data/lib/google/apis/core/upload.rb +7 -1
- data/lib/google/apis/errors.rb +6 -2
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/bigquery.rb +101 -0
- data/samples/cli/lib/samples/calendar.rb +1 -1
- data/samples/cli/lib/samples/gmail.rb +74 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/samples/cli/lib/samples/you_tube.rb +4 -1
- data/sync.rb +71 -0
- metadata +86 -18
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/accounts/docs/OAuth2
|
|
26
26
|
module Oauth2V2
|
|
27
27
|
VERSION = 'V2'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20161103'
|
|
29
29
|
|
|
30
30
|
# Know the list of people in your circles, your age range, and language
|
|
31
31
|
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
|
|
@@ -20,13 +20,13 @@ module Google
|
|
|
20
20
|
module Apis
|
|
21
21
|
# Google Partners API
|
|
22
22
|
#
|
|
23
|
-
#
|
|
24
|
-
#
|
|
23
|
+
# Searches certified companies and creates contact leads with them, and also
|
|
24
|
+
# audits the usage of clients.
|
|
25
25
|
#
|
|
26
26
|
# @see https://developers.google.com/partners/
|
|
27
27
|
module PartnersV2
|
|
28
28
|
VERSION = 'V2'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20170316'
|
|
30
30
|
end
|
|
31
31
|
end
|
|
32
32
|
end
|
|
@@ -22,45 +22,1107 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module PartnersV2
|
|
24
24
|
|
|
25
|
-
#
|
|
25
|
+
# A company resource in the Google Partners API. Once certified, it qualifies
|
|
26
|
+
# for being searched by advertisers.
|
|
27
|
+
class Company
|
|
28
|
+
include Google::Apis::Core::Hashable
|
|
29
|
+
|
|
30
|
+
# Represents an amount of money with its currency type.
|
|
31
|
+
# Corresponds to the JSON property `convertedMinMonthlyBudget`
|
|
32
|
+
# @return [Google::Apis::PartnersV2::Money]
|
|
33
|
+
attr_accessor :converted_min_monthly_budget
|
|
34
|
+
|
|
35
|
+
# Industries the company can help with.
|
|
36
|
+
# Corresponds to the JSON property `industries`
|
|
37
|
+
# @return [Array<String>]
|
|
38
|
+
attr_accessor :industries
|
|
39
|
+
|
|
40
|
+
# URL of the company's website.
|
|
41
|
+
# Corresponds to the JSON property `websiteUrl`
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :website_url
|
|
44
|
+
|
|
45
|
+
# URL of the company's additional websites used to verify the dynamic badges.
|
|
46
|
+
# These are stored as full URLs as entered by the user, but only the TLD will
|
|
47
|
+
# be used for the actual verification.
|
|
48
|
+
# Corresponds to the JSON property `additionalWebsites`
|
|
49
|
+
# @return [Array<String>]
|
|
50
|
+
attr_accessor :additional_websites
|
|
51
|
+
|
|
52
|
+
# The Primary AdWords Manager Account id.
|
|
53
|
+
# Corresponds to the JSON property `primaryAdwordsManagerAccountId`
|
|
54
|
+
# @return [String]
|
|
55
|
+
attr_accessor :primary_adwords_manager_account_id
|
|
56
|
+
|
|
57
|
+
# The name of the company.
|
|
58
|
+
# Corresponds to the JSON property `name`
|
|
59
|
+
# @return [String]
|
|
60
|
+
attr_accessor :name
|
|
61
|
+
|
|
62
|
+
# The list of localized info for the company.
|
|
63
|
+
# Corresponds to the JSON property `localizedInfos`
|
|
64
|
+
# @return [Array<Google::Apis::PartnersV2::LocalizedCompanyInfo>]
|
|
65
|
+
attr_accessor :localized_infos
|
|
66
|
+
|
|
67
|
+
# The list of Google Partners certification statuses for the company.
|
|
68
|
+
# Corresponds to the JSON property `certificationStatuses`
|
|
69
|
+
# @return [Array<Google::Apis::PartnersV2::CertificationStatus>]
|
|
70
|
+
attr_accessor :certification_statuses
|
|
71
|
+
|
|
72
|
+
# The ID of the company.
|
|
73
|
+
# Corresponds to the JSON property `id`
|
|
74
|
+
# @return [String]
|
|
75
|
+
attr_accessor :id
|
|
76
|
+
|
|
77
|
+
# Services the company can help with.
|
|
78
|
+
# Corresponds to the JSON property `services`
|
|
79
|
+
# @return [Array<String>]
|
|
80
|
+
attr_accessor :services
|
|
81
|
+
|
|
82
|
+
# Represents an amount of money with its currency type.
|
|
83
|
+
# Corresponds to the JSON property `originalMinMonthlyBudget`
|
|
84
|
+
# @return [Google::Apis::PartnersV2::Money]
|
|
85
|
+
attr_accessor :original_min_monthly_budget
|
|
86
|
+
|
|
87
|
+
# Basic information from a public profile.
|
|
88
|
+
# Corresponds to the JSON property `publicProfile`
|
|
89
|
+
# @return [Google::Apis::PartnersV2::PublicProfile]
|
|
90
|
+
attr_accessor :public_profile
|
|
91
|
+
|
|
92
|
+
# A location with address and geographic coordinates. May optionally contain a
|
|
93
|
+
# detailed (multi-field) version of the address.
|
|
94
|
+
# Corresponds to the JSON property `primaryLocation`
|
|
95
|
+
# @return [Google::Apis::PartnersV2::Location]
|
|
96
|
+
attr_accessor :primary_location
|
|
97
|
+
|
|
98
|
+
# Information related to the ranking of the company within the list of
|
|
99
|
+
# companies.
|
|
100
|
+
# Corresponds to the JSON property `ranks`
|
|
101
|
+
# @return [Array<Google::Apis::PartnersV2::Rank>]
|
|
102
|
+
attr_accessor :ranks
|
|
103
|
+
|
|
104
|
+
# The list of Google Partners specialization statuses for the company.
|
|
105
|
+
# Corresponds to the JSON property `specializationStatus`
|
|
106
|
+
# @return [Array<Google::Apis::PartnersV2::SpecializationStatus>]
|
|
107
|
+
attr_accessor :specialization_status
|
|
108
|
+
|
|
109
|
+
# Partner badge tier
|
|
110
|
+
# Corresponds to the JSON property `badgeTier`
|
|
111
|
+
# @return [String]
|
|
112
|
+
attr_accessor :badge_tier
|
|
113
|
+
|
|
114
|
+
# Email domains that allow users with a matching email address to get
|
|
115
|
+
# auto-approved for associating with this company.
|
|
116
|
+
# Corresponds to the JSON property `autoApprovalEmailDomains`
|
|
117
|
+
# @return [Array<String>]
|
|
118
|
+
attr_accessor :auto_approval_email_domains
|
|
119
|
+
|
|
120
|
+
# Company type labels listed on the company's profile.
|
|
121
|
+
# Corresponds to the JSON property `companyTypes`
|
|
122
|
+
# @return [Array<String>]
|
|
123
|
+
attr_accessor :company_types
|
|
124
|
+
|
|
125
|
+
# The public viewability status of the company's profile.
|
|
126
|
+
# Corresponds to the JSON property `profileStatus`
|
|
127
|
+
# @return [String]
|
|
128
|
+
attr_accessor :profile_status
|
|
129
|
+
|
|
130
|
+
# The primary language code of the company, as defined by
|
|
131
|
+
# <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
|
|
132
|
+
# (IETF BCP 47, "Tags for Identifying Languages").
|
|
133
|
+
# Corresponds to the JSON property `primaryLanguageCode`
|
|
134
|
+
# @return [String]
|
|
135
|
+
attr_accessor :primary_language_code
|
|
136
|
+
|
|
137
|
+
# The list of all company locations.
|
|
138
|
+
# If set, must include the
|
|
139
|
+
# primary_location
|
|
140
|
+
# in the list.
|
|
141
|
+
# Corresponds to the JSON property `locations`
|
|
142
|
+
# @return [Array<Google::Apis::PartnersV2::Location>]
|
|
143
|
+
attr_accessor :locations
|
|
144
|
+
|
|
145
|
+
def initialize(**args)
|
|
146
|
+
update!(**args)
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Update properties of this object
|
|
150
|
+
def update!(**args)
|
|
151
|
+
@converted_min_monthly_budget = args[:converted_min_monthly_budget] if args.key?(:converted_min_monthly_budget)
|
|
152
|
+
@industries = args[:industries] if args.key?(:industries)
|
|
153
|
+
@website_url = args[:website_url] if args.key?(:website_url)
|
|
154
|
+
@additional_websites = args[:additional_websites] if args.key?(:additional_websites)
|
|
155
|
+
@primary_adwords_manager_account_id = args[:primary_adwords_manager_account_id] if args.key?(:primary_adwords_manager_account_id)
|
|
156
|
+
@name = args[:name] if args.key?(:name)
|
|
157
|
+
@localized_infos = args[:localized_infos] if args.key?(:localized_infos)
|
|
158
|
+
@certification_statuses = args[:certification_statuses] if args.key?(:certification_statuses)
|
|
159
|
+
@id = args[:id] if args.key?(:id)
|
|
160
|
+
@services = args[:services] if args.key?(:services)
|
|
161
|
+
@original_min_monthly_budget = args[:original_min_monthly_budget] if args.key?(:original_min_monthly_budget)
|
|
162
|
+
@public_profile = args[:public_profile] if args.key?(:public_profile)
|
|
163
|
+
@primary_location = args[:primary_location] if args.key?(:primary_location)
|
|
164
|
+
@ranks = args[:ranks] if args.key?(:ranks)
|
|
165
|
+
@specialization_status = args[:specialization_status] if args.key?(:specialization_status)
|
|
166
|
+
@badge_tier = args[:badge_tier] if args.key?(:badge_tier)
|
|
167
|
+
@auto_approval_email_domains = args[:auto_approval_email_domains] if args.key?(:auto_approval_email_domains)
|
|
168
|
+
@company_types = args[:company_types] if args.key?(:company_types)
|
|
169
|
+
@profile_status = args[:profile_status] if args.key?(:profile_status)
|
|
170
|
+
@primary_language_code = args[:primary_language_code] if args.key?(:primary_language_code)
|
|
171
|
+
@locations = args[:locations] if args.key?(:locations)
|
|
172
|
+
end
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Response message for ListLeads.
|
|
176
|
+
class ListLeadsResponse
|
|
177
|
+
include Google::Apis::Core::Hashable
|
|
178
|
+
|
|
179
|
+
# A token to retrieve next page of results.
|
|
180
|
+
# Pass this value in the `ListLeadsRequest.page_token` field in the
|
|
181
|
+
# subsequent call to
|
|
182
|
+
# ListLeads to retrieve the
|
|
183
|
+
# next page of results.
|
|
184
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
185
|
+
# @return [String]
|
|
186
|
+
attr_accessor :next_page_token
|
|
187
|
+
|
|
188
|
+
# Common data that is in each API response.
|
|
189
|
+
# Corresponds to the JSON property `responseMetadata`
|
|
190
|
+
# @return [Google::Apis::PartnersV2::ResponseMetadata]
|
|
191
|
+
attr_accessor :response_metadata
|
|
192
|
+
|
|
193
|
+
# The total count of leads for the given company.
|
|
194
|
+
# Corresponds to the JSON property `totalSize`
|
|
195
|
+
# @return [Fixnum]
|
|
196
|
+
attr_accessor :total_size
|
|
197
|
+
|
|
198
|
+
# The list of leads.
|
|
199
|
+
# Corresponds to the JSON property `leads`
|
|
200
|
+
# @return [Array<Google::Apis::PartnersV2::Lead>]
|
|
201
|
+
attr_accessor :leads
|
|
202
|
+
|
|
203
|
+
def initialize(**args)
|
|
204
|
+
update!(**args)
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# Update properties of this object
|
|
208
|
+
def update!(**args)
|
|
209
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
210
|
+
@response_metadata = args[:response_metadata] if args.key?(:response_metadata)
|
|
211
|
+
@total_size = args[:total_size] if args.key?(:total_size)
|
|
212
|
+
@leads = args[:leads] if args.key?(:leads)
|
|
213
|
+
end
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# Response message for CreateLead.
|
|
217
|
+
class CreateLeadResponse
|
|
218
|
+
include Google::Apis::Core::Hashable
|
|
219
|
+
|
|
220
|
+
# A lead resource that represents an advertiser contact for a `Company`. These
|
|
221
|
+
# are usually generated via Google Partner Search (the advertiser portal).
|
|
222
|
+
# Corresponds to the JSON property `lead`
|
|
223
|
+
# @return [Google::Apis::PartnersV2::Lead]
|
|
224
|
+
attr_accessor :lead
|
|
225
|
+
|
|
226
|
+
# The outcome of <a href="https://www.google.com/recaptcha/">reCaptcha</a>
|
|
227
|
+
# validation.
|
|
228
|
+
# Corresponds to the JSON property `recaptchaStatus`
|
|
229
|
+
# @return [String]
|
|
230
|
+
attr_accessor :recaptcha_status
|
|
231
|
+
|
|
232
|
+
# Common data that is in each API response.
|
|
233
|
+
# Corresponds to the JSON property `responseMetadata`
|
|
234
|
+
# @return [Google::Apis::PartnersV2::ResponseMetadata]
|
|
235
|
+
attr_accessor :response_metadata
|
|
236
|
+
|
|
237
|
+
def initialize(**args)
|
|
238
|
+
update!(**args)
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
# Update properties of this object
|
|
242
|
+
def update!(**args)
|
|
243
|
+
@lead = args[:lead] if args.key?(:lead)
|
|
244
|
+
@recaptcha_status = args[:recaptcha_status] if args.key?(:recaptcha_status)
|
|
245
|
+
@response_metadata = args[:response_metadata] if args.key?(:response_metadata)
|
|
246
|
+
end
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
# Response message for GetCompany.
|
|
250
|
+
class GetCompanyResponse
|
|
251
|
+
include Google::Apis::Core::Hashable
|
|
252
|
+
|
|
253
|
+
# Common data that is in each API response.
|
|
254
|
+
# Corresponds to the JSON property `responseMetadata`
|
|
255
|
+
# @return [Google::Apis::PartnersV2::ResponseMetadata]
|
|
256
|
+
attr_accessor :response_metadata
|
|
257
|
+
|
|
258
|
+
# A company resource in the Google Partners API. Once certified, it qualifies
|
|
259
|
+
# for being searched by advertisers.
|
|
260
|
+
# Corresponds to the JSON property `company`
|
|
261
|
+
# @return [Google::Apis::PartnersV2::Company]
|
|
262
|
+
attr_accessor :company
|
|
263
|
+
|
|
264
|
+
def initialize(**args)
|
|
265
|
+
update!(**args)
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
# Update properties of this object
|
|
269
|
+
def update!(**args)
|
|
270
|
+
@response_metadata = args[:response_metadata] if args.key?(:response_metadata)
|
|
271
|
+
@company = args[:company] if args.key?(:company)
|
|
272
|
+
end
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
# A location with address and geographic coordinates. May optionally contain a
|
|
276
|
+
# detailed (multi-field) version of the address.
|
|
277
|
+
class Location
|
|
278
|
+
include Google::Apis::Core::Hashable
|
|
279
|
+
|
|
280
|
+
# Values are frequently alphanumeric.
|
|
281
|
+
# Corresponds to the JSON property `postalCode`
|
|
282
|
+
# @return [String]
|
|
283
|
+
attr_accessor :postal_code
|
|
284
|
+
|
|
285
|
+
# Language code of the address. Should be in BCP 47 format.
|
|
286
|
+
# Corresponds to the JSON property `languageCode`
|
|
287
|
+
# @return [String]
|
|
288
|
+
attr_accessor :language_code
|
|
289
|
+
|
|
290
|
+
# Use of this code is very country-specific, but will refer to a secondary
|
|
291
|
+
# classification code for sorting mail.
|
|
292
|
+
# Corresponds to the JSON property `sortingCode`
|
|
293
|
+
# @return [String]
|
|
294
|
+
attr_accessor :sorting_code
|
|
295
|
+
|
|
296
|
+
# The following address lines represent the most specific part of any
|
|
297
|
+
# address.
|
|
298
|
+
# Corresponds to the JSON property `addressLine`
|
|
299
|
+
# @return [Array<String>]
|
|
300
|
+
attr_accessor :address_line
|
|
301
|
+
|
|
302
|
+
# Top-level administrative subdivision of this country.
|
|
303
|
+
# Corresponds to the JSON property `administrativeArea`
|
|
304
|
+
# @return [String]
|
|
305
|
+
attr_accessor :administrative_area
|
|
306
|
+
|
|
307
|
+
# Generally refers to the city/town portion of an address.
|
|
308
|
+
# Corresponds to the JSON property `locality`
|
|
309
|
+
# @return [String]
|
|
310
|
+
attr_accessor :locality
|
|
311
|
+
|
|
312
|
+
# An object representing a latitude/longitude pair. This is expressed as a pair
|
|
313
|
+
# of doubles representing degrees latitude and degrees longitude. Unless
|
|
314
|
+
# specified otherwise, this must conform to the
|
|
315
|
+
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
|
316
|
+
# standard</a>. Values must be within normalized ranges.
|
|
317
|
+
# Example of normalization code in Python:
|
|
318
|
+
# def NormalizeLongitude(longitude):
|
|
319
|
+
# """Wraps decimal degrees longitude to [-180.0, 180.0]."""
|
|
320
|
+
# q, r = divmod(longitude, 360.0)
|
|
321
|
+
# if r > 180.0 or (r == 180.0 and q <= -1.0):
|
|
322
|
+
# return r - 360.0
|
|
323
|
+
# return r
|
|
324
|
+
# def NormalizeLatLng(latitude, longitude):
|
|
325
|
+
# """Wraps decimal degrees latitude and longitude to
|
|
326
|
+
# [-90.0, 90.0] and [-180.0, 180.0], respectively."""
|
|
327
|
+
# r = latitude % 360.0
|
|
328
|
+
# if r <= 90.0:
|
|
329
|
+
# return r, NormalizeLongitude(longitude)
|
|
330
|
+
# elif r >= 270.0:
|
|
331
|
+
# return r - 360, NormalizeLongitude(longitude)
|
|
332
|
+
# else:
|
|
333
|
+
# return 180 - r, NormalizeLongitude(longitude + 180.0)
|
|
334
|
+
# assert 180.0 == NormalizeLongitude(180.0)
|
|
335
|
+
# assert -180.0 == NormalizeLongitude(-180.0)
|
|
336
|
+
# assert -179.0 == NormalizeLongitude(181.0)
|
|
337
|
+
# assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
|
|
338
|
+
# assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
|
|
339
|
+
# assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
|
|
340
|
+
# assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
|
|
341
|
+
# assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
|
|
342
|
+
# assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
|
|
343
|
+
# assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
|
|
344
|
+
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
|
|
345
|
+
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
|
|
346
|
+
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
|
|
347
|
+
# The code in logs/storage/validator/logs_validator_traits.cc treats this type
|
|
348
|
+
# as if it were annotated as ST_LOCATION.
|
|
349
|
+
# Corresponds to the JSON property `latLng`
|
|
350
|
+
# @return [Google::Apis::PartnersV2::LatLng]
|
|
351
|
+
attr_accessor :lat_lng
|
|
352
|
+
|
|
353
|
+
# The single string version of the address.
|
|
354
|
+
# Corresponds to the JSON property `address`
|
|
355
|
+
# @return [String]
|
|
356
|
+
attr_accessor :address
|
|
357
|
+
|
|
358
|
+
# Dependent locality or sublocality. Used for UK dependent localities, or
|
|
359
|
+
# neighborhoods or boroughs in other locations.
|
|
360
|
+
# Corresponds to the JSON property `dependentLocality`
|
|
361
|
+
# @return [String]
|
|
362
|
+
attr_accessor :dependent_locality
|
|
363
|
+
|
|
364
|
+
# CLDR (Common Locale Data Repository) region code .
|
|
365
|
+
# Corresponds to the JSON property `regionCode`
|
|
366
|
+
# @return [String]
|
|
367
|
+
attr_accessor :region_code
|
|
368
|
+
|
|
369
|
+
def initialize(**args)
|
|
370
|
+
update!(**args)
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
# Update properties of this object
|
|
374
|
+
def update!(**args)
|
|
375
|
+
@postal_code = args[:postal_code] if args.key?(:postal_code)
|
|
376
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
|
377
|
+
@sorting_code = args[:sorting_code] if args.key?(:sorting_code)
|
|
378
|
+
@address_line = args[:address_line] if args.key?(:address_line)
|
|
379
|
+
@administrative_area = args[:administrative_area] if args.key?(:administrative_area)
|
|
380
|
+
@locality = args[:locality] if args.key?(:locality)
|
|
381
|
+
@lat_lng = args[:lat_lng] if args.key?(:lat_lng)
|
|
382
|
+
@address = args[:address] if args.key?(:address)
|
|
383
|
+
@dependent_locality = args[:dependent_locality] if args.key?(:dependent_locality)
|
|
384
|
+
@region_code = args[:region_code] if args.key?(:region_code)
|
|
385
|
+
end
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
# Status for a Google Partners certification exam.
|
|
389
|
+
class CertificationExamStatus
|
|
390
|
+
include Google::Apis::Core::Hashable
|
|
391
|
+
|
|
392
|
+
# The number of people who have passed the certification exam.
|
|
393
|
+
# Corresponds to the JSON property `numberUsersPass`
|
|
394
|
+
# @return [Fixnum]
|
|
395
|
+
attr_accessor :number_users_pass
|
|
396
|
+
|
|
397
|
+
# The type of certification exam.
|
|
398
|
+
# Corresponds to the JSON property `type`
|
|
399
|
+
# @return [String]
|
|
400
|
+
attr_accessor :type
|
|
401
|
+
|
|
402
|
+
def initialize(**args)
|
|
403
|
+
update!(**args)
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
# Update properties of this object
|
|
407
|
+
def update!(**args)
|
|
408
|
+
@number_users_pass = args[:number_users_pass] if args.key?(:number_users_pass)
|
|
409
|
+
@type = args[:type] if args.key?(:type)
|
|
410
|
+
end
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
# A token that allows a user to take an exam.
|
|
414
|
+
class ExamToken
|
|
415
|
+
include Google::Apis::Core::Hashable
|
|
416
|
+
|
|
417
|
+
# The id of the exam the token is for.
|
|
418
|
+
# Corresponds to the JSON property `examId`
|
|
419
|
+
# @return [String]
|
|
420
|
+
attr_accessor :exam_id
|
|
421
|
+
|
|
422
|
+
# The token, only present if the user has access to the exam.
|
|
423
|
+
# Corresponds to the JSON property `token`
|
|
424
|
+
# @return [String]
|
|
425
|
+
attr_accessor :token
|
|
426
|
+
|
|
427
|
+
# The type of the exam the token belongs to.
|
|
428
|
+
# Corresponds to the JSON property `examType`
|
|
429
|
+
# @return [String]
|
|
430
|
+
attr_accessor :exam_type
|
|
431
|
+
|
|
432
|
+
def initialize(**args)
|
|
433
|
+
update!(**args)
|
|
434
|
+
end
|
|
435
|
+
|
|
436
|
+
# Update properties of this object
|
|
437
|
+
def update!(**args)
|
|
438
|
+
@exam_id = args[:exam_id] if args.key?(:exam_id)
|
|
439
|
+
@token = args[:token] if args.key?(:token)
|
|
440
|
+
@exam_type = args[:exam_type] if args.key?(:exam_type)
|
|
441
|
+
end
|
|
442
|
+
end
|
|
443
|
+
|
|
444
|
+
# A set of opt-ins for a user.
|
|
445
|
+
class OptIns
|
|
446
|
+
include Google::Apis::Core::Hashable
|
|
447
|
+
|
|
448
|
+
# An opt-in to receive special promotional gifts and material in the mail.
|
|
449
|
+
# Corresponds to the JSON property `physicalMail`
|
|
450
|
+
# @return [Boolean]
|
|
451
|
+
attr_accessor :physical_mail
|
|
452
|
+
alias_method :physical_mail?, :physical_mail
|
|
453
|
+
|
|
454
|
+
# An opt-in to allow recieivng phone calls about their Partners account.
|
|
455
|
+
# Corresponds to the JSON property `phoneContact`
|
|
456
|
+
# @return [Boolean]
|
|
457
|
+
attr_accessor :phone_contact
|
|
458
|
+
alias_method :phone_contact?, :phone_contact
|
|
459
|
+
|
|
460
|
+
# An opt-in about receiving email from Partners marketing teams. Includes
|
|
461
|
+
# member-only events and special promotional offers for Google products.
|
|
462
|
+
# Corresponds to the JSON property `marketComm`
|
|
463
|
+
# @return [Boolean]
|
|
464
|
+
attr_accessor :market_comm
|
|
465
|
+
alias_method :market_comm?, :market_comm
|
|
466
|
+
|
|
467
|
+
# An opt-in about receiving email regarding new features and products.
|
|
468
|
+
# Corresponds to the JSON property `specialOffers`
|
|
469
|
+
# @return [Boolean]
|
|
470
|
+
attr_accessor :special_offers
|
|
471
|
+
alias_method :special_offers?, :special_offers
|
|
472
|
+
|
|
473
|
+
# An opt-in about receiving email with customized AdWords campaign management
|
|
474
|
+
# tips.
|
|
475
|
+
# Corresponds to the JSON property `performanceSuggestions`
|
|
476
|
+
# @return [Boolean]
|
|
477
|
+
attr_accessor :performance_suggestions
|
|
478
|
+
alias_method :performance_suggestions?, :performance_suggestions
|
|
479
|
+
|
|
480
|
+
def initialize(**args)
|
|
481
|
+
update!(**args)
|
|
482
|
+
end
|
|
483
|
+
|
|
484
|
+
# Update properties of this object
|
|
485
|
+
def update!(**args)
|
|
486
|
+
@physical_mail = args[:physical_mail] if args.key?(:physical_mail)
|
|
487
|
+
@phone_contact = args[:phone_contact] if args.key?(:phone_contact)
|
|
488
|
+
@market_comm = args[:market_comm] if args.key?(:market_comm)
|
|
489
|
+
@special_offers = args[:special_offers] if args.key?(:special_offers)
|
|
490
|
+
@performance_suggestions = args[:performance_suggestions] if args.key?(:performance_suggestions)
|
|
491
|
+
end
|
|
492
|
+
end
|
|
493
|
+
|
|
494
|
+
# Information related to ranking of results.
|
|
495
|
+
class Rank
|
|
496
|
+
include Google::Apis::Core::Hashable
|
|
497
|
+
|
|
498
|
+
# The type of rank.
|
|
499
|
+
# Corresponds to the JSON property `type`
|
|
500
|
+
# @return [String]
|
|
501
|
+
attr_accessor :type
|
|
502
|
+
|
|
503
|
+
# The numerical value of the rank.
|
|
504
|
+
# Corresponds to the JSON property `value`
|
|
505
|
+
# @return [Float]
|
|
506
|
+
attr_accessor :value
|
|
507
|
+
|
|
508
|
+
def initialize(**args)
|
|
509
|
+
update!(**args)
|
|
510
|
+
end
|
|
511
|
+
|
|
512
|
+
# Update properties of this object
|
|
513
|
+
def update!(**args)
|
|
514
|
+
@type = args[:type] if args.key?(:type)
|
|
515
|
+
@value = args[:value] if args.key?(:value)
|
|
516
|
+
end
|
|
517
|
+
end
|
|
518
|
+
|
|
519
|
+
# The profile information of a Partners user.
|
|
520
|
+
class UserProfile
|
|
521
|
+
include Google::Apis::Core::Hashable
|
|
522
|
+
|
|
523
|
+
# The user's given name.
|
|
524
|
+
# Corresponds to the JSON property `givenName`
|
|
525
|
+
# @return [String]
|
|
526
|
+
attr_accessor :given_name
|
|
527
|
+
|
|
528
|
+
# A location with address and geographic coordinates. May optionally contain a
|
|
529
|
+
# detailed (multi-field) version of the address.
|
|
530
|
+
# Corresponds to the JSON property `address`
|
|
531
|
+
# @return [Google::Apis::PartnersV2::Location]
|
|
532
|
+
attr_accessor :address
|
|
533
|
+
|
|
534
|
+
# A list of ids representing which industries the user selected.
|
|
535
|
+
# Corresponds to the JSON property `industries`
|
|
536
|
+
# @return [Array<String>]
|
|
537
|
+
attr_accessor :industries
|
|
538
|
+
|
|
539
|
+
# The list of languages this user understands.
|
|
540
|
+
# Corresponds to the JSON property `languages`
|
|
541
|
+
# @return [Array<String>]
|
|
542
|
+
attr_accessor :languages
|
|
543
|
+
|
|
544
|
+
# The user's family name.
|
|
545
|
+
# Corresponds to the JSON property `familyName`
|
|
546
|
+
# @return [String]
|
|
547
|
+
attr_accessor :family_name
|
|
548
|
+
|
|
549
|
+
# A set of opt-ins for a user.
|
|
550
|
+
# Corresponds to the JSON property `emailOptIns`
|
|
551
|
+
# @return [Google::Apis::PartnersV2::OptIns]
|
|
552
|
+
attr_accessor :email_opt_ins
|
|
553
|
+
|
|
554
|
+
# A list of ids representing which markets the user was interested in.
|
|
555
|
+
# Corresponds to the JSON property `markets`
|
|
556
|
+
# @return [Array<String>]
|
|
557
|
+
attr_accessor :markets
|
|
558
|
+
|
|
559
|
+
# The user's phone number.
|
|
560
|
+
# Corresponds to the JSON property `phoneNumber`
|
|
561
|
+
# @return [String]
|
|
562
|
+
attr_accessor :phone_number
|
|
563
|
+
|
|
564
|
+
# If the user has edit access to multiple accounts, the user can choose the
|
|
565
|
+
# preferred account and it is used when a personal account is needed. Can
|
|
566
|
+
# be empty.
|
|
567
|
+
# Corresponds to the JSON property `adwordsManagerAccount`
|
|
568
|
+
# @return [String]
|
|
569
|
+
attr_accessor :adwords_manager_account
|
|
570
|
+
|
|
571
|
+
# The user's primary country, an ISO 2-character code.
|
|
572
|
+
# Corresponds to the JSON property `primaryCountryCode`
|
|
573
|
+
# @return [String]
|
|
574
|
+
attr_accessor :primary_country_code
|
|
575
|
+
|
|
576
|
+
# The email address the user has selected on the Partners site as primary.
|
|
577
|
+
# Corresponds to the JSON property `emailAddress`
|
|
578
|
+
# @return [String]
|
|
579
|
+
attr_accessor :email_address
|
|
580
|
+
|
|
581
|
+
# Whether the user's public profile is visible to anyone with the URL.
|
|
582
|
+
# Corresponds to the JSON property `profilePublic`
|
|
583
|
+
# @return [Boolean]
|
|
584
|
+
attr_accessor :profile_public
|
|
585
|
+
alias_method :profile_public?, :profile_public
|
|
586
|
+
|
|
587
|
+
# A list of ids representing which channels the user selected they were in.
|
|
588
|
+
# Corresponds to the JSON property `channels`
|
|
589
|
+
# @return [Array<String>]
|
|
590
|
+
attr_accessor :channels
|
|
591
|
+
|
|
592
|
+
# A list of ids represnting which job categories the user selected.
|
|
593
|
+
# Corresponds to the JSON property `jobFunctions`
|
|
594
|
+
# @return [Array<String>]
|
|
595
|
+
attr_accessor :job_functions
|
|
596
|
+
|
|
597
|
+
def initialize(**args)
|
|
598
|
+
update!(**args)
|
|
599
|
+
end
|
|
600
|
+
|
|
601
|
+
# Update properties of this object
|
|
602
|
+
def update!(**args)
|
|
603
|
+
@given_name = args[:given_name] if args.key?(:given_name)
|
|
604
|
+
@address = args[:address] if args.key?(:address)
|
|
605
|
+
@industries = args[:industries] if args.key?(:industries)
|
|
606
|
+
@languages = args[:languages] if args.key?(:languages)
|
|
607
|
+
@family_name = args[:family_name] if args.key?(:family_name)
|
|
608
|
+
@email_opt_ins = args[:email_opt_ins] if args.key?(:email_opt_ins)
|
|
609
|
+
@markets = args[:markets] if args.key?(:markets)
|
|
610
|
+
@phone_number = args[:phone_number] if args.key?(:phone_number)
|
|
611
|
+
@adwords_manager_account = args[:adwords_manager_account] if args.key?(:adwords_manager_account)
|
|
612
|
+
@primary_country_code = args[:primary_country_code] if args.key?(:primary_country_code)
|
|
613
|
+
@email_address = args[:email_address] if args.key?(:email_address)
|
|
614
|
+
@profile_public = args[:profile_public] if args.key?(:profile_public)
|
|
615
|
+
@channels = args[:channels] if args.key?(:channels)
|
|
616
|
+
@job_functions = args[:job_functions] if args.key?(:job_functions)
|
|
617
|
+
end
|
|
618
|
+
end
|
|
619
|
+
|
|
620
|
+
# Response message for
|
|
621
|
+
# GetPartnersStatus.
|
|
622
|
+
class GetPartnersStatusResponse
|
|
623
|
+
include Google::Apis::Core::Hashable
|
|
624
|
+
|
|
625
|
+
# Common data that is in each API response.
|
|
626
|
+
# Corresponds to the JSON property `responseMetadata`
|
|
627
|
+
# @return [Google::Apis::PartnersV2::ResponseMetadata]
|
|
628
|
+
attr_accessor :response_metadata
|
|
629
|
+
|
|
630
|
+
def initialize(**args)
|
|
631
|
+
update!(**args)
|
|
632
|
+
end
|
|
633
|
+
|
|
634
|
+
# Update properties of this object
|
|
635
|
+
def update!(**args)
|
|
636
|
+
@response_metadata = args[:response_metadata] if args.key?(:response_metadata)
|
|
637
|
+
end
|
|
638
|
+
end
|
|
639
|
+
|
|
640
|
+
# Historical information about a Google Partners Offer.
|
|
641
|
+
class HistoricalOffer
|
|
642
|
+
include Google::Apis::Core::Hashable
|
|
643
|
+
|
|
644
|
+
# ID of client.
|
|
645
|
+
# Corresponds to the JSON property `clientId`
|
|
646
|
+
# @return [String]
|
|
647
|
+
attr_accessor :client_id
|
|
648
|
+
|
|
649
|
+
# Name of the client.
|
|
650
|
+
# Corresponds to the JSON property `clientName`
|
|
651
|
+
# @return [String]
|
|
652
|
+
attr_accessor :client_name
|
|
653
|
+
|
|
654
|
+
# Time last action was taken.
|
|
655
|
+
# Corresponds to the JSON property `lastModifiedTime`
|
|
656
|
+
# @return [String]
|
|
657
|
+
attr_accessor :last_modified_time
|
|
658
|
+
|
|
659
|
+
# Client's AdWords page URL.
|
|
660
|
+
# Corresponds to the JSON property `adwordsUrl`
|
|
661
|
+
# @return [String]
|
|
662
|
+
attr_accessor :adwords_url
|
|
663
|
+
|
|
664
|
+
# Type of offer.
|
|
665
|
+
# Corresponds to the JSON property `offerType`
|
|
666
|
+
# @return [String]
|
|
667
|
+
attr_accessor :offer_type
|
|
668
|
+
|
|
669
|
+
# Name (First + Last) of the partners user to whom the incentive is allocated.
|
|
670
|
+
# Corresponds to the JSON property `senderName`
|
|
671
|
+
# @return [String]
|
|
672
|
+
attr_accessor :sender_name
|
|
673
|
+
|
|
674
|
+
# Country Code for the offer country.
|
|
675
|
+
# Corresponds to the JSON property `offerCountryCode`
|
|
676
|
+
# @return [String]
|
|
677
|
+
attr_accessor :offer_country_code
|
|
678
|
+
|
|
679
|
+
# Time this offer expires.
|
|
680
|
+
# Corresponds to the JSON property `expirationTime`
|
|
681
|
+
# @return [String]
|
|
682
|
+
attr_accessor :expiration_time
|
|
683
|
+
|
|
684
|
+
# Offer code.
|
|
685
|
+
# Corresponds to the JSON property `offerCode`
|
|
686
|
+
# @return [String]
|
|
687
|
+
attr_accessor :offer_code
|
|
688
|
+
|
|
689
|
+
# Time offer was first created.
|
|
690
|
+
# Corresponds to the JSON property `creationTime`
|
|
691
|
+
# @return [String]
|
|
692
|
+
attr_accessor :creation_time
|
|
693
|
+
|
|
694
|
+
# Email address for client.
|
|
695
|
+
# Corresponds to the JSON property `clientEmail`
|
|
696
|
+
# @return [String]
|
|
697
|
+
attr_accessor :client_email
|
|
698
|
+
|
|
699
|
+
# Status of the offer.
|
|
700
|
+
# Corresponds to the JSON property `status`
|
|
701
|
+
# @return [String]
|
|
702
|
+
attr_accessor :status
|
|
703
|
+
|
|
704
|
+
def initialize(**args)
|
|
705
|
+
update!(**args)
|
|
706
|
+
end
|
|
707
|
+
|
|
708
|
+
# Update properties of this object
|
|
709
|
+
def update!(**args)
|
|
710
|
+
@client_id = args[:client_id] if args.key?(:client_id)
|
|
711
|
+
@client_name = args[:client_name] if args.key?(:client_name)
|
|
712
|
+
@last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
|
|
713
|
+
@adwords_url = args[:adwords_url] if args.key?(:adwords_url)
|
|
714
|
+
@offer_type = args[:offer_type] if args.key?(:offer_type)
|
|
715
|
+
@sender_name = args[:sender_name] if args.key?(:sender_name)
|
|
716
|
+
@offer_country_code = args[:offer_country_code] if args.key?(:offer_country_code)
|
|
717
|
+
@expiration_time = args[:expiration_time] if args.key?(:expiration_time)
|
|
718
|
+
@offer_code = args[:offer_code] if args.key?(:offer_code)
|
|
719
|
+
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
|
720
|
+
@client_email = args[:client_email] if args.key?(:client_email)
|
|
721
|
+
@status = args[:status] if args.key?(:status)
|
|
722
|
+
end
|
|
723
|
+
end
|
|
724
|
+
|
|
725
|
+
# Request message for
|
|
726
|
+
# LogUserEvent.
|
|
26
727
|
class LogUserEventRequest
|
|
27
728
|
include Google::Apis::Core::Hashable
|
|
28
729
|
|
|
730
|
+
# The URL where the event occurred.
|
|
731
|
+
# Corresponds to the JSON property `url`
|
|
732
|
+
# @return [String]
|
|
733
|
+
attr_accessor :url
|
|
734
|
+
|
|
29
735
|
# Common data that is in each API request.
|
|
30
736
|
# Corresponds to the JSON property `requestMetadata`
|
|
31
737
|
# @return [Google::Apis::PartnersV2::RequestMetadata]
|
|
32
738
|
attr_accessor :request_metadata
|
|
33
739
|
|
|
34
|
-
#
|
|
35
|
-
# Corresponds to the JSON property `
|
|
740
|
+
# List of event data for the event.
|
|
741
|
+
# Corresponds to the JSON property `eventDatas`
|
|
742
|
+
# @return [Array<Google::Apis::PartnersV2::EventData>]
|
|
743
|
+
attr_accessor :event_datas
|
|
744
|
+
|
|
745
|
+
# The scope of the event.
|
|
746
|
+
# Corresponds to the JSON property `eventScope`
|
|
36
747
|
# @return [String]
|
|
37
|
-
attr_accessor :
|
|
748
|
+
attr_accessor :event_scope
|
|
38
749
|
|
|
39
750
|
# The category the action belongs to.
|
|
40
751
|
# Corresponds to the JSON property `eventCategory`
|
|
41
752
|
# @return [String]
|
|
42
753
|
attr_accessor :event_category
|
|
43
754
|
|
|
44
|
-
#
|
|
45
|
-
#
|
|
755
|
+
# A lead resource that represents an advertiser contact for a `Company`. These
|
|
756
|
+
# are usually generated via Google Partner Search (the advertiser portal).
|
|
757
|
+
# Corresponds to the JSON property `lead`
|
|
758
|
+
# @return [Google::Apis::PartnersV2::Lead]
|
|
759
|
+
attr_accessor :lead
|
|
760
|
+
|
|
761
|
+
# The action that occurred.
|
|
762
|
+
# Corresponds to the JSON property `eventAction`
|
|
46
763
|
# @return [String]
|
|
47
|
-
attr_accessor :
|
|
764
|
+
attr_accessor :event_action
|
|
48
765
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
attr_accessor :event_datas
|
|
766
|
+
def initialize(**args)
|
|
767
|
+
update!(**args)
|
|
768
|
+
end
|
|
53
769
|
|
|
54
|
-
#
|
|
770
|
+
# Update properties of this object
|
|
771
|
+
def update!(**args)
|
|
772
|
+
@url = args[:url] if args.key?(:url)
|
|
773
|
+
@request_metadata = args[:request_metadata] if args.key?(:request_metadata)
|
|
774
|
+
@event_datas = args[:event_datas] if args.key?(:event_datas)
|
|
775
|
+
@event_scope = args[:event_scope] if args.key?(:event_scope)
|
|
776
|
+
@event_category = args[:event_category] if args.key?(:event_category)
|
|
777
|
+
@lead = args[:lead] if args.key?(:lead)
|
|
778
|
+
@event_action = args[:event_action] if args.key?(:event_action)
|
|
779
|
+
end
|
|
780
|
+
end
|
|
781
|
+
|
|
782
|
+
# Values to use instead of the user's respective defaults. These are only
|
|
783
|
+
# honored by whitelisted products.
|
|
784
|
+
class UserOverrides
|
|
785
|
+
include Google::Apis::Core::Hashable
|
|
786
|
+
|
|
787
|
+
# Logged-in user ID to impersonate instead of the user's ID.
|
|
788
|
+
# Corresponds to the JSON property `userId`
|
|
789
|
+
# @return [String]
|
|
790
|
+
attr_accessor :user_id
|
|
791
|
+
|
|
792
|
+
# IP address to use instead of the user's geo-located IP address.
|
|
793
|
+
# Corresponds to the JSON property `ipAddress`
|
|
794
|
+
# @return [String]
|
|
795
|
+
attr_accessor :ip_address
|
|
796
|
+
|
|
797
|
+
def initialize(**args)
|
|
798
|
+
update!(**args)
|
|
799
|
+
end
|
|
800
|
+
|
|
801
|
+
# Update properties of this object
|
|
802
|
+
def update!(**args)
|
|
803
|
+
@user_id = args[:user_id] if args.key?(:user_id)
|
|
804
|
+
@ip_address = args[:ip_address] if args.key?(:ip_address)
|
|
805
|
+
end
|
|
806
|
+
end
|
|
807
|
+
|
|
808
|
+
# Details of the analytics events for a `Company` within a single day.
|
|
809
|
+
class AnalyticsDataPoint
|
|
810
|
+
include Google::Apis::Core::Hashable
|
|
811
|
+
|
|
812
|
+
# Number of times the type of event occurred.
|
|
813
|
+
# Meaning depends on context (e.g. profile views, contacts, etc.).
|
|
814
|
+
# Corresponds to the JSON property `eventCount`
|
|
815
|
+
# @return [Fixnum]
|
|
816
|
+
attr_accessor :event_count
|
|
817
|
+
|
|
818
|
+
# Location information of where these events occurred.
|
|
819
|
+
# Corresponds to the JSON property `eventLocations`
|
|
820
|
+
# @return [Array<Google::Apis::PartnersV2::LatLng>]
|
|
821
|
+
attr_accessor :event_locations
|
|
822
|
+
|
|
823
|
+
def initialize(**args)
|
|
824
|
+
update!(**args)
|
|
825
|
+
end
|
|
826
|
+
|
|
827
|
+
# Update properties of this object
|
|
828
|
+
def update!(**args)
|
|
829
|
+
@event_count = args[:event_count] if args.key?(:event_count)
|
|
830
|
+
@event_locations = args[:event_locations] if args.key?(:event_locations)
|
|
831
|
+
end
|
|
832
|
+
end
|
|
833
|
+
|
|
834
|
+
# Analytics data for a `Company` within a single day.
|
|
835
|
+
class Analytics
|
|
836
|
+
include Google::Apis::Core::Hashable
|
|
837
|
+
|
|
838
|
+
# Details of the analytics events for a `Company` within a single day.
|
|
839
|
+
# Corresponds to the JSON property `contacts`
|
|
840
|
+
# @return [Google::Apis::PartnersV2::AnalyticsDataPoint]
|
|
841
|
+
attr_accessor :contacts
|
|
842
|
+
|
|
843
|
+
# Represents a whole calendar date, e.g. date of birth. The time of day and
|
|
844
|
+
# time zone are either specified elsewhere or are not significant. The date
|
|
845
|
+
# is relative to the Proleptic Gregorian Calendar. The day may be 0 to
|
|
846
|
+
# represent a year and month where the day is not significant, e.g. credit card
|
|
847
|
+
# expiration date. The year may be 0 to represent a month and day independent
|
|
848
|
+
# of year, e.g. anniversary date. Related types are google.type.TimeOfDay
|
|
849
|
+
# and `google.protobuf.Timestamp`.
|
|
850
|
+
# Corresponds to the JSON property `eventDate`
|
|
851
|
+
# @return [Google::Apis::PartnersV2::Date]
|
|
852
|
+
attr_accessor :event_date
|
|
853
|
+
|
|
854
|
+
# Details of the analytics events for a `Company` within a single day.
|
|
855
|
+
# Corresponds to the JSON property `profileViews`
|
|
856
|
+
# @return [Google::Apis::PartnersV2::AnalyticsDataPoint]
|
|
857
|
+
attr_accessor :profile_views
|
|
858
|
+
|
|
859
|
+
# Details of the analytics events for a `Company` within a single day.
|
|
860
|
+
# Corresponds to the JSON property `searchViews`
|
|
861
|
+
# @return [Google::Apis::PartnersV2::AnalyticsDataPoint]
|
|
862
|
+
attr_accessor :search_views
|
|
863
|
+
|
|
864
|
+
def initialize(**args)
|
|
865
|
+
update!(**args)
|
|
866
|
+
end
|
|
867
|
+
|
|
868
|
+
# Update properties of this object
|
|
869
|
+
def update!(**args)
|
|
870
|
+
@contacts = args[:contacts] if args.key?(:contacts)
|
|
871
|
+
@event_date = args[:event_date] if args.key?(:event_date)
|
|
872
|
+
@profile_views = args[:profile_views] if args.key?(:profile_views)
|
|
873
|
+
@search_views = args[:search_views] if args.key?(:search_views)
|
|
874
|
+
end
|
|
875
|
+
end
|
|
876
|
+
|
|
877
|
+
# Information about a particular AdWords Manager Account.
|
|
878
|
+
# Read more at https://support.google.com/adwords/answer/6139186
|
|
879
|
+
class AdWordsManagerAccountInfo
|
|
880
|
+
include Google::Apis::Core::Hashable
|
|
881
|
+
|
|
882
|
+
# The AdWords Manager Account id.
|
|
883
|
+
# Corresponds to the JSON property `id`
|
|
884
|
+
# @return [String]
|
|
885
|
+
attr_accessor :id
|
|
886
|
+
|
|
887
|
+
# Name of the customer this account represents.
|
|
888
|
+
# Corresponds to the JSON property `customerName`
|
|
889
|
+
# @return [String]
|
|
890
|
+
attr_accessor :customer_name
|
|
891
|
+
|
|
892
|
+
def initialize(**args)
|
|
893
|
+
update!(**args)
|
|
894
|
+
end
|
|
895
|
+
|
|
896
|
+
# Update properties of this object
|
|
897
|
+
def update!(**args)
|
|
898
|
+
@id = args[:id] if args.key?(:id)
|
|
899
|
+
@customer_name = args[:customer_name] if args.key?(:customer_name)
|
|
900
|
+
end
|
|
901
|
+
end
|
|
902
|
+
|
|
903
|
+
# Basic information from a public profile.
|
|
904
|
+
class PublicProfile
|
|
905
|
+
include Google::Apis::Core::Hashable
|
|
906
|
+
|
|
907
|
+
# The URL to the main profile image of the public profile.
|
|
908
|
+
# Corresponds to the JSON property `profileImage`
|
|
909
|
+
# @return [String]
|
|
910
|
+
attr_accessor :profile_image
|
|
911
|
+
|
|
912
|
+
# The display name of the public profile.
|
|
913
|
+
# Corresponds to the JSON property `displayName`
|
|
914
|
+
# @return [String]
|
|
915
|
+
attr_accessor :display_name
|
|
916
|
+
|
|
917
|
+
# The URL to the main display image of the public profile. Being deprecated.
|
|
918
|
+
# Corresponds to the JSON property `displayImageUrl`
|
|
919
|
+
# @return [String]
|
|
920
|
+
attr_accessor :display_image_url
|
|
921
|
+
|
|
922
|
+
# The ID which can be used to retrieve more details about the public profile.
|
|
923
|
+
# Corresponds to the JSON property `id`
|
|
924
|
+
# @return [String]
|
|
925
|
+
attr_accessor :id
|
|
926
|
+
|
|
927
|
+
# The URL of the public profile.
|
|
55
928
|
# Corresponds to the JSON property `url`
|
|
56
929
|
# @return [String]
|
|
57
930
|
attr_accessor :url
|
|
58
931
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
932
|
+
def initialize(**args)
|
|
933
|
+
update!(**args)
|
|
934
|
+
end
|
|
935
|
+
|
|
936
|
+
# Update properties of this object
|
|
937
|
+
def update!(**args)
|
|
938
|
+
@profile_image = args[:profile_image] if args.key?(:profile_image)
|
|
939
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
|
940
|
+
@display_image_url = args[:display_image_url] if args.key?(:display_image_url)
|
|
941
|
+
@id = args[:id] if args.key?(:id)
|
|
942
|
+
@url = args[:url] if args.key?(:url)
|
|
943
|
+
end
|
|
944
|
+
end
|
|
945
|
+
|
|
946
|
+
# Common data that is in each API response.
|
|
947
|
+
class ResponseMetadata
|
|
948
|
+
include Google::Apis::Core::Hashable
|
|
949
|
+
|
|
950
|
+
# Debug information about this request.
|
|
951
|
+
# Corresponds to the JSON property `debugInfo`
|
|
952
|
+
# @return [Google::Apis::PartnersV2::DebugInfo]
|
|
953
|
+
attr_accessor :debug_info
|
|
954
|
+
|
|
955
|
+
def initialize(**args)
|
|
956
|
+
update!(**args)
|
|
957
|
+
end
|
|
958
|
+
|
|
959
|
+
# Update properties of this object
|
|
960
|
+
def update!(**args)
|
|
961
|
+
@debug_info = args[:debug_info] if args.key?(:debug_info)
|
|
962
|
+
end
|
|
963
|
+
end
|
|
964
|
+
|
|
965
|
+
# <a href="https://www.google.com/recaptcha/">reCaptcha</a> challenge info.
|
|
966
|
+
class RecaptchaChallenge
|
|
967
|
+
include Google::Apis::Core::Hashable
|
|
968
|
+
|
|
969
|
+
# The ID of the reCaptcha challenge.
|
|
970
|
+
# Corresponds to the JSON property `id`
|
|
971
|
+
# @return [String]
|
|
972
|
+
attr_accessor :id
|
|
973
|
+
|
|
974
|
+
# The response to the reCaptcha challenge.
|
|
975
|
+
# Corresponds to the JSON property `response`
|
|
976
|
+
# @return [String]
|
|
977
|
+
attr_accessor :response
|
|
978
|
+
|
|
979
|
+
def initialize(**args)
|
|
980
|
+
update!(**args)
|
|
981
|
+
end
|
|
982
|
+
|
|
983
|
+
# Update properties of this object
|
|
984
|
+
def update!(**args)
|
|
985
|
+
@id = args[:id] if args.key?(:id)
|
|
986
|
+
@response = args[:response] if args.key?(:response)
|
|
987
|
+
end
|
|
988
|
+
end
|
|
989
|
+
|
|
990
|
+
# Available Offers to be distributed.
|
|
991
|
+
class AvailableOffer
|
|
992
|
+
include Google::Apis::Core::Hashable
|
|
993
|
+
|
|
994
|
+
# Type of offer.
|
|
995
|
+
# Corresponds to the JSON property `offerType`
|
|
996
|
+
# @return [String]
|
|
997
|
+
attr_accessor :offer_type
|
|
998
|
+
|
|
999
|
+
# The maximum age of an account [in days] to be eligible.
|
|
1000
|
+
# Corresponds to the JSON property `maxAccountAge`
|
|
1001
|
+
# @return [Fixnum]
|
|
1002
|
+
attr_accessor :max_account_age
|
|
1003
|
+
|
|
1004
|
+
# Customers who qualify for this offer.
|
|
1005
|
+
# Corresponds to the JSON property `qualifiedCustomer`
|
|
1006
|
+
# @return [Array<Google::Apis::PartnersV2::OfferCustomer>]
|
|
1007
|
+
attr_accessor :qualified_customer
|
|
1008
|
+
|
|
1009
|
+
# Terms of the offer.
|
|
1010
|
+
# Corresponds to the JSON property `terms`
|
|
1011
|
+
# @return [String]
|
|
1012
|
+
attr_accessor :terms
|
|
1013
|
+
|
|
1014
|
+
# Should special text be shown on the offers page.
|
|
1015
|
+
# Corresponds to the JSON property `showSpecialOfferCopy`
|
|
1016
|
+
# @return [Boolean]
|
|
1017
|
+
attr_accessor :show_special_offer_copy
|
|
1018
|
+
alias_method :show_special_offer_copy?, :show_special_offer_copy
|
|
1019
|
+
|
|
1020
|
+
# The number of codes for this offer that are available for distribution.
|
|
1021
|
+
# Corresponds to the JSON property `available`
|
|
1022
|
+
# @return [Fixnum]
|
|
1023
|
+
attr_accessor :available
|
|
1024
|
+
|
|
1025
|
+
# Description of the offer.
|
|
1026
|
+
# Corresponds to the JSON property `description`
|
|
1027
|
+
# @return [String]
|
|
1028
|
+
attr_accessor :description
|
|
1029
|
+
|
|
1030
|
+
# Level of this offer.
|
|
1031
|
+
# Corresponds to the JSON property `offerLevel`
|
|
1032
|
+
# @return [String]
|
|
1033
|
+
attr_accessor :offer_level
|
|
1034
|
+
|
|
1035
|
+
# Name of the offer.
|
|
1036
|
+
# Corresponds to the JSON property `name`
|
|
1037
|
+
# @return [String]
|
|
1038
|
+
attr_accessor :name
|
|
1039
|
+
|
|
1040
|
+
# Whether or not the list of qualified customers is definitely complete.
|
|
1041
|
+
# Corresponds to the JSON property `qualifiedCustomersComplete`
|
|
1042
|
+
# @return [Boolean]
|
|
1043
|
+
attr_accessor :qualified_customers_complete
|
|
1044
|
+
alias_method :qualified_customers_complete?, :qualified_customers_complete
|
|
1045
|
+
|
|
1046
|
+
# ID of this offer.
|
|
1047
|
+
# Corresponds to the JSON property `id`
|
|
1048
|
+
# @return [String]
|
|
1049
|
+
attr_accessor :id
|
|
1050
|
+
|
|
1051
|
+
# Offer info by country.
|
|
1052
|
+
# Corresponds to the JSON property `countryOfferInfos`
|
|
1053
|
+
# @return [Array<Google::Apis::PartnersV2::CountryOfferInfo>]
|
|
1054
|
+
attr_accessor :country_offer_infos
|
|
1055
|
+
|
|
1056
|
+
def initialize(**args)
|
|
1057
|
+
update!(**args)
|
|
1058
|
+
end
|
|
1059
|
+
|
|
1060
|
+
# Update properties of this object
|
|
1061
|
+
def update!(**args)
|
|
1062
|
+
@offer_type = args[:offer_type] if args.key?(:offer_type)
|
|
1063
|
+
@max_account_age = args[:max_account_age] if args.key?(:max_account_age)
|
|
1064
|
+
@qualified_customer = args[:qualified_customer] if args.key?(:qualified_customer)
|
|
1065
|
+
@terms = args[:terms] if args.key?(:terms)
|
|
1066
|
+
@show_special_offer_copy = args[:show_special_offer_copy] if args.key?(:show_special_offer_copy)
|
|
1067
|
+
@available = args[:available] if args.key?(:available)
|
|
1068
|
+
@description = args[:description] if args.key?(:description)
|
|
1069
|
+
@offer_level = args[:offer_level] if args.key?(:offer_level)
|
|
1070
|
+
@name = args[:name] if args.key?(:name)
|
|
1071
|
+
@qualified_customers_complete = args[:qualified_customers_complete] if args.key?(:qualified_customers_complete)
|
|
1072
|
+
@id = args[:id] if args.key?(:id)
|
|
1073
|
+
@country_offer_infos = args[:country_offer_infos] if args.key?(:country_offer_infos)
|
|
1074
|
+
end
|
|
1075
|
+
end
|
|
1076
|
+
|
|
1077
|
+
# An object representing a latitude/longitude pair. This is expressed as a pair
|
|
1078
|
+
# of doubles representing degrees latitude and degrees longitude. Unless
|
|
1079
|
+
# specified otherwise, this must conform to the
|
|
1080
|
+
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
|
1081
|
+
# standard</a>. Values must be within normalized ranges.
|
|
1082
|
+
# Example of normalization code in Python:
|
|
1083
|
+
# def NormalizeLongitude(longitude):
|
|
1084
|
+
# """Wraps decimal degrees longitude to [-180.0, 180.0]."""
|
|
1085
|
+
# q, r = divmod(longitude, 360.0)
|
|
1086
|
+
# if r > 180.0 or (r == 180.0 and q <= -1.0):
|
|
1087
|
+
# return r - 360.0
|
|
1088
|
+
# return r
|
|
1089
|
+
# def NormalizeLatLng(latitude, longitude):
|
|
1090
|
+
# """Wraps decimal degrees latitude and longitude to
|
|
1091
|
+
# [-90.0, 90.0] and [-180.0, 180.0], respectively."""
|
|
1092
|
+
# r = latitude % 360.0
|
|
1093
|
+
# if r <= 90.0:
|
|
1094
|
+
# return r, NormalizeLongitude(longitude)
|
|
1095
|
+
# elif r >= 270.0:
|
|
1096
|
+
# return r - 360, NormalizeLongitude(longitude)
|
|
1097
|
+
# else:
|
|
1098
|
+
# return 180 - r, NormalizeLongitude(longitude + 180.0)
|
|
1099
|
+
# assert 180.0 == NormalizeLongitude(180.0)
|
|
1100
|
+
# assert -180.0 == NormalizeLongitude(-180.0)
|
|
1101
|
+
# assert -179.0 == NormalizeLongitude(181.0)
|
|
1102
|
+
# assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
|
|
1103
|
+
# assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
|
|
1104
|
+
# assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
|
|
1105
|
+
# assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
|
|
1106
|
+
# assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
|
|
1107
|
+
# assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
|
|
1108
|
+
# assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
|
|
1109
|
+
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
|
|
1110
|
+
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
|
|
1111
|
+
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
|
|
1112
|
+
# The code in logs/storage/validator/logs_validator_traits.cc treats this type
|
|
1113
|
+
# as if it were annotated as ST_LOCATION.
|
|
1114
|
+
class LatLng
|
|
1115
|
+
include Google::Apis::Core::Hashable
|
|
1116
|
+
|
|
1117
|
+
# The longitude in degrees. It must be in the range [-180.0, +180.0].
|
|
1118
|
+
# Corresponds to the JSON property `longitude`
|
|
1119
|
+
# @return [Float]
|
|
1120
|
+
attr_accessor :longitude
|
|
1121
|
+
|
|
1122
|
+
# The latitude in degrees. It must be in the range [-90.0, +90.0].
|
|
1123
|
+
# Corresponds to the JSON property `latitude`
|
|
1124
|
+
# @return [Float]
|
|
1125
|
+
attr_accessor :latitude
|
|
64
1126
|
|
|
65
1127
|
def initialize(**args)
|
|
66
1128
|
update!(**args)
|
|
@@ -68,45 +1130,35 @@ module Google
|
|
|
68
1130
|
|
|
69
1131
|
# Update properties of this object
|
|
70
1132
|
def update!(**args)
|
|
71
|
-
@
|
|
72
|
-
@
|
|
73
|
-
@event_category = args[:event_category] if args.key?(:event_category)
|
|
74
|
-
@event_scope = args[:event_scope] if args.key?(:event_scope)
|
|
75
|
-
@event_datas = args[:event_datas] if args.key?(:event_datas)
|
|
76
|
-
@url = args[:url] if args.key?(:url)
|
|
77
|
-
@lead = args[:lead] if args.key?(:lead)
|
|
1133
|
+
@longitude = args[:longitude] if args.key?(:longitude)
|
|
1134
|
+
@latitude = args[:latitude] if args.key?(:latitude)
|
|
78
1135
|
end
|
|
79
1136
|
end
|
|
80
1137
|
|
|
81
|
-
#
|
|
82
|
-
class
|
|
1138
|
+
# Represents an amount of money with its currency type.
|
|
1139
|
+
class Money
|
|
83
1140
|
include Google::Apis::Core::Hashable
|
|
84
1141
|
|
|
85
|
-
#
|
|
86
|
-
#
|
|
87
|
-
#
|
|
88
|
-
#
|
|
89
|
-
|
|
1142
|
+
# Number of nano (10^-9) units of the amount.
|
|
1143
|
+
# The value must be between -999,999,999 and +999,999,999 inclusive.
|
|
1144
|
+
# If `units` is positive, `nanos` must be positive or zero.
|
|
1145
|
+
# If `units` is zero, `nanos` can be positive, zero, or negative.
|
|
1146
|
+
# If `units` is negative, `nanos` must be negative or zero.
|
|
1147
|
+
# For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
|
|
1148
|
+
# Corresponds to the JSON property `nanos`
|
|
1149
|
+
# @return [Fixnum]
|
|
1150
|
+
attr_accessor :nanos
|
|
90
1151
|
|
|
91
|
-
#
|
|
92
|
-
#
|
|
1152
|
+
# The whole units of the amount.
|
|
1153
|
+
# For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
|
|
1154
|
+
# Corresponds to the JSON property `units`
|
|
93
1155
|
# @return [String]
|
|
94
|
-
attr_accessor :
|
|
1156
|
+
attr_accessor :units
|
|
95
1157
|
|
|
96
|
-
#
|
|
97
|
-
# Corresponds to the JSON property `
|
|
1158
|
+
# The 3-letter currency code defined in ISO 4217.
|
|
1159
|
+
# Corresponds to the JSON property `currencyCode`
|
|
98
1160
|
# @return [String]
|
|
99
|
-
attr_accessor :
|
|
100
|
-
|
|
101
|
-
# Experiment IDs the current request belongs to.
|
|
102
|
-
# Corresponds to the JSON property `experimentIds`
|
|
103
|
-
# @return [Array<String>]
|
|
104
|
-
attr_accessor :experiment_ids
|
|
105
|
-
|
|
106
|
-
# Source of traffic for the current request.
|
|
107
|
-
# Corresponds to the JSON property `trafficSource`
|
|
108
|
-
# @return [Google::Apis::PartnersV2::TrafficSource]
|
|
109
|
-
attr_accessor :traffic_source
|
|
1161
|
+
attr_accessor :currency_code
|
|
110
1162
|
|
|
111
1163
|
def initialize(**args)
|
|
112
1164
|
update!(**args)
|
|
@@ -114,28 +1166,32 @@ module Google
|
|
|
114
1166
|
|
|
115
1167
|
# Update properties of this object
|
|
116
1168
|
def update!(**args)
|
|
117
|
-
@
|
|
118
|
-
@
|
|
119
|
-
@
|
|
120
|
-
@experiment_ids = args[:experiment_ids] if args.key?(:experiment_ids)
|
|
121
|
-
@traffic_source = args[:traffic_source] if args.key?(:traffic_source)
|
|
1169
|
+
@nanos = args[:nanos] if args.key?(:nanos)
|
|
1170
|
+
@units = args[:units] if args.key?(:units)
|
|
1171
|
+
@currency_code = args[:currency_code] if args.key?(:currency_code)
|
|
122
1172
|
end
|
|
123
1173
|
end
|
|
124
1174
|
|
|
125
|
-
#
|
|
126
|
-
|
|
127
|
-
class UserOverrides
|
|
1175
|
+
# Analytics aggregated data for a `Company` for a given date range.
|
|
1176
|
+
class AnalyticsSummary
|
|
128
1177
|
include Google::Apis::Core::Hashable
|
|
129
1178
|
|
|
130
|
-
#
|
|
131
|
-
#
|
|
132
|
-
#
|
|
133
|
-
|
|
1179
|
+
# Aggregated number of times users saw the `Company`
|
|
1180
|
+
# in Google Partners Search results for given date range.
|
|
1181
|
+
# Corresponds to the JSON property `searchViewsCount`
|
|
1182
|
+
# @return [Fixnum]
|
|
1183
|
+
attr_accessor :search_views_count
|
|
134
1184
|
|
|
135
|
-
#
|
|
136
|
-
#
|
|
137
|
-
#
|
|
138
|
-
|
|
1185
|
+
# Aggregated number of times users contacted the `Company`
|
|
1186
|
+
# for given date range.
|
|
1187
|
+
# Corresponds to the JSON property `contactsCount`
|
|
1188
|
+
# @return [Fixnum]
|
|
1189
|
+
attr_accessor :contacts_count
|
|
1190
|
+
|
|
1191
|
+
# Aggregated number of profile views for the `Company` for given date range.
|
|
1192
|
+
# Corresponds to the JSON property `profileViewsCount`
|
|
1193
|
+
# @return [Fixnum]
|
|
1194
|
+
attr_accessor :profile_views_count
|
|
139
1195
|
|
|
140
1196
|
def initialize(**args)
|
|
141
1197
|
update!(**args)
|
|
@@ -143,27 +1199,36 @@ module Google
|
|
|
143
1199
|
|
|
144
1200
|
# Update properties of this object
|
|
145
1201
|
def update!(**args)
|
|
146
|
-
@
|
|
147
|
-
@
|
|
1202
|
+
@search_views_count = args[:search_views_count] if args.key?(:search_views_count)
|
|
1203
|
+
@contacts_count = args[:contacts_count] if args.key?(:contacts_count)
|
|
1204
|
+
@profile_views_count = args[:profile_views_count] if args.key?(:profile_views_count)
|
|
148
1205
|
end
|
|
149
1206
|
end
|
|
150
1207
|
|
|
151
|
-
#
|
|
152
|
-
|
|
1208
|
+
# Request message for
|
|
1209
|
+
# LogClientMessage.
|
|
1210
|
+
class LogMessageRequest
|
|
153
1211
|
include Google::Apis::Core::Hashable
|
|
154
1212
|
|
|
155
|
-
#
|
|
156
|
-
#
|
|
157
|
-
#
|
|
1213
|
+
# Common data that is in each API request.
|
|
1214
|
+
# Corresponds to the JSON property `requestMetadata`
|
|
1215
|
+
# @return [Google::Apis::PartnersV2::RequestMetadata]
|
|
1216
|
+
attr_accessor :request_metadata
|
|
1217
|
+
|
|
1218
|
+
# Message level of client message.
|
|
1219
|
+
# Corresponds to the JSON property `level`
|
|
158
1220
|
# @return [String]
|
|
159
|
-
attr_accessor :
|
|
1221
|
+
attr_accessor :level
|
|
160
1222
|
|
|
161
|
-
#
|
|
162
|
-
#
|
|
163
|
-
# to us.
|
|
164
|
-
# Corresponds to the JSON property `trafficSubId`
|
|
1223
|
+
# Details about the client message.
|
|
1224
|
+
# Corresponds to the JSON property `details`
|
|
165
1225
|
# @return [String]
|
|
166
|
-
attr_accessor :
|
|
1226
|
+
attr_accessor :details
|
|
1227
|
+
|
|
1228
|
+
# Map of client info, such as URL, browser navigator, browser platform, etc.
|
|
1229
|
+
# Corresponds to the JSON property `clientInfo`
|
|
1230
|
+
# @return [Hash<String,String>]
|
|
1231
|
+
attr_accessor :client_info
|
|
167
1232
|
|
|
168
1233
|
def initialize(**args)
|
|
169
1234
|
update!(**args)
|
|
@@ -171,24 +1236,31 @@ module Google
|
|
|
171
1236
|
|
|
172
1237
|
# Update properties of this object
|
|
173
1238
|
def update!(**args)
|
|
174
|
-
@
|
|
175
|
-
@
|
|
1239
|
+
@request_metadata = args[:request_metadata] if args.key?(:request_metadata)
|
|
1240
|
+
@level = args[:level] if args.key?(:level)
|
|
1241
|
+
@details = args[:details] if args.key?(:details)
|
|
1242
|
+
@client_info = args[:client_info] if args.key?(:client_info)
|
|
176
1243
|
end
|
|
177
1244
|
end
|
|
178
1245
|
|
|
179
|
-
#
|
|
180
|
-
class
|
|
1246
|
+
# Debug information about this request.
|
|
1247
|
+
class DebugInfo
|
|
181
1248
|
include Google::Apis::Core::Hashable
|
|
182
1249
|
|
|
183
|
-
#
|
|
184
|
-
# Corresponds to the JSON property `
|
|
1250
|
+
# Info about the server that serviced this request.
|
|
1251
|
+
# Corresponds to the JSON property `serverInfo`
|
|
185
1252
|
# @return [String]
|
|
186
|
-
attr_accessor :
|
|
1253
|
+
attr_accessor :server_info
|
|
187
1254
|
|
|
188
|
-
#
|
|
189
|
-
# Corresponds to the JSON property `
|
|
190
|
-
# @return [
|
|
191
|
-
attr_accessor :
|
|
1255
|
+
# Server-side debug stack trace.
|
|
1256
|
+
# Corresponds to the JSON property `serverTraceInfo`
|
|
1257
|
+
# @return [String]
|
|
1258
|
+
attr_accessor :server_trace_info
|
|
1259
|
+
|
|
1260
|
+
# URL of the service that handled this request.
|
|
1261
|
+
# Corresponds to the JSON property `serviceUrl`
|
|
1262
|
+
# @return [String]
|
|
1263
|
+
attr_accessor :service_url
|
|
192
1264
|
|
|
193
1265
|
def initialize(**args)
|
|
194
1266
|
update!(**args)
|
|
@@ -196,8 +1268,9 @@ module Google
|
|
|
196
1268
|
|
|
197
1269
|
# Update properties of this object
|
|
198
1270
|
def update!(**args)
|
|
199
|
-
@
|
|
200
|
-
@
|
|
1271
|
+
@server_info = args[:server_info] if args.key?(:server_info)
|
|
1272
|
+
@server_trace_info = args[:server_trace_info] if args.key?(:server_trace_info)
|
|
1273
|
+
@service_url = args[:service_url] if args.key?(:service_url)
|
|
201
1274
|
end
|
|
202
1275
|
end
|
|
203
1276
|
|
|
@@ -206,55 +1279,83 @@ module Google
|
|
|
206
1279
|
class Lead
|
|
207
1280
|
include Google::Apis::Core::Hashable
|
|
208
1281
|
|
|
209
|
-
#
|
|
210
|
-
# Corresponds to the JSON property `
|
|
1282
|
+
# First name of lead source.
|
|
1283
|
+
# Corresponds to the JSON property `givenName`
|
|
211
1284
|
# @return [String]
|
|
212
|
-
attr_accessor :
|
|
1285
|
+
attr_accessor :given_name
|
|
213
1286
|
|
|
214
|
-
#
|
|
215
|
-
# Corresponds to the JSON property `
|
|
1287
|
+
# Represents an amount of money with its currency type.
|
|
1288
|
+
# Corresponds to the JSON property `minMonthlyBudget`
|
|
1289
|
+
# @return [Google::Apis::PartnersV2::Money]
|
|
1290
|
+
attr_accessor :min_monthly_budget
|
|
1291
|
+
|
|
1292
|
+
# Website URL of lead source.
|
|
1293
|
+
# Corresponds to the JSON property `websiteUrl`
|
|
216
1294
|
# @return [String]
|
|
217
|
-
attr_accessor :
|
|
1295
|
+
attr_accessor :website_url
|
|
1296
|
+
|
|
1297
|
+
# Language code of the lead's language preference, as defined by
|
|
1298
|
+
# <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
|
|
1299
|
+
# (IETF BCP 47, "Tags for Identifying Languages").
|
|
1300
|
+
# Corresponds to the JSON property `languageCode`
|
|
1301
|
+
# @return [String]
|
|
1302
|
+
attr_accessor :language_code
|
|
1303
|
+
|
|
1304
|
+
# The lead's state in relation to the company.
|
|
1305
|
+
# Corresponds to the JSON property `state`
|
|
1306
|
+
# @return [String]
|
|
1307
|
+
attr_accessor :state
|
|
1308
|
+
|
|
1309
|
+
# List of reasons for using Google Partner Search and creating a lead.
|
|
1310
|
+
# Corresponds to the JSON property `gpsMotivations`
|
|
1311
|
+
# @return [Array<String>]
|
|
1312
|
+
attr_accessor :gps_motivations
|
|
218
1313
|
|
|
219
1314
|
# Email address of lead source.
|
|
220
1315
|
# Corresponds to the JSON property `email`
|
|
221
1316
|
# @return [String]
|
|
222
1317
|
attr_accessor :email
|
|
223
1318
|
|
|
224
|
-
# First name of lead source.
|
|
225
|
-
# Corresponds to the JSON property `givenName`
|
|
226
|
-
# @return [String]
|
|
227
|
-
attr_accessor :given_name
|
|
228
|
-
|
|
229
1319
|
# Last name of lead source.
|
|
230
1320
|
# Corresponds to the JSON property `familyName`
|
|
231
1321
|
# @return [String]
|
|
232
1322
|
attr_accessor :family_name
|
|
233
1323
|
|
|
234
|
-
#
|
|
235
|
-
# Corresponds to the JSON property `
|
|
1324
|
+
# ID of the lead.
|
|
1325
|
+
# Corresponds to the JSON property `id`
|
|
236
1326
|
# @return [String]
|
|
237
|
-
attr_accessor :
|
|
1327
|
+
attr_accessor :id
|
|
1328
|
+
|
|
1329
|
+
# Comments lead source gave.
|
|
1330
|
+
# Corresponds to the JSON property `comments`
|
|
1331
|
+
# @return [String]
|
|
1332
|
+
attr_accessor :comments
|
|
238
1333
|
|
|
239
1334
|
# Phone number of lead source.
|
|
240
1335
|
# Corresponds to the JSON property `phoneNumber`
|
|
241
1336
|
# @return [String]
|
|
242
1337
|
attr_accessor :phone_number
|
|
243
1338
|
|
|
244
|
-
#
|
|
245
|
-
# Corresponds to the JSON property `
|
|
1339
|
+
# The AdWords Customer ID of the lead.
|
|
1340
|
+
# Corresponds to the JSON property `adwordsCustomerId`
|
|
246
1341
|
# @return [String]
|
|
247
|
-
attr_accessor :
|
|
1342
|
+
attr_accessor :adwords_customer_id
|
|
248
1343
|
|
|
249
|
-
#
|
|
250
|
-
# Corresponds to the JSON property `
|
|
251
|
-
# @return [
|
|
252
|
-
attr_accessor :
|
|
1344
|
+
# Timestamp of when this lead was created.
|
|
1345
|
+
# Corresponds to the JSON property `createTime`
|
|
1346
|
+
# @return [String]
|
|
1347
|
+
attr_accessor :create_time
|
|
253
1348
|
|
|
254
|
-
#
|
|
255
|
-
# Corresponds to the JSON property `
|
|
256
|
-
# @return [
|
|
257
|
-
attr_accessor :
|
|
1349
|
+
# Whether or not the lead signed up for marketing emails
|
|
1350
|
+
# Corresponds to the JSON property `marketingOptIn`
|
|
1351
|
+
# @return [Boolean]
|
|
1352
|
+
attr_accessor :marketing_opt_in
|
|
1353
|
+
alias_method :marketing_opt_in?, :marketing_opt_in
|
|
1354
|
+
|
|
1355
|
+
# Type of lead.
|
|
1356
|
+
# Corresponds to the JSON property `type`
|
|
1357
|
+
# @return [String]
|
|
1358
|
+
attr_accessor :type
|
|
258
1359
|
|
|
259
1360
|
def initialize(**args)
|
|
260
1361
|
update!(**args)
|
|
@@ -262,42 +1363,134 @@ module Google
|
|
|
262
1363
|
|
|
263
1364
|
# Update properties of this object
|
|
264
1365
|
def update!(**args)
|
|
265
|
-
@id = args[:id] if args.key?(:id)
|
|
266
|
-
@type = args[:type] if args.key?(:type)
|
|
267
|
-
@email = args[:email] if args.key?(:email)
|
|
268
1366
|
@given_name = args[:given_name] if args.key?(:given_name)
|
|
269
|
-
@
|
|
1367
|
+
@min_monthly_budget = args[:min_monthly_budget] if args.key?(:min_monthly_budget)
|
|
270
1368
|
@website_url = args[:website_url] if args.key?(:website_url)
|
|
271
|
-
@
|
|
272
|
-
@
|
|
1369
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
|
1370
|
+
@state = args[:state] if args.key?(:state)
|
|
273
1371
|
@gps_motivations = args[:gps_motivations] if args.key?(:gps_motivations)
|
|
274
|
-
@
|
|
1372
|
+
@email = args[:email] if args.key?(:email)
|
|
1373
|
+
@family_name = args[:family_name] if args.key?(:family_name)
|
|
1374
|
+
@id = args[:id] if args.key?(:id)
|
|
1375
|
+
@comments = args[:comments] if args.key?(:comments)
|
|
1376
|
+
@phone_number = args[:phone_number] if args.key?(:phone_number)
|
|
1377
|
+
@adwords_customer_id = args[:adwords_customer_id] if args.key?(:adwords_customer_id)
|
|
1378
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
1379
|
+
@marketing_opt_in = args[:marketing_opt_in] if args.key?(:marketing_opt_in)
|
|
1380
|
+
@type = args[:type] if args.key?(:type)
|
|
275
1381
|
end
|
|
276
1382
|
end
|
|
277
1383
|
|
|
278
|
-
#
|
|
279
|
-
|
|
1384
|
+
# Response message for
|
|
1385
|
+
# ListUserStates.
|
|
1386
|
+
class ListUserStatesResponse
|
|
1387
|
+
include Google::Apis::Core::Hashable
|
|
1388
|
+
|
|
1389
|
+
# User's states.
|
|
1390
|
+
# Corresponds to the JSON property `userStates`
|
|
1391
|
+
# @return [Array<String>]
|
|
1392
|
+
attr_accessor :user_states
|
|
1393
|
+
|
|
1394
|
+
# Common data that is in each API response.
|
|
1395
|
+
# Corresponds to the JSON property `responseMetadata`
|
|
1396
|
+
# @return [Google::Apis::PartnersV2::ResponseMetadata]
|
|
1397
|
+
attr_accessor :response_metadata
|
|
1398
|
+
|
|
1399
|
+
def initialize(**args)
|
|
1400
|
+
update!(**args)
|
|
1401
|
+
end
|
|
1402
|
+
|
|
1403
|
+
# Update properties of this object
|
|
1404
|
+
def update!(**args)
|
|
1405
|
+
@user_states = args[:user_states] if args.key?(:user_states)
|
|
1406
|
+
@response_metadata = args[:response_metadata] if args.key?(:response_metadata)
|
|
1407
|
+
end
|
|
1408
|
+
end
|
|
1409
|
+
|
|
1410
|
+
# A CompanyRelation resource representing information about a user's
|
|
1411
|
+
# affiliation and standing with a company in Partners.
|
|
1412
|
+
class CompanyRelation
|
|
280
1413
|
include Google::Apis::Core::Hashable
|
|
281
1414
|
|
|
282
|
-
#
|
|
283
|
-
# Corresponds to the JSON property `
|
|
1415
|
+
# A URL to a profile photo, e.g. a G+ profile photo.
|
|
1416
|
+
# Corresponds to the JSON property `logoUrl`
|
|
1417
|
+
# @return [String]
|
|
1418
|
+
attr_accessor :logo_url
|
|
1419
|
+
|
|
1420
|
+
# The timestamp when the user was approved.
|
|
1421
|
+
# @OutputOnly
|
|
1422
|
+
# Corresponds to the JSON property `resolvedTimestamp`
|
|
1423
|
+
# @return [String]
|
|
1424
|
+
attr_accessor :resolved_timestamp
|
|
1425
|
+
|
|
1426
|
+
# Indicates if the user is an admin for this company.
|
|
1427
|
+
# Corresponds to the JSON property `companyAdmin`
|
|
1428
|
+
# @return [Boolean]
|
|
1429
|
+
attr_accessor :company_admin
|
|
1430
|
+
alias_method :company_admin?, :company_admin
|
|
1431
|
+
|
|
1432
|
+
# The primary address for this company.
|
|
1433
|
+
# Corresponds to the JSON property `address`
|
|
1434
|
+
# @return [String]
|
|
1435
|
+
attr_accessor :address
|
|
1436
|
+
|
|
1437
|
+
# The flag that indicates if the company is pending verification.
|
|
1438
|
+
# Corresponds to the JSON property `isPending`
|
|
1439
|
+
# @return [Boolean]
|
|
1440
|
+
attr_accessor :is_pending
|
|
1441
|
+
alias_method :is_pending?, :is_pending
|
|
1442
|
+
|
|
1443
|
+
# The timestamp of when affiliation was requested.
|
|
1444
|
+
# @OutputOnly
|
|
1445
|
+
# Corresponds to the JSON property `creationTime`
|
|
1446
|
+
# @return [String]
|
|
1447
|
+
attr_accessor :creation_time
|
|
1448
|
+
|
|
1449
|
+
# The state of relationship, in terms of approvals.
|
|
1450
|
+
# Corresponds to the JSON property `state`
|
|
1451
|
+
# @return [String]
|
|
1452
|
+
attr_accessor :state
|
|
1453
|
+
|
|
1454
|
+
# The AdWords manager account # associated this company.
|
|
1455
|
+
# Corresponds to the JSON property `managerAccount`
|
|
1456
|
+
# @return [String]
|
|
1457
|
+
attr_accessor :manager_account
|
|
1458
|
+
|
|
1459
|
+
# The name (in the company's primary language) for the company.
|
|
1460
|
+
# Corresponds to the JSON property `name`
|
|
1461
|
+
# @return [String]
|
|
1462
|
+
attr_accessor :name
|
|
1463
|
+
|
|
1464
|
+
# The segment the company is classified as.
|
|
1465
|
+
# Corresponds to the JSON property `segment`
|
|
1466
|
+
# @return [Array<String>]
|
|
1467
|
+
attr_accessor :segment
|
|
1468
|
+
|
|
1469
|
+
# The list of Google Partners specialization statuses for the company.
|
|
1470
|
+
# Corresponds to the JSON property `specializationStatus`
|
|
1471
|
+
# @return [Array<Google::Apis::PartnersV2::SpecializationStatus>]
|
|
1472
|
+
attr_accessor :specialization_status
|
|
1473
|
+
|
|
1474
|
+
# Whether the company is a Partner.
|
|
1475
|
+
# Corresponds to the JSON property `badgeTier`
|
|
284
1476
|
# @return [String]
|
|
285
|
-
attr_accessor :
|
|
1477
|
+
attr_accessor :badge_tier
|
|
286
1478
|
|
|
287
|
-
# The
|
|
288
|
-
#
|
|
289
|
-
# Corresponds to the JSON property `units`
|
|
1479
|
+
# The website URL for this company.
|
|
1480
|
+
# Corresponds to the JSON property `website`
|
|
290
1481
|
# @return [String]
|
|
291
|
-
attr_accessor :
|
|
1482
|
+
attr_accessor :website
|
|
292
1483
|
|
|
293
|
-
#
|
|
294
|
-
#
|
|
295
|
-
#
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
#
|
|
299
|
-
#
|
|
300
|
-
|
|
1484
|
+
# The phone number for the company's primary address.
|
|
1485
|
+
# Corresponds to the JSON property `phoneNumber`
|
|
1486
|
+
# @return [String]
|
|
1487
|
+
attr_accessor :phone_number
|
|
1488
|
+
|
|
1489
|
+
# The ID of the company. There may be no id if this is a
|
|
1490
|
+
# pending company.5
|
|
1491
|
+
# Corresponds to the JSON property `companyId`
|
|
1492
|
+
# @return [String]
|
|
1493
|
+
attr_accessor :company_id
|
|
301
1494
|
|
|
302
1495
|
def initialize(**args)
|
|
303
1496
|
update!(**args)
|
|
@@ -305,20 +1498,50 @@ module Google
|
|
|
305
1498
|
|
|
306
1499
|
# Update properties of this object
|
|
307
1500
|
def update!(**args)
|
|
308
|
-
@
|
|
309
|
-
@
|
|
310
|
-
@
|
|
1501
|
+
@logo_url = args[:logo_url] if args.key?(:logo_url)
|
|
1502
|
+
@resolved_timestamp = args[:resolved_timestamp] if args.key?(:resolved_timestamp)
|
|
1503
|
+
@company_admin = args[:company_admin] if args.key?(:company_admin)
|
|
1504
|
+
@address = args[:address] if args.key?(:address)
|
|
1505
|
+
@is_pending = args[:is_pending] if args.key?(:is_pending)
|
|
1506
|
+
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
|
1507
|
+
@state = args[:state] if args.key?(:state)
|
|
1508
|
+
@manager_account = args[:manager_account] if args.key?(:manager_account)
|
|
1509
|
+
@name = args[:name] if args.key?(:name)
|
|
1510
|
+
@segment = args[:segment] if args.key?(:segment)
|
|
1511
|
+
@specialization_status = args[:specialization_status] if args.key?(:specialization_status)
|
|
1512
|
+
@badge_tier = args[:badge_tier] if args.key?(:badge_tier)
|
|
1513
|
+
@website = args[:website] if args.key?(:website)
|
|
1514
|
+
@phone_number = args[:phone_number] if args.key?(:phone_number)
|
|
1515
|
+
@company_id = args[:company_id] if args.key?(:company_id)
|
|
311
1516
|
end
|
|
312
1517
|
end
|
|
313
1518
|
|
|
314
|
-
#
|
|
315
|
-
|
|
1519
|
+
# Represents a whole calendar date, e.g. date of birth. The time of day and
|
|
1520
|
+
# time zone are either specified elsewhere or are not significant. The date
|
|
1521
|
+
# is relative to the Proleptic Gregorian Calendar. The day may be 0 to
|
|
1522
|
+
# represent a year and month where the day is not significant, e.g. credit card
|
|
1523
|
+
# expiration date. The year may be 0 to represent a month and day independent
|
|
1524
|
+
# of year, e.g. anniversary date. Related types are google.type.TimeOfDay
|
|
1525
|
+
# and `google.protobuf.Timestamp`.
|
|
1526
|
+
class Date
|
|
316
1527
|
include Google::Apis::Core::Hashable
|
|
317
1528
|
|
|
318
|
-
#
|
|
319
|
-
#
|
|
320
|
-
#
|
|
321
|
-
|
|
1529
|
+
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
|
|
1530
|
+
# a year.
|
|
1531
|
+
# Corresponds to the JSON property `year`
|
|
1532
|
+
# @return [Fixnum]
|
|
1533
|
+
attr_accessor :year
|
|
1534
|
+
|
|
1535
|
+
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
|
|
1536
|
+
# if specifying a year/month where the day is not significant.
|
|
1537
|
+
# Corresponds to the JSON property `day`
|
|
1538
|
+
# @return [Fixnum]
|
|
1539
|
+
attr_accessor :day
|
|
1540
|
+
|
|
1541
|
+
# Month of year. Must be from 1 to 12.
|
|
1542
|
+
# Corresponds to the JSON property `month`
|
|
1543
|
+
# @return [Fixnum]
|
|
1544
|
+
attr_accessor :month
|
|
322
1545
|
|
|
323
1546
|
def initialize(**args)
|
|
324
1547
|
update!(**args)
|
|
@@ -326,47 +1549,48 @@ module Google
|
|
|
326
1549
|
|
|
327
1550
|
# Update properties of this object
|
|
328
1551
|
def update!(**args)
|
|
329
|
-
@
|
|
1552
|
+
@year = args[:year] if args.key?(:year)
|
|
1553
|
+
@day = args[:day] if args.key?(:day)
|
|
1554
|
+
@month = args[:month] if args.key?(:month)
|
|
330
1555
|
end
|
|
331
1556
|
end
|
|
332
1557
|
|
|
333
|
-
#
|
|
334
|
-
|
|
1558
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
|
1559
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
|
1560
|
+
# or the response type of an API method. For instance:
|
|
1561
|
+
# service Foo `
|
|
1562
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
1563
|
+
# `
|
|
1564
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
|
1565
|
+
class Empty
|
|
335
1566
|
include Google::Apis::Core::Hashable
|
|
336
1567
|
|
|
337
|
-
# Debug information about this request.
|
|
338
|
-
# Corresponds to the JSON property `debugInfo`
|
|
339
|
-
# @return [Google::Apis::PartnersV2::DebugInfo]
|
|
340
|
-
attr_accessor :debug_info
|
|
341
|
-
|
|
342
1568
|
def initialize(**args)
|
|
343
1569
|
update!(**args)
|
|
344
1570
|
end
|
|
345
1571
|
|
|
346
1572
|
# Update properties of this object
|
|
347
1573
|
def update!(**args)
|
|
348
|
-
@debug_info = args[:debug_info] if args.key?(:debug_info)
|
|
349
1574
|
end
|
|
350
1575
|
end
|
|
351
1576
|
|
|
352
|
-
#
|
|
353
|
-
class
|
|
1577
|
+
# Source of traffic for the current request.
|
|
1578
|
+
class TrafficSource
|
|
354
1579
|
include Google::Apis::Core::Hashable
|
|
355
1580
|
|
|
356
|
-
#
|
|
357
|
-
#
|
|
358
|
-
#
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
# URL of the service that handled this request.
|
|
362
|
-
# Corresponds to the JSON property `serviceUrl`
|
|
1581
|
+
# Identifier to indicate where the traffic comes from.
|
|
1582
|
+
# An identifier has multiple letters created by a team which redirected the
|
|
1583
|
+
# traffic to us.
|
|
1584
|
+
# Corresponds to the JSON property `trafficSourceId`
|
|
363
1585
|
# @return [String]
|
|
364
|
-
attr_accessor :
|
|
1586
|
+
attr_accessor :traffic_source_id
|
|
365
1587
|
|
|
366
|
-
#
|
|
367
|
-
#
|
|
1588
|
+
# Second level identifier to indicate where the traffic comes from.
|
|
1589
|
+
# An identifier has multiple letters created by a team which redirected the
|
|
1590
|
+
# traffic to us.
|
|
1591
|
+
# Corresponds to the JSON property `trafficSubId`
|
|
368
1592
|
# @return [String]
|
|
369
|
-
attr_accessor :
|
|
1593
|
+
attr_accessor :traffic_sub_id
|
|
370
1594
|
|
|
371
1595
|
def initialize(**args)
|
|
372
1596
|
update!(**args)
|
|
@@ -374,14 +1598,13 @@ module Google
|
|
|
374
1598
|
|
|
375
1599
|
# Update properties of this object
|
|
376
1600
|
def update!(**args)
|
|
377
|
-
@
|
|
378
|
-
@
|
|
379
|
-
@server_trace_info = args[:server_trace_info] if args.key?(:server_trace_info)
|
|
1601
|
+
@traffic_source_id = args[:traffic_source_id] if args.key?(:traffic_source_id)
|
|
1602
|
+
@traffic_sub_id = args[:traffic_sub_id] if args.key?(:traffic_sub_id)
|
|
380
1603
|
end
|
|
381
1604
|
end
|
|
382
1605
|
|
|
383
|
-
# Request message for
|
|
384
|
-
class
|
|
1606
|
+
# Request message for CreateLead.
|
|
1607
|
+
class CreateLeadRequest
|
|
385
1608
|
include Google::Apis::Core::Hashable
|
|
386
1609
|
|
|
387
1610
|
# Common data that is in each API request.
|
|
@@ -389,20 +1612,16 @@ module Google
|
|
|
389
1612
|
# @return [Google::Apis::PartnersV2::RequestMetadata]
|
|
390
1613
|
attr_accessor :request_metadata
|
|
391
1614
|
|
|
392
|
-
#
|
|
393
|
-
#
|
|
394
|
-
#
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
# Details about the client message.
|
|
398
|
-
# Corresponds to the JSON property `details`
|
|
399
|
-
# @return [String]
|
|
400
|
-
attr_accessor :details
|
|
1615
|
+
# A lead resource that represents an advertiser contact for a `Company`. These
|
|
1616
|
+
# are usually generated via Google Partner Search (the advertiser portal).
|
|
1617
|
+
# Corresponds to the JSON property `lead`
|
|
1618
|
+
# @return [Google::Apis::PartnersV2::Lead]
|
|
1619
|
+
attr_accessor :lead
|
|
401
1620
|
|
|
402
|
-
#
|
|
403
|
-
# Corresponds to the JSON property `
|
|
404
|
-
# @return [
|
|
405
|
-
attr_accessor :
|
|
1621
|
+
# <a href="https://www.google.com/recaptcha/">reCaptcha</a> challenge info.
|
|
1622
|
+
# Corresponds to the JSON property `recaptchaChallenge`
|
|
1623
|
+
# @return [Google::Apis::PartnersV2::RecaptchaChallenge]
|
|
1624
|
+
attr_accessor :recaptcha_challenge
|
|
406
1625
|
|
|
407
1626
|
def initialize(**args)
|
|
408
1627
|
update!(**args)
|
|
@@ -411,44 +1630,40 @@ module Google
|
|
|
411
1630
|
# Update properties of this object
|
|
412
1631
|
def update!(**args)
|
|
413
1632
|
@request_metadata = args[:request_metadata] if args.key?(:request_metadata)
|
|
414
|
-
@
|
|
415
|
-
@
|
|
416
|
-
@client_info = args[:client_info] if args.key?(:client_info)
|
|
1633
|
+
@lead = args[:lead] if args.key?(:lead)
|
|
1634
|
+
@recaptcha_challenge = args[:recaptcha_challenge] if args.key?(:recaptcha_challenge)
|
|
417
1635
|
end
|
|
418
1636
|
end
|
|
419
1637
|
|
|
420
|
-
#
|
|
421
|
-
class
|
|
1638
|
+
# Common data that is in each API request.
|
|
1639
|
+
class RequestMetadata
|
|
422
1640
|
include Google::Apis::Core::Hashable
|
|
423
1641
|
|
|
424
|
-
#
|
|
425
|
-
# Corresponds to the JSON property `
|
|
426
|
-
# @return [
|
|
427
|
-
attr_accessor :
|
|
428
|
-
|
|
429
|
-
def initialize(**args)
|
|
430
|
-
update!(**args)
|
|
431
|
-
end
|
|
432
|
-
|
|
433
|
-
# Update properties of this object
|
|
434
|
-
def update!(**args)
|
|
435
|
-
@response_metadata = args[:response_metadata] if args.key?(:response_metadata)
|
|
436
|
-
end
|
|
437
|
-
end
|
|
1642
|
+
# Locale to use for the current request.
|
|
1643
|
+
# Corresponds to the JSON property `locale`
|
|
1644
|
+
# @return [String]
|
|
1645
|
+
attr_accessor :locale
|
|
438
1646
|
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
1647
|
+
# Values to use instead of the user's respective defaults. These are only
|
|
1648
|
+
# honored by whitelisted products.
|
|
1649
|
+
# Corresponds to the JSON property `userOverrides`
|
|
1650
|
+
# @return [Google::Apis::PartnersV2::UserOverrides]
|
|
1651
|
+
attr_accessor :user_overrides
|
|
442
1652
|
|
|
443
|
-
#
|
|
444
|
-
# Corresponds to the JSON property `
|
|
445
|
-
# @return [
|
|
446
|
-
attr_accessor :
|
|
1653
|
+
# Google Partners session ID.
|
|
1654
|
+
# Corresponds to the JSON property `partnersSessionId`
|
|
1655
|
+
# @return [String]
|
|
1656
|
+
attr_accessor :partners_session_id
|
|
447
1657
|
|
|
448
|
-
#
|
|
449
|
-
# Corresponds to the JSON property `
|
|
1658
|
+
# Experiment IDs the current request belongs to.
|
|
1659
|
+
# Corresponds to the JSON property `experimentIds`
|
|
450
1660
|
# @return [Array<String>]
|
|
451
|
-
attr_accessor :
|
|
1661
|
+
attr_accessor :experiment_ids
|
|
1662
|
+
|
|
1663
|
+
# Source of traffic for the current request.
|
|
1664
|
+
# Corresponds to the JSON property `trafficSource`
|
|
1665
|
+
# @return [Google::Apis::PartnersV2::TrafficSource]
|
|
1666
|
+
attr_accessor :traffic_source
|
|
452
1667
|
|
|
453
1668
|
def initialize(**args)
|
|
454
1669
|
update!(**args)
|
|
@@ -456,25 +1671,27 @@ module Google
|
|
|
456
1671
|
|
|
457
1672
|
# Update properties of this object
|
|
458
1673
|
def update!(**args)
|
|
459
|
-
@
|
|
460
|
-
@
|
|
1674
|
+
@locale = args[:locale] if args.key?(:locale)
|
|
1675
|
+
@user_overrides = args[:user_overrides] if args.key?(:user_overrides)
|
|
1676
|
+
@partners_session_id = args[:partners_session_id] if args.key?(:partners_session_id)
|
|
1677
|
+
@experiment_ids = args[:experiment_ids] if args.key?(:experiment_ids)
|
|
1678
|
+
@traffic_source = args[:traffic_source] if args.key?(:traffic_source)
|
|
461
1679
|
end
|
|
462
1680
|
end
|
|
463
1681
|
|
|
464
|
-
#
|
|
465
|
-
class
|
|
1682
|
+
# Key value data pair for an event.
|
|
1683
|
+
class EventData
|
|
466
1684
|
include Google::Apis::Core::Hashable
|
|
467
1685
|
|
|
468
|
-
#
|
|
469
|
-
# Corresponds to the JSON property `
|
|
470
|
-
# @return [
|
|
471
|
-
attr_accessor :
|
|
1686
|
+
# Data type.
|
|
1687
|
+
# Corresponds to the JSON property `key`
|
|
1688
|
+
# @return [String]
|
|
1689
|
+
attr_accessor :key
|
|
472
1690
|
|
|
473
|
-
#
|
|
474
|
-
#
|
|
475
|
-
#
|
|
476
|
-
|
|
477
|
-
attr_accessor :company
|
|
1691
|
+
# Data values.
|
|
1692
|
+
# Corresponds to the JSON property `values`
|
|
1693
|
+
# @return [Array<String>]
|
|
1694
|
+
attr_accessor :values
|
|
478
1695
|
|
|
479
1696
|
def initialize(**args)
|
|
480
1697
|
update!(**args)
|
|
@@ -482,75 +1699,46 @@ module Google
|
|
|
482
1699
|
|
|
483
1700
|
# Update properties of this object
|
|
484
1701
|
def update!(**args)
|
|
485
|
-
@
|
|
486
|
-
@
|
|
1702
|
+
@key = args[:key] if args.key?(:key)
|
|
1703
|
+
@values = args[:values] if args.key?(:values)
|
|
487
1704
|
end
|
|
488
1705
|
end
|
|
489
1706
|
|
|
490
|
-
# A
|
|
491
|
-
|
|
492
|
-
class Company
|
|
1707
|
+
# A user's information on a specific exam.
|
|
1708
|
+
class ExamStatus
|
|
493
1709
|
include Google::Apis::Core::Hashable
|
|
494
1710
|
|
|
495
|
-
#
|
|
496
|
-
# Corresponds to the JSON property `
|
|
497
|
-
# @return [
|
|
498
|
-
attr_accessor :
|
|
1711
|
+
# Whether this exam has been passed and not expired.
|
|
1712
|
+
# Corresponds to the JSON property `passed`
|
|
1713
|
+
# @return [Boolean]
|
|
1714
|
+
attr_accessor :passed
|
|
1715
|
+
alias_method :passed?, :passed
|
|
499
1716
|
|
|
500
|
-
# The
|
|
501
|
-
# Corresponds to the JSON property `
|
|
1717
|
+
# The date the user last taken this exam.
|
|
1718
|
+
# Corresponds to the JSON property `taken`
|
|
502
1719
|
# @return [String]
|
|
503
|
-
attr_accessor :
|
|
504
|
-
|
|
505
|
-
# The list of localized info for the company.
|
|
506
|
-
# Corresponds to the JSON property `localizedInfos`
|
|
507
|
-
# @return [Array<Google::Apis::PartnersV2::LocalizedCompanyInfo>]
|
|
508
|
-
attr_accessor :localized_infos
|
|
509
|
-
|
|
510
|
-
# The list of company locations.
|
|
511
|
-
# Corresponds to the JSON property `locations`
|
|
512
|
-
# @return [Array<Google::Apis::PartnersV2::Location>]
|
|
513
|
-
attr_accessor :locations
|
|
514
|
-
|
|
515
|
-
# Represents an amount of money with its currency type.
|
|
516
|
-
# Corresponds to the JSON property `convertedMinMonthlyBudget`
|
|
517
|
-
# @return [Google::Apis::PartnersV2::Money]
|
|
518
|
-
attr_accessor :converted_min_monthly_budget
|
|
519
|
-
|
|
520
|
-
# Represents an amount of money with its currency type.
|
|
521
|
-
# Corresponds to the JSON property `originalMinMonthlyBudget`
|
|
522
|
-
# @return [Google::Apis::PartnersV2::Money]
|
|
523
|
-
attr_accessor :original_min_monthly_budget
|
|
524
|
-
|
|
525
|
-
# Basic information from a public profile.
|
|
526
|
-
# Corresponds to the JSON property `publicProfile`
|
|
527
|
-
# @return [Google::Apis::PartnersV2::PublicProfile]
|
|
528
|
-
attr_accessor :public_profile
|
|
529
|
-
|
|
530
|
-
# The list of Google Partners certification statuses for the company.
|
|
531
|
-
# Corresponds to the JSON property `certificationStatuses`
|
|
532
|
-
# @return [Array<Google::Apis::PartnersV2::CertificationStatus>]
|
|
533
|
-
attr_accessor :certification_statuses
|
|
1720
|
+
attr_accessor :taken
|
|
534
1721
|
|
|
535
|
-
#
|
|
536
|
-
# Corresponds to the JSON property `
|
|
537
|
-
# @return [
|
|
538
|
-
attr_accessor :
|
|
1722
|
+
# Whether this exam is in the state of warning.
|
|
1723
|
+
# Corresponds to the JSON property `warning`
|
|
1724
|
+
# @return [Boolean]
|
|
1725
|
+
attr_accessor :warning
|
|
1726
|
+
alias_method :warning?, :warning
|
|
539
1727
|
|
|
540
|
-
#
|
|
541
|
-
# Corresponds to the JSON property `
|
|
1728
|
+
# Date this exam is due to expire.
|
|
1729
|
+
# Corresponds to the JSON property `expiration`
|
|
542
1730
|
# @return [String]
|
|
543
|
-
attr_accessor :
|
|
1731
|
+
attr_accessor :expiration
|
|
544
1732
|
|
|
545
|
-
#
|
|
546
|
-
# Corresponds to the JSON property `
|
|
547
|
-
# @return [
|
|
548
|
-
attr_accessor :
|
|
1733
|
+
# The date the user last passed this exam.
|
|
1734
|
+
# Corresponds to the JSON property `lastPassed`
|
|
1735
|
+
# @return [String]
|
|
1736
|
+
attr_accessor :last_passed
|
|
549
1737
|
|
|
550
|
-
#
|
|
551
|
-
# Corresponds to the JSON property `
|
|
552
|
-
# @return [
|
|
553
|
-
attr_accessor :
|
|
1738
|
+
# The type of the exam.
|
|
1739
|
+
# Corresponds to the JSON property `examType`
|
|
1740
|
+
# @return [String]
|
|
1741
|
+
attr_accessor :exam_type
|
|
554
1742
|
|
|
555
1743
|
def initialize(**args)
|
|
556
1744
|
update!(**args)
|
|
@@ -558,45 +1746,33 @@ module Google
|
|
|
558
1746
|
|
|
559
1747
|
# Update properties of this object
|
|
560
1748
|
def update!(**args)
|
|
561
|
-
@
|
|
562
|
-
@
|
|
563
|
-
@
|
|
564
|
-
@
|
|
565
|
-
@
|
|
566
|
-
@
|
|
567
|
-
@public_profile = args[:public_profile] if args.key?(:public_profile)
|
|
568
|
-
@certification_statuses = args[:certification_statuses] if args.key?(:certification_statuses)
|
|
569
|
-
@ranks = args[:ranks] if args.key?(:ranks)
|
|
570
|
-
@website_url = args[:website_url] if args.key?(:website_url)
|
|
571
|
-
@industries = args[:industries] if args.key?(:industries)
|
|
572
|
-
@services = args[:services] if args.key?(:services)
|
|
1749
|
+
@passed = args[:passed] if args.key?(:passed)
|
|
1750
|
+
@taken = args[:taken] if args.key?(:taken)
|
|
1751
|
+
@warning = args[:warning] if args.key?(:warning)
|
|
1752
|
+
@expiration = args[:expiration] if args.key?(:expiration)
|
|
1753
|
+
@last_passed = args[:last_passed] if args.key?(:last_passed)
|
|
1754
|
+
@exam_type = args[:exam_type] if args.key?(:exam_type)
|
|
573
1755
|
end
|
|
574
1756
|
end
|
|
575
1757
|
|
|
576
|
-
#
|
|
577
|
-
class
|
|
1758
|
+
# Response for ListOffer.
|
|
1759
|
+
class ListOffersResponse
|
|
578
1760
|
include Google::Apis::Core::Hashable
|
|
579
1761
|
|
|
580
|
-
#
|
|
581
|
-
#
|
|
582
|
-
#
|
|
583
|
-
|
|
584
|
-
attr_accessor :language_code
|
|
585
|
-
|
|
586
|
-
# Localized display name.
|
|
587
|
-
# Corresponds to the JSON property `displayName`
|
|
588
|
-
# @return [String]
|
|
589
|
-
attr_accessor :display_name
|
|
1762
|
+
# Available Offers to be distributed.
|
|
1763
|
+
# Corresponds to the JSON property `availableOffers`
|
|
1764
|
+
# @return [Array<Google::Apis::PartnersV2::AvailableOffer>]
|
|
1765
|
+
attr_accessor :available_offers
|
|
590
1766
|
|
|
591
|
-
#
|
|
592
|
-
# Corresponds to the JSON property `
|
|
593
|
-
# @return [
|
|
594
|
-
attr_accessor :
|
|
1767
|
+
# Common data that is in each API response.
|
|
1768
|
+
# Corresponds to the JSON property `responseMetadata`
|
|
1769
|
+
# @return [Google::Apis::PartnersV2::ResponseMetadata]
|
|
1770
|
+
attr_accessor :response_metadata
|
|
595
1771
|
|
|
596
|
-
#
|
|
597
|
-
# Corresponds to the JSON property `
|
|
598
|
-
# @return [
|
|
599
|
-
attr_accessor :
|
|
1772
|
+
# Reason why no Offers are available.
|
|
1773
|
+
# Corresponds to the JSON property `noOfferReason`
|
|
1774
|
+
# @return [String]
|
|
1775
|
+
attr_accessor :no_offer_reason
|
|
600
1776
|
|
|
601
1777
|
def initialize(**args)
|
|
602
1778
|
update!(**args)
|
|
@@ -604,44 +1780,35 @@ module Google
|
|
|
604
1780
|
|
|
605
1781
|
# Update properties of this object
|
|
606
1782
|
def update!(**args)
|
|
607
|
-
@
|
|
608
|
-
@
|
|
609
|
-
@
|
|
610
|
-
@country_codes = args[:country_codes] if args.key?(:country_codes)
|
|
1783
|
+
@available_offers = args[:available_offers] if args.key?(:available_offers)
|
|
1784
|
+
@response_metadata = args[:response_metadata] if args.key?(:response_metadata)
|
|
1785
|
+
@no_offer_reason = args[:no_offer_reason] if args.key?(:no_offer_reason)
|
|
611
1786
|
end
|
|
612
1787
|
end
|
|
613
1788
|
|
|
614
|
-
#
|
|
615
|
-
class
|
|
1789
|
+
# Offer info by country.
|
|
1790
|
+
class CountryOfferInfo
|
|
616
1791
|
include Google::Apis::Core::Hashable
|
|
617
1792
|
|
|
618
|
-
#
|
|
619
|
-
# Corresponds to the JSON property `
|
|
1793
|
+
# Country code for which offer codes may be requested.
|
|
1794
|
+
# Corresponds to the JSON property `offerCountryCode`
|
|
620
1795
|
# @return [String]
|
|
621
|
-
attr_accessor :
|
|
1796
|
+
attr_accessor :offer_country_code
|
|
622
1797
|
|
|
623
|
-
#
|
|
624
|
-
#
|
|
625
|
-
#
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
#
|
|
629
|
-
#
|
|
630
|
-
#
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
#
|
|
634
|
-
#
|
|
635
|
-
#
|
|
636
|
-
|
|
637
|
-
# 170.0) == NormalizeLatLng(-95.0, 10.0) assert (90.0, 10.0) == NormalizeLatLng(
|
|
638
|
-
# 90.0, 10.0) assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) assert (0.0,
|
|
639
|
-
# -170.0) == NormalizeLatLng(-180.0, 10.0) assert (0.0, -170.0) ==
|
|
640
|
-
# NormalizeLatLng(180.0, 10.0) assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.
|
|
641
|
-
# 0) assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
|
|
642
|
-
# Corresponds to the JSON property `latLng`
|
|
643
|
-
# @return [Google::Apis::PartnersV2::LatLng]
|
|
644
|
-
attr_accessor :lat_lng
|
|
1798
|
+
# (localized) Spend X amount for that country's offer.
|
|
1799
|
+
# Corresponds to the JSON property `spendXAmount`
|
|
1800
|
+
# @return [String]
|
|
1801
|
+
attr_accessor :spend_x_amount
|
|
1802
|
+
|
|
1803
|
+
# Type of offer country is eligible for.
|
|
1804
|
+
# Corresponds to the JSON property `offerType`
|
|
1805
|
+
# @return [String]
|
|
1806
|
+
attr_accessor :offer_type
|
|
1807
|
+
|
|
1808
|
+
# (localized) Get Y amount for that country's offer.
|
|
1809
|
+
# Corresponds to the JSON property `getYAmount`
|
|
1810
|
+
# @return [String]
|
|
1811
|
+
attr_accessor :get_y_amount
|
|
645
1812
|
|
|
646
1813
|
def initialize(**args)
|
|
647
1814
|
update!(**args)
|
|
@@ -649,42 +1816,36 @@ module Google
|
|
|
649
1816
|
|
|
650
1817
|
# Update properties of this object
|
|
651
1818
|
def update!(**args)
|
|
652
|
-
@
|
|
653
|
-
@
|
|
1819
|
+
@offer_country_code = args[:offer_country_code] if args.key?(:offer_country_code)
|
|
1820
|
+
@spend_x_amount = args[:spend_x_amount] if args.key?(:spend_x_amount)
|
|
1821
|
+
@offer_type = args[:offer_type] if args.key?(:offer_type)
|
|
1822
|
+
@get_y_amount = args[:get_y_amount] if args.key?(:get_y_amount)
|
|
654
1823
|
end
|
|
655
1824
|
end
|
|
656
1825
|
|
|
657
|
-
#
|
|
658
|
-
#
|
|
659
|
-
|
|
660
|
-
# within normalized ranges. Example of normalization code in Python: def
|
|
661
|
-
# NormalizeLongitude(longitude): """Wrapsdecimal degrees longitude to [-180.0,
|
|
662
|
-
# 180.0].""" q, r = divmod(longitude, 360.0) if r > 180.0 or (r == 180.0 and q <=
|
|
663
|
-
# -1.0): return r - 360.0 return r def NormalizeLatLng(latitude, longitude): """
|
|
664
|
-
# Wraps decimal degrees latitude and longitude to [-180.0, 180.0] and [-90.0, 90.
|
|
665
|
-
# 0], respectively.""" r = latitude % 360.0 if r = 270.0: return r - 360,
|
|
666
|
-
# NormalizeLongitude(longitude) else: return 180 - r, NormalizeLongitude(
|
|
667
|
-
# longitude + 180.0) assert 180.0 == NormalizeLongitude(180.0) assert -180.0 ==
|
|
668
|
-
# NormalizeLongitude(-180.0) assert -179.0 == NormalizeLongitude(181.0) assert (
|
|
669
|
-
# 0.0, 0.0) == NormalizeLatLng(360.0, 0.0) assert (0.0, 0.0) == NormalizeLatLng(-
|
|
670
|
-
# 360.0, 0.0) assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) assert (-85.0, -
|
|
671
|
-
# 170.0) == NormalizeLatLng(-95.0, 10.0) assert (90.0, 10.0) == NormalizeLatLng(
|
|
672
|
-
# 90.0, 10.0) assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) assert (0.0,
|
|
673
|
-
# -170.0) == NormalizeLatLng(-180.0, 10.0) assert (0.0, -170.0) ==
|
|
674
|
-
# NormalizeLatLng(180.0, 10.0) assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.
|
|
675
|
-
# 0) assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
|
|
676
|
-
class LatLng
|
|
1826
|
+
# Response message for
|
|
1827
|
+
# ListCompanies.
|
|
1828
|
+
class ListCompaniesResponse
|
|
677
1829
|
include Google::Apis::Core::Hashable
|
|
678
1830
|
|
|
679
|
-
#
|
|
680
|
-
# Corresponds to the JSON property `
|
|
681
|
-
# @return [
|
|
682
|
-
attr_accessor :
|
|
1831
|
+
# Common data that is in each API response.
|
|
1832
|
+
# Corresponds to the JSON property `responseMetadata`
|
|
1833
|
+
# @return [Google::Apis::PartnersV2::ResponseMetadata]
|
|
1834
|
+
attr_accessor :response_metadata
|
|
683
1835
|
|
|
684
|
-
# The
|
|
685
|
-
# Corresponds to the JSON property `
|
|
686
|
-
# @return [
|
|
687
|
-
attr_accessor :
|
|
1836
|
+
# The list of companies.
|
|
1837
|
+
# Corresponds to the JSON property `companies`
|
|
1838
|
+
# @return [Array<Google::Apis::PartnersV2::Company>]
|
|
1839
|
+
attr_accessor :companies
|
|
1840
|
+
|
|
1841
|
+
# A token to retrieve next page of results.
|
|
1842
|
+
# Pass this value in the `ListCompaniesRequest.page_token` field in the
|
|
1843
|
+
# subsequent call to
|
|
1844
|
+
# ListCompanies to retrieve the
|
|
1845
|
+
# next page of results.
|
|
1846
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
1847
|
+
# @return [String]
|
|
1848
|
+
attr_accessor :next_page_token
|
|
688
1849
|
|
|
689
1850
|
def initialize(**args)
|
|
690
1851
|
update!(**args)
|
|
@@ -692,34 +1853,60 @@ module Google
|
|
|
692
1853
|
|
|
693
1854
|
# Update properties of this object
|
|
694
1855
|
def update!(**args)
|
|
695
|
-
@
|
|
696
|
-
@
|
|
1856
|
+
@response_metadata = args[:response_metadata] if args.key?(:response_metadata)
|
|
1857
|
+
@companies = args[:companies] if args.key?(:companies)
|
|
1858
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
697
1859
|
end
|
|
698
1860
|
end
|
|
699
1861
|
|
|
700
|
-
#
|
|
701
|
-
class
|
|
1862
|
+
# Customers qualified for an offer.
|
|
1863
|
+
class OfferCustomer
|
|
702
1864
|
include Google::Apis::Core::Hashable
|
|
703
1865
|
|
|
704
|
-
#
|
|
705
|
-
# Corresponds to the JSON property `
|
|
1866
|
+
# Country code of the customer.
|
|
1867
|
+
# Corresponds to the JSON property `countryCode`
|
|
706
1868
|
# @return [String]
|
|
707
|
-
attr_accessor :
|
|
1869
|
+
attr_accessor :country_code
|
|
708
1870
|
|
|
709
|
-
#
|
|
710
|
-
# Corresponds to the JSON property `
|
|
1871
|
+
# Time the customer was created.
|
|
1872
|
+
# Corresponds to the JSON property `creationTime`
|
|
711
1873
|
# @return [String]
|
|
712
|
-
attr_accessor :
|
|
1874
|
+
attr_accessor :creation_time
|
|
713
1875
|
|
|
714
|
-
#
|
|
715
|
-
# Corresponds to the JSON property `
|
|
1876
|
+
# Days the customer is still eligible.
|
|
1877
|
+
# Corresponds to the JSON property `eligibilityDaysLeft`
|
|
1878
|
+
# @return [Fixnum]
|
|
1879
|
+
attr_accessor :eligibility_days_left
|
|
1880
|
+
|
|
1881
|
+
# Type of the offer
|
|
1882
|
+
# Corresponds to the JSON property `offerType`
|
|
716
1883
|
# @return [String]
|
|
717
|
-
attr_accessor :
|
|
1884
|
+
attr_accessor :offer_type
|
|
718
1885
|
|
|
719
|
-
#
|
|
720
|
-
# Corresponds to the JSON property `
|
|
1886
|
+
# External CID for the customer.
|
|
1887
|
+
# Corresponds to the JSON property `externalCid`
|
|
721
1888
|
# @return [String]
|
|
722
|
-
attr_accessor :
|
|
1889
|
+
attr_accessor :external_cid
|
|
1890
|
+
|
|
1891
|
+
# Formatted Get Y amount with currency code.
|
|
1892
|
+
# Corresponds to the JSON property `getYAmount`
|
|
1893
|
+
# @return [String]
|
|
1894
|
+
attr_accessor :get_y_amount
|
|
1895
|
+
|
|
1896
|
+
# Name of the customer.
|
|
1897
|
+
# Corresponds to the JSON property `name`
|
|
1898
|
+
# @return [String]
|
|
1899
|
+
attr_accessor :name
|
|
1900
|
+
|
|
1901
|
+
# Formatted Spend X amount with currency code.
|
|
1902
|
+
# Corresponds to the JSON property `spendXAmount`
|
|
1903
|
+
# @return [String]
|
|
1904
|
+
attr_accessor :spend_x_amount
|
|
1905
|
+
|
|
1906
|
+
# URL to the customer's AdWords page.
|
|
1907
|
+
# Corresponds to the JSON property `adwordsUrl`
|
|
1908
|
+
# @return [String]
|
|
1909
|
+
attr_accessor :adwords_url
|
|
723
1910
|
|
|
724
1911
|
def initialize(**args)
|
|
725
1912
|
update!(**args)
|
|
@@ -727,10 +1914,15 @@ module Google
|
|
|
727
1914
|
|
|
728
1915
|
# Update properties of this object
|
|
729
1916
|
def update!(**args)
|
|
730
|
-
@
|
|
731
|
-
@
|
|
732
|
-
@
|
|
733
|
-
@
|
|
1917
|
+
@country_code = args[:country_code] if args.key?(:country_code)
|
|
1918
|
+
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
|
1919
|
+
@eligibility_days_left = args[:eligibility_days_left] if args.key?(:eligibility_days_left)
|
|
1920
|
+
@offer_type = args[:offer_type] if args.key?(:offer_type)
|
|
1921
|
+
@external_cid = args[:external_cid] if args.key?(:external_cid)
|
|
1922
|
+
@get_y_amount = args[:get_y_amount] if args.key?(:get_y_amount)
|
|
1923
|
+
@name = args[:name] if args.key?(:name)
|
|
1924
|
+
@spend_x_amount = args[:spend_x_amount] if args.key?(:spend_x_amount)
|
|
1925
|
+
@adwords_url = args[:adwords_url] if args.key?(:adwords_url)
|
|
734
1926
|
end
|
|
735
1927
|
end
|
|
736
1928
|
|
|
@@ -738,15 +1930,20 @@ module Google
|
|
|
738
1930
|
class CertificationStatus
|
|
739
1931
|
include Google::Apis::Core::Hashable
|
|
740
1932
|
|
|
1933
|
+
# List of certification exam statuses.
|
|
1934
|
+
# Corresponds to the JSON property `examStatuses`
|
|
1935
|
+
# @return [Array<Google::Apis::PartnersV2::CertificationExamStatus>]
|
|
1936
|
+
attr_accessor :exam_statuses
|
|
1937
|
+
|
|
741
1938
|
# The type of the certification.
|
|
742
1939
|
# Corresponds to the JSON property `type`
|
|
743
1940
|
# @return [String]
|
|
744
1941
|
attr_accessor :type
|
|
745
1942
|
|
|
746
|
-
#
|
|
747
|
-
# Corresponds to the JSON property `
|
|
748
|
-
# @return [
|
|
749
|
-
attr_accessor :
|
|
1943
|
+
# Number of people who are certified,
|
|
1944
|
+
# Corresponds to the JSON property `userCount`
|
|
1945
|
+
# @return [Fixnum]
|
|
1946
|
+
attr_accessor :user_count
|
|
750
1947
|
|
|
751
1948
|
# Whether certification is passing.
|
|
752
1949
|
# Corresponds to the JSON property `isCertified`
|
|
@@ -760,25 +1957,38 @@ module Google
|
|
|
760
1957
|
|
|
761
1958
|
# Update properties of this object
|
|
762
1959
|
def update!(**args)
|
|
763
|
-
@type = args[:type] if args.key?(:type)
|
|
764
1960
|
@exam_statuses = args[:exam_statuses] if args.key?(:exam_statuses)
|
|
1961
|
+
@type = args[:type] if args.key?(:type)
|
|
1962
|
+
@user_count = args[:user_count] if args.key?(:user_count)
|
|
765
1963
|
@is_certified = args[:is_certified] if args.key?(:is_certified)
|
|
766
1964
|
end
|
|
767
1965
|
end
|
|
768
1966
|
|
|
769
|
-
#
|
|
770
|
-
class
|
|
1967
|
+
# The localized company information.
|
|
1968
|
+
class LocalizedCompanyInfo
|
|
771
1969
|
include Google::Apis::Core::Hashable
|
|
772
1970
|
|
|
773
|
-
#
|
|
774
|
-
#
|
|
1971
|
+
# Language code of the localized company info, as defined by
|
|
1972
|
+
# <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
|
|
1973
|
+
# (IETF BCP 47, "Tags for Identifying Languages").
|
|
1974
|
+
# Corresponds to the JSON property `languageCode`
|
|
775
1975
|
# @return [String]
|
|
776
|
-
attr_accessor :
|
|
1976
|
+
attr_accessor :language_code
|
|
777
1977
|
|
|
778
|
-
#
|
|
779
|
-
# Corresponds to the JSON property `
|
|
780
|
-
# @return [
|
|
781
|
-
attr_accessor :
|
|
1978
|
+
# List of country codes for the localized company info.
|
|
1979
|
+
# Corresponds to the JSON property `countryCodes`
|
|
1980
|
+
# @return [Array<String>]
|
|
1981
|
+
attr_accessor :country_codes
|
|
1982
|
+
|
|
1983
|
+
# Localized brief description that the company uses to advertise themselves.
|
|
1984
|
+
# Corresponds to the JSON property `overview`
|
|
1985
|
+
# @return [String]
|
|
1986
|
+
attr_accessor :overview
|
|
1987
|
+
|
|
1988
|
+
# Localized display name.
|
|
1989
|
+
# Corresponds to the JSON property `displayName`
|
|
1990
|
+
# @return [String]
|
|
1991
|
+
attr_accessor :display_name
|
|
782
1992
|
|
|
783
1993
|
def initialize(**args)
|
|
784
1994
|
update!(**args)
|
|
@@ -786,24 +1996,22 @@ module Google
|
|
|
786
1996
|
|
|
787
1997
|
# Update properties of this object
|
|
788
1998
|
def update!(**args)
|
|
789
|
-
@
|
|
790
|
-
@
|
|
1999
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
|
2000
|
+
@country_codes = args[:country_codes] if args.key?(:country_codes)
|
|
2001
|
+
@overview = args[:overview] if args.key?(:overview)
|
|
2002
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
|
791
2003
|
end
|
|
792
2004
|
end
|
|
793
2005
|
|
|
794
|
-
#
|
|
795
|
-
|
|
2006
|
+
# Response message for
|
|
2007
|
+
# LogUserEvent.
|
|
2008
|
+
class LogUserEventResponse
|
|
796
2009
|
include Google::Apis::Core::Hashable
|
|
797
2010
|
|
|
798
|
-
#
|
|
799
|
-
# Corresponds to the JSON property `
|
|
800
|
-
# @return [
|
|
801
|
-
attr_accessor :
|
|
802
|
-
|
|
803
|
-
# The numerical value of the rank.
|
|
804
|
-
# Corresponds to the JSON property `value`
|
|
805
|
-
# @return [Float]
|
|
806
|
-
attr_accessor :value
|
|
2011
|
+
# Common data that is in each API response.
|
|
2012
|
+
# Corresponds to the JSON property `responseMetadata`
|
|
2013
|
+
# @return [Google::Apis::PartnersV2::ResponseMetadata]
|
|
2014
|
+
attr_accessor :response_metadata
|
|
807
2015
|
|
|
808
2016
|
def initialize(**args)
|
|
809
2017
|
update!(**args)
|
|
@@ -811,13 +2019,12 @@ module Google
|
|
|
811
2019
|
|
|
812
2020
|
# Update properties of this object
|
|
813
2021
|
def update!(**args)
|
|
814
|
-
@
|
|
815
|
-
@value = args[:value] if args.key?(:value)
|
|
2022
|
+
@response_metadata = args[:response_metadata] if args.key?(:response_metadata)
|
|
816
2023
|
end
|
|
817
2024
|
end
|
|
818
2025
|
|
|
819
|
-
# Response
|
|
820
|
-
class
|
|
2026
|
+
# Response for ListOfferHistory.
|
|
2027
|
+
class ListOffersHistoryResponse
|
|
821
2028
|
include Google::Apis::Core::Hashable
|
|
822
2029
|
|
|
823
2030
|
# Common data that is in each API response.
|
|
@@ -825,14 +2032,29 @@ module Google
|
|
|
825
2032
|
# @return [Google::Apis::PartnersV2::ResponseMetadata]
|
|
826
2033
|
attr_accessor :response_metadata
|
|
827
2034
|
|
|
828
|
-
#
|
|
829
|
-
# Corresponds to the JSON property `
|
|
830
|
-
# @return [
|
|
831
|
-
attr_accessor :
|
|
2035
|
+
# True if the user has the option to show entire company history.
|
|
2036
|
+
# Corresponds to the JSON property `canShowEntireCompany`
|
|
2037
|
+
# @return [Boolean]
|
|
2038
|
+
attr_accessor :can_show_entire_company
|
|
2039
|
+
alias_method :can_show_entire_company?, :can_show_entire_company
|
|
2040
|
+
|
|
2041
|
+
# Number of results across all pages.
|
|
2042
|
+
# Corresponds to the JSON property `totalResults`
|
|
2043
|
+
# @return [Fixnum]
|
|
2044
|
+
attr_accessor :total_results
|
|
2045
|
+
|
|
2046
|
+
# True if this response is showing entire company history.
|
|
2047
|
+
# Corresponds to the JSON property `showingEntireCompany`
|
|
2048
|
+
# @return [Boolean]
|
|
2049
|
+
attr_accessor :showing_entire_company
|
|
2050
|
+
alias_method :showing_entire_company?, :showing_entire_company
|
|
2051
|
+
|
|
2052
|
+
# Historical offers meeting request.
|
|
2053
|
+
# Corresponds to the JSON property `offers`
|
|
2054
|
+
# @return [Array<Google::Apis::PartnersV2::HistoricalOffer>]
|
|
2055
|
+
attr_accessor :offers
|
|
832
2056
|
|
|
833
|
-
#
|
|
834
|
-
# ListCompaniesRequest.page_token` field in the subsequent call to ListCompanies
|
|
835
|
-
# to retrieve the next page of results.
|
|
2057
|
+
# Supply this token in a ListOffersHistoryRequest to retrieve the next page.
|
|
836
2058
|
# Corresponds to the JSON property `nextPageToken`
|
|
837
2059
|
# @return [String]
|
|
838
2060
|
attr_accessor :next_page_token
|
|
@@ -844,30 +2066,47 @@ module Google
|
|
|
844
2066
|
# Update properties of this object
|
|
845
2067
|
def update!(**args)
|
|
846
2068
|
@response_metadata = args[:response_metadata] if args.key?(:response_metadata)
|
|
847
|
-
@
|
|
2069
|
+
@can_show_entire_company = args[:can_show_entire_company] if args.key?(:can_show_entire_company)
|
|
2070
|
+
@total_results = args[:total_results] if args.key?(:total_results)
|
|
2071
|
+
@showing_entire_company = args[:showing_entire_company] if args.key?(:showing_entire_company)
|
|
2072
|
+
@offers = args[:offers] if args.key?(:offers)
|
|
848
2073
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
849
2074
|
end
|
|
850
2075
|
end
|
|
851
2076
|
|
|
852
|
-
#
|
|
853
|
-
|
|
2077
|
+
# Response message for
|
|
2078
|
+
# LogClientMessage.
|
|
2079
|
+
class LogMessageResponse
|
|
854
2080
|
include Google::Apis::Core::Hashable
|
|
855
2081
|
|
|
856
|
-
# Common data that is in each API
|
|
857
|
-
# Corresponds to the JSON property `
|
|
858
|
-
# @return [Google::Apis::PartnersV2::
|
|
859
|
-
attr_accessor :
|
|
2082
|
+
# Common data that is in each API response.
|
|
2083
|
+
# Corresponds to the JSON property `responseMetadata`
|
|
2084
|
+
# @return [Google::Apis::PartnersV2::ResponseMetadata]
|
|
2085
|
+
attr_accessor :response_metadata
|
|
860
2086
|
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
# @return [Google::Apis::PartnersV2::Lead]
|
|
865
|
-
attr_accessor :lead
|
|
2087
|
+
def initialize(**args)
|
|
2088
|
+
update!(**args)
|
|
2089
|
+
end
|
|
866
2090
|
|
|
867
|
-
#
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
2091
|
+
# Update properties of this object
|
|
2092
|
+
def update!(**args)
|
|
2093
|
+
@response_metadata = args[:response_metadata] if args.key?(:response_metadata)
|
|
2094
|
+
end
|
|
2095
|
+
end
|
|
2096
|
+
|
|
2097
|
+
# Agency specialization status
|
|
2098
|
+
class SpecializationStatus
|
|
2099
|
+
include Google::Apis::Core::Hashable
|
|
2100
|
+
|
|
2101
|
+
# The specialization this status is for.
|
|
2102
|
+
# Corresponds to the JSON property `badgeSpecialization`
|
|
2103
|
+
# @return [String]
|
|
2104
|
+
attr_accessor :badge_specialization
|
|
2105
|
+
|
|
2106
|
+
# State of agency specialization.
|
|
2107
|
+
# Corresponds to the JSON property `badgeSpecializationState`
|
|
2108
|
+
# @return [String]
|
|
2109
|
+
attr_accessor :badge_specialization_state
|
|
871
2110
|
|
|
872
2111
|
def initialize(**args)
|
|
873
2112
|
update!(**args)
|
|
@@ -875,25 +2114,120 @@ module Google
|
|
|
875
2114
|
|
|
876
2115
|
# Update properties of this object
|
|
877
2116
|
def update!(**args)
|
|
878
|
-
@
|
|
879
|
-
@
|
|
880
|
-
@recaptcha_challenge = args[:recaptcha_challenge] if args.key?(:recaptcha_challenge)
|
|
2117
|
+
@badge_specialization = args[:badge_specialization] if args.key?(:badge_specialization)
|
|
2118
|
+
@badge_specialization_state = args[:badge_specialization_state] if args.key?(:badge_specialization_state)
|
|
881
2119
|
end
|
|
882
2120
|
end
|
|
883
2121
|
|
|
884
|
-
#
|
|
885
|
-
class
|
|
2122
|
+
# A user's information on a specific certification.
|
|
2123
|
+
class Certification
|
|
886
2124
|
include Google::Apis::Core::Hashable
|
|
887
2125
|
|
|
888
|
-
#
|
|
2126
|
+
# Whether this certification has been achieved.
|
|
2127
|
+
# Corresponds to the JSON property `achieved`
|
|
2128
|
+
# @return [Boolean]
|
|
2129
|
+
attr_accessor :achieved
|
|
2130
|
+
alias_method :achieved?, :achieved
|
|
2131
|
+
|
|
2132
|
+
# Date this certification is due to expire.
|
|
2133
|
+
# Corresponds to the JSON property `expiration`
|
|
2134
|
+
# @return [String]
|
|
2135
|
+
attr_accessor :expiration
|
|
2136
|
+
|
|
2137
|
+
# Whether this certification is in the state of warning.
|
|
2138
|
+
# Corresponds to the JSON property `warning`
|
|
2139
|
+
# @return [Boolean]
|
|
2140
|
+
attr_accessor :warning
|
|
2141
|
+
alias_method :warning?, :warning
|
|
2142
|
+
|
|
2143
|
+
# The type of certification, the area of expertise.
|
|
2144
|
+
# Corresponds to the JSON property `certificationType`
|
|
2145
|
+
# @return [String]
|
|
2146
|
+
attr_accessor :certification_type
|
|
2147
|
+
|
|
2148
|
+
# The date the user last achieved certification.
|
|
2149
|
+
# Corresponds to the JSON property `lastAchieved`
|
|
2150
|
+
# @return [String]
|
|
2151
|
+
attr_accessor :last_achieved
|
|
2152
|
+
|
|
2153
|
+
def initialize(**args)
|
|
2154
|
+
update!(**args)
|
|
2155
|
+
end
|
|
2156
|
+
|
|
2157
|
+
# Update properties of this object
|
|
2158
|
+
def update!(**args)
|
|
2159
|
+
@achieved = args[:achieved] if args.key?(:achieved)
|
|
2160
|
+
@expiration = args[:expiration] if args.key?(:expiration)
|
|
2161
|
+
@warning = args[:warning] if args.key?(:warning)
|
|
2162
|
+
@certification_type = args[:certification_type] if args.key?(:certification_type)
|
|
2163
|
+
@last_achieved = args[:last_achieved] if args.key?(:last_achieved)
|
|
2164
|
+
end
|
|
2165
|
+
end
|
|
2166
|
+
|
|
2167
|
+
# A resource representing a user of the Partners platform.
|
|
2168
|
+
class User
|
|
2169
|
+
include Google::Apis::Core::Hashable
|
|
2170
|
+
|
|
2171
|
+
# A CompanyRelation resource representing information about a user's
|
|
2172
|
+
# affiliation and standing with a company in Partners.
|
|
2173
|
+
# Corresponds to the JSON property `company`
|
|
2174
|
+
# @return [Google::Apis::PartnersV2::CompanyRelation]
|
|
2175
|
+
attr_accessor :company
|
|
2176
|
+
|
|
2177
|
+
# The profile information of a Partners user.
|
|
2178
|
+
# Corresponds to the JSON property `profile`
|
|
2179
|
+
# @return [Google::Apis::PartnersV2::UserProfile]
|
|
2180
|
+
attr_accessor :profile
|
|
2181
|
+
|
|
2182
|
+
# The most recent time the user interacted with the Partners site.
|
|
2183
|
+
# @OutputOnly
|
|
2184
|
+
# Corresponds to the JSON property `lastAccessTime`
|
|
2185
|
+
# @return [String]
|
|
2186
|
+
attr_accessor :last_access_time
|
|
2187
|
+
|
|
2188
|
+
# The list of emails the user has access to/can select as primary.
|
|
2189
|
+
# @OutputOnly
|
|
2190
|
+
# Corresponds to the JSON property `primaryEmails`
|
|
2191
|
+
# @return [Array<String>]
|
|
2192
|
+
attr_accessor :primary_emails
|
|
2193
|
+
|
|
2194
|
+
# This is the list of AdWords Manager Accounts the user has edit access to.
|
|
2195
|
+
# If the user has edit access to multiple accounts, the user can choose the
|
|
2196
|
+
# preferred account and we use this when a personal account is needed. Can
|
|
2197
|
+
# be empty meaning the user has access to no accounts.
|
|
2198
|
+
# @OutputOnly
|
|
2199
|
+
# Corresponds to the JSON property `availableAdwordsManagerAccounts`
|
|
2200
|
+
# @return [Array<Google::Apis::PartnersV2::AdWordsManagerAccountInfo>]
|
|
2201
|
+
attr_accessor :available_adwords_manager_accounts
|
|
2202
|
+
|
|
2203
|
+
# The list of exams the user ever taken. For each type of exam, only one
|
|
2204
|
+
# entry is listed.
|
|
2205
|
+
# Corresponds to the JSON property `examStatus`
|
|
2206
|
+
# @return [Array<Google::Apis::PartnersV2::ExamStatus>]
|
|
2207
|
+
attr_accessor :exam_status
|
|
2208
|
+
|
|
2209
|
+
# The ID of the user.
|
|
889
2210
|
# Corresponds to the JSON property `id`
|
|
890
2211
|
# @return [String]
|
|
891
2212
|
attr_accessor :id
|
|
892
2213
|
|
|
893
|
-
#
|
|
894
|
-
# Corresponds to the JSON property `
|
|
2214
|
+
# Basic information from a public profile.
|
|
2215
|
+
# Corresponds to the JSON property `publicProfile`
|
|
2216
|
+
# @return [Google::Apis::PartnersV2::PublicProfile]
|
|
2217
|
+
attr_accessor :public_profile
|
|
2218
|
+
|
|
2219
|
+
# The list of achieved certifications. These are calculated based on exam
|
|
2220
|
+
# results and other requirements.
|
|
2221
|
+
# @OutputOnly
|
|
2222
|
+
# Corresponds to the JSON property `certificationStatus`
|
|
2223
|
+
# @return [Array<Google::Apis::PartnersV2::Certification>]
|
|
2224
|
+
attr_accessor :certification_status
|
|
2225
|
+
|
|
2226
|
+
# The email address used by the user used for company verification.
|
|
2227
|
+
# @OutputOnly
|
|
2228
|
+
# Corresponds to the JSON property `companyVerificationEmail`
|
|
895
2229
|
# @return [String]
|
|
896
|
-
attr_accessor :
|
|
2230
|
+
attr_accessor :company_verification_email
|
|
897
2231
|
|
|
898
2232
|
def initialize(**args)
|
|
899
2233
|
update!(**args)
|
|
@@ -901,30 +2235,49 @@ module Google
|
|
|
901
2235
|
|
|
902
2236
|
# Update properties of this object
|
|
903
2237
|
def update!(**args)
|
|
2238
|
+
@company = args[:company] if args.key?(:company)
|
|
2239
|
+
@profile = args[:profile] if args.key?(:profile)
|
|
2240
|
+
@last_access_time = args[:last_access_time] if args.key?(:last_access_time)
|
|
2241
|
+
@primary_emails = args[:primary_emails] if args.key?(:primary_emails)
|
|
2242
|
+
@available_adwords_manager_accounts = args[:available_adwords_manager_accounts] if args.key?(:available_adwords_manager_accounts)
|
|
2243
|
+
@exam_status = args[:exam_status] if args.key?(:exam_status)
|
|
904
2244
|
@id = args[:id] if args.key?(:id)
|
|
905
|
-
@
|
|
2245
|
+
@public_profile = args[:public_profile] if args.key?(:public_profile)
|
|
2246
|
+
@certification_status = args[:certification_status] if args.key?(:certification_status)
|
|
2247
|
+
@company_verification_email = args[:company_verification_email] if args.key?(:company_verification_email)
|
|
906
2248
|
end
|
|
907
2249
|
end
|
|
908
2250
|
|
|
909
|
-
# Response message for
|
|
910
|
-
|
|
2251
|
+
# Response message for
|
|
2252
|
+
# ListAnalytics.
|
|
2253
|
+
class ListAnalyticsResponse
|
|
911
2254
|
include Google::Apis::Core::Hashable
|
|
912
2255
|
|
|
2256
|
+
# The list of analytics.
|
|
2257
|
+
# Sorted in ascending order of
|
|
2258
|
+
# Analytics.event_date.
|
|
2259
|
+
# Corresponds to the JSON property `analytics`
|
|
2260
|
+
# @return [Array<Google::Apis::PartnersV2::Analytics>]
|
|
2261
|
+
attr_accessor :analytics
|
|
2262
|
+
|
|
2263
|
+
# A token to retrieve next page of results.
|
|
2264
|
+
# Pass this value in the `ListAnalyticsRequest.page_token` field in the
|
|
2265
|
+
# subsequent call to
|
|
2266
|
+
# ListAnalytics to retrieve the
|
|
2267
|
+
# next page of results.
|
|
2268
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
2269
|
+
# @return [String]
|
|
2270
|
+
attr_accessor :next_page_token
|
|
2271
|
+
|
|
913
2272
|
# Common data that is in each API response.
|
|
914
2273
|
# Corresponds to the JSON property `responseMetadata`
|
|
915
2274
|
# @return [Google::Apis::PartnersV2::ResponseMetadata]
|
|
916
2275
|
attr_accessor :response_metadata
|
|
917
2276
|
|
|
918
|
-
#
|
|
919
|
-
#
|
|
920
|
-
#
|
|
921
|
-
|
|
922
|
-
attr_accessor :lead
|
|
923
|
-
|
|
924
|
-
# The outcome of reCaptcha validation.
|
|
925
|
-
# Corresponds to the JSON property `recaptchaStatus`
|
|
926
|
-
# @return [String]
|
|
927
|
-
attr_accessor :recaptcha_status
|
|
2277
|
+
# Analytics aggregated data for a `Company` for a given date range.
|
|
2278
|
+
# Corresponds to the JSON property `analyticsSummary`
|
|
2279
|
+
# @return [Google::Apis::PartnersV2::AnalyticsSummary]
|
|
2280
|
+
attr_accessor :analytics_summary
|
|
928
2281
|
|
|
929
2282
|
def initialize(**args)
|
|
930
2283
|
update!(**args)
|
|
@@ -932,9 +2285,10 @@ module Google
|
|
|
932
2285
|
|
|
933
2286
|
# Update properties of this object
|
|
934
2287
|
def update!(**args)
|
|
2288
|
+
@analytics = args[:analytics] if args.key?(:analytics)
|
|
2289
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
935
2290
|
@response_metadata = args[:response_metadata] if args.key?(:response_metadata)
|
|
936
|
-
@
|
|
937
|
-
@recaptcha_status = args[:recaptcha_status] if args.key?(:recaptcha_status)
|
|
2291
|
+
@analytics_summary = args[:analytics_summary] if args.key?(:analytics_summary)
|
|
938
2292
|
end
|
|
939
2293
|
end
|
|
940
2294
|
end
|