Class: Google::Apis::PartnersV2::PartnersService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::PartnersV2::PartnersService
- Defined in:
- generated/google/apis/partners_v2/service.rb
Overview
Google Partners API
Searches certified companies and creates contact leads with them, and also audits the usage of clients.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Attributes inherited from Core::BaseService
#authorization, #base_path, #batch_path, #client, #client_options, #request_options, #root_url, #upload_path
Instance Method Summary collapse
-
#create_lead(company_id, create_lead_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::CreateLeadResponse
Creates an advertiser lead for the given company ID.
-
#create_user_company_relation(user_id, company_relation_object = nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::CompanyRelation
Creates a user's company relation.
-
#delete_user_company_relation(user_id, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::Empty
Deletes a user's company relation.
-
#get_company(company_id, address: nil, currency_code: nil, order_by: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::GetCompanyResponse
Gets a company.
-
#get_partnersstatus(request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::GetPartnersStatusResponse
Gets Partners Status of the logged in user's agency.
-
#get_user(user_id, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, user_view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::User
Gets a user.
-
#initialize ⇒ PartnersService
constructor
A new instance of PartnersService.
-
#list_analytics(page_size: nil, page_token: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::ListAnalyticsResponse
Lists analytics data for a user's associated company.
-
#list_companies(address: nil, company_name: nil, gps_motivations: nil, industries: nil, language_codes: nil, max_monthly_budget_currency_code: nil, max_monthly_budget_nanos: nil, max_monthly_budget_units: nil, min_monthly_budget_currency_code: nil, min_monthly_budget_nanos: nil, min_monthly_budget_units: nil, order_by: nil, page_size: nil, page_token: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, services: nil, specializations: nil, view: nil, website_url: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::ListCompaniesResponse
Lists companies.
-
#list_leads(order_by: nil, page_size: nil, page_token: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::ListLeadsResponse
Lists advertiser leads for a user's associated company.
-
#list_offer_histories(entire_company: nil, order_by: nil, page_size: nil, page_token: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::ListOffersHistoryResponse
Lists the Historical Offers for the current user (or user's entire company).
-
#list_offers(request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::ListOffersResponse
Lists the Offers available for the current user.
-
#list_user_states(request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::ListUserStatesResponse
Lists states for current user.
-
#log_client_message_message(log_message_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::LogMessageResponse
Logs a generic message from the client, such as
Failed to render component
,Profile page is running slow
,More than 500 users have accessed this result.
, etc. -
#log_user_event(log_user_event_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::LogUserEventResponse
Logs a user event.
-
#update_companies(company_object = nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::Company
Update company.
-
#update_leads(lead_object = nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::Lead
Updates the specified lead.
-
#update_user_profile(user_profile_object = nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::UserProfile
Updates a user's profile.
Methods inherited from Core::BaseService
#batch, #batch_upload, #fetch_all, #http
Methods included from Core::Logging
Constructor Details
#initialize ⇒ PartnersService
Returns a new instance of PartnersService
46 47 48 49 |
# File 'generated/google/apis/partners_v2/service.rb', line 46 def initialize super('https://partners.googleapis.com/', '') @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
39 40 41 |
# File 'generated/google/apis/partners_v2/service.rb', line 39 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
44 45 46 |
# File 'generated/google/apis/partners_v2/service.rb', line 44 def quota_user @quota_user end |
Instance Method Details
#create_lead(company_id, create_lead_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::CreateLeadResponse
Creates an advertiser lead for the given company ID.
384 385 386 387 388 389 390 391 392 393 394 |
# File 'generated/google/apis/partners_v2/service.rb', line 384 def create_lead(company_id, create_lead_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/companies/{companyId}/leads', ) command.request_representation = Google::Apis::PartnersV2::CreateLeadRequest::Representation command.request_object = create_lead_request_object command.response_representation = Google::Apis::PartnersV2::CreateLeadResponse::Representation command.response_class = Google::Apis::PartnersV2::CreateLeadResponse command.params['companyId'] = company_id unless company_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_user_company_relation(user_id, company_relation_object = nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::CompanyRelation
Creates a user's company relation. Affiliates the user to a company.
705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 |
# File 'generated/google/apis/partners_v2/service.rb', line 705 def create_user_company_relation(user_id, company_relation_object = nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, 'v2/users/{userId}/companyRelation', ) command.request_representation = Google::Apis::PartnersV2::CompanyRelation::Representation command.request_object = company_relation_object command.response_representation = Google::Apis::PartnersV2::CompanyRelation::Representation command.response_class = Google::Apis::PartnersV2::CompanyRelation command.params['userId'] = user_id unless user_id.nil? command.query['requestMetadata.experimentIds'] = unless .nil? command.query['requestMetadata.locale'] = unless .nil? command.query['requestMetadata.partnersSessionId'] = unless .nil? command.query['requestMetadata.trafficSource.trafficSourceId'] = unless .nil? command.query['requestMetadata.trafficSource.trafficSubId'] = unless .nil? command.query['requestMetadata.userOverrides.ipAddress'] = unless .nil? command.query['requestMetadata.userOverrides.userId'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_user_company_relation(user_id, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::Empty
Deletes a user's company relation. Unaffiliaites the user from a company.
763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 |
# File 'generated/google/apis/partners_v2/service.rb', line 763 def delete_user_company_relation(user_id, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2/users/{userId}/companyRelation', ) command.response_representation = Google::Apis::PartnersV2::Empty::Representation command.response_class = Google::Apis::PartnersV2::Empty command.params['userId'] = user_id unless user_id.nil? command.query['requestMetadata.experimentIds'] = unless .nil? command.query['requestMetadata.locale'] = unless .nil? command.query['requestMetadata.partnersSessionId'] = unless .nil? command.query['requestMetadata.trafficSource.trafficSourceId'] = unless .nil? command.query['requestMetadata.trafficSource.trafficSubId'] = unless .nil? command.query['requestMetadata.userOverrides.ipAddress'] = unless .nil? command.query['requestMetadata.userOverrides.userId'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_company(company_id, address: nil, currency_code: nil, order_by: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::GetCompanyResponse
Gets a company.
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 |
# File 'generated/google/apis/partners_v2/service.rb', line 207 def get_company(company_id, address: nil, currency_code: nil, order_by: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/companies/{companyId}', ) command.response_representation = Google::Apis::PartnersV2::GetCompanyResponse::Representation command.response_class = Google::Apis::PartnersV2::GetCompanyResponse command.params['companyId'] = company_id unless company_id.nil? command.query['address'] = address unless address.nil? command.query['currencyCode'] = currency_code unless currency_code.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['requestMetadata.experimentIds'] = unless .nil? command.query['requestMetadata.locale'] = unless .nil? command.query['requestMetadata.partnersSessionId'] = unless .nil? command.query['requestMetadata.trafficSource.trafficSourceId'] = unless .nil? command.query['requestMetadata.trafficSource.trafficSubId'] = unless .nil? command.query['requestMetadata.userOverrides.ipAddress'] = unless .nil? command.query['requestMetadata.userOverrides.userId'] = unless .nil? command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_partnersstatus(request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::GetPartnersStatusResponse
Gets Partners Status of the logged in user's agency. Should only be called if the logged in user is the admin of the agency.
932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 |
# File 'generated/google/apis/partners_v2/service.rb', line 932 def get_partnersstatus(request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/partnersstatus', ) command.response_representation = Google::Apis::PartnersV2::GetPartnersStatusResponse::Representation command.response_class = Google::Apis::PartnersV2::GetPartnersStatusResponse command.query['requestMetadata.experimentIds'] = unless .nil? command.query['requestMetadata.locale'] = unless .nil? command.query['requestMetadata.partnersSessionId'] = unless .nil? command.query['requestMetadata.trafficSource.trafficSourceId'] = unless .nil? command.query['requestMetadata.trafficSource.trafficSubId'] = unless .nil? command.query['requestMetadata.userOverrides.ipAddress'] = unless .nil? command.query['requestMetadata.userOverrides.userId'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_user(user_id, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, user_view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::User
Gets a user.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 |
# File 'generated/google/apis/partners_v2/service.rb', line 821 def get_user(user_id, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, user_view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/users/{userId}', ) command.response_representation = Google::Apis::PartnersV2::User::Representation command.response_class = Google::Apis::PartnersV2::User command.params['userId'] = user_id unless user_id.nil? command.query['requestMetadata.experimentIds'] = unless .nil? command.query['requestMetadata.locale'] = unless .nil? command.query['requestMetadata.partnersSessionId'] = unless .nil? command.query['requestMetadata.trafficSource.trafficSourceId'] = unless .nil? command.query['requestMetadata.trafficSource.trafficSubId'] = unless .nil? command.query['requestMetadata.userOverrides.ipAddress'] = unless .nil? command.query['requestMetadata.userOverrides.userId'] = unless .nil? command.query['userView'] = user_view unless user_view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_analytics(page_size: nil, page_token: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::ListAnalyticsResponse
Lists analytics data for a user's associated company. Should only be called within the context of an authorized logged in user.
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 |
# File 'generated/google/apis/partners_v2/service.rb', line 104 def list_analytics(page_size: nil, page_token: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/analytics', ) command.response_representation = Google::Apis::PartnersV2::ListAnalyticsResponse::Representation command.response_class = Google::Apis::PartnersV2::ListAnalyticsResponse command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['requestMetadata.experimentIds'] = unless .nil? command.query['requestMetadata.locale'] = unless .nil? command.query['requestMetadata.partnersSessionId'] = unless .nil? command.query['requestMetadata.trafficSource.trafficSourceId'] = unless .nil? command.query['requestMetadata.trafficSource.trafficSubId'] = unless .nil? command.query['requestMetadata.userOverrides.ipAddress'] = unless .nil? command.query['requestMetadata.userOverrides.userId'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_companies(address: nil, company_name: nil, gps_motivations: nil, industries: nil, language_codes: nil, max_monthly_budget_currency_code: nil, max_monthly_budget_nanos: nil, max_monthly_budget_units: nil, min_monthly_budget_currency_code: nil, min_monthly_budget_nanos: nil, min_monthly_budget_units: nil, order_by: nil, page_size: nil, page_token: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, services: nil, specializations: nil, view: nil, website_url: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::ListCompaniesResponse
Lists companies.
329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 |
# File 'generated/google/apis/partners_v2/service.rb', line 329 def list_companies(address: nil, company_name: nil, gps_motivations: nil, industries: nil, language_codes: nil, max_monthly_budget_currency_code: nil, max_monthly_budget_nanos: nil, max_monthly_budget_units: nil, min_monthly_budget_currency_code: nil, min_monthly_budget_nanos: nil, min_monthly_budget_units: nil, order_by: nil, page_size: nil, page_token: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, services: nil, specializations: nil, view: nil, website_url: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/companies', ) command.response_representation = Google::Apis::PartnersV2::ListCompaniesResponse::Representation command.response_class = Google::Apis::PartnersV2::ListCompaniesResponse command.query['address'] = address unless address.nil? command.query['companyName'] = company_name unless company_name.nil? command.query['gpsMotivations'] = gps_motivations unless gps_motivations.nil? command.query['industries'] = industries unless industries.nil? command.query['languageCodes'] = language_codes unless language_codes.nil? command.query['maxMonthlyBudget.currencyCode'] = max_monthly_budget_currency_code unless max_monthly_budget_currency_code.nil? command.query['maxMonthlyBudget.nanos'] = max_monthly_budget_nanos unless max_monthly_budget_nanos.nil? command.query['maxMonthlyBudget.units'] = max_monthly_budget_units unless max_monthly_budget_units.nil? command.query['minMonthlyBudget.currencyCode'] = min_monthly_budget_currency_code unless min_monthly_budget_currency_code.nil? command.query['minMonthlyBudget.nanos'] = min_monthly_budget_nanos unless min_monthly_budget_nanos.nil? command.query['minMonthlyBudget.units'] = min_monthly_budget_units unless min_monthly_budget_units.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['requestMetadata.experimentIds'] = unless .nil? command.query['requestMetadata.locale'] = unless .nil? command.query['requestMetadata.partnersSessionId'] = unless .nil? command.query['requestMetadata.trafficSource.trafficSourceId'] = unless .nil? command.query['requestMetadata.trafficSource.trafficSubId'] = unless .nil? command.query['requestMetadata.userOverrides.ipAddress'] = unless .nil? command.query['requestMetadata.userOverrides.userId'] = unless .nil? command.query['services'] = services unless services.nil? command.query['specializations'] = specializations unless specializations.nil? command.query['view'] = view unless view.nil? command.query['websiteUrl'] = website_url unless website_url.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_leads(order_by: nil, page_size: nil, page_token: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::ListLeadsResponse
Lists advertiser leads for a user's associated company. Should only be called within the context of an authorized logged in user.
444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 |
# File 'generated/google/apis/partners_v2/service.rb', line 444 def list_leads(order_by: nil, page_size: nil, page_token: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/leads', ) command.response_representation = Google::Apis::PartnersV2::ListLeadsResponse::Representation command.response_class = Google::Apis::PartnersV2::ListLeadsResponse command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['requestMetadata.experimentIds'] = unless .nil? command.query['requestMetadata.locale'] = unless .nil? command.query['requestMetadata.partnersSessionId'] = unless .nil? command.query['requestMetadata.trafficSource.trafficSourceId'] = unless .nil? command.query['requestMetadata.trafficSource.trafficSubId'] = unless .nil? command.query['requestMetadata.userOverrides.ipAddress'] = unless .nil? command.query['requestMetadata.userOverrides.userId'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_offer_histories(entire_company: nil, order_by: nil, page_size: nil, page_token: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::ListOffersHistoryResponse
Lists the Historical Offers for the current user (or user's entire company)
563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 |
# File 'generated/google/apis/partners_v2/service.rb', line 563 def list_offer_histories(entire_company: nil, order_by: nil, page_size: nil, page_token: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/offers/history', ) command.response_representation = Google::Apis::PartnersV2::ListOffersHistoryResponse::Representation command.response_class = Google::Apis::PartnersV2::ListOffersHistoryResponse command.query['entireCompany'] = entire_company unless entire_company.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['requestMetadata.experimentIds'] = unless .nil? command.query['requestMetadata.locale'] = unless .nil? command.query['requestMetadata.partnersSessionId'] = unless .nil? command.query['requestMetadata.trafficSource.trafficSourceId'] = unless .nil? command.query['requestMetadata.trafficSource.trafficSubId'] = unless .nil? command.query['requestMetadata.userOverrides.ipAddress'] = unless .nil? command.query['requestMetadata.userOverrides.userId'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_offers(request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::ListOffersResponse
Lists the Offers available for the current user
499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 |
# File 'generated/google/apis/partners_v2/service.rb', line 499 def list_offers(request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/offers', ) command.response_representation = Google::Apis::PartnersV2::ListOffersResponse::Representation command.response_class = Google::Apis::PartnersV2::ListOffersResponse command.query['requestMetadata.experimentIds'] = unless .nil? command.query['requestMetadata.locale'] = unless .nil? command.query['requestMetadata.partnersSessionId'] = unless .nil? command.query['requestMetadata.trafficSource.trafficSourceId'] = unless .nil? command.query['requestMetadata.trafficSource.trafficSubId'] = unless .nil? command.query['requestMetadata.userOverrides.ipAddress'] = unless .nil? command.query['requestMetadata.userOverrides.userId'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_user_states(request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::ListUserStatesResponse
Lists states for current user.
649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 |
# File 'generated/google/apis/partners_v2/service.rb', line 649 def list_user_states(request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/userStates', ) command.response_representation = Google::Apis::PartnersV2::ListUserStatesResponse::Representation command.response_class = Google::Apis::PartnersV2::ListUserStatesResponse command.query['requestMetadata.experimentIds'] = unless .nil? command.query['requestMetadata.locale'] = unless .nil? command.query['requestMetadata.partnersSessionId'] = unless .nil? command.query['requestMetadata.trafficSource.trafficSourceId'] = unless .nil? command.query['requestMetadata.trafficSource.trafficSubId'] = unless .nil? command.query['requestMetadata.userOverrides.ipAddress'] = unless .nil? command.query['requestMetadata.userOverrides.userId'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#log_client_message_message(log_message_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::LogMessageResponse
Logs a generic message from the client, such as
Failed to render component
, Profile page is running slow
,
More than 500 users have accessed this result.
, etc.
143 144 145 146 147 148 149 150 151 152 |
# File 'generated/google/apis/partners_v2/service.rb', line 143 def ( = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/clientMessages:log', ) command.request_representation = Google::Apis::PartnersV2::LogMessageRequest::Representation command.request_object = command.response_representation = Google::Apis::PartnersV2::LogMessageResponse::Representation command.response_class = Google::Apis::PartnersV2::LogMessageResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#log_user_event(log_user_event_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::LogUserEventResponse
Logs a user event.
602 603 604 605 606 607 608 609 610 611 |
# File 'generated/google/apis/partners_v2/service.rb', line 602 def log_user_event(log_user_event_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/userEvents:log', ) command.request_representation = Google::Apis::PartnersV2::LogUserEventRequest::Representation command.request_object = log_user_event_request_object command.response_representation = Google::Apis::PartnersV2::LogUserEventResponse::Representation command.response_class = Google::Apis::PartnersV2::LogUserEventResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_companies(company_object = nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::Company
Update company. Should only be called within the context of an authorized logged in user.
989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 |
# File 'generated/google/apis/partners_v2/service.rb', line 989 def update_companies(company_object = nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2/companies', ) command.request_representation = Google::Apis::PartnersV2::Company::Representation command.request_object = company_object command.response_representation = Google::Apis::PartnersV2::Company::Representation command.response_class = Google::Apis::PartnersV2::Company command.query['requestMetadata.experimentIds'] = unless .nil? command.query['requestMetadata.locale'] = unless .nil? command.query['requestMetadata.partnersSessionId'] = unless .nil? command.query['requestMetadata.trafficSource.trafficSourceId'] = unless .nil? command.query['requestMetadata.trafficSource.trafficSubId'] = unless .nil? command.query['requestMetadata.userOverrides.ipAddress'] = unless .nil? command.query['requestMetadata.userOverrides.userId'] = unless .nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_leads(lead_object = nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::Lead
Updates the specified lead.
1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 |
# File 'generated/google/apis/partners_v2/service.rb', line 1049 def update_leads(lead_object = nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2/leads', ) command.request_representation = Google::Apis::PartnersV2::Lead::Representation command.request_object = lead_object command.response_representation = Google::Apis::PartnersV2::Lead::Representation command.response_class = Google::Apis::PartnersV2::Lead command.query['requestMetadata.experimentIds'] = unless .nil? command.query['requestMetadata.locale'] = unless .nil? command.query['requestMetadata.partnersSessionId'] = unless .nil? command.query['requestMetadata.trafficSource.trafficSourceId'] = unless .nil? command.query['requestMetadata.trafficSource.trafficSubId'] = unless .nil? command.query['requestMetadata.userOverrides.ipAddress'] = unless .nil? command.query['requestMetadata.userOverrides.userId'] = unless .nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_user_profile(user_profile_object = nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PartnersV2::UserProfile
Updates a user's profile. A user can only update their own profile and should only be called within the context of a logged in user.
877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 |
# File 'generated/google/apis/partners_v2/service.rb', line 877 def update_user_profile(user_profile_object = nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2/users/profile', ) command.request_representation = Google::Apis::PartnersV2::UserProfile::Representation command.request_object = user_profile_object command.response_representation = Google::Apis::PartnersV2::UserProfile::Representation command.response_class = Google::Apis::PartnersV2::UserProfile command.query['requestMetadata.experimentIds'] = unless .nil? command.query['requestMetadata.locale'] = unless .nil? command.query['requestMetadata.partnersSessionId'] = unless .nil? command.query['requestMetadata.trafficSource.trafficSourceId'] = unless .nil? command.query['requestMetadata.trafficSource.trafficSubId'] = unless .nil? command.query['requestMetadata.userOverrides.ipAddress'] = unless .nil? command.query['requestMetadata.userOverrides.userId'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |