| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  | # Copyright 2015 Google Inc. | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # Licensed under the Apache License, Version 2.0 (the "License"); | 
					
						
							|  |  |  | # you may not use this file except in compliance with the License. | 
					
						
							|  |  |  | # You may obtain a copy of the License at | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | #      http://www.apache.org/licenses/LICENSE-2.0 | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # Unless required by applicable law or agreed to in writing, software | 
					
						
							|  |  |  | # distributed under the License is distributed on an "AS IS" BASIS, | 
					
						
							|  |  |  | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 
					
						
							|  |  |  | # See the License for the specific language governing permissions and | 
					
						
							|  |  |  | # limitations under the License. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | require 'date' | 
					
						
							|  |  |  | require 'google/apis/core/base_service' | 
					
						
							|  |  |  | require 'google/apis/core/json_representation' | 
					
						
							|  |  |  | require 'google/apis/core/hashable' | 
					
						
							|  |  |  | require 'google/apis/errors' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | module Google | 
					
						
							|  |  |  |   module Apis | 
					
						
							|  |  |  |     module PartnersV2 | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Information about a particular AdWords Manager Account. | 
					
						
							|  |  |  |       # Read more at https://support.google.com/adwords/answer/6139186 | 
					
						
							|  |  |  |       class AdWordsManagerAccountInfo | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Name of the customer this account represents. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `customerName` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :customer_name | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The AdWords Manager Account id. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `id` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :id | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @customer_name = args[:customer_name] if args.key?(:customer_name) | 
					
						
							|  |  |  |           @id = args[:id] if args.key?(:id) | 
					
						
							| 
									
										
										
										
											2017-03-27 22:14:47 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Analytics data for a `Company` within a single day. | 
					
						
							|  |  |  |       class Analytics | 
					
						
							| 
									
										
										
										
											2017-03-27 22:14:47 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Details of the analytics events for a `Company` within a single day. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `contacts` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::AnalyticsDataPoint] | 
					
						
							|  |  |  |         attr_accessor :contacts | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2018-09-27 00:44:27 +00:00
										 |  |  |         # Represents a whole or partial calendar date, e.g. a birthday. The time of day | 
					
						
							| 
									
										
										
										
											2018-09-08 00:36:18 +00:00
										 |  |  |         # and time zone are either specified elsewhere or are not significant. The date | 
					
						
							| 
									
										
										
										
											2018-09-27 00:44:27 +00:00
										 |  |  |         # is relative to the Proleptic Gregorian Calendar. This can represent: | 
					
						
							|  |  |  |         # * A full date, with non-zero year, month and day values | 
					
						
							|  |  |  |         # * A month and day value, with a zero year, e.g. an anniversary | 
					
						
							|  |  |  |         # * A year on its own, with zero month and day values | 
					
						
							|  |  |  |         # * A year and month value, with a zero day, e.g. a credit card expiration date | 
					
						
							|  |  |  |         # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `eventDate` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::Date] | 
					
						
							|  |  |  |         attr_accessor :event_date | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Details of the analytics events for a `Company` within a single day. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `profileViews` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::AnalyticsDataPoint] | 
					
						
							|  |  |  |         attr_accessor :profile_views | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Details of the analytics events for a `Company` within a single day. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `searchViews` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::AnalyticsDataPoint] | 
					
						
							|  |  |  |         attr_accessor :search_views | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @contacts = args[:contacts] if args.key?(:contacts) | 
					
						
							|  |  |  |           @event_date = args[:event_date] if args.key?(:event_date) | 
					
						
							|  |  |  |           @profile_views = args[:profile_views] if args.key?(:profile_views) | 
					
						
							|  |  |  |           @search_views = args[:search_views] if args.key?(:search_views) | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |       # Details of the analytics events for a `Company` within a single day. | 
					
						
							|  |  |  |       class AnalyticsDataPoint | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # Number of times the type of event occurred. | 
					
						
							|  |  |  |         # Meaning depends on context (e.g. profile views, contacts, etc.). | 
					
						
							|  |  |  |         # Corresponds to the JSON property `eventCount` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :event_count | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # Location information of where these events occurred. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `eventLocations` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PartnersV2::LatLng>] | 
					
						
							|  |  |  |         attr_accessor :event_locations | 
					
						
							| 
									
										
										
										
											2017-03-27 22:14:47 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @event_count = args[:event_count] if args.key?(:event_count) | 
					
						
							|  |  |  |           @event_locations = args[:event_locations] if args.key?(:event_locations) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Analytics aggregated data for a `Company` for a given date range. | 
					
						
							|  |  |  |       class AnalyticsSummary | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Aggregated number of times users contacted the `Company` | 
					
						
							|  |  |  |         # for given date range. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `contactsCount` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :contacts_count | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Aggregated number of profile views for the `Company` for given date range. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `profileViewsCount` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :profile_views_count | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Aggregated number of times users saw the `Company` | 
					
						
							|  |  |  |         # in Google Partners Search results for given date range. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `searchViewsCount` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :search_views_count | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @contacts_count = args[:contacts_count] if args.key?(:contacts_count) | 
					
						
							|  |  |  |           @profile_views_count = args[:profile_views_count] if args.key?(:profile_views_count) | 
					
						
							|  |  |  |           @search_views_count = args[:search_views_count] if args.key?(:search_views_count) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Available Offers to be distributed. | 
					
						
							|  |  |  |       class AvailableOffer | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The number of codes for this offer that are available for distribution. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `available` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :available | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Offer info by country. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `countryOfferInfos` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PartnersV2::CountryOfferInfo>] | 
					
						
							|  |  |  |         attr_accessor :country_offer_infos | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Description of the offer. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `description` | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :description | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # ID of this offer. | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # Corresponds to the JSON property `id` | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         attr_accessor :id | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The maximum age of an account [in days] to be eligible. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `maxAccountAge` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :max_account_age | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Name of the offer. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `name` | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :name | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Level of this offer. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `offerLevel` | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :offer_level | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Type of offer. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `offerType` | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :offer_type | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Customers who qualify for this offer. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `qualifiedCustomer` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PartnersV2::OfferCustomer>] | 
					
						
							|  |  |  |         attr_accessor :qualified_customer | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Whether or not the list of qualified customers is definitely complete. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `qualifiedCustomersComplete` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :qualified_customers_complete | 
					
						
							|  |  |  |         alias_method :qualified_customers_complete?, :qualified_customers_complete | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Should special text be shown on the offers page. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `showSpecialOfferCopy` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :show_special_offer_copy | 
					
						
							|  |  |  |         alias_method :show_special_offer_copy?, :show_special_offer_copy | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Terms of the offer. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `terms` | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :terms | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @available = args[:available] if args.key?(:available) | 
					
						
							|  |  |  |           @country_offer_infos = args[:country_offer_infos] if args.key?(:country_offer_infos) | 
					
						
							|  |  |  |           @description = args[:description] if args.key?(:description) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |           @id = args[:id] if args.key?(:id) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @max_account_age = args[:max_account_age] if args.key?(:max_account_age) | 
					
						
							|  |  |  |           @name = args[:name] if args.key?(:name) | 
					
						
							|  |  |  |           @offer_level = args[:offer_level] if args.key?(:offer_level) | 
					
						
							|  |  |  |           @offer_type = args[:offer_type] if args.key?(:offer_type) | 
					
						
							|  |  |  |           @qualified_customer = args[:qualified_customer] if args.key?(:qualified_customer) | 
					
						
							|  |  |  |           @qualified_customers_complete = args[:qualified_customers_complete] if args.key?(:qualified_customers_complete) | 
					
						
							|  |  |  |           @show_special_offer_copy = args[:show_special_offer_copy] if args.key?(:show_special_offer_copy) | 
					
						
							|  |  |  |           @terms = args[:terms] if args.key?(:terms) | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # A user's information on a specific certification. | 
					
						
							|  |  |  |       class Certification | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Whether this certification has been achieved. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `achieved` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :achieved | 
					
						
							|  |  |  |         alias_method :achieved?, :achieved | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The type of certification, the area of expertise. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `certificationType` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :certification_type | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Date this certification is due to expire. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `expiration` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :expiration | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The date the user last achieved certification. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `lastAchieved` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :last_achieved | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Whether this certification is in the state of warning. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `warning` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :warning | 
					
						
							|  |  |  |         alias_method :warning?, :warning | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @achieved = args[:achieved] if args.key?(:achieved) | 
					
						
							|  |  |  |           @certification_type = args[:certification_type] if args.key?(:certification_type) | 
					
						
							|  |  |  |           @expiration = args[:expiration] if args.key?(:expiration) | 
					
						
							|  |  |  |           @last_achieved = args[:last_achieved] if args.key?(:last_achieved) | 
					
						
							|  |  |  |           @warning = args[:warning] if args.key?(:warning) | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Status for a Google Partners certification exam. | 
					
						
							|  |  |  |       class CertificationExamStatus | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The number of people who have passed the certification exam. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `numberUsersPass` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :number_users_pass | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The type of certification exam. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `type` | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :type | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @number_users_pass = args[:number_users_pass] if args.key?(:number_users_pass) | 
					
						
							|  |  |  |           @type = args[:type] if args.key?(:type) | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Google Partners certification status. | 
					
						
							|  |  |  |       class CertificationStatus | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # List of certification exam statuses. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `examStatuses` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PartnersV2::CertificationExamStatus>] | 
					
						
							|  |  |  |         attr_accessor :exam_statuses | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Whether certification is passing. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `isCertified` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [Boolean] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :is_certified | 
					
						
							|  |  |  |         alias_method :is_certified?, :is_certified | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The type of the certification. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `type` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :type | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Number of people who are certified, | 
					
						
							|  |  |  |         # Corresponds to the JSON property `userCount` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :user_count | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @exam_statuses = args[:exam_statuses] if args.key?(:exam_statuses) | 
					
						
							|  |  |  |           @is_certified = args[:is_certified] if args.key?(:is_certified) | 
					
						
							|  |  |  |           @type = args[:type] if args.key?(:type) | 
					
						
							|  |  |  |           @user_count = args[:user_count] if args.key?(:user_count) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |       # A company resource in the Google Partners API. Once certified, it qualifies | 
					
						
							|  |  |  |       # for being searched by advertisers. | 
					
						
							|  |  |  |       class Company | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # URL of the company's additional websites used to verify the dynamic badges. | 
					
						
							|  |  |  |         # These are stored as full URLs as entered by the user, but only the TLD will | 
					
						
							|  |  |  |         # be used for the actual verification. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `additionalWebsites` | 
					
						
							|  |  |  |         # @return [Array<String>] | 
					
						
							|  |  |  |         attr_accessor :additional_websites | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Email domains that allow users with a matching email address to get | 
					
						
							|  |  |  |         # auto-approved for associating with this company. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `autoApprovalEmailDomains` | 
					
						
							|  |  |  |         # @return [Array<String>] | 
					
						
							|  |  |  |         attr_accessor :auto_approval_email_domains | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2018-05-19 00:37:10 +00:00
										 |  |  |         # Whether the company's badge authority is in AWN | 
					
						
							|  |  |  |         # Corresponds to the JSON property `badgeAuthorityInAwn` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :badge_authority_in_awn | 
					
						
							|  |  |  |         alias_method :badge_authority_in_awn?, :badge_authority_in_awn | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Partner badge tier | 
					
						
							|  |  |  |         # Corresponds to the JSON property `badgeTier` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :badge_tier | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The list of Google Partners certification statuses for the company. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `certificationStatuses` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PartnersV2::CertificationStatus>] | 
					
						
							|  |  |  |         attr_accessor :certification_statuses | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Company type labels listed on the company's profile. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `companyTypes` | 
					
						
							|  |  |  |         # @return [Array<String>] | 
					
						
							|  |  |  |         attr_accessor :company_types | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Represents an amount of money with its currency type. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `convertedMinMonthlyBudget` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::Money] | 
					
						
							|  |  |  |         attr_accessor :converted_min_monthly_budget | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The ID of the company. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `id` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :id | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Industries the company can help with. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `industries` | 
					
						
							|  |  |  |         # @return [Array<String>] | 
					
						
							|  |  |  |         attr_accessor :industries | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The list of localized info for the company. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `localizedInfos` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PartnersV2::LocalizedCompanyInfo>] | 
					
						
							|  |  |  |         attr_accessor :localized_infos | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The list of all company locations. | 
					
						
							|  |  |  |         # If set, must include the | 
					
						
							|  |  |  |         # primary_location | 
					
						
							|  |  |  |         # in the list. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `locations` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PartnersV2::Location>] | 
					
						
							|  |  |  |         attr_accessor :locations | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The name of the company. | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # Corresponds to the JSON property `name` | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         attr_accessor :name | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Represents an amount of money with its currency type. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `originalMinMonthlyBudget` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::Money] | 
					
						
							|  |  |  |         attr_accessor :original_min_monthly_budget | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The Primary AdWords Manager Account id. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `primaryAdwordsManagerAccountId` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :primary_adwords_manager_account_id | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The primary language code of the company, as defined by | 
					
						
							|  |  |  |         # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a> | 
					
						
							|  |  |  |         # (IETF BCP 47, "Tags for Identifying Languages"). | 
					
						
							|  |  |  |         # Corresponds to the JSON property `primaryLanguageCode` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :primary_language_code | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # A location with address and geographic coordinates. May optionally contain a | 
					
						
							|  |  |  |         # detailed (multi-field) version of the address. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `primaryLocation` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::Location] | 
					
						
							|  |  |  |         attr_accessor :primary_location | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The public viewability status of the company's profile. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `profileStatus` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :profile_status | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Basic information from a public profile. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `publicProfile` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::PublicProfile] | 
					
						
							|  |  |  |         attr_accessor :public_profile | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Information related to the ranking of the company within the list of | 
					
						
							|  |  |  |         # companies. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `ranks` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PartnersV2::Rank>] | 
					
						
							|  |  |  |         attr_accessor :ranks | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Services the company can help with. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `services` | 
					
						
							|  |  |  |         # @return [Array<String>] | 
					
						
							|  |  |  |         attr_accessor :services | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The list of Google Partners specialization statuses for the company. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `specializationStatus` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PartnersV2::SpecializationStatus>] | 
					
						
							|  |  |  |         attr_accessor :specialization_status | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # URL of the company's website. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `websiteUrl` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :website_url | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @additional_websites = args[:additional_websites] if args.key?(:additional_websites) | 
					
						
							|  |  |  |           @auto_approval_email_domains = args[:auto_approval_email_domains] if args.key?(:auto_approval_email_domains) | 
					
						
							| 
									
										
										
										
											2018-05-19 00:37:10 +00:00
										 |  |  |           @badge_authority_in_awn = args[:badge_authority_in_awn] if args.key?(:badge_authority_in_awn) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @badge_tier = args[:badge_tier] if args.key?(:badge_tier) | 
					
						
							|  |  |  |           @certification_statuses = args[:certification_statuses] if args.key?(:certification_statuses) | 
					
						
							|  |  |  |           @company_types = args[:company_types] if args.key?(:company_types) | 
					
						
							|  |  |  |           @converted_min_monthly_budget = args[:converted_min_monthly_budget] if args.key?(:converted_min_monthly_budget) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |           @id = args[:id] if args.key?(:id) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @industries = args[:industries] if args.key?(:industries) | 
					
						
							|  |  |  |           @localized_infos = args[:localized_infos] if args.key?(:localized_infos) | 
					
						
							|  |  |  |           @locations = args[:locations] if args.key?(:locations) | 
					
						
							|  |  |  |           @name = args[:name] if args.key?(:name) | 
					
						
							|  |  |  |           @original_min_monthly_budget = args[:original_min_monthly_budget] if args.key?(:original_min_monthly_budget) | 
					
						
							|  |  |  |           @primary_adwords_manager_account_id = args[:primary_adwords_manager_account_id] if args.key?(:primary_adwords_manager_account_id) | 
					
						
							|  |  |  |           @primary_language_code = args[:primary_language_code] if args.key?(:primary_language_code) | 
					
						
							|  |  |  |           @primary_location = args[:primary_location] if args.key?(:primary_location) | 
					
						
							|  |  |  |           @profile_status = args[:profile_status] if args.key?(:profile_status) | 
					
						
							|  |  |  |           @public_profile = args[:public_profile] if args.key?(:public_profile) | 
					
						
							|  |  |  |           @ranks = args[:ranks] if args.key?(:ranks) | 
					
						
							|  |  |  |           @services = args[:services] if args.key?(:services) | 
					
						
							|  |  |  |           @specialization_status = args[:specialization_status] if args.key?(:specialization_status) | 
					
						
							|  |  |  |           @website_url = args[:website_url] if args.key?(:website_url) | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # A CompanyRelation resource representing information about a user's | 
					
						
							|  |  |  |       # affiliation and standing with a company in Partners. | 
					
						
							|  |  |  |       class CompanyRelation | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The primary address for this company. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `address` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :address | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Whether the company is a Partner. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `badgeTier` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :badge_tier | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Indicates if the user is an admin for this company. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `companyAdmin` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :company_admin | 
					
						
							|  |  |  |         alias_method :company_admin?, :company_admin | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The ID of the company. There may be no id if this is a | 
					
						
							|  |  |  |         # pending company.5 | 
					
						
							|  |  |  |         # Corresponds to the JSON property `companyId` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :company_id | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The timestamp of when affiliation was requested. | 
					
						
							|  |  |  |         # @OutputOnly | 
					
						
							|  |  |  |         # Corresponds to the JSON property `creationTime` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :creation_time | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The internal company ID. | 
					
						
							|  |  |  |         # Only available for a whitelisted set of api clients. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `internalCompanyId` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :internal_company_id | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The flag that indicates if the company is pending verification. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `isPending` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :is_pending | 
					
						
							|  |  |  |         alias_method :is_pending?, :is_pending | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # A URL to a profile photo, e.g. a G+ profile photo. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `logoUrl` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :logo_url | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The AdWords manager account # associated this company. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `managerAccount` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :manager_account | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The name (in the company's primary language) for the company. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `name` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :name | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The phone number for the company's primary address. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `phoneNumber` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :phone_number | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # A location with address and geographic coordinates. May optionally contain a | 
					
						
							|  |  |  |         # detailed (multi-field) version of the address. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `primaryAddress` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::Location] | 
					
						
							|  |  |  |         attr_accessor :primary_address | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The primary country code of the company. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `primaryCountryCode` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :primary_country_code | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The primary language code of the company. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `primaryLanguageCode` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :primary_language_code | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The timestamp when the user was approved. | 
					
						
							|  |  |  |         # @OutputOnly | 
					
						
							|  |  |  |         # Corresponds to the JSON property `resolvedTimestamp` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :resolved_timestamp | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The segment the company is classified as. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `segment` | 
					
						
							|  |  |  |         # @return [Array<String>] | 
					
						
							|  |  |  |         attr_accessor :segment | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The list of Google Partners specialization statuses for the company. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `specializationStatus` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PartnersV2::SpecializationStatus>] | 
					
						
							|  |  |  |         attr_accessor :specialization_status | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The state of relationship, in terms of approvals. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `state` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :state | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The website URL for this company. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `website` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :website | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @address = args[:address] if args.key?(:address) | 
					
						
							|  |  |  |           @badge_tier = args[:badge_tier] if args.key?(:badge_tier) | 
					
						
							|  |  |  |           @company_admin = args[:company_admin] if args.key?(:company_admin) | 
					
						
							|  |  |  |           @company_id = args[:company_id] if args.key?(:company_id) | 
					
						
							|  |  |  |           @creation_time = args[:creation_time] if args.key?(:creation_time) | 
					
						
							|  |  |  |           @internal_company_id = args[:internal_company_id] if args.key?(:internal_company_id) | 
					
						
							|  |  |  |           @is_pending = args[:is_pending] if args.key?(:is_pending) | 
					
						
							|  |  |  |           @logo_url = args[:logo_url] if args.key?(:logo_url) | 
					
						
							|  |  |  |           @manager_account = args[:manager_account] if args.key?(:manager_account) | 
					
						
							|  |  |  |           @name = args[:name] if args.key?(:name) | 
					
						
							|  |  |  |           @phone_number = args[:phone_number] if args.key?(:phone_number) | 
					
						
							|  |  |  |           @primary_address = args[:primary_address] if args.key?(:primary_address) | 
					
						
							|  |  |  |           @primary_country_code = args[:primary_country_code] if args.key?(:primary_country_code) | 
					
						
							|  |  |  |           @primary_language_code = args[:primary_language_code] if args.key?(:primary_language_code) | 
					
						
							|  |  |  |           @resolved_timestamp = args[:resolved_timestamp] if args.key?(:resolved_timestamp) | 
					
						
							|  |  |  |           @segment = args[:segment] if args.key?(:segment) | 
					
						
							|  |  |  |           @specialization_status = args[:specialization_status] if args.key?(:specialization_status) | 
					
						
							|  |  |  |           @state = args[:state] if args.key?(:state) | 
					
						
							|  |  |  |           @website = args[:website] if args.key?(:website) | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Offer info by country. | 
					
						
							|  |  |  |       class CountryOfferInfo | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # (localized) Get Y amount for that country's offer. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `getYAmount` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :get_y_amount | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Country code for which offer codes may be requested. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `offerCountryCode` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :offer_country_code | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Type of offer country is eligible for. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `offerType` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :offer_type | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # (localized) Spend X amount for that country's offer. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `spendXAmount` | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :spend_x_amount | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @get_y_amount = args[:get_y_amount] if args.key?(:get_y_amount) | 
					
						
							|  |  |  |           @offer_country_code = args[:offer_country_code] if args.key?(:offer_country_code) | 
					
						
							|  |  |  |           @offer_type = args[:offer_type] if args.key?(:offer_type) | 
					
						
							|  |  |  |           @spend_x_amount = args[:spend_x_amount] if args.key?(:spend_x_amount) | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Request message for CreateLead. | 
					
						
							|  |  |  |       class CreateLeadRequest | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # A lead resource that represents an advertiser contact for a `Company`. These | 
					
						
							|  |  |  |         # are usually generated via Google Partner Search (the advertiser portal). | 
					
						
							|  |  |  |         # Corresponds to the JSON property `lead` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::Lead] | 
					
						
							|  |  |  |         attr_accessor :lead | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # <a href="https://www.google.com/recaptcha/">reCaptcha</a> challenge info. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `recaptchaChallenge` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::RecaptchaChallenge] | 
					
						
							|  |  |  |         attr_accessor :recaptcha_challenge | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Common data that is in each API request. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `requestMetadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::RequestMetadata] | 
					
						
							|  |  |  |         attr_accessor :request_metadata | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @lead = args[:lead] if args.key?(:lead) | 
					
						
							|  |  |  |           @recaptcha_challenge = args[:recaptcha_challenge] if args.key?(:recaptcha_challenge) | 
					
						
							|  |  |  |           @request_metadata = args[:request_metadata] if args.key?(:request_metadata) | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Response message for CreateLead. | 
					
						
							|  |  |  |       class CreateLeadResponse | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # A lead resource that represents an advertiser contact for a `Company`. These | 
					
						
							|  |  |  |         # are usually generated via Google Partner Search (the advertiser portal). | 
					
						
							|  |  |  |         # Corresponds to the JSON property `lead` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::Lead] | 
					
						
							|  |  |  |         attr_accessor :lead | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The outcome of <a href="https://www.google.com/recaptcha/">reCaptcha</a> | 
					
						
							|  |  |  |         # validation. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `recaptchaStatus` | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :recaptcha_status | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Common data that is in each API response. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `responseMetadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::ResponseMetadata] | 
					
						
							|  |  |  |         attr_accessor :response_metadata | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @lead = args[:lead] if args.key?(:lead) | 
					
						
							|  |  |  |           @recaptcha_status = args[:recaptcha_status] if args.key?(:recaptcha_status) | 
					
						
							|  |  |  |           @response_metadata = args[:response_metadata] if args.key?(:response_metadata) | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2018-09-27 00:44:27 +00:00
										 |  |  |       # Represents a whole or partial calendar date, e.g. a birthday. The time of day | 
					
						
							| 
									
										
										
										
											2018-09-08 00:36:18 +00:00
										 |  |  |       # and time zone are either specified elsewhere or are not significant. The date | 
					
						
							| 
									
										
										
										
											2018-09-27 00:44:27 +00:00
										 |  |  |       # is relative to the Proleptic Gregorian Calendar. This can represent: | 
					
						
							|  |  |  |       # * A full date, with non-zero year, month and day values | 
					
						
							|  |  |  |       # * A month and day value, with a zero year, e.g. an anniversary | 
					
						
							|  |  |  |       # * A year on its own, with zero month and day values | 
					
						
							|  |  |  |       # * A year and month value, with a zero day, e.g. a credit card expiration date | 
					
						
							|  |  |  |       # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       class Date | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 | 
					
						
							| 
									
										
										
										
											2018-09-27 00:44:27 +00:00
										 |  |  |         # if specifying a year by itself or a year and month where the day is not | 
					
						
							|  |  |  |         # significant. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `day` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :day | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2018-09-27 00:44:27 +00:00
										 |  |  |         # Month of year. Must be from 1 to 12, or 0 if specifying a year without a | 
					
						
							|  |  |  |         # month and day. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `month` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :month | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Year of date. Must be from 1 to 9999, or 0 if specifying a date without | 
					
						
							|  |  |  |         # a year. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `year` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :year | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @day = args[:day] if args.key?(:day) | 
					
						
							|  |  |  |           @month = args[:month] if args.key?(:month) | 
					
						
							|  |  |  |           @year = args[:year] if args.key?(:year) | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Debug information about this request. | 
					
						
							|  |  |  |       class DebugInfo | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Info about the server that serviced this request. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `serverInfo` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :server_info | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Server-side debug stack trace. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `serverTraceInfo` | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :server_trace_info | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # URL of the service that handled this request. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `serviceUrl` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :service_url | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @server_info = args[:server_info] if args.key?(:server_info) | 
					
						
							|  |  |  |           @server_trace_info = args[:server_trace_info] if args.key?(:server_trace_info) | 
					
						
							|  |  |  |           @service_url = args[:service_url] if args.key?(:service_url) | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # A generic empty message that you can re-use to avoid defining duplicated | 
					
						
							|  |  |  |       # empty messages in your APIs. A typical example is to use it as the request | 
					
						
							|  |  |  |       # or the response type of an API method. For instance: | 
					
						
							|  |  |  |       # service Foo ` | 
					
						
							|  |  |  |       # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); | 
					
						
							|  |  |  |       # ` | 
					
						
							|  |  |  |       # The JSON representation for `Empty` is empty JSON object ````. | 
					
						
							|  |  |  |       class Empty | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Key value data pair for an event. | 
					
						
							|  |  |  |       class EventData | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Data type. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `key` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :key | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Data values. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `values` | 
					
						
							|  |  |  |         # @return [Array<String>] | 
					
						
							|  |  |  |         attr_accessor :values | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @key = args[:key] if args.key?(:key) | 
					
						
							|  |  |  |           @values = args[:values] if args.key?(:values) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # A user's information on a specific exam. | 
					
						
							|  |  |  |       class ExamStatus | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The type of the exam. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `examType` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :exam_type | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Date this exam is due to expire. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `expiration` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :expiration | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The date the user last passed this exam. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `lastPassed` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :last_passed | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Whether this exam has been passed and not expired. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `passed` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :passed | 
					
						
							|  |  |  |         alias_method :passed?, :passed | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The date the user last taken this exam. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `taken` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :taken | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Whether this exam is in the state of warning. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `warning` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :warning | 
					
						
							|  |  |  |         alias_method :warning?, :warning | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @exam_type = args[:exam_type] if args.key?(:exam_type) | 
					
						
							|  |  |  |           @expiration = args[:expiration] if args.key?(:expiration) | 
					
						
							|  |  |  |           @last_passed = args[:last_passed] if args.key?(:last_passed) | 
					
						
							|  |  |  |           @passed = args[:passed] if args.key?(:passed) | 
					
						
							|  |  |  |           @taken = args[:taken] if args.key?(:taken) | 
					
						
							|  |  |  |           @warning = args[:warning] if args.key?(:warning) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Response message for GetCompany. | 
					
						
							|  |  |  |       class GetCompanyResponse | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # A company resource in the Google Partners API. Once certified, it qualifies | 
					
						
							|  |  |  |         # for being searched by advertisers. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `company` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::Company] | 
					
						
							|  |  |  |         attr_accessor :company | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Common data that is in each API response. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `responseMetadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::ResponseMetadata] | 
					
						
							|  |  |  |         attr_accessor :response_metadata | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2017-03-27 22:14:47 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @company = args[:company] if args.key?(:company) | 
					
						
							|  |  |  |           @response_metadata = args[:response_metadata] if args.key?(:response_metadata) | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Response message for | 
					
						
							|  |  |  |       # GetPartnersStatus. | 
					
						
							|  |  |  |       class GetPartnersStatusResponse | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Common data that is in each API response. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `responseMetadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::ResponseMetadata] | 
					
						
							|  |  |  |         attr_accessor :response_metadata | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @response_metadata = args[:response_metadata] if args.key?(:response_metadata) | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Historical information about a Google Partners Offer. | 
					
						
							|  |  |  |       class HistoricalOffer | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Client's AdWords page URL. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `adwordsUrl` | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :adwords_url | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Email address for client. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `clientEmail` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :client_email | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # ID of client. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `clientId` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :client_id | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Name of the client. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `clientName` | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :client_name | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Time offer was first created. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `creationTime` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :creation_time | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Time this offer expires. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `expirationTime` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :expiration_time | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Time last action was taken. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `lastModifiedTime` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :last_modified_time | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Offer code. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `offerCode` | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :offer_code | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Country Code for the offer country. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `offerCountryCode` | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :offer_country_code | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Type of offer. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `offerType` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :offer_type | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Name (First + Last) of the partners user to whom the incentive is allocated. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `senderName` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :sender_name | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Status of the offer. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `status` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :status | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @adwords_url = args[:adwords_url] if args.key?(:adwords_url) | 
					
						
							|  |  |  |           @client_email = args[:client_email] if args.key?(:client_email) | 
					
						
							|  |  |  |           @client_id = args[:client_id] if args.key?(:client_id) | 
					
						
							|  |  |  |           @client_name = args[:client_name] if args.key?(:client_name) | 
					
						
							|  |  |  |           @creation_time = args[:creation_time] if args.key?(:creation_time) | 
					
						
							|  |  |  |           @expiration_time = args[:expiration_time] if args.key?(:expiration_time) | 
					
						
							|  |  |  |           @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time) | 
					
						
							|  |  |  |           @offer_code = args[:offer_code] if args.key?(:offer_code) | 
					
						
							|  |  |  |           @offer_country_code = args[:offer_country_code] if args.key?(:offer_country_code) | 
					
						
							|  |  |  |           @offer_type = args[:offer_type] if args.key?(:offer_type) | 
					
						
							|  |  |  |           @sender_name = args[:sender_name] if args.key?(:sender_name) | 
					
						
							|  |  |  |           @status = args[:status] if args.key?(:status) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # An object representing a latitude/longitude pair. This is expressed as a pair | 
					
						
							|  |  |  |       # of doubles representing degrees latitude and degrees longitude. Unless | 
					
						
							|  |  |  |       # specified otherwise, this must conform to the | 
					
						
							|  |  |  |       # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84 | 
					
						
							|  |  |  |       # standard</a>. Values must be within normalized ranges. | 
					
						
							|  |  |  |       class LatLng | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The latitude in degrees. It must be in the range [-90.0, +90.0]. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `latitude` | 
					
						
							|  |  |  |         # @return [Float] | 
					
						
							|  |  |  |         attr_accessor :latitude | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The longitude in degrees. It must be in the range [-180.0, +180.0]. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `longitude` | 
					
						
							|  |  |  |         # @return [Float] | 
					
						
							|  |  |  |         attr_accessor :longitude | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @latitude = args[:latitude] if args.key?(:latitude) | 
					
						
							|  |  |  |           @longitude = args[:longitude] if args.key?(:longitude) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # A lead resource that represents an advertiser contact for a `Company`. These | 
					
						
							|  |  |  |       # are usually generated via Google Partner Search (the advertiser portal). | 
					
						
							|  |  |  |       class Lead | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The AdWords Customer ID of the lead. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `adwordsCustomerId` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :adwords_customer_id | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Comments lead source gave. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `comments` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :comments | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Timestamp of when this lead was created. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `createTime` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :create_time | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Email address of lead source. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `email` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :email | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Last name of lead source. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `familyName` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :family_name | 
					
						
							| 
									
										
										
										
											2017-03-27 22:14:47 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # First name of lead source. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `givenName` | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :given_name | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # List of reasons for using Google Partner Search and creating a lead. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `gpsMotivations` | 
					
						
							|  |  |  |         # @return [Array<String>] | 
					
						
							|  |  |  |         attr_accessor :gps_motivations | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # ID of the lead. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `id` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :id | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Language code of the lead's language preference, as defined by | 
					
						
							|  |  |  |         # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a> | 
					
						
							|  |  |  |         # (IETF BCP 47, "Tags for Identifying Languages"). | 
					
						
							|  |  |  |         # Corresponds to the JSON property `languageCode` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :language_code | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Whether or not the lead signed up for marketing emails | 
					
						
							|  |  |  |         # Corresponds to the JSON property `marketingOptIn` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [Boolean] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :marketing_opt_in | 
					
						
							|  |  |  |         alias_method :marketing_opt_in?, :marketing_opt_in | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Represents an amount of money with its currency type. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `minMonthlyBudget` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::Money] | 
					
						
							|  |  |  |         attr_accessor :min_monthly_budget | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Phone number of lead source. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `phoneNumber` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :phone_number | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The lead's state in relation to the company. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `state` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :state | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Type of lead. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `type` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :type | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Website URL of lead source. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `websiteUrl` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :website_url | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @adwords_customer_id = args[:adwords_customer_id] if args.key?(:adwords_customer_id) | 
					
						
							|  |  |  |           @comments = args[:comments] if args.key?(:comments) | 
					
						
							|  |  |  |           @create_time = args[:create_time] if args.key?(:create_time) | 
					
						
							|  |  |  |           @email = args[:email] if args.key?(:email) | 
					
						
							|  |  |  |           @family_name = args[:family_name] if args.key?(:family_name) | 
					
						
							|  |  |  |           @given_name = args[:given_name] if args.key?(:given_name) | 
					
						
							|  |  |  |           @gps_motivations = args[:gps_motivations] if args.key?(:gps_motivations) | 
					
						
							|  |  |  |           @id = args[:id] if args.key?(:id) | 
					
						
							|  |  |  |           @language_code = args[:language_code] if args.key?(:language_code) | 
					
						
							|  |  |  |           @marketing_opt_in = args[:marketing_opt_in] if args.key?(:marketing_opt_in) | 
					
						
							|  |  |  |           @min_monthly_budget = args[:min_monthly_budget] if args.key?(:min_monthly_budget) | 
					
						
							|  |  |  |           @phone_number = args[:phone_number] if args.key?(:phone_number) | 
					
						
							|  |  |  |           @state = args[:state] if args.key?(:state) | 
					
						
							|  |  |  |           @type = args[:type] if args.key?(:type) | 
					
						
							|  |  |  |           @website_url = args[:website_url] if args.key?(:website_url) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Response message for | 
					
						
							|  |  |  |       # ListAnalytics. | 
					
						
							|  |  |  |       class ListAnalyticsResponse | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The list of analytics. | 
					
						
							|  |  |  |         # Sorted in ascending order of | 
					
						
							|  |  |  |         # Analytics.event_date. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `analytics` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PartnersV2::Analytics>] | 
					
						
							|  |  |  |         attr_accessor :analytics | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Analytics aggregated data for a `Company` for a given date range. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `analyticsSummary` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::AnalyticsSummary] | 
					
						
							|  |  |  |         attr_accessor :analytics_summary | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # A token to retrieve next page of results. | 
					
						
							|  |  |  |         # Pass this value in the `ListAnalyticsRequest.page_token` field in the | 
					
						
							|  |  |  |         # subsequent call to | 
					
						
							|  |  |  |         # ListAnalytics to retrieve the | 
					
						
							|  |  |  |         # next page of results. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `nextPageToken` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :next_page_token | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |         # Common data that is in each API response. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `responseMetadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::ResponseMetadata] | 
					
						
							|  |  |  |         attr_accessor :response_metadata | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @analytics = args[:analytics] if args.key?(:analytics) | 
					
						
							|  |  |  |           @analytics_summary = args[:analytics_summary] if args.key?(:analytics_summary) | 
					
						
							|  |  |  |           @next_page_token = args[:next_page_token] if args.key?(:next_page_token) | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |           @response_metadata = args[:response_metadata] if args.key?(:response_metadata) | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Response message for | 
					
						
							|  |  |  |       # ListCompanies. | 
					
						
							|  |  |  |       class ListCompaniesResponse | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The list of companies. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `companies` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PartnersV2::Company>] | 
					
						
							|  |  |  |         attr_accessor :companies | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # A token to retrieve next page of results. | 
					
						
							|  |  |  |         # Pass this value in the `ListCompaniesRequest.page_token` field in the | 
					
						
							|  |  |  |         # subsequent call to | 
					
						
							|  |  |  |         # ListCompanies to retrieve the | 
					
						
							|  |  |  |         # next page of results. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `nextPageToken` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :next_page_token | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Common data that is in each API response. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `responseMetadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::ResponseMetadata] | 
					
						
							|  |  |  |         attr_accessor :response_metadata | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @companies = args[:companies] if args.key?(:companies) | 
					
						
							|  |  |  |           @next_page_token = args[:next_page_token] if args.key?(:next_page_token) | 
					
						
							|  |  |  |           @response_metadata = args[:response_metadata] if args.key?(:response_metadata) | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Response message for ListLeads. | 
					
						
							|  |  |  |       class ListLeadsResponse | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The list of leads. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `leads` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PartnersV2::Lead>] | 
					
						
							|  |  |  |         attr_accessor :leads | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         # A token to retrieve next page of results. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Pass this value in the `ListLeadsRequest.page_token` field in the | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         # subsequent call to | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # ListLeads to retrieve the | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         # next page of results. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `nextPageToken` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :next_page_token | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Common data that is in each API response. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `responseMetadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::ResponseMetadata] | 
					
						
							|  |  |  |         attr_accessor :response_metadata | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The total count of leads for the given company. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `totalSize` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :total_size | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @leads = args[:leads] if args.key?(:leads) | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |           @next_page_token = args[:next_page_token] if args.key?(:next_page_token) | 
					
						
							|  |  |  |           @response_metadata = args[:response_metadata] if args.key?(:response_metadata) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @total_size = args[:total_size] if args.key?(:total_size) | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Response for ListOfferHistory. | 
					
						
							|  |  |  |       class ListOffersHistoryResponse | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # True if the user has the option to show entire company history. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `canShowEntireCompany` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :can_show_entire_company | 
					
						
							|  |  |  |         alias_method :can_show_entire_company?, :can_show_entire_company | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Supply this token in a ListOffersHistoryRequest to retrieve the next page. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `nextPageToken` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :next_page_token | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Historical offers meeting request. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `offers` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PartnersV2::HistoricalOffer>] | 
					
						
							|  |  |  |         attr_accessor :offers | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Common data that is in each API response. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `responseMetadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::ResponseMetadata] | 
					
						
							|  |  |  |         attr_accessor :response_metadata | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # True if this response is showing entire company history. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `showingEntireCompany` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :showing_entire_company | 
					
						
							|  |  |  |         alias_method :showing_entire_company?, :showing_entire_company | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Number of results across all pages. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `totalResults` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :total_results | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @can_show_entire_company = args[:can_show_entire_company] if args.key?(:can_show_entire_company) | 
					
						
							|  |  |  |           @next_page_token = args[:next_page_token] if args.key?(:next_page_token) | 
					
						
							|  |  |  |           @offers = args[:offers] if args.key?(:offers) | 
					
						
							|  |  |  |           @response_metadata = args[:response_metadata] if args.key?(:response_metadata) | 
					
						
							|  |  |  |           @showing_entire_company = args[:showing_entire_company] if args.key?(:showing_entire_company) | 
					
						
							|  |  |  |           @total_results = args[:total_results] if args.key?(:total_results) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Response for ListOffer. | 
					
						
							|  |  |  |       class ListOffersResponse | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Available Offers to be distributed. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `availableOffers` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PartnersV2::AvailableOffer>] | 
					
						
							|  |  |  |         attr_accessor :available_offers | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Reason why no Offers are available. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `noOfferReason` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :no_offer_reason | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Common data that is in each API response. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `responseMetadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::ResponseMetadata] | 
					
						
							|  |  |  |         attr_accessor :response_metadata | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @available_offers = args[:available_offers] if args.key?(:available_offers) | 
					
						
							|  |  |  |           @no_offer_reason = args[:no_offer_reason] if args.key?(:no_offer_reason) | 
					
						
							|  |  |  |           @response_metadata = args[:response_metadata] if args.key?(:response_metadata) | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Response message for | 
					
						
							|  |  |  |       # ListUserStates. | 
					
						
							|  |  |  |       class ListUserStatesResponse | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Common data that is in each API response. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `responseMetadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::ResponseMetadata] | 
					
						
							|  |  |  |         attr_accessor :response_metadata | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # User's states. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `userStates` | 
					
						
							|  |  |  |         # @return [Array<String>] | 
					
						
							|  |  |  |         attr_accessor :user_states | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @response_metadata = args[:response_metadata] if args.key?(:response_metadata) | 
					
						
							|  |  |  |           @user_states = args[:user_states] if args.key?(:user_states) | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |       # The localized company information. | 
					
						
							|  |  |  |       class LocalizedCompanyInfo | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # List of country codes for the localized company info. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `countryCodes` | 
					
						
							|  |  |  |         # @return [Array<String>] | 
					
						
							|  |  |  |         attr_accessor :country_codes | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # Localized display name. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `displayName` | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         attr_accessor :display_name | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # Language code of the localized company info, as defined by | 
					
						
							|  |  |  |         # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a> | 
					
						
							|  |  |  |         # (IETF BCP 47, "Tags for Identifying Languages"). | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |         # Corresponds to the JSON property `languageCode` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :language_code | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # Localized brief description that the company uses to advertise themselves. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `overview` | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         attr_accessor :overview | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @country_codes = args[:country_codes] if args.key?(:country_codes) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |           @display_name = args[:display_name] if args.key?(:display_name) | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |           @language_code = args[:language_code] if args.key?(:language_code) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |           @overview = args[:overview] if args.key?(:overview) | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # A location with address and geographic coordinates. May optionally contain a | 
					
						
							|  |  |  |       # detailed (multi-field) version of the address. | 
					
						
							|  |  |  |       class Location | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The single string version of the address. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `address` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :address | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The following address lines represent the most specific part of any | 
					
						
							|  |  |  |         # address. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `addressLine` | 
					
						
							|  |  |  |         # @return [Array<String>] | 
					
						
							|  |  |  |         attr_accessor :address_line | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Top-level administrative subdivision of this country. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `administrativeArea` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :administrative_area | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Dependent locality or sublocality. Used for UK dependent localities, or | 
					
						
							|  |  |  |         # neighborhoods or boroughs in other locations. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `dependentLocality` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :dependent_locality | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Language code of the address. Should be in BCP 47 format. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `languageCode` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :language_code | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # An object representing a latitude/longitude pair. This is expressed as a pair | 
					
						
							|  |  |  |         # of doubles representing degrees latitude and degrees longitude. Unless | 
					
						
							|  |  |  |         # specified otherwise, this must conform to the | 
					
						
							|  |  |  |         # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84 | 
					
						
							|  |  |  |         # standard</a>. Values must be within normalized ranges. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `latLng` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::LatLng] | 
					
						
							|  |  |  |         attr_accessor :lat_lng | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Generally refers to the city/town portion of an address. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `locality` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :locality | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Values are frequently alphanumeric. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `postalCode` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :postal_code | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # CLDR (Common Locale Data Repository) region code . | 
					
						
							|  |  |  |         # Corresponds to the JSON property `regionCode` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :region_code | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Use of this code is very country-specific, but will refer to a secondary | 
					
						
							|  |  |  |         # classification code for sorting mail. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `sortingCode` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :sorting_code | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @address = args[:address] if args.key?(:address) | 
					
						
							|  |  |  |           @address_line = args[:address_line] if args.key?(:address_line) | 
					
						
							|  |  |  |           @administrative_area = args[:administrative_area] if args.key?(:administrative_area) | 
					
						
							|  |  |  |           @dependent_locality = args[:dependent_locality] if args.key?(:dependent_locality) | 
					
						
							|  |  |  |           @language_code = args[:language_code] if args.key?(:language_code) | 
					
						
							|  |  |  |           @lat_lng = args[:lat_lng] if args.key?(:lat_lng) | 
					
						
							|  |  |  |           @locality = args[:locality] if args.key?(:locality) | 
					
						
							|  |  |  |           @postal_code = args[:postal_code] if args.key?(:postal_code) | 
					
						
							|  |  |  |           @region_code = args[:region_code] if args.key?(:region_code) | 
					
						
							|  |  |  |           @sorting_code = args[:sorting_code] if args.key?(:sorting_code) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |       # Request message for | 
					
						
							|  |  |  |       # LogClientMessage. | 
					
						
							|  |  |  |       class LogMessageRequest | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Map of client info, such as URL, browser navigator, browser platform, etc. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `clientInfo` | 
					
						
							|  |  |  |         # @return [Hash<String,String>] | 
					
						
							|  |  |  |         attr_accessor :client_info | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Details about the client message. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `details` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :details | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Message level of client message. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `level` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :level | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Common data that is in each API request. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `requestMetadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::RequestMetadata] | 
					
						
							|  |  |  |         attr_accessor :request_metadata | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @client_info = args[:client_info] if args.key?(:client_info) | 
					
						
							|  |  |  |           @details = args[:details] if args.key?(:details) | 
					
						
							|  |  |  |           @level = args[:level] if args.key?(:level) | 
					
						
							|  |  |  |           @request_metadata = args[:request_metadata] if args.key?(:request_metadata) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |       # Response message for | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # LogClientMessage. | 
					
						
							|  |  |  |       class LogMessageResponse | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # Common data that is in each API response. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `responseMetadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::ResponseMetadata] | 
					
						
							|  |  |  |         attr_accessor :response_metadata | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |           @response_metadata = args[:response_metadata] if args.key?(:response_metadata) | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Request message for | 
					
						
							|  |  |  |       # LogUserEvent. | 
					
						
							|  |  |  |       class LogUserEventRequest | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The action that occurred. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `eventAction` | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :event_action | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The category the action belongs to. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `eventCategory` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :event_category | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # List of event data for the event. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `eventDatas` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PartnersV2::EventData>] | 
					
						
							|  |  |  |         attr_accessor :event_datas | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The scope of the event. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `eventScope` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :event_scope | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # A lead resource that represents an advertiser contact for a `Company`. These | 
					
						
							|  |  |  |         # are usually generated via Google Partner Search (the advertiser portal). | 
					
						
							|  |  |  |         # Corresponds to the JSON property `lead` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::Lead] | 
					
						
							|  |  |  |         attr_accessor :lead | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Common data that is in each API request. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `requestMetadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::RequestMetadata] | 
					
						
							|  |  |  |         attr_accessor :request_metadata | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The URL where the event occurred. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `url` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :url | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @event_action = args[:event_action] if args.key?(:event_action) | 
					
						
							|  |  |  |           @event_category = args[:event_category] if args.key?(:event_category) | 
					
						
							|  |  |  |           @event_datas = args[:event_datas] if args.key?(:event_datas) | 
					
						
							|  |  |  |           @event_scope = args[:event_scope] if args.key?(:event_scope) | 
					
						
							|  |  |  |           @lead = args[:lead] if args.key?(:lead) | 
					
						
							|  |  |  |           @request_metadata = args[:request_metadata] if args.key?(:request_metadata) | 
					
						
							|  |  |  |           @url = args[:url] if args.key?(:url) | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |       # Response message for | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # LogUserEvent. | 
					
						
							|  |  |  |       class LogUserEventResponse | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # Common data that is in each API response. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `responseMetadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::ResponseMetadata] | 
					
						
							|  |  |  |         attr_accessor :response_metadata | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |           @response_metadata = args[:response_metadata] if args.key?(:response_metadata) | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Represents an amount of money with its currency type. | 
					
						
							|  |  |  |       class Money | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The 3-letter currency code defined in ISO 4217. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `currencyCode` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :currency_code | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Number of nano (10^-9) units of the amount. | 
					
						
							|  |  |  |         # The value must be between -999,999,999 and +999,999,999 inclusive. | 
					
						
							|  |  |  |         # If `units` is positive, `nanos` must be positive or zero. | 
					
						
							|  |  |  |         # If `units` is zero, `nanos` can be positive, zero, or negative. | 
					
						
							|  |  |  |         # If `units` is negative, `nanos` must be negative or zero. | 
					
						
							|  |  |  |         # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `nanos` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :nanos | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The whole units of the amount. | 
					
						
							|  |  |  |         # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `units` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :units | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @currency_code = args[:currency_code] if args.key?(:currency_code) | 
					
						
							|  |  |  |           @nanos = args[:nanos] if args.key?(:nanos) | 
					
						
							|  |  |  |           @units = args[:units] if args.key?(:units) | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Customers qualified for an offer. | 
					
						
							|  |  |  |       class OfferCustomer | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # URL to the customer's AdWords page. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `adwordsUrl` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :adwords_url | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Country code of the customer. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `countryCode` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :country_code | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Time the customer was created. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `creationTime` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :creation_time | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Days the customer is still eligible. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `eligibilityDaysLeft` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :eligibility_days_left | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # External CID for the customer. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `externalCid` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :external_cid | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Formatted Get Y amount with currency code. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `getYAmount` | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :get_y_amount | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Name of the customer. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `name` | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :name | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Type of the offer | 
					
						
							|  |  |  |         # Corresponds to the JSON property `offerType` | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :offer_type | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Formatted Spend X amount with currency code. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `spendXAmount` | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :spend_x_amount | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @adwords_url = args[:adwords_url] if args.key?(:adwords_url) | 
					
						
							|  |  |  |           @country_code = args[:country_code] if args.key?(:country_code) | 
					
						
							|  |  |  |           @creation_time = args[:creation_time] if args.key?(:creation_time) | 
					
						
							|  |  |  |           @eligibility_days_left = args[:eligibility_days_left] if args.key?(:eligibility_days_left) | 
					
						
							|  |  |  |           @external_cid = args[:external_cid] if args.key?(:external_cid) | 
					
						
							|  |  |  |           @get_y_amount = args[:get_y_amount] if args.key?(:get_y_amount) | 
					
						
							|  |  |  |           @name = args[:name] if args.key?(:name) | 
					
						
							|  |  |  |           @offer_type = args[:offer_type] if args.key?(:offer_type) | 
					
						
							|  |  |  |           @spend_x_amount = args[:spend_x_amount] if args.key?(:spend_x_amount) | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # A set of opt-ins for a user. | 
					
						
							|  |  |  |       class OptIns | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # An opt-in about receiving email from Partners marketing teams. Includes | 
					
						
							|  |  |  |         # member-only events and special promotional offers for Google products. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `marketComm` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :market_comm | 
					
						
							|  |  |  |         alias_method :market_comm?, :market_comm | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # An opt-in about receiving email with customized AdWords campaign management | 
					
						
							|  |  |  |         # tips. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `performanceSuggestions` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :performance_suggestions | 
					
						
							|  |  |  |         alias_method :performance_suggestions?, :performance_suggestions | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # An opt-in to allow recieivng phone calls about their Partners account. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `phoneContact` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :phone_contact | 
					
						
							|  |  |  |         alias_method :phone_contact?, :phone_contact | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # An opt-in to receive special promotional gifts and material in the mail. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `physicalMail` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :physical_mail | 
					
						
							|  |  |  |         alias_method :physical_mail?, :physical_mail | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # An opt-in about receiving email regarding new features and products. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `specialOffers` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :special_offers | 
					
						
							|  |  |  |         alias_method :special_offers?, :special_offers | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @market_comm = args[:market_comm] if args.key?(:market_comm) | 
					
						
							|  |  |  |           @performance_suggestions = args[:performance_suggestions] if args.key?(:performance_suggestions) | 
					
						
							|  |  |  |           @phone_contact = args[:phone_contact] if args.key?(:phone_contact) | 
					
						
							|  |  |  |           @physical_mail = args[:physical_mail] if args.key?(:physical_mail) | 
					
						
							|  |  |  |           @special_offers = args[:special_offers] if args.key?(:special_offers) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Basic information from a public profile. | 
					
						
							|  |  |  |       class PublicProfile | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The URL to the main display image of the public profile. Being deprecated. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `displayImageUrl` | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :display_image_url | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The display name of the public profile. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `displayName` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :display_name | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The ID which can be used to retrieve more details about the public profile. | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # Corresponds to the JSON property `id` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :id | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The URL to the main profile image of the public profile. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `profileImage` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :profile_image | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The URL of the public profile. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `url` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :url | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @display_image_url = args[:display_image_url] if args.key?(:display_image_url) | 
					
						
							|  |  |  |           @display_name = args[:display_name] if args.key?(:display_name) | 
					
						
							|  |  |  |           @id = args[:id] if args.key?(:id) | 
					
						
							|  |  |  |           @profile_image = args[:profile_image] if args.key?(:profile_image) | 
					
						
							|  |  |  |           @url = args[:url] if args.key?(:url) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Information related to ranking of results. | 
					
						
							|  |  |  |       class Rank | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The type of rank. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `type` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :type | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The numerical value of the rank. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `value` | 
					
						
							|  |  |  |         # @return [Float] | 
					
						
							|  |  |  |         attr_accessor :value | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @type = args[:type] if args.key?(:type) | 
					
						
							|  |  |  |           @value = args[:value] if args.key?(:value) | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # <a href="https://www.google.com/recaptcha/">reCaptcha</a> challenge info. | 
					
						
							|  |  |  |       class RecaptchaChallenge | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The ID of the reCaptcha challenge. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `id` | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :id | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The response to the reCaptcha challenge. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `response` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :response | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @id = args[:id] if args.key?(:id) | 
					
						
							|  |  |  |           @response = args[:response] if args.key?(:response) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Common data that is in each API request. | 
					
						
							|  |  |  |       class RequestMetadata | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Experiment IDs the current request belongs to. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `experimentIds` | 
					
						
							|  |  |  |         # @return [Array<String>] | 
					
						
							|  |  |  |         attr_accessor :experiment_ids | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Locale to use for the current request. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `locale` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :locale | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Google Partners session ID. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `partnersSessionId` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :partners_session_id | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Source of traffic for the current request. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `trafficSource` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::TrafficSource] | 
					
						
							|  |  |  |         attr_accessor :traffic_source | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Values to use instead of the user's respective defaults. These are only | 
					
						
							|  |  |  |         # honored by whitelisted products. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `userOverrides` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::UserOverrides] | 
					
						
							|  |  |  |         attr_accessor :user_overrides | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @experiment_ids = args[:experiment_ids] if args.key?(:experiment_ids) | 
					
						
							|  |  |  |           @locale = args[:locale] if args.key?(:locale) | 
					
						
							|  |  |  |           @partners_session_id = args[:partners_session_id] if args.key?(:partners_session_id) | 
					
						
							|  |  |  |           @traffic_source = args[:traffic_source] if args.key?(:traffic_source) | 
					
						
							|  |  |  |           @user_overrides = args[:user_overrides] if args.key?(:user_overrides) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Common data that is in each API response. | 
					
						
							|  |  |  |       class ResponseMetadata | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Debug information about this request. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `debugInfo` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::DebugInfo] | 
					
						
							|  |  |  |         attr_accessor :debug_info | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @debug_info = args[:debug_info] if args.key?(:debug_info) | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Agency specialization status | 
					
						
							|  |  |  |       class SpecializationStatus | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The specialization this status is for. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `badgeSpecialization` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :badge_specialization | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # State of agency specialization. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `badgeSpecializationState` | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :badge_specialization_state | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @badge_specialization = args[:badge_specialization] if args.key?(:badge_specialization) | 
					
						
							|  |  |  |           @badge_specialization_state = args[:badge_specialization_state] if args.key?(:badge_specialization_state) | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Source of traffic for the current request. | 
					
						
							|  |  |  |       class TrafficSource | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Identifier to indicate where the traffic comes from. | 
					
						
							|  |  |  |         # An identifier has multiple letters created by a team which redirected the | 
					
						
							|  |  |  |         # traffic to us. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `trafficSourceId` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :traffic_source_id | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Second level identifier to indicate where the traffic comes from. | 
					
						
							|  |  |  |         # An identifier has multiple letters created by a team which redirected the | 
					
						
							|  |  |  |         # traffic to us. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `trafficSubId` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :traffic_sub_id | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @traffic_source_id = args[:traffic_source_id] if args.key?(:traffic_source_id) | 
					
						
							|  |  |  |           @traffic_sub_id = args[:traffic_sub_id] if args.key?(:traffic_sub_id) | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # A resource representing a user of the Partners platform. | 
					
						
							|  |  |  |       class User | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2018-04-04 00:35:50 +00:00
										 |  |  |         # Whether or not the user has opted to share their Academy for Ads info with | 
					
						
							|  |  |  |         # Google Partners. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `afaInfoShared` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :afa_info_shared | 
					
						
							|  |  |  |         alias_method :afa_info_shared?, :afa_info_shared | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # This is the list of AdWords Manager Accounts the user has edit access to. | 
					
						
							|  |  |  |         # If the user has edit access to multiple accounts, the user can choose the | 
					
						
							|  |  |  |         # preferred account and we use this when a personal account is needed. Can | 
					
						
							|  |  |  |         # be empty meaning the user has access to no accounts. | 
					
						
							|  |  |  |         # @OutputOnly | 
					
						
							|  |  |  |         # Corresponds to the JSON property `availableAdwordsManagerAccounts` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PartnersV2::AdWordsManagerAccountInfo>] | 
					
						
							|  |  |  |         attr_accessor :available_adwords_manager_accounts | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The list of achieved certifications. These are calculated based on exam | 
					
						
							|  |  |  |         # results and other requirements. | 
					
						
							|  |  |  |         # @OutputOnly | 
					
						
							|  |  |  |         # Corresponds to the JSON property `certificationStatus` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PartnersV2::Certification>] | 
					
						
							|  |  |  |         attr_accessor :certification_status | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # A CompanyRelation resource representing information about a user's | 
					
						
							|  |  |  |         # affiliation and standing with a company in Partners. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `company` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::CompanyRelation] | 
					
						
							|  |  |  |         attr_accessor :company | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The email address used by the user used for company verification. | 
					
						
							|  |  |  |         # @OutputOnly | 
					
						
							|  |  |  |         # Corresponds to the JSON property `companyVerificationEmail` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :company_verification_email | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The list of exams the user ever taken. For each type of exam, only one | 
					
						
							|  |  |  |         # entry is listed. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `examStatus` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PartnersV2::ExamStatus>] | 
					
						
							|  |  |  |         attr_accessor :exam_status | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The ID of the user. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `id` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :id | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The internal user ID. | 
					
						
							|  |  |  |         # Only available for a whitelisted set of api clients. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `internalId` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :internal_id | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The most recent time the user interacted with the Partners site. | 
					
						
							|  |  |  |         # @OutputOnly | 
					
						
							|  |  |  |         # Corresponds to the JSON property `lastAccessTime` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :last_access_time | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The list of emails the user has access to/can select as primary. | 
					
						
							|  |  |  |         # @OutputOnly | 
					
						
							|  |  |  |         # Corresponds to the JSON property `primaryEmails` | 
					
						
							|  |  |  |         # @return [Array<String>] | 
					
						
							|  |  |  |         attr_accessor :primary_emails | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The profile information of a Partners user. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `profile` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::UserProfile] | 
					
						
							|  |  |  |         attr_accessor :profile | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Basic information from a public profile. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `publicProfile` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::PublicProfile] | 
					
						
							|  |  |  |         attr_accessor :public_profile | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2018-04-04 00:35:50 +00:00
										 |  |  |           @afa_info_shared = args[:afa_info_shared] if args.key?(:afa_info_shared) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @available_adwords_manager_accounts = args[:available_adwords_manager_accounts] if args.key?(:available_adwords_manager_accounts) | 
					
						
							|  |  |  |           @certification_status = args[:certification_status] if args.key?(:certification_status) | 
					
						
							|  |  |  |           @company = args[:company] if args.key?(:company) | 
					
						
							|  |  |  |           @company_verification_email = args[:company_verification_email] if args.key?(:company_verification_email) | 
					
						
							|  |  |  |           @exam_status = args[:exam_status] if args.key?(:exam_status) | 
					
						
							|  |  |  |           @id = args[:id] if args.key?(:id) | 
					
						
							|  |  |  |           @internal_id = args[:internal_id] if args.key?(:internal_id) | 
					
						
							|  |  |  |           @last_access_time = args[:last_access_time] if args.key?(:last_access_time) | 
					
						
							|  |  |  |           @primary_emails = args[:primary_emails] if args.key?(:primary_emails) | 
					
						
							|  |  |  |           @profile = args[:profile] if args.key?(:profile) | 
					
						
							|  |  |  |           @public_profile = args[:public_profile] if args.key?(:public_profile) | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Values to use instead of the user's respective defaults. These are only | 
					
						
							|  |  |  |       # honored by whitelisted products. | 
					
						
							|  |  |  |       class UserOverrides | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # IP address to use instead of the user's geo-located IP address. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `ipAddress` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :ip_address | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Logged-in user ID to impersonate instead of the user's ID. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `userId` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :user_id | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @ip_address = args[:ip_address] if args.key?(:ip_address) | 
					
						
							|  |  |  |           @user_id = args[:user_id] if args.key?(:user_id) | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |       # The profile information of a Partners user. | 
					
						
							|  |  |  |       class UserProfile | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # A location with address and geographic coordinates. May optionally contain a | 
					
						
							|  |  |  |         # detailed (multi-field) version of the address. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `address` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::Location] | 
					
						
							|  |  |  |         attr_accessor :address | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # If the user has edit access to multiple accounts, the user can choose the | 
					
						
							|  |  |  |         # preferred account and it is used when a personal account is needed. Can | 
					
						
							|  |  |  |         # be empty. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `adwordsManagerAccount` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :adwords_manager_account | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # A list of ids representing which channels the user selected they were in. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `channels` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [Array<String>] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :channels | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The email address the user has selected on the Partners site as primary. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `emailAddress` | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :email_address | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # A set of opt-ins for a user. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `emailOptIns` | 
					
						
							|  |  |  |         # @return [Google::Apis::PartnersV2::OptIns] | 
					
						
							|  |  |  |         attr_accessor :email_opt_ins | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The user's family name. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `familyName` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :family_name | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The user's given name. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `givenName` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :given_name | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # A list of ids representing which industries the user selected. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `industries` | 
					
						
							|  |  |  |         # @return [Array<String>] | 
					
						
							|  |  |  |         attr_accessor :industries | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # A list of ids represnting which job categories the user selected. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `jobFunctions` | 
					
						
							|  |  |  |         # @return [Array<String>] | 
					
						
							|  |  |  |         attr_accessor :job_functions | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The list of languages this user understands. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `languages` | 
					
						
							|  |  |  |         # @return [Array<String>] | 
					
						
							|  |  |  |         attr_accessor :languages | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # A list of ids representing which markets the user was interested in. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `markets` | 
					
						
							|  |  |  |         # @return [Array<String>] | 
					
						
							|  |  |  |         attr_accessor :markets | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-10-17 00:35:38 +00:00
										 |  |  |         # Whether or not to migrate the user's exam data to Academy for Ads. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `migrateToAfa` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :migrate_to_afa | 
					
						
							|  |  |  |         alias_method :migrate_to_afa?, :migrate_to_afa | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # The user's phone number. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `phoneNumber` | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         attr_accessor :phone_number | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # The user's primary country, an ISO 2-character code. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `primaryCountryCode` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         attr_accessor :primary_country_code | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # Whether the user's public profile is visible to anyone with the URL. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `profilePublic` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :profile_public | 
					
						
							|  |  |  |         alias_method :profile_public?, :profile_public | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @address = args[:address] if args.key?(:address) | 
					
						
							|  |  |  |           @adwords_manager_account = args[:adwords_manager_account] if args.key?(:adwords_manager_account) | 
					
						
							|  |  |  |           @channels = args[:channels] if args.key?(:channels) | 
					
						
							|  |  |  |           @email_address = args[:email_address] if args.key?(:email_address) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |           @email_opt_ins = args[:email_opt_ins] if args.key?(:email_opt_ins) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @family_name = args[:family_name] if args.key?(:family_name) | 
					
						
							|  |  |  |           @given_name = args[:given_name] if args.key?(:given_name) | 
					
						
							|  |  |  |           @industries = args[:industries] if args.key?(:industries) | 
					
						
							|  |  |  |           @job_functions = args[:job_functions] if args.key?(:job_functions) | 
					
						
							|  |  |  |           @languages = args[:languages] if args.key?(:languages) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |           @markets = args[:markets] if args.key?(:markets) | 
					
						
							| 
									
										
										
										
											2017-10-17 00:35:38 +00:00
										 |  |  |           @migrate_to_afa = args[:migrate_to_afa] if args.key?(:migrate_to_afa) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |           @phone_number = args[:phone_number] if args.key?(:phone_number) | 
					
						
							|  |  |  |           @primary_country_code = args[:primary_country_code] if args.key?(:primary_country_code) | 
					
						
							|  |  |  |           @profile_public = args[:profile_public] if args.key?(:profile_public) | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |     end | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end |