Index: discovery/googleapis/partners__v2.json |
diff --git a/discovery/googleapis/partners__v2.json b/discovery/googleapis/partners__v2.json |
index 2ac462e6a1dcfde32562b25e220d6fd46e1ed321..999e4d1dd1f9ff2b8759d2b53cd84572e7b7e783 100644 |
--- a/discovery/googleapis/partners__v2.json |
+++ b/discovery/googleapis/partners__v2.json |
@@ -16,37 +16,16 @@ |
"ownerDomain": "google.com", |
"ownerName": "Google", |
"parameters": { |
- "key": { |
- "description": "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.", |
- "location": "query", |
- "type": "string" |
- }, |
- "access_token": { |
- "description": "OAuth access token.", |
- "location": "query", |
- "type": "string" |
- }, |
- "quotaUser": { |
- "description": "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.", |
+ "bearer_token": { |
+ "description": "OAuth bearer token.", |
"location": "query", |
"type": "string" |
}, |
- "pp": { |
- "default": "true", |
- "description": "Pretty-print response.", |
- "location": "query", |
- "type": "boolean" |
- }, |
"oauth_token": { |
"description": "OAuth 2.0 token for the current user.", |
"location": "query", |
"type": "string" |
}, |
- "bearer_token": { |
- "description": "OAuth bearer token.", |
- "location": "query", |
- "type": "string" |
- }, |
"upload_protocol": { |
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", |
"location": "query", |
@@ -68,6 +47,11 @@ |
"location": "query", |
"type": "string" |
}, |
+ "callback": { |
+ "description": "JSONP", |
+ "location": "query", |
+ "type": "string" |
+ }, |
"$.xgafv": { |
"description": "V1 error format.", |
"enum": [ |
@@ -81,11 +65,6 @@ |
"location": "query", |
"type": "string" |
}, |
- "callback": { |
- "description": "JSONP", |
- "location": "query", |
- "type": "string" |
- }, |
"alt": { |
"default": "json", |
"description": "Data format for response.", |
@@ -101,6 +80,27 @@ |
], |
"location": "query", |
"type": "string" |
+ }, |
+ "access_token": { |
+ "description": "OAuth access token.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "key": { |
+ "description": "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.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "quotaUser": { |
+ "description": "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.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "pp": { |
+ "default": "true", |
+ "description": "Pretty-print response.", |
+ "location": "query", |
+ "type": "boolean" |
} |
}, |
"protocol": "rest", |
@@ -113,22 +113,6 @@ |
"id": "partners.leads.list", |
"parameterOrder": [], |
"parameters": { |
- "requestMetadata.experimentIds": { |
- "description": "Experiment IDs the current request belongs to.", |
- "location": "query", |
- "repeated": true, |
- "type": "string" |
- }, |
- "requestMetadata.trafficSource.trafficSubId": { |
- "description": "Second level identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", |
- "location": "query", |
- "type": "string" |
- }, |
- "orderBy": { |
- "description": "How to order Leads. Currently, only `create_time`\nand `create_time desc` are supported", |
- "location": "query", |
- "type": "string" |
- }, |
"requestMetadata.userOverrides.userId": { |
"description": "Logged-in user ID to impersonate instead of the user's ID.", |
"location": "query", |
@@ -164,6 +148,22 @@ |
"description": "IP address to use instead of the user's geo-located IP address.", |
"location": "query", |
"type": "string" |
+ }, |
+ "requestMetadata.experimentIds": { |
+ "description": "Experiment IDs the current request belongs to.", |
+ "location": "query", |
+ "repeated": true, |
+ "type": "string" |
+ }, |
+ "orderBy": { |
+ "description": "How to order Leads. Currently, only `create_time`\nand `create_time desc` are supported", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "requestMetadata.trafficSource.trafficSubId": { |
+ "description": "Second level identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", |
+ "location": "query", |
+ "type": "string" |
} |
}, |
"path": "v2/leads", |
@@ -181,16 +181,6 @@ |
"id": "partners.offers.list", |
"parameterOrder": [], |
"parameters": { |
- "requestMetadata.userOverrides.userId": { |
- "description": "Logged-in user ID to impersonate instead of the user's ID.", |
- "location": "query", |
- "type": "string" |
- }, |
- "requestMetadata.partnersSessionId": { |
- "description": "Google Partners session ID.", |
- "location": "query", |
- "type": "string" |
- }, |
"requestMetadata.trafficSource.trafficSourceId": { |
"description": "Identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", |
"location": "query", |
@@ -216,6 +206,16 @@ |
"description": "Second level identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", |
"location": "query", |
"type": "string" |
+ }, |
+ "requestMetadata.userOverrides.userId": { |
+ "description": "Logged-in user ID to impersonate instead of the user's ID.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "requestMetadata.partnersSessionId": { |
+ "description": "Google Partners session ID.", |
+ "location": "query", |
+ "type": "string" |
} |
}, |
"path": "v2/offers", |
@@ -233,27 +233,6 @@ |
"id": "partners.offers.history.list", |
"parameterOrder": [], |
"parameters": { |
- "requestMetadata.experimentIds": { |
- "description": "Experiment IDs the current request belongs to.", |
- "location": "query", |
- "repeated": true, |
- "type": "string" |
- }, |
- "entireCompany": { |
- "description": "if true, show history for the entire company. Requires user to be admin.", |
- "location": "query", |
- "type": "boolean" |
- }, |
- "orderBy": { |
- "description": "Comma-separated list of fields to order by, e.g.: \"foo,bar,baz\".\nUse \"foo desc\" to sort descending.\nList of valid field names is: name, offer_code, expiration_time, status,\n last_modified_time, sender_name, creation_time, country_code,\n offer_type.", |
- "location": "query", |
- "type": "string" |
- }, |
- "requestMetadata.trafficSource.trafficSubId": { |
- "description": "Second level identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", |
- "location": "query", |
- "type": "string" |
- }, |
"requestMetadata.userOverrides.userId": { |
"description": "Logged-in user ID to impersonate instead of the user's ID.", |
"location": "query", |
@@ -289,6 +268,27 @@ |
"description": "IP address to use instead of the user's geo-located IP address.", |
"location": "query", |
"type": "string" |
+ }, |
+ "requestMetadata.experimentIds": { |
+ "description": "Experiment IDs the current request belongs to.", |
+ "location": "query", |
+ "repeated": true, |
+ "type": "string" |
+ }, |
+ "entireCompany": { |
+ "description": "if true, show history for the entire company. Requires user to be admin.", |
+ "location": "query", |
+ "type": "boolean" |
+ }, |
+ "orderBy": { |
+ "description": "Comma-separated list of fields to order by, e.g.: \"foo,bar,baz\".\nUse \"foo desc\" to sort descending.\nList of valid field names is: name, offer_code, expiration_time, status,\n last_modified_time, sender_name, creation_time, country_code,\n offer_type.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "requestMetadata.trafficSource.trafficSubId": { |
+ "description": "Second level identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", |
+ "location": "query", |
+ "type": "string" |
} |
}, |
"path": "v2/offers/history", |
@@ -300,58 +300,6 @@ |
} |
} |
}, |
- "userStates": { |
- "methods": { |
- "list": { |
- "description": "Lists states for current user.", |
- "httpMethod": "GET", |
- "id": "partners.userStates.list", |
- "parameterOrder": [], |
- "parameters": { |
- "requestMetadata.experimentIds": { |
- "description": "Experiment IDs the current request belongs to.", |
- "location": "query", |
- "repeated": true, |
- "type": "string" |
- }, |
- "requestMetadata.trafficSource.trafficSubId": { |
- "description": "Second level identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", |
- "location": "query", |
- "type": "string" |
- }, |
- "requestMetadata.userOverrides.userId": { |
- "description": "Logged-in user ID to impersonate instead of the user's ID.", |
- "location": "query", |
- "type": "string" |
- }, |
- "requestMetadata.partnersSessionId": { |
- "description": "Google Partners session ID.", |
- "location": "query", |
- "type": "string" |
- }, |
- "requestMetadata.trafficSource.trafficSourceId": { |
- "description": "Identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", |
- "location": "query", |
- "type": "string" |
- }, |
- "requestMetadata.locale": { |
- "description": "Locale to use for the current request.", |
- "location": "query", |
- "type": "string" |
- }, |
- "requestMetadata.userOverrides.ipAddress": { |
- "description": "IP address to use instead of the user's geo-located IP address.", |
- "location": "query", |
- "type": "string" |
- } |
- }, |
- "path": "v2/userStates", |
- "response": { |
- "$ref": "ListUserStatesResponse" |
- } |
- } |
- } |
- }, |
"analytics": { |
"methods": { |
"list": { |
@@ -360,6 +308,12 @@ |
"id": "partners.analytics.list", |
"parameterOrder": [], |
"parameters": { |
+ "pageSize": { |
+ "description": "Requested page size. Server may return fewer analytics than requested.\nIf unspecified or set to 0, default value is 30.\nSpecifies the number of days in the date range when querying analytics.\nThe `page_token` represents the end date of the date range\nand the start date is calculated using the `page_size` as the number\nof days BEFORE the end date.\nMust be a non-negative integer.", |
+ "format": "int32", |
+ "location": "query", |
+ "type": "integer" |
+ }, |
"requestMetadata.trafficSource.trafficSourceId": { |
"description": "Identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", |
"location": "query", |
@@ -400,12 +354,6 @@ |
"description": "A token identifying a page of results that the server returns.\nTypically, this is the value of `ListAnalyticsResponse.next_page_token`\nreturned from the previous call to\nListAnalytics.\nWill be a date string in `YYYY-MM-DD` format representing the end date\nof the date range of results to return.\nIf unspecified or set to \"\", default value is the current date.", |
"location": "query", |
"type": "string" |
- }, |
- "pageSize": { |
- "description": "Requested page size. Server may return fewer analytics than requested.\nIf unspecified or set to 0, default value is 30.\nSpecifies the number of days in the date range when querying analytics.\nThe `page_token` represents the end date of the date range\nand the start date is calculated using the `page_size` as the number\nof days BEFORE the end date.\nMust be a non-negative integer.", |
- "format": "int32", |
- "location": "query", |
- "type": "integer" |
} |
}, |
"path": "v2/analytics", |
@@ -415,12 +363,12 @@ |
} |
} |
}, |
- "v2": { |
+ "userStates": { |
"methods": { |
- "getPartnersstatus": { |
- "description": "Gets Partners Status of the logged in user's agency.\nShould only be called if the logged in user is the admin of the agency.", |
+ "list": { |
+ "description": "Lists states for current user.", |
"httpMethod": "GET", |
- "id": "partners.getPartnersstatus", |
+ "id": "partners.userStates.list", |
"parameterOrder": [], |
"parameters": { |
"requestMetadata.trafficSource.trafficSourceId": { |
@@ -460,24 +408,28 @@ |
"type": "string" |
} |
}, |
- "path": "v2/partnersstatus", |
+ "path": "v2/userStates", |
"response": { |
- "$ref": "GetPartnersStatusResponse" |
+ "$ref": "ListUserStatesResponse" |
} |
- }, |
- "updateLeads": { |
- "description": "Updates the specified lead.", |
+ } |
+ } |
+ }, |
+ "v2": { |
+ "methods": { |
+ "updateCompanies": { |
+ "description": "Update company.\nShould only be called within the context of an authorized logged in user.", |
"httpMethod": "PATCH", |
- "id": "partners.updateLeads", |
+ "id": "partners.updateCompanies", |
"parameterOrder": [], |
"parameters": { |
- "requestMetadata.partnersSessionId": { |
- "description": "Google Partners session ID.", |
+ "requestMetadata.userOverrides.userId": { |
+ "description": "Logged-in user ID to impersonate instead of the user's ID.", |
"location": "query", |
"type": "string" |
}, |
- "requestMetadata.userOverrides.userId": { |
- "description": "Logged-in user ID to impersonate instead of the user's ID.", |
+ "requestMetadata.partnersSessionId": { |
+ "description": "Google Partners session ID.", |
"location": "query", |
"type": "string" |
}, |
@@ -497,7 +449,7 @@ |
"type": "string" |
}, |
"updateMask": { |
- "description": "Standard field mask for the set of fields to be updated.\nRequired with at least 1 value in FieldMask's paths.\nOnly `state` and `adwords_customer_id` are currently supported.", |
+ "description": "Standard field mask for the set of fields to be updated.\nRequired with at least 1 value in FieldMask's paths.", |
"format": "google-fieldmask", |
"location": "query", |
"type": "string" |
@@ -514,51 +466,20 @@ |
"type": "string" |
} |
}, |
- "path": "v2/leads", |
+ "path": "v2/companies", |
"request": { |
- "$ref": "Lead" |
+ "$ref": "Company" |
}, |
"response": { |
- "$ref": "Lead" |
+ "$ref": "Company" |
} |
}, |
- "updateCompanies": { |
- "description": "Update company.\nShould only be called within the context of an authorized logged in user.", |
- "httpMethod": "PATCH", |
- "id": "partners.updateCompanies", |
+ "getPartnersstatus": { |
+ "description": "Gets Partners Status of the logged in user's agency.\nShould only be called if the logged in user is the admin of the agency.", |
+ "httpMethod": "GET", |
+ "id": "partners.getPartnersstatus", |
"parameterOrder": [], |
"parameters": { |
- "requestMetadata.userOverrides.userId": { |
- "description": "Logged-in user ID to impersonate instead of the user's ID.", |
- "location": "query", |
- "type": "string" |
- }, |
- "requestMetadata.partnersSessionId": { |
- "description": "Google Partners session ID.", |
- "location": "query", |
- "type": "string" |
- }, |
- "requestMetadata.trafficSource.trafficSourceId": { |
- "description": "Identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", |
- "location": "query", |
- "type": "string" |
- }, |
- "requestMetadata.locale": { |
- "description": "Locale to use for the current request.", |
- "location": "query", |
- "type": "string" |
- }, |
- "requestMetadata.userOverrides.ipAddress": { |
- "description": "IP address to use instead of the user's geo-located IP address.", |
- "location": "query", |
- "type": "string" |
- }, |
- "updateMask": { |
- "description": "Standard field mask for the set of fields to be updated.\nRequired with at least 1 value in FieldMask's paths.", |
- "format": "google-fieldmask", |
- "location": "query", |
- "type": "string" |
- }, |
"requestMetadata.experimentIds": { |
"description": "Experiment IDs the current request belongs to.", |
"location": "query", |
@@ -569,45 +490,14 @@ |
"description": "Second level identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", |
"location": "query", |
"type": "string" |
- } |
- }, |
- "path": "v2/companies", |
- "request": { |
- "$ref": "Company" |
- }, |
- "response": { |
- "$ref": "Company" |
- } |
- } |
- } |
- }, |
- "users": { |
- "methods": { |
- "get": { |
- "description": "Gets a user.", |
- "httpMethod": "GET", |
- "id": "partners.users.get", |
- "parameterOrder": [ |
- "userId" |
- ], |
- "parameters": { |
- "requestMetadata.partnersSessionId": { |
- "description": "Google Partners session ID.", |
- "location": "query", |
- "type": "string" |
}, |
"requestMetadata.userOverrides.userId": { |
"description": "Logged-in user ID to impersonate instead of the user's ID.", |
"location": "query", |
"type": "string" |
}, |
- "userView": { |
- "description": "Specifies what parts of the user information to return.", |
- "enum": [ |
- "BASIC", |
- "PROFILE", |
- "PUBLIC_PROFILE" |
- ], |
+ "requestMetadata.partnersSessionId": { |
+ "description": "Google Partners session ID.", |
"location": "query", |
"type": "string" |
}, |
@@ -625,34 +515,17 @@ |
"description": "IP address to use instead of the user's geo-located IP address.", |
"location": "query", |
"type": "string" |
- }, |
- "requestMetadata.experimentIds": { |
- "description": "Experiment IDs the current request belongs to.", |
- "location": "query", |
- "repeated": true, |
- "type": "string" |
- }, |
- "requestMetadata.trafficSource.trafficSubId": { |
- "description": "Second level identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", |
- "location": "query", |
- "type": "string" |
- }, |
- "userId": { |
- "description": "Identifier of the user. Can be set to <code>me</code> to mean the currently\nauthenticated user.", |
- "location": "path", |
- "required": true, |
- "type": "string" |
} |
}, |
- "path": "v2/users/{userId}", |
+ "path": "v2/partnersstatus", |
"response": { |
- "$ref": "User" |
+ "$ref": "GetPartnersStatusResponse" |
} |
}, |
- "updateProfile": { |
- "description": "Updates a user's profile. A user can only update their own profile and\nshould only be called within the context of a logged in user.", |
+ "updateLeads": { |
+ "description": "Updates the specified lead.", |
"httpMethod": "PATCH", |
- "id": "partners.users.updateProfile", |
+ "id": "partners.updateLeads", |
"parameterOrder": [], |
"parameters": { |
"requestMetadata.userOverrides.userId": { |
@@ -680,139 +553,30 @@ |
"location": "query", |
"type": "string" |
}, |
- "requestMetadata.experimentIds": { |
- "description": "Experiment IDs the current request belongs to.", |
+ "updateMask": { |
+ "description": "Standard field mask for the set of fields to be updated.\nRequired with at least 1 value in FieldMask's paths.\nOnly `state` and `adwords_customer_id` are currently supported.", |
+ "format": "google-fieldmask", |
"location": "query", |
- "repeated": true, |
"type": "string" |
}, |
- "requestMetadata.trafficSource.trafficSubId": { |
- "description": "Second level identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", |
- "location": "query", |
- "type": "string" |
- } |
- }, |
- "path": "v2/users/profile", |
- "request": { |
- "$ref": "UserProfile" |
- }, |
- "response": { |
- "$ref": "UserProfile" |
- } |
- }, |
- "createCompanyRelation": { |
- "description": "Creates a user's company relation. Affiliates the user to a company.", |
- "httpMethod": "PUT", |
- "id": "partners.users.createCompanyRelation", |
- "parameterOrder": [ |
- "userId" |
- ], |
- "parameters": { |
"requestMetadata.experimentIds": { |
"description": "Experiment IDs the current request belongs to.", |
"location": "query", |
"repeated": true, |
"type": "string" |
}, |
- "userId": { |
- "description": "The ID of the user. Can be set to <code>me</code> to mean\nthe currently authenticated user.", |
- "location": "path", |
- "required": true, |
- "type": "string" |
- }, |
"requestMetadata.trafficSource.trafficSubId": { |
"description": "Second level identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", |
"location": "query", |
"type": "string" |
- }, |
- "requestMetadata.userOverrides.userId": { |
- "description": "Logged-in user ID to impersonate instead of the user's ID.", |
- "location": "query", |
- "type": "string" |
- }, |
- "requestMetadata.partnersSessionId": { |
- "description": "Google Partners session ID.", |
- "location": "query", |
- "type": "string" |
- }, |
- "requestMetadata.trafficSource.trafficSourceId": { |
- "description": "Identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", |
- "location": "query", |
- "type": "string" |
- }, |
- "requestMetadata.locale": { |
- "description": "Locale to use for the current request.", |
- "location": "query", |
- "type": "string" |
- }, |
- "requestMetadata.userOverrides.ipAddress": { |
- "description": "IP address to use instead of the user's geo-located IP address.", |
- "location": "query", |
- "type": "string" |
} |
}, |
- "path": "v2/users/{userId}/companyRelation", |
+ "path": "v2/leads", |
"request": { |
- "$ref": "CompanyRelation" |
- }, |
- "response": { |
- "$ref": "CompanyRelation" |
- } |
- }, |
- "deleteCompanyRelation": { |
- "description": "Deletes a user's company relation. Unaffiliaites the user from a company.", |
- "httpMethod": "DELETE", |
- "id": "partners.users.deleteCompanyRelation", |
- "parameterOrder": [ |
- "userId" |
- ], |
- "parameters": { |
- "requestMetadata.userOverrides.userId": { |
- "description": "Logged-in user ID to impersonate instead of the user's ID.", |
- "location": "query", |
- "type": "string" |
- }, |
- "requestMetadata.partnersSessionId": { |
- "description": "Google Partners session ID.", |
- "location": "query", |
- "type": "string" |
- }, |
- "requestMetadata.trafficSource.trafficSourceId": { |
- "description": "Identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", |
- "location": "query", |
- "type": "string" |
- }, |
- "requestMetadata.locale": { |
- "description": "Locale to use for the current request.", |
- "location": "query", |
- "type": "string" |
- }, |
- "requestMetadata.userOverrides.ipAddress": { |
- "description": "IP address to use instead of the user's geo-located IP address.", |
- "location": "query", |
- "type": "string" |
- }, |
- "requestMetadata.experimentIds": { |
- "description": "Experiment IDs the current request belongs to.", |
- "location": "query", |
- "repeated": true, |
- "type": "string" |
- }, |
- "requestMetadata.trafficSource.trafficSubId": { |
- "description": "Second level identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", |
- "location": "query", |
- "type": "string" |
- }, |
- "userId": { |
- "description": "The ID of the user. Can be set to <code>me</code> to mean\nthe currently authenticated user.", |
- "location": "path", |
- "required": true, |
- "type": "string" |
- } |
+ "$ref": "Lead" |
}, |
- "path": "v2/users/{userId}/companyRelation", |
"response": { |
- "$ref": "Empty" |
+ "$ref": "Lead" |
} |
} |
} |
@@ -827,16 +591,6 @@ |
"companyId" |
], |
"parameters": { |
- "requestMetadata.partnersSessionId": { |
- "description": "Google Partners session ID.", |
- "location": "query", |
- "type": "string" |
- }, |
- "requestMetadata.userOverrides.userId": { |
- "description": "Logged-in user ID to impersonate instead of the user's ID.", |
- "location": "query", |
- "type": "string" |
- }, |
"view": { |
"description": "The view of `Company` resource to be returned. This must not be\n`COMPANY_VIEW_UNSPECIFIED`.", |
"enum": [ |
@@ -892,6 +646,16 @@ |
"description": "How to order addresses within the returned company. Currently, only\n`address` and `address desc` is supported which will sorted by closest to\nfarthest in distance from given address and farthest to closest distance\nfrom given address respectively.", |
"location": "query", |
"type": "string" |
+ }, |
+ "requestMetadata.partnersSessionId": { |
+ "description": "Google Partners session ID.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "requestMetadata.userOverrides.userId": { |
+ "description": "Logged-in user ID to impersonate instead of the user's ID.", |
+ "location": "query", |
+ "type": "string" |
} |
}, |
"path": "v2/companies/{companyId}", |
@@ -905,15 +669,32 @@ |
"id": "partners.companies.list", |
"parameterOrder": [], |
"parameters": { |
- "languageCodes": { |
- "description": "List of language codes that company can support. Only primary language\nsubtags are accepted as defined by\n<a href=\"https://tools.ietf.org/html/bcp47\">BCP 47</a>\n(IETF BCP 47, \"Tags for Identifying Languages\").", |
+ "websiteUrl": { |
+ "description": "Website URL that will help to find a better matched company.\n.", |
"location": "query", |
- "repeated": true, |
"type": "string" |
}, |
- "pageSize": { |
- "description": "Requested page size. Server may return fewer companies than requested.\nIf unspecified, server picks an appropriate default.", |
- "format": "int32", |
+ "gpsMotivations": { |
+ "description": "List of reasons for using Google Partner Search to get companies.", |
+ "enum": [ |
+ "GPS_MOTIVATION_UNSPECIFIED", |
+ "GPSM_HELP_WITH_ADVERTISING", |
+ "GPSM_HELP_WITH_WEBSITE", |
+ "GPSM_NO_WEBSITE" |
+ ], |
+ "location": "query", |
+ "repeated": true, |
+ "type": "string" |
+ }, |
+ "languageCodes": { |
+ "description": "List of language codes that company can support. Only primary language\nsubtags are accepted as defined by\n<a href=\"https://tools.ietf.org/html/bcp47\">BCP 47</a>\n(IETF BCP 47, \"Tags for Identifying Languages\").", |
+ "location": "query", |
+ "repeated": true, |
+ "type": "string" |
+ }, |
+ "pageSize": { |
+ "description": "Requested page size. Server may return fewer companies than requested.\nIf unspecified, server picks an appropriate default.", |
+ "format": "int32", |
"location": "query", |
"type": "integer" |
}, |
@@ -952,13 +733,13 @@ |
"location": "query", |
"type": "string" |
}, |
- "minMonthlyBudget.currencyCode": { |
- "description": "The 3-letter currency code defined in ISO 4217.", |
+ "requestMetadata.userOverrides.userId": { |
+ "description": "Logged-in user ID to impersonate instead of the user's ID.", |
"location": "query", |
"type": "string" |
}, |
- "requestMetadata.userOverrides.userId": { |
- "description": "Logged-in user ID to impersonate instead of the user's ID.", |
+ "minMonthlyBudget.currencyCode": { |
+ "description": "The 3-letter currency code defined in ISO 4217.", |
"location": "query", |
"type": "string" |
}, |
@@ -1035,13 +816,13 @@ |
"location": "query", |
"type": "string" |
}, |
- "pageToken": { |
- "description": "A token identifying a page of results that the server returns.\nTypically, this is the value of `ListCompaniesResponse.next_page_token`\nreturned from the previous call to\nListCompanies.", |
+ "companyName": { |
+ "description": "Company name to search for.", |
"location": "query", |
"type": "string" |
}, |
- "companyName": { |
- "description": "Company name to search for.", |
+ "pageToken": { |
+ "description": "A token identifying a page of results that the server returns.\nTypically, this is the value of `ListCompaniesResponse.next_page_token`\nreturned from the previous call to\nListCompanies.", |
"location": "query", |
"type": "string" |
}, |
@@ -1063,23 +844,6 @@ |
"location": "query", |
"repeated": true, |
"type": "string" |
- }, |
- "websiteUrl": { |
- "description": "Website URL that will help to find a better matched company.\n.", |
- "location": "query", |
- "type": "string" |
- }, |
- "gpsMotivations": { |
- "description": "List of reasons for using Google Partner Search to get companies.", |
- "enum": [ |
- "GPS_MOTIVATION_UNSPECIFIED", |
- "GPSM_HELP_WITH_ADVERTISING", |
- "GPSM_HELP_WITH_WEBSITE", |
- "GPSM_NO_WEBSITE" |
- ], |
- "location": "query", |
- "repeated": true, |
- "type": "string" |
} |
}, |
"path": "v2/companies", |
@@ -1118,71 +882,80 @@ |
} |
} |
}, |
- "userEvents": { |
- "methods": { |
- "log": { |
- "description": "Logs a user event.", |
- "httpMethod": "POST", |
- "id": "partners.userEvents.log", |
- "parameterOrder": [], |
- "parameters": {}, |
- "path": "v2/userEvents:log", |
- "request": { |
- "$ref": "LogUserEventRequest" |
- }, |
- "response": { |
- "$ref": "LogUserEventResponse" |
- } |
- } |
- } |
- }, |
- "clientMessages": { |
- "methods": { |
- "log": { |
- "description": "Logs a generic message from the client, such as\n`Failed to render component`, `Profile page is running slow`,\n`More than 500 users have accessed this result.`, etc.", |
- "httpMethod": "POST", |
- "id": "partners.clientMessages.log", |
- "parameterOrder": [], |
- "parameters": {}, |
- "path": "v2/clientMessages:log", |
- "request": { |
- "$ref": "LogMessageRequest" |
- }, |
- "response": { |
- "$ref": "LogMessageResponse" |
- } |
- } |
- } |
- }, |
- "exams": { |
+ "users": { |
"methods": { |
- "getToken": { |
- "description": "Gets an Exam Token for a Partner's user to take an exam in the Exams System", |
+ "get": { |
+ "description": "Gets a user.", |
"httpMethod": "GET", |
- "id": "partners.exams.getToken", |
+ "id": "partners.users.get", |
"parameterOrder": [ |
- "examType" |
+ "userId" |
], |
"parameters": { |
- "examType": { |
- "description": "The exam type we are requesting a token for.", |
+ "requestMetadata.userOverrides.userId": { |
+ "description": "Logged-in user ID to impersonate instead of the user's ID.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "requestMetadata.partnersSessionId": { |
+ "description": "Google Partners session ID.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "userView": { |
+ "description": "Specifies what parts of the user information to return.", |
"enum": [ |
- "CERTIFICATION_EXAM_TYPE_UNSPECIFIED", |
- "CET_ADWORDS_FUNDAMENTALS", |
- "CET_ADWORDS_ADVANCED_SEARCH", |
- "CET_ADWORDS_ADVANCED_DISPLAY", |
- "CET_VIDEO_ADS", |
- "CET_DOUBLECLICK", |
- "CET_ANALYTICS", |
- "CET_SHOPPING", |
- "CET_MOBILE", |
- "CET_DIGITAL_SALES", |
- "CET_MOBILE_SITES" |
+ "BASIC", |
+ "PROFILE", |
+ "PUBLIC_PROFILE" |
], |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "requestMetadata.trafficSource.trafficSourceId": { |
+ "description": "Identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "requestMetadata.locale": { |
+ "description": "Locale to use for the current request.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "requestMetadata.userOverrides.ipAddress": { |
+ "description": "IP address to use instead of the user's geo-located IP address.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "requestMetadata.experimentIds": { |
+ "description": "Experiment IDs the current request belongs to.", |
+ "location": "query", |
+ "repeated": true, |
+ "type": "string" |
+ }, |
+ "requestMetadata.trafficSource.trafficSubId": { |
+ "description": "Second level identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "userId": { |
+ "description": "Identifier of the user. Can be set to <code>me</code> to mean the currently\nauthenticated user.", |
"location": "path", |
"required": true, |
"type": "string" |
- }, |
+ } |
+ }, |
+ "path": "v2/users/{userId}", |
+ "response": { |
+ "$ref": "User" |
+ } |
+ }, |
+ "updateProfile": { |
+ "description": "Updates a user's profile. A user can only update their own profile and\nshould only be called within the context of a logged in user.", |
+ "httpMethod": "PATCH", |
+ "id": "partners.users.updateProfile", |
+ "parameterOrder": [], |
+ "parameters": { |
"requestMetadata.partnersSessionId": { |
"description": "Google Partners session ID.", |
"location": "query", |
@@ -1220,247 +993,253 @@ |
"type": "string" |
} |
}, |
- "path": "v2/exams/{examType}/token", |
+ "path": "v2/users/profile", |
+ "request": { |
+ "$ref": "UserProfile" |
+ }, |
"response": { |
- "$ref": "ExamToken" |
+ "$ref": "UserProfile" |
} |
- } |
- } |
- } |
- }, |
- "revision": "20170316", |
- "rootUrl": "https://partners.googleapis.com/", |
- "schemas": { |
- "Analytics": { |
- "description": "Analytics data for a `Company` within a single day.", |
- "id": "Analytics", |
- "properties": { |
- "contacts": { |
- "$ref": "AnalyticsDataPoint", |
- "description": "Instances of users contacting the `Company`\non the specified date." |
- }, |
- "eventDate": { |
- "$ref": "Date", |
- "description": "Date on which these events occurred." |
}, |
- "profileViews": { |
- "$ref": "AnalyticsDataPoint", |
- "description": "Instances of users viewing the `Company` profile\non the specified date." |
+ "createCompanyRelation": { |
+ "description": "Creates a user's company relation. Affiliates the user to a company.", |
+ "httpMethod": "PUT", |
+ "id": "partners.users.createCompanyRelation", |
+ "parameterOrder": [ |
+ "userId" |
+ ], |
+ "parameters": { |
+ "requestMetadata.experimentIds": { |
+ "description": "Experiment IDs the current request belongs to.", |
+ "location": "query", |
+ "repeated": true, |
+ "type": "string" |
+ }, |
+ "requestMetadata.trafficSource.trafficSubId": { |
+ "description": "Second level identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "userId": { |
+ "description": "The ID of the user. Can be set to <code>me</code> to mean\nthe currently authenticated user.", |
+ "location": "path", |
+ "required": true, |
+ "type": "string" |
+ }, |
+ "requestMetadata.partnersSessionId": { |
+ "description": "Google Partners session ID.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "requestMetadata.userOverrides.userId": { |
+ "description": "Logged-in user ID to impersonate instead of the user's ID.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "requestMetadata.trafficSource.trafficSourceId": { |
+ "description": "Identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "requestMetadata.locale": { |
+ "description": "Locale to use for the current request.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "requestMetadata.userOverrides.ipAddress": { |
+ "description": "IP address to use instead of the user's geo-located IP address.", |
+ "location": "query", |
+ "type": "string" |
+ } |
+ }, |
+ "path": "v2/users/{userId}/companyRelation", |
+ "request": { |
+ "$ref": "CompanyRelation" |
+ }, |
+ "response": { |
+ "$ref": "CompanyRelation" |
+ } |
}, |
- "searchViews": { |
- "$ref": "AnalyticsDataPoint", |
- "description": "Instances of users seeing the `Company` in Google Partners Search results\non the specified date." |
- } |
- }, |
- "type": "object" |
- }, |
- "PublicProfile": { |
- "description": "Basic information from a public profile.", |
- "id": "PublicProfile", |
- "properties": { |
- "id": { |
- "description": "The ID which can be used to retrieve more details about the public profile.", |
- "type": "string" |
- }, |
- "url": { |
- "description": "The URL of the public profile.", |
- "type": "string" |
- }, |
- "profileImage": { |
- "description": "The URL to the main profile image of the public profile.", |
- "type": "string" |
- }, |
- "displayName": { |
- "description": "The display name of the public profile.", |
- "type": "string" |
- }, |
- "displayImageUrl": { |
- "description": "The URL to the main display image of the public profile. Being deprecated.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "AdWordsManagerAccountInfo": { |
- "description": "Information about a particular AdWords Manager Account.\nRead more at https://support.google.com/adwords/answer/6139186", |
- "id": "AdWordsManagerAccountInfo", |
- "properties": { |
- "customerName": { |
- "description": "Name of the customer this account represents.", |
- "type": "string" |
- }, |
- "id": { |
- "description": "The AdWords Manager Account id.", |
- "format": "int64", |
- "type": "string" |
+ "deleteCompanyRelation": { |
+ "description": "Deletes a user's company relation. Unaffiliaites the user from a company.", |
+ "httpMethod": "DELETE", |
+ "id": "partners.users.deleteCompanyRelation", |
+ "parameterOrder": [ |
+ "userId" |
+ ], |
+ "parameters": { |
+ "requestMetadata.userOverrides.userId": { |
+ "description": "Logged-in user ID to impersonate instead of the user's ID.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "requestMetadata.partnersSessionId": { |
+ "description": "Google Partners session ID.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "requestMetadata.trafficSource.trafficSourceId": { |
+ "description": "Identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "requestMetadata.locale": { |
+ "description": "Locale to use for the current request.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "requestMetadata.userOverrides.ipAddress": { |
+ "description": "IP address to use instead of the user's geo-located IP address.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "requestMetadata.experimentIds": { |
+ "description": "Experiment IDs the current request belongs to.", |
+ "location": "query", |
+ "repeated": true, |
+ "type": "string" |
+ }, |
+ "userId": { |
+ "description": "The ID of the user. Can be set to <code>me</code> to mean\nthe currently authenticated user.", |
+ "location": "path", |
+ "required": true, |
+ "type": "string" |
+ }, |
+ "requestMetadata.trafficSource.trafficSubId": { |
+ "description": "Second level identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", |
+ "location": "query", |
+ "type": "string" |
+ } |
+ }, |
+ "path": "v2/users/{userId}/companyRelation", |
+ "response": { |
+ "$ref": "Empty" |
+ } |
} |
- }, |
- "type": "object" |
+ } |
}, |
- "ResponseMetadata": { |
- "description": "Common data that is in each API response.", |
- "id": "ResponseMetadata", |
- "properties": { |
- "debugInfo": { |
- "$ref": "DebugInfo", |
- "description": "Debug information about this request." |
+ "userEvents": { |
+ "methods": { |
+ "log": { |
+ "description": "Logs a user event.", |
+ "httpMethod": "POST", |
+ "id": "partners.userEvents.log", |
+ "parameterOrder": [], |
+ "parameters": {}, |
+ "path": "v2/userEvents:log", |
+ "request": { |
+ "$ref": "LogUserEventRequest" |
+ }, |
+ "response": { |
+ "$ref": "LogUserEventResponse" |
+ } |
} |
- }, |
- "type": "object" |
+ } |
}, |
- "RecaptchaChallenge": { |
- "description": "<a href=\"https://www.google.com/recaptcha/\">reCaptcha</a> challenge info.", |
- "id": "RecaptchaChallenge", |
- "properties": { |
- "id": { |
- "description": "The ID of the reCaptcha challenge.", |
- "type": "string" |
- }, |
- "response": { |
- "description": "The response to the reCaptcha challenge.", |
- "type": "string" |
+ "clientMessages": { |
+ "methods": { |
+ "log": { |
+ "description": "Logs a generic message from the client, such as\n`Failed to render component`, `Profile page is running slow`,\n`More than 500 users have accessed this result.`, etc.", |
+ "httpMethod": "POST", |
+ "id": "partners.clientMessages.log", |
+ "parameterOrder": [], |
+ "parameters": {}, |
+ "path": "v2/clientMessages:log", |
+ "request": { |
+ "$ref": "LogMessageRequest" |
+ }, |
+ "response": { |
+ "$ref": "LogMessageResponse" |
+ } |
} |
- }, |
- "type": "object" |
+ } |
}, |
- "AvailableOffer": { |
- "description": "Available Offers to be distributed.", |
- "id": "AvailableOffer", |
- "properties": { |
- "countryOfferInfos": { |
- "description": "Offer info by country.", |
- "items": { |
- "$ref": "CountryOfferInfo" |
- }, |
- "type": "array" |
- }, |
- "offerType": { |
- "description": "Type of offer.", |
- "enum": [ |
- "OFFER_TYPE_UNSPECIFIED", |
- "OFFER_TYPE_SPEND_X_GET_Y", |
- "OFFER_TYPE_VIDEO", |
- "OFFER_TYPE_SPEND_MATCH" |
- ], |
- "enumDescriptions": [ |
- "Unset.", |
- "AdWords spend X get Y.", |
- "Youtube video.", |
- "Spend Match up to Y." |
+ "exams": { |
+ "methods": { |
+ "getToken": { |
+ "description": "Gets an Exam Token for a Partner's user to take an exam in the Exams System", |
+ "httpMethod": "GET", |
+ "id": "partners.exams.getToken", |
+ "parameterOrder": [ |
+ "examType" |
], |
- "type": "string" |
- }, |
- "maxAccountAge": { |
- "description": "The maximum age of an account [in days] to be eligible.", |
- "format": "int32", |
- "type": "integer" |
- }, |
- "qualifiedCustomer": { |
- "description": "Customers who qualify for this offer.", |
- "items": { |
- "$ref": "OfferCustomer" |
+ "parameters": { |
+ "examType": { |
+ "description": "The exam type we are requesting a token for.", |
+ "enum": [ |
+ "CERTIFICATION_EXAM_TYPE_UNSPECIFIED", |
+ "CET_ADWORDS_FUNDAMENTALS", |
+ "CET_ADWORDS_ADVANCED_SEARCH", |
+ "CET_ADWORDS_ADVANCED_DISPLAY", |
+ "CET_VIDEO_ADS", |
+ "CET_DOUBLECLICK", |
+ "CET_ANALYTICS", |
+ "CET_SHOPPING", |
+ "CET_MOBILE", |
+ "CET_DIGITAL_SALES", |
+ "CET_MOBILE_SITES" |
+ ], |
+ "location": "path", |
+ "required": true, |
+ "type": "string" |
+ }, |
+ "requestMetadata.userOverrides.userId": { |
+ "description": "Logged-in user ID to impersonate instead of the user's ID.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "requestMetadata.partnersSessionId": { |
+ "description": "Google Partners session ID.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "requestMetadata.trafficSource.trafficSourceId": { |
+ "description": "Identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "requestMetadata.locale": { |
+ "description": "Locale to use for the current request.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "requestMetadata.userOverrides.ipAddress": { |
+ "description": "IP address to use instead of the user's geo-located IP address.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "requestMetadata.experimentIds": { |
+ "description": "Experiment IDs the current request belongs to.", |
+ "location": "query", |
+ "repeated": true, |
+ "type": "string" |
+ }, |
+ "requestMetadata.trafficSource.trafficSubId": { |
+ "description": "Second level identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", |
+ "location": "query", |
+ "type": "string" |
+ } |
}, |
- "type": "array" |
- }, |
- "terms": { |
- "description": "Terms of the offer.", |
- "type": "string" |
- }, |
- "showSpecialOfferCopy": { |
- "description": "Should special text be shown on the offers page.", |
- "type": "boolean" |
- }, |
- "available": { |
- "description": "The number of codes for this offer that are available for distribution.", |
- "format": "int32", |
- "type": "integer" |
- }, |
- "description": { |
- "description": "Description of the offer.", |
- "type": "string" |
- }, |
- "offerLevel": { |
- "description": "Level of this offer.", |
- "enum": [ |
- "OFFER_LEVEL_UNSPECIFIED", |
- "OFFER_LEVEL_DENY_PROBLEM", |
- "OFFER_LEVEL_DENY_CONTRACT", |
- "OFFER_LEVEL_MANUAL", |
- "OFFER_LEVEL_LIMIT_0", |
- "OFFER_LEVEL_LIMIT_5", |
- "OFFER_LEVEL_LIMIT_15", |
- "OFFER_LEVEL_LIMIT_50" |
- ], |
- "enumDescriptions": [ |
- "Unset.", |
- "Users/Agencies that have no offers because of a problem.", |
- "Users/Agencies that have no offers due to contractural agreements.", |
- "Users/Agencies that have a manually-configured limit.", |
- "Some Agencies don't get any offers.", |
- "Basic level gets 5 per month.", |
- "Agencies with adequate AHI and spend get 15/month.", |
- "Badged partners (even in grace) get 50 per month." |
- ], |
- "type": "string" |
- }, |
- "name": { |
- "description": "Name of the offer.", |
- "type": "string" |
- }, |
- "id": { |
- "description": "ID of this offer.", |
- "format": "int64", |
- "type": "string" |
- }, |
- "qualifiedCustomersComplete": { |
- "description": "Whether or not the list of qualified customers is definitely complete.", |
- "type": "boolean" |
- } |
- }, |
- "type": "object" |
- }, |
- "LatLng": { |
- "description": "An object representing a latitude/longitude pair. This is expressed as a pair\nof doubles representing degrees latitude and degrees longitude. Unless\nspecified otherwise, this must conform to the\n<a href=\"http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf\">WGS84\nstandard</a>. Values must be within normalized ranges.\n\nExample of normalization code in Python:\n\n def NormalizeLongitude(longitude):\n \"\"\"Wraps decimal degrees longitude to [-180.0, 180.0].\"\"\"\n q, r = divmod(longitude, 360.0)\n if r > 180.0 or (r == 180.0 and q <= -1.0):\n return r - 360.0\n return r\n\n def NormalizeLatLng(latitude, longitude):\n \"\"\"Wraps decimal degrees latitude and longitude to\n [-90.0, 90.0] and [-180.0, 180.0], respectively.\"\"\"\n r = latitude % 360.0\n if r <= 90.0:\n return r, NormalizeLongitude(longitude)\n elif r >= 270.0:\n return r - 360, NormalizeLongitude(longitude)\n else:\n return 180 - r, NormalizeLongitude(longitude + 180.0)\n\n assert 180.0 == NormalizeLongitude(180.0)\n assert -180.0 == NormalizeLongitude(-180.0)\n assert -179.0 == NormalizeLongitude(181.0)\n assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)\n assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)\n assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)\n assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)\n assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)\n assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)\n assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)\n assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)\n assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)\n assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)\n\nThe code in logs/storage/validator/logs_validator_traits.cc treats this type\nas if it were annotated as ST_LOCATION.", |
- "id": "LatLng", |
- "properties": { |
- "latitude": { |
- "description": "The latitude in degrees. It must be in the range [-90.0, +90.0].", |
- "format": "double", |
- "type": "number" |
- }, |
- "longitude": { |
- "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].", |
- "format": "double", |
- "type": "number" |
- } |
- }, |
- "type": "object" |
- }, |
- "Money": { |
- "description": "Represents an amount of money with its currency type.", |
- "id": "Money", |
- "properties": { |
- "units": { |
- "description": "The whole units of the amount.\nFor example if `currencyCode` is `\"USD\"`, then 1 unit is one US dollar.", |
- "format": "int64", |
- "type": "string" |
- }, |
- "currencyCode": { |
- "description": "The 3-letter currency code defined in ISO 4217.", |
- "type": "string" |
- }, |
- "nanos": { |
- "description": "Number of nano (10^-9) units of the amount.\nThe value must be between -999,999,999 and +999,999,999 inclusive.\nIf `units` is positive, `nanos` must be positive or zero.\nIf `units` is zero, `nanos` can be positive, zero, or negative.\nIf `units` is negative, `nanos` must be negative or zero.\nFor example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.", |
- "format": "int32", |
- "type": "integer" |
+ "path": "v2/exams/{examType}/token", |
+ "response": { |
+ "$ref": "ExamToken" |
+ } |
} |
- }, |
- "type": "object" |
- }, |
+ } |
+ } |
+ }, |
+ "revision": "20170412", |
+ "rootUrl": "https://partners.googleapis.com/", |
+ "schemas": { |
"AnalyticsSummary": { |
"description": "Analytics aggregated data for a `Company` for a given date range.", |
"id": "AnalyticsSummary", |
"properties": { |
+ "contactsCount": { |
+ "description": "Aggregated number of times users contacted the `Company`\nfor given date range.", |
+ "format": "int32", |
+ "type": "integer" |
+ }, |
"profileViewsCount": { |
"description": "Aggregated number of profile views for the `Company` for given date range.", |
"format": "int32", |
@@ -1470,11 +1249,6 @@ |
"description": "Aggregated number of times users saw the `Company`\nin Google Partners Search results for given date range.", |
"format": "int32", |
"type": "integer" |
- }, |
- "contactsCount": { |
- "description": "Aggregated number of times users contacted the `Company`\nfor given date range.", |
- "format": "int32", |
- "type": "integer" |
} |
}, |
"type": "object" |
@@ -1483,6 +1257,17 @@ |
"description": "Request message for\nLogClientMessage.", |
"id": "LogMessageRequest", |
"properties": { |
+ "clientInfo": { |
+ "additionalProperties": { |
+ "type": "string" |
+ }, |
+ "description": "Map of client info, such as URL, browser navigator, browser platform, etc.", |
+ "type": "object" |
+ }, |
+ "requestMetadata": { |
+ "$ref": "RequestMetadata", |
+ "description": "Current request metadata." |
+ }, |
"level": { |
"description": "Message level of client message.", |
"enum": [ |
@@ -1504,17 +1289,6 @@ |
"details": { |
"description": "Details about the client message.", |
"type": "string" |
- }, |
- "clientInfo": { |
- "additionalProperties": { |
- "type": "string" |
- }, |
- "description": "Map of client info, such as URL, browser navigator, browser platform, etc.", |
- "type": "object" |
- }, |
- "requestMetadata": { |
- "$ref": "RequestMetadata", |
- "description": "Current request metadata." |
} |
}, |
"type": "object" |
@@ -1542,36 +1316,6 @@ |
"description": "A lead resource that represents an advertiser contact for a `Company`. These\nare usually generated via Google Partner Search (the advertiser portal).", |
"id": "Lead", |
"properties": { |
- "phoneNumber": { |
- "description": "Phone number of lead source.", |
- "type": "string" |
- }, |
- "adwordsCustomerId": { |
- "description": "The AdWords Customer ID of the lead.", |
- "format": "int64", |
- "type": "string" |
- }, |
- "createTime": { |
- "description": "Timestamp of when this lead was created.", |
- "format": "google-datetime", |
- "type": "string" |
- }, |
- "marketingOptIn": { |
- "description": "Whether or not the lead signed up for marketing emails", |
- "type": "boolean" |
- }, |
- "type": { |
- "description": "Type of lead.", |
- "enum": [ |
- "LEAD_TYPE_UNSPECIFIED", |
- "LT_GPS" |
- ], |
- "enumDescriptions": [ |
- "Unchosen.", |
- "Google Partner Search." |
- ], |
- "type": "string" |
- }, |
"minMonthlyBudget": { |
"$ref": "Money", |
"description": "The minimum monthly budget lead source is willing to spend." |
@@ -1580,30 +1324,12 @@ |
"description": "First name of lead source.", |
"type": "string" |
}, |
- "websiteUrl": { |
- "description": "Website URL of lead source.", |
- "type": "string" |
- }, |
"languageCode": { |
"description": "Language code of the lead's language preference, as defined by\n<a href=\"https://tools.ietf.org/html/bcp47\">BCP 47</a>\n(IETF BCP 47, \"Tags for Identifying Languages\").", |
"type": "string" |
}, |
- "state": { |
- "description": "The lead's state in relation to the company.", |
- "enum": [ |
- "LEAD_STATE_UNSPECIFIED", |
- "LEAD", |
- "CONTACTED", |
- "CLIENT", |
- "OTHER" |
- ], |
- "enumDescriptions": [ |
- "Unchosen.", |
- "Lead not yet contacted.", |
- "Lead has been contacted.", |
- "Lead has become a client.", |
- "Lead in a state not covered by other options." |
- ], |
+ "websiteUrl": { |
+ "description": "Website URL of lead source.", |
"type": "string" |
}, |
"gpsMotivations": { |
@@ -1625,6 +1351,24 @@ |
}, |
"type": "array" |
}, |
+ "state": { |
+ "description": "The lead's state in relation to the company.", |
+ "enum": [ |
+ "LEAD_STATE_UNSPECIFIED", |
+ "LEAD", |
+ "CONTACTED", |
+ "CLIENT", |
+ "OTHER" |
+ ], |
+ "enumDescriptions": [ |
+ "Unchosen.", |
+ "Lead not yet contacted.", |
+ "Lead has been contacted.", |
+ "Lead has become a client.", |
+ "Lead in a state not covered by other options." |
+ ], |
+ "type": "string" |
+ }, |
"email": { |
"description": "Email address of lead source.", |
"type": "string" |
@@ -1640,6 +1384,36 @@ |
"comments": { |
"description": "Comments lead source gave.", |
"type": "string" |
+ }, |
+ "adwordsCustomerId": { |
+ "description": "The AdWords Customer ID of the lead.", |
+ "format": "int64", |
+ "type": "string" |
+ }, |
+ "phoneNumber": { |
+ "description": "Phone number of lead source.", |
+ "type": "string" |
+ }, |
+ "createTime": { |
+ "description": "Timestamp of when this lead was created.", |
+ "format": "google-datetime", |
+ "type": "string" |
+ }, |
+ "marketingOptIn": { |
+ "description": "Whether or not the lead signed up for marketing emails", |
+ "type": "boolean" |
+ }, |
+ "type": { |
+ "description": "Type of lead.", |
+ "enum": [ |
+ "LEAD_TYPE_UNSPECIFIED", |
+ "LT_GPS" |
+ ], |
+ "enumDescriptions": [ |
+ "Unchosen.", |
+ "Google Partner Search." |
+ ], |
+ "type": "string" |
} |
}, |
"type": "object" |
@@ -1648,10 +1422,6 @@ |
"description": "Response message for\nListUserStates.", |
"id": "ListUserStatesResponse", |
"properties": { |
- "responseMetadata": { |
- "$ref": "ResponseMetadata", |
- "description": "Current response metadata." |
- }, |
"userStates": { |
"description": "User's states.", |
"enumDescriptions": [ |
@@ -1666,6 +1436,10 @@ |
"type": "string" |
}, |
"type": "array" |
+ }, |
+ "responseMetadata": { |
+ "$ref": "ResponseMetadata", |
+ "description": "Current response metadata." |
} |
}, |
"type": "object" |
@@ -1674,6 +1448,13 @@ |
"description": "A CompanyRelation resource representing information about a user's\naffiliation and standing with a company in Partners.", |
"id": "CompanyRelation", |
"properties": { |
+ "specializationStatus": { |
+ "description": "The list of Google Partners specialization statuses for the company.", |
+ "items": { |
+ "$ref": "SpecializationStatus" |
+ }, |
+ "type": "array" |
+ }, |
"badgeTier": { |
"description": "Whether the company is a Partner.", |
"enum": [ |
@@ -1688,21 +1469,14 @@ |
], |
"type": "string" |
}, |
- "specializationStatus": { |
- "description": "The list of Google Partners specialization statuses for the company.", |
- "items": { |
- "$ref": "SpecializationStatus" |
- }, |
- "type": "array" |
+ "phoneNumber": { |
+ "description": "The phone number for the company's primary address.", |
+ "type": "string" |
}, |
"website": { |
"description": "The website URL for this company.", |
"type": "string" |
}, |
- "phoneNumber": { |
- "description": "The phone number for the company's primary address.", |
- "type": "string" |
- }, |
"companyId": { |
"description": "The ID of the company. There may be no id if this is a\npending company.5", |
"type": "string" |
@@ -1720,14 +1494,14 @@ |
"description": "Indicates if the user is an admin for this company.", |
"type": "boolean" |
}, |
- "isPending": { |
- "description": "The flag that indicates if the company is pending verification.", |
- "type": "boolean" |
- }, |
"address": { |
"description": "The primary address for this company.", |
"type": "string" |
}, |
+ "isPending": { |
+ "description": "The flag that indicates if the company is pending verification.", |
+ "type": "boolean" |
+ }, |
"creationTime": { |
"description": "The timestamp of when affiliation was requested.\n@OutputOnly", |
"format": "google-datetime", |
@@ -1823,29 +1597,18 @@ |
}, |
"type": "object" |
}, |
- "CreateLeadRequest": { |
- "description": "Request message for CreateLead.", |
- "id": "CreateLeadRequest", |
- "properties": { |
- "lead": { |
- "$ref": "Lead", |
- "description": "The lead resource. The `LeadType` must not be `LEAD_TYPE_UNSPECIFIED`\nand either `email` or `phone_number` must be provided." |
- }, |
- "recaptchaChallenge": { |
- "$ref": "RecaptchaChallenge", |
- "description": "<a href=\"https://www.google.com/recaptcha/\">reCaptcha</a> challenge info." |
- }, |
- "requestMetadata": { |
- "$ref": "RequestMetadata", |
- "description": "Current request metadata." |
- } |
- }, |
- "type": "object" |
- }, |
"RequestMetadata": { |
"description": "Common data that is in each API request.", |
"id": "RequestMetadata", |
"properties": { |
+ "userOverrides": { |
+ "$ref": "UserOverrides", |
+ "description": "Values to use instead of the user's respective defaults for the current\nrequest. These are only honored by whitelisted products." |
+ }, |
+ "partnersSessionId": { |
+ "description": "Google Partners session ID.", |
+ "type": "string" |
+ }, |
"experimentIds": { |
"description": "Experiment IDs the current request belongs to.", |
"items": { |
@@ -1860,14 +1623,25 @@ |
"locale": { |
"description": "Locale to use for the current request.", |
"type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "CreateLeadRequest": { |
+ "description": "Request message for CreateLead.", |
+ "id": "CreateLeadRequest", |
+ "properties": { |
+ "requestMetadata": { |
+ "$ref": "RequestMetadata", |
+ "description": "Current request metadata." |
}, |
- "userOverrides": { |
- "$ref": "UserOverrides", |
- "description": "Values to use instead of the user's respective defaults for the current\nrequest. These are only honored by whitelisted products." |
+ "lead": { |
+ "$ref": "Lead", |
+ "description": "The lead resource. The `LeadType` must not be `LEAD_TYPE_UNSPECIFIED`\nand either `email` or `phone_number` must be provided." |
}, |
- "partnersSessionId": { |
- "description": "Google Partners session ID.", |
- "type": "string" |
+ "recaptchaChallenge": { |
+ "$ref": "RecaptchaChallenge", |
+ "description": "<a href=\"https://www.google.com/recaptcha/\">reCaptcha</a> challenge info." |
} |
}, |
"type": "object" |
@@ -1974,6 +1748,29 @@ |
"description": "A user's information on a specific exam.", |
"id": "ExamStatus", |
"properties": { |
+ "taken": { |
+ "description": "The date the user last taken this exam.", |
+ "format": "google-datetime", |
+ "type": "string" |
+ }, |
+ "passed": { |
+ "description": "Whether this exam has been passed and not expired.", |
+ "type": "boolean" |
+ }, |
+ "warning": { |
+ "description": "Whether this exam is in the state of warning.", |
+ "type": "boolean" |
+ }, |
+ "expiration": { |
+ "description": "Date this exam is due to expire.", |
+ "format": "google-datetime", |
+ "type": "string" |
+ }, |
+ "lastPassed": { |
+ "description": "The date the user last passed this exam.", |
+ "format": "google-datetime", |
+ "type": "string" |
+ }, |
"examType": { |
"description": "The type of the exam.", |
"enum": [ |
@@ -1994,37 +1791,14 @@ |
"Adwords Fundamentals exam.", |
"AdWords advanced search exam.", |
"AdWords advanced display exam.", |
- "VideoAds exam.", |
- "DoubleClick exam.", |
- "Analytics exam.", |
- "Shopping exam.", |
- "Mobile exam.", |
- "Digital Sales exam.", |
- "Mobile Sites exam." |
- ], |
- "type": "string" |
- }, |
- "passed": { |
- "description": "Whether this exam has been passed and not expired.", |
- "type": "boolean" |
- }, |
- "taken": { |
- "description": "The date the user last taken this exam.", |
- "format": "google-datetime", |
- "type": "string" |
- }, |
- "warning": { |
- "description": "Whether this exam is in the state of warning.", |
- "type": "boolean" |
- }, |
- "expiration": { |
- "description": "Date this exam is due to expire.", |
- "format": "google-datetime", |
- "type": "string" |
- }, |
- "lastPassed": { |
- "description": "The date the user last passed this exam.", |
- "format": "google-datetime", |
+ "VideoAds exam.", |
+ "DoubleClick exam.", |
+ "Analytics exam.", |
+ "Shopping exam.", |
+ "Mobile exam.", |
+ "Digital Sales exam.", |
+ "Mobile Sites exam." |
+ ], |
"type": "string" |
} |
}, |
@@ -2125,10 +1899,23 @@ |
"description": "Customers qualified for an offer.", |
"id": "OfferCustomer", |
"properties": { |
+ "spendXAmount": { |
+ "description": "Formatted Spend X amount with currency code.", |
+ "type": "string" |
+ }, |
"adwordsUrl": { |
"description": "URL to the customer's AdWords page.", |
"type": "string" |
}, |
+ "eligibilityDaysLeft": { |
+ "description": "Days the customer is still eligible.", |
+ "format": "int32", |
+ "type": "integer" |
+ }, |
+ "countryCode": { |
+ "description": "Country code of the customer.", |
+ "type": "string" |
+ }, |
"externalCid": { |
"description": "External CID for the customer.", |
"format": "int64", |
@@ -2150,15 +1937,6 @@ |
], |
"type": "string" |
}, |
- "countryCode": { |
- "description": "Country code of the customer.", |
- "type": "string" |
- }, |
- "eligibilityDaysLeft": { |
- "description": "Days the customer is still eligible.", |
- "format": "int32", |
- "type": "integer" |
- }, |
"creationTime": { |
"description": "Time the customer was created.", |
"format": "google-datetime", |
@@ -2171,10 +1949,6 @@ |
"name": { |
"description": "Name of the customer.", |
"type": "string" |
- }, |
- "spendXAmount": { |
- "description": "Formatted Spend X amount with currency code.", |
- "type": "string" |
} |
}, |
"type": "object" |
@@ -2183,6 +1957,17 @@ |
"description": "Google Partners certification status.", |
"id": "CertificationStatus", |
"properties": { |
+ "isCertified": { |
+ "description": "Whether certification is passing.", |
+ "type": "boolean" |
+ }, |
+ "examStatuses": { |
+ "description": "List of certification exam statuses.", |
+ "items": { |
+ "$ref": "CertificationExamStatus" |
+ }, |
+ "type": "array" |
+ }, |
"type": { |
"description": "The type of the certification.", |
"enum": [ |
@@ -2219,17 +2004,6 @@ |
"description": "Number of people who are certified,", |
"format": "int32", |
"type": "integer" |
- }, |
- "isCertified": { |
- "description": "Whether certification is passing.", |
- "type": "boolean" |
- }, |
- "examStatuses": { |
- "description": "List of certification exam statuses.", |
- "items": { |
- "$ref": "CertificationExamStatus" |
- }, |
- "type": "array" |
} |
}, |
"type": "object" |
@@ -2238,6 +2012,10 @@ |
"description": "The localized company information.", |
"id": "LocalizedCompanyInfo", |
"properties": { |
+ "displayName": { |
+ "description": "Localized display name.", |
+ "type": "string" |
+ }, |
"languageCode": { |
"description": "Language code of the localized company info, as defined by\n<a href=\"https://tools.ietf.org/html/bcp47\">BCP 47</a>\n(IETF BCP 47, \"Tags for Identifying Languages\").", |
"type": "string" |
@@ -2252,10 +2030,6 @@ |
"overview": { |
"description": "Localized brief description that the company uses to advertise themselves.", |
"type": "string" |
- }, |
- "displayName": { |
- "description": "Localized display name.", |
- "type": "string" |
} |
}, |
"type": "object" |
@@ -2275,10 +2049,6 @@ |
"description": "Response for ListOfferHistory.", |
"id": "ListOffersHistoryResponse", |
"properties": { |
- "canShowEntireCompany": { |
- "description": "True if the user has the option to show entire company history.", |
- "type": "boolean" |
- }, |
"totalResults": { |
"description": "Number of results across all pages.", |
"format": "int32", |
@@ -2302,6 +2072,10 @@ |
"responseMetadata": { |
"$ref": "ResponseMetadata", |
"description": "Current response metadata." |
+ }, |
+ "canShowEntireCompany": { |
+ "description": "True if the user has the option to show entire company history.", |
+ "type": "boolean" |
} |
}, |
"type": "object" |
@@ -2364,6 +2138,19 @@ |
"description": "A user's information on a specific certification.", |
"id": "Certification", |
"properties": { |
+ "achieved": { |
+ "description": "Whether this certification has been achieved.", |
+ "type": "boolean" |
+ }, |
+ "expiration": { |
+ "description": "Date this certification is due to expire.", |
+ "format": "google-datetime", |
+ "type": "string" |
+ }, |
+ "warning": { |
+ "description": "Whether this certification is in the state of warning.", |
+ "type": "boolean" |
+ }, |
"certificationType": { |
"description": "The type of certification, the area of expertise.", |
"enum": [ |
@@ -2400,19 +2187,6 @@ |
"description": "The date the user last achieved certification.", |
"format": "google-datetime", |
"type": "string" |
- }, |
- "achieved": { |
- "description": "Whether this certification has been achieved.", |
- "type": "boolean" |
- }, |
- "expiration": { |
- "description": "Date this certification is due to expire.", |
- "format": "google-datetime", |
- "type": "string" |
- }, |
- "warning": { |
- "description": "Whether this certification is in the state of warning.", |
- "type": "boolean" |
} |
}, |
"type": "object" |
@@ -2421,45 +2195,30 @@ |
"description": "A resource representing a user of the Partners platform.", |
"id": "User", |
"properties": { |
- "publicProfile": { |
- "$ref": "PublicProfile", |
- "description": "Information about a user's external public profile outside Google Partners." |
- }, |
- "companyVerificationEmail": { |
- "description": "The email address used by the user used for company verification.\n@OutputOnly", |
- "type": "string" |
- }, |
- "certificationStatus": { |
- "description": "The list of achieved certifications. These are calculated based on exam\nresults and other requirements.\n@OutputOnly", |
- "items": { |
- "$ref": "Certification" |
- }, |
- "type": "array" |
+ "profile": { |
+ "$ref": "UserProfile", |
+ "description": "The profile information of a Partners user, contains all the directly\neditable user information." |
}, |
"company": { |
"$ref": "CompanyRelation", |
"description": "The company that the user is associated with.\nIf not present, the user is not associated with any company." |
}, |
- "profile": { |
- "$ref": "UserProfile", |
- "description": "The profile information of a Partners user, contains all the directly\neditable user information." |
- }, |
"lastAccessTime": { |
"description": "The most recent time the user interacted with the Partners site.\n@OutputOnly", |
"format": "google-datetime", |
"type": "string" |
}, |
- "availableAdwordsManagerAccounts": { |
- "description": "This is the list of AdWords Manager Accounts the user has edit access to.\nIf the user has edit access to multiple accounts, the user can choose the\npreferred account and we use this when a personal account is needed. Can\nbe empty meaning the user has access to no accounts.\n@OutputOnly", |
+ "primaryEmails": { |
+ "description": "The list of emails the user has access to/can select as primary.\n@OutputOnly", |
"items": { |
- "$ref": "AdWordsManagerAccountInfo" |
+ "type": "string" |
}, |
"type": "array" |
}, |
- "primaryEmails": { |
- "description": "The list of emails the user has access to/can select as primary.\n@OutputOnly", |
+ "availableAdwordsManagerAccounts": { |
+ "description": "This is the list of AdWords Manager Accounts the user has edit access to.\nIf the user has edit access to multiple accounts, the user can choose the\npreferred account and we use this when a personal account is needed. Can\nbe empty meaning the user has access to no accounts.\n@OutputOnly", |
"items": { |
- "type": "string" |
+ "$ref": "AdWordsManagerAccountInfo" |
}, |
"type": "array" |
}, |
@@ -2473,6 +2232,21 @@ |
"id": { |
"description": "The ID of the user.", |
"type": "string" |
+ }, |
+ "publicProfile": { |
+ "$ref": "PublicProfile", |
+ "description": "Information about a user's external public profile outside Google Partners." |
+ }, |
+ "certificationStatus": { |
+ "description": "The list of achieved certifications. These are calculated based on exam\nresults and other requirements.\n@OutputOnly", |
+ "items": { |
+ "$ref": "Certification" |
+ }, |
+ "type": "array" |
+ }, |
+ "companyVerificationEmail": { |
+ "description": "The email address used by the user used for company verification.\n@OutputOnly", |
+ "type": "string" |
} |
}, |
"type": "object" |
@@ -2507,80 +2281,9 @@ |
"description": "A company resource in the Google Partners API. Once certified, it qualifies\nfor being searched by advertisers.", |
"id": "Company", |
"properties": { |
- "convertedMinMonthlyBudget": { |
- "$ref": "Money", |
- "description": "The minimum monthly budget that the company accepts for partner business,\nconverted to the requested currency code." |
- }, |
- "industries": { |
- "description": "Industries the company can help with.", |
- "enumDescriptions": [ |
- "Unchosen.", |
- "The automotive industry.", |
- "The business-to-business industry.", |
- "The consumer packaged goods industry.", |
- "The education industry.", |
- "The finance industry.", |
- "The healthcare industry.", |
- "The media and entertainment industry.", |
- "The retail industry.", |
- "The technology industry.", |
- "The travel industry." |
- ], |
- "items": { |
- "enum": [ |
- "INDUSTRY_UNSPECIFIED", |
- "I_AUTOMOTIVE", |
- "I_BUSINESS_TO_BUSINESS", |
- "I_CONSUMER_PACKAGED_GOODS", |
- "I_EDUCATION", |
- "I_FINANCE", |
- "I_HEALTHCARE", |
- "I_MEDIA_AND_ENTERTAINMENT", |
- "I_RETAIL", |
- "I_TECHNOLOGY", |
- "I_TRAVEL" |
- ], |
- "type": "string" |
- }, |
- "type": "array" |
- }, |
- "websiteUrl": { |
- "description": "URL of the company's website.", |
- "type": "string" |
- }, |
- "additionalWebsites": { |
- "description": "URL of the company's additional websites used to verify the dynamic badges.\nThese are stored as full URLs as entered by the user, but only the TLD will\nbe used for the actual verification.", |
- "items": { |
- "type": "string" |
- }, |
- "type": "array" |
- }, |
- "primaryAdwordsManagerAccountId": { |
- "description": "The Primary AdWords Manager Account id.", |
- "format": "int64", |
- "type": "string" |
- }, |
- "name": { |
- "description": "The name of the company.", |
- "type": "string" |
- }, |
- "localizedInfos": { |
- "description": "The list of localized info for the company.", |
- "items": { |
- "$ref": "LocalizedCompanyInfo" |
- }, |
- "type": "array" |
- }, |
- "certificationStatuses": { |
- "description": "The list of Google Partners certification statuses for the company.", |
- "items": { |
- "$ref": "CertificationStatus" |
- }, |
- "type": "array" |
- }, |
- "id": { |
- "description": "The ID of the company.", |
- "type": "string" |
+ "publicProfile": { |
+ "$ref": "PublicProfile", |
+ "description": "Basic information from the company's public profile." |
}, |
"services": { |
"description": "Services the company can help with.", |
@@ -2607,17 +2310,13 @@ |
}, |
"type": "array" |
}, |
- "originalMinMonthlyBudget": { |
- "$ref": "Money", |
- "description": "The unconverted minimum monthly budget that the company accepts for partner\nbusiness." |
- }, |
"primaryLocation": { |
"$ref": "Location", |
"description": "The primary location of the company." |
}, |
- "publicProfile": { |
- "$ref": "PublicProfile", |
- "description": "Basic information from the company's public profile." |
+ "originalMinMonthlyBudget": { |
+ "$ref": "Money", |
+ "description": "The unconverted minimum monthly budget that the company accepts for partner\nbusiness." |
}, |
"ranks": { |
"description": "Information related to the ranking of the company within the list of\ncompanies.", |
@@ -2626,20 +2325,6 @@ |
}, |
"type": "array" |
}, |
- "badgeTier": { |
- "description": "Partner badge tier", |
- "enum": [ |
- "BADGE_TIER_NONE", |
- "BADGE_TIER_REGULAR", |
- "BADGE_TIER_PREMIER" |
- ], |
- "enumDescriptions": [ |
- "Tier badge is not set.", |
- "Agency has regular partner badge.", |
- "Agency has premier badge." |
- ], |
- "type": "string" |
- }, |
"specializationStatus": { |
"description": "The list of Google Partners specialization statuses for the company.", |
"items": { |
@@ -2647,12 +2332,19 @@ |
}, |
"type": "array" |
}, |
- "autoApprovalEmailDomains": { |
- "description": "Email domains that allow users with a matching email address to get\nauto-approved for associating with this company.", |
- "items": { |
- "type": "string" |
- }, |
- "type": "array" |
+ "badgeTier": { |
+ "description": "Partner badge tier", |
+ "enum": [ |
+ "BADGE_TIER_NONE", |
+ "BADGE_TIER_REGULAR", |
+ "BADGE_TIER_PREMIER" |
+ ], |
+ "enumDescriptions": [ |
+ "Tier badge is not set.", |
+ "Agency has regular partner badge.", |
+ "Agency has premier badge." |
+ ], |
+ "type": "string" |
}, |
"companyTypes": { |
"description": "Company type labels listed on the company's profile.", |
@@ -2687,6 +2379,13 @@ |
}, |
"type": "array" |
}, |
+ "autoApprovalEmailDomains": { |
+ "description": "Email domains that allow users with a matching email address to get\nauto-approved for associating with this company.", |
+ "items": { |
+ "type": "string" |
+ }, |
+ "type": "array" |
+ }, |
"primaryLanguageCode": { |
"description": "The primary language code of the company, as defined by\n<a href=\"https://tools.ietf.org/html/bcp47\">BCP 47</a>\n(IETF BCP 47, \"Tags for Identifying Languages\").", |
"type": "string" |
@@ -2713,6 +2412,81 @@ |
"$ref": "Location" |
}, |
"type": "array" |
+ }, |
+ "convertedMinMonthlyBudget": { |
+ "$ref": "Money", |
+ "description": "The minimum monthly budget that the company accepts for partner business,\nconverted to the requested currency code." |
+ }, |
+ "industries": { |
+ "description": "Industries the company can help with.", |
+ "enumDescriptions": [ |
+ "Unchosen.", |
+ "The automotive industry.", |
+ "The business-to-business industry.", |
+ "The consumer packaged goods industry.", |
+ "The education industry.", |
+ "The finance industry.", |
+ "The healthcare industry.", |
+ "The media and entertainment industry.", |
+ "The retail industry.", |
+ "The technology industry.", |
+ "The travel industry." |
+ ], |
+ "items": { |
+ "enum": [ |
+ "INDUSTRY_UNSPECIFIED", |
+ "I_AUTOMOTIVE", |
+ "I_BUSINESS_TO_BUSINESS", |
+ "I_CONSUMER_PACKAGED_GOODS", |
+ "I_EDUCATION", |
+ "I_FINANCE", |
+ "I_HEALTHCARE", |
+ "I_MEDIA_AND_ENTERTAINMENT", |
+ "I_RETAIL", |
+ "I_TECHNOLOGY", |
+ "I_TRAVEL" |
+ ], |
+ "type": "string" |
+ }, |
+ "type": "array" |
+ }, |
+ "websiteUrl": { |
+ "description": "URL of the company's website.", |
+ "type": "string" |
+ }, |
+ "additionalWebsites": { |
+ "description": "URL of the company's additional websites used to verify the dynamic badges.\nThese are stored as full URLs as entered by the user, but only the TLD will\nbe used for the actual verification.", |
+ "items": { |
+ "type": "string" |
+ }, |
+ "type": "array" |
+ }, |
+ "primaryAdwordsManagerAccountId": { |
+ "description": "The Primary AdWords Manager Account id.", |
+ "format": "int64", |
+ "type": "string" |
+ }, |
+ "name": { |
+ "description": "The name of the company.", |
+ "type": "string" |
+ }, |
+ "localizedInfos": { |
+ "description": "The list of localized info for the company.", |
+ "items": { |
+ "$ref": "LocalizedCompanyInfo" |
+ }, |
+ "type": "array" |
+ }, |
+ "id": { |
+ "description": "The ID of the company.", |
+ "type": "string" |
+ }, |
+ "certificationStatuses": { |
+ "description": "The list of Google Partners certification statuses for the company.", |
+ "items": { |
+ "$ref": "CertificationStatus" |
+ }, |
+ "type": "array" |
} |
}, |
"type": "object" |
@@ -2794,6 +2568,21 @@ |
"description": "A location with address and geographic coordinates. May optionally contain a\ndetailed (multi-field) version of the address.", |
"id": "Location", |
"properties": { |
+ "sortingCode": { |
+ "description": "Use of this code is very country-specific, but will refer to a secondary\nclassification code for sorting mail.", |
+ "type": "string" |
+ }, |
+ "languageCode": { |
+ "description": "Language code of the address. Should be in BCP 47 format.", |
+ "type": "string" |
+ }, |
+ "addressLine": { |
+ "description": "The following address lines represent the most specific part of any\naddress.", |
+ "items": { |
+ "type": "string" |
+ }, |
+ "type": "array" |
+ }, |
"administrativeArea": { |
"description": "Top-level administrative subdivision of this country.", |
"type": "string" |
@@ -2806,14 +2595,14 @@ |
"$ref": "LatLng", |
"description": "The latitude and longitude of the location, in degrees." |
}, |
- "address": { |
- "description": "The single string version of the address.", |
- "type": "string" |
- }, |
"dependentLocality": { |
"description": "Dependent locality or sublocality. Used for UK dependent localities, or\nneighborhoods or boroughs in other locations.", |
"type": "string" |
}, |
+ "address": { |
+ "description": "The single string version of the address.", |
+ "type": "string" |
+ }, |
"regionCode": { |
"description": "CLDR (Common Locale Data Repository) region code .", |
"type": "string" |
@@ -2821,36 +2610,25 @@ |
"postalCode": { |
"description": "Values are frequently alphanumeric.", |
"type": "string" |
- }, |
- "sortingCode": { |
- "description": "Use of this code is very country-specific, but will refer to a secondary\nclassification code for sorting mail.", |
- "type": "string" |
- }, |
- "languageCode": { |
- "description": "Language code of the address. Should be in BCP 47 format.", |
- "type": "string" |
- }, |
- "addressLine": { |
- "description": "The following address lines represent the most specific part of any\naddress.", |
- "items": { |
- "type": "string" |
- }, |
- "type": "array" |
} |
}, |
"type": "object" |
}, |
- "CertificationExamStatus": { |
- "description": "Status for a Google Partners certification exam.", |
- "id": "CertificationExamStatus", |
+ "ExamToken": { |
+ "description": "A token that allows a user to take an exam.", |
+ "id": "ExamToken", |
"properties": { |
- "numberUsersPass": { |
- "description": "The number of people who have passed the certification exam.", |
- "format": "int32", |
- "type": "integer" |
+ "examId": { |
+ "description": "The id of the exam the token is for.", |
+ "format": "int64", |
+ "type": "string" |
}, |
- "type": { |
- "description": "The type of certification exam.", |
+ "token": { |
+ "description": "The token, only present if the user has access to the exam.", |
+ "type": "string" |
+ }, |
+ "examType": { |
+ "description": "The type of the exam the token belongs to.", |
"enum": [ |
"CERTIFICATION_EXAM_TYPE_UNSPECIFIED", |
"CET_ADWORDS_FUNDAMENTALS", |
@@ -2882,12 +2660,17 @@ |
}, |
"type": "object" |
}, |
- "ExamToken": { |
- "description": "A token that allows a user to take an exam.", |
- "id": "ExamToken", |
+ "CertificationExamStatus": { |
+ "description": "Status for a Google Partners certification exam.", |
+ "id": "CertificationExamStatus", |
"properties": { |
- "examType": { |
- "description": "The type of the exam the token belongs to.", |
+ "numberUsersPass": { |
+ "description": "The number of people who have passed the certification exam.", |
+ "format": "int32", |
+ "type": "integer" |
+ }, |
+ "type": { |
+ "description": "The type of certification exam.", |
"enum": [ |
"CERTIFICATION_EXAM_TYPE_UNSPECIFIED", |
"CET_ADWORDS_FUNDAMENTALS", |
@@ -2915,15 +2698,6 @@ |
"Mobile Sites exam." |
], |
"type": "string" |
- }, |
- "examId": { |
- "description": "The id of the exam the token is for.", |
- "format": "int64", |
- "type": "string" |
- }, |
- "token": { |
- "description": "The token, only present if the user has access to the exam.", |
- "type": "string" |
} |
}, |
"type": "object" |
@@ -2932,6 +2706,10 @@ |
"description": "A set of opt-ins for a user.", |
"id": "OptIns", |
"properties": { |
+ "marketComm": { |
+ "description": "An opt-in about receiving email from Partners marketing teams. Includes\nmember-only events and special promotional offers for Google products.", |
+ "type": "boolean" |
+ }, |
"specialOffers": { |
"description": "An opt-in about receiving email regarding new features and products.", |
"type": "boolean" |
@@ -2947,10 +2725,6 @@ |
"phoneContact": { |
"description": "An opt-in to allow recieivng phone calls about their Partners account.", |
"type": "boolean" |
- }, |
- "marketComm": { |
- "description": "An opt-in about receiving email from Partners marketing teams. Includes\nmember-only events and special promotional offers for Google products.", |
- "type": "boolean" |
} |
}, |
"type": "object" |
@@ -2979,28 +2753,10 @@ |
}, |
"type": "object" |
}, |
- "GetPartnersStatusResponse": { |
- "description": "Response message for\nGetPartnersStatus.", |
- "id": "GetPartnersStatusResponse", |
- "properties": { |
- "responseMetadata": { |
- "$ref": "ResponseMetadata", |
- "description": "Current response metadata." |
- } |
- }, |
- "type": "object" |
- }, |
"UserProfile": { |
"description": "The profile information of a Partners user.", |
"id": "UserProfile", |
"properties": { |
- "jobFunctions": { |
- "description": "A list of ids represnting which job categories the user selected.", |
- "items": { |
- "type": "string" |
- }, |
- "type": "array" |
- }, |
"givenName": { |
"description": "The user's given name.", |
"type": "string" |
@@ -3016,10 +2772,6 @@ |
}, |
"type": "array" |
}, |
- "familyName": { |
- "description": "The user's family name.", |
- "type": "string" |
- }, |
"languages": { |
"description": "The list of languages this user understands.", |
"items": { |
@@ -3027,6 +2779,10 @@ |
}, |
"type": "array" |
}, |
+ "familyName": { |
+ "description": "The user's family name.", |
+ "type": "string" |
+ }, |
"emailOptIns": { |
"$ref": "OptIns", |
"description": "The list of opt-ins for the user, related to communication preferences." |
@@ -3055,6 +2811,10 @@ |
"description": "The email address the user has selected on the Partners site as primary.", |
"type": "string" |
}, |
+ "profilePublic": { |
+ "description": "Whether the user's public profile is visible to anyone with the URL.", |
+ "type": "boolean" |
+ }, |
"channels": { |
"description": "A list of ids representing which channels the user selected they were in.", |
"items": { |
@@ -3062,9 +2822,23 @@ |
}, |
"type": "array" |
}, |
- "profilePublic": { |
- "description": "Whether the user's public profile is visible to anyone with the URL.", |
- "type": "boolean" |
+ "jobFunctions": { |
+ "description": "A list of ids represnting which job categories the user selected.", |
+ "items": { |
+ "type": "string" |
+ }, |
+ "type": "array" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "GetPartnersStatusResponse": { |
+ "description": "Response message for\nGetPartnersStatus.", |
+ "id": "GetPartnersStatusResponse", |
+ "properties": { |
+ "responseMetadata": { |
+ "$ref": "ResponseMetadata", |
+ "description": "Current response metadata." |
} |
}, |
"type": "object" |
@@ -3073,11 +2847,6 @@ |
"description": "Historical information about a Google Partners Offer.", |
"id": "HistoricalOffer", |
"properties": { |
- "clientId": { |
- "description": "ID of client.", |
- "format": "int64", |
- "type": "string" |
- }, |
"clientName": { |
"description": "Name of the client.", |
"type": "string" |
@@ -3129,6 +2898,10 @@ |
"format": "google-datetime", |
"type": "string" |
}, |
+ "clientEmail": { |
+ "description": "Email address for client.", |
+ "type": "string" |
+ }, |
"status": { |
"description": "Status of the offer.", |
"enum": [ |
@@ -3147,8 +2920,24 @@ |
], |
"type": "string" |
}, |
- "clientEmail": { |
- "description": "Email address for client.", |
+ "clientId": { |
+ "description": "ID of client.", |
+ "format": "int64", |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "UserOverrides": { |
+ "description": "Values to use instead of the user's respective defaults. These are only\nhonored by whitelisted products.", |
+ "id": "UserOverrides", |
+ "properties": { |
+ "userId": { |
+ "description": "Logged-in user ID to impersonate instead of the user's ID.", |
+ "type": "string" |
+ }, |
+ "ipAddress": { |
+ "description": "IP address to use instead of the user's geo-located IP address.", |
"type": "string" |
} |
}, |
@@ -3522,14 +3311,14 @@ |
], |
"type": "string" |
}, |
- "url": { |
- "description": "The URL where the event occurred.", |
- "type": "string" |
- }, |
"requestMetadata": { |
"$ref": "RequestMetadata", |
"description": "Current request metadata." |
}, |
+ "url": { |
+ "description": "The URL where the event occurred.", |
+ "type": "string" |
+ }, |
"eventDatas": { |
"description": "List of event data for the event.", |
"items": { |
@@ -3556,36 +3345,247 @@ |
}, |
"type": "object" |
}, |
- "UserOverrides": { |
- "description": "Values to use instead of the user's respective defaults. These are only\nhonored by whitelisted products.", |
- "id": "UserOverrides", |
+ "AnalyticsDataPoint": { |
+ "description": "Details of the analytics events for a `Company` within a single day.", |
+ "id": "AnalyticsDataPoint", |
"properties": { |
- "ipAddress": { |
- "description": "IP address to use instead of the user's geo-located IP address.", |
+ "eventCount": { |
+ "description": "Number of times the type of event occurred.\nMeaning depends on context (e.g. profile views, contacts, etc.).", |
+ "format": "int32", |
+ "type": "integer" |
+ }, |
+ "eventLocations": { |
+ "description": "Location information of where these events occurred.", |
+ "items": { |
+ "$ref": "LatLng" |
+ }, |
+ "type": "array" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "Analytics": { |
+ "description": "Analytics data for a `Company` within a single day.", |
+ "id": "Analytics", |
+ "properties": { |
+ "eventDate": { |
+ "$ref": "Date", |
+ "description": "Date on which these events occurred." |
+ }, |
+ "profileViews": { |
+ "$ref": "AnalyticsDataPoint", |
+ "description": "Instances of users viewing the `Company` profile\non the specified date." |
+ }, |
+ "searchViews": { |
+ "$ref": "AnalyticsDataPoint", |
+ "description": "Instances of users seeing the `Company` in Google Partners Search results\non the specified date." |
+ }, |
+ "contacts": { |
+ "$ref": "AnalyticsDataPoint", |
+ "description": "Instances of users contacting the `Company`\non the specified date." |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "PublicProfile": { |
+ "description": "Basic information from a public profile.", |
+ "id": "PublicProfile", |
+ "properties": { |
+ "profileImage": { |
+ "description": "The URL to the main profile image of the public profile.", |
"type": "string" |
}, |
- "userId": { |
- "description": "Logged-in user ID to impersonate instead of the user's ID.", |
+ "displayName": { |
+ "description": "The display name of the public profile.", |
+ "type": "string" |
+ }, |
+ "displayImageUrl": { |
+ "description": "The URL to the main display image of the public profile. Being deprecated.", |
+ "type": "string" |
+ }, |
+ "id": { |
+ "description": "The ID which can be used to retrieve more details about the public profile.", |
+ "type": "string" |
+ }, |
+ "url": { |
+ "description": "The URL of the public profile.", |
"type": "string" |
} |
}, |
"type": "object" |
}, |
- "AnalyticsDataPoint": { |
- "description": "Details of the analytics events for a `Company` within a single day.", |
- "id": "AnalyticsDataPoint", |
+ "AdWordsManagerAccountInfo": { |
+ "description": "Information about a particular AdWords Manager Account.\nRead more at https://support.google.com/adwords/answer/6139186", |
+ "id": "AdWordsManagerAccountInfo", |
"properties": { |
- "eventLocations": { |
- "description": "Location information of where these events occurred.", |
+ "id": { |
+ "description": "The AdWords Manager Account id.", |
+ "format": "int64", |
+ "type": "string" |
+ }, |
+ "customerName": { |
+ "description": "Name of the customer this account represents.", |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "ResponseMetadata": { |
+ "description": "Common data that is in each API response.", |
+ "id": "ResponseMetadata", |
+ "properties": { |
+ "debugInfo": { |
+ "$ref": "DebugInfo", |
+ "description": "Debug information about this request." |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "RecaptchaChallenge": { |
+ "description": "<a href=\"https://www.google.com/recaptcha/\">reCaptcha</a> challenge info.", |
+ "id": "RecaptchaChallenge", |
+ "properties": { |
+ "id": { |
+ "description": "The ID of the reCaptcha challenge.", |
+ "type": "string" |
+ }, |
+ "response": { |
+ "description": "The response to the reCaptcha challenge.", |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "AvailableOffer": { |
+ "description": "Available Offers to be distributed.", |
+ "id": "AvailableOffer", |
+ "properties": { |
+ "maxAccountAge": { |
+ "description": "The maximum age of an account [in days] to be eligible.", |
+ "format": "int32", |
+ "type": "integer" |
+ }, |
+ "qualifiedCustomer": { |
+ "description": "Customers who qualify for this offer.", |
"items": { |
- "$ref": "LatLng" |
+ "$ref": "OfferCustomer" |
}, |
"type": "array" |
}, |
- "eventCount": { |
- "description": "Number of times the type of event occurred.\nMeaning depends on context (e.g. profile views, contacts, etc.).", |
+ "terms": { |
+ "description": "Terms of the offer.", |
+ "type": "string" |
+ }, |
+ "showSpecialOfferCopy": { |
+ "description": "Should special text be shown on the offers page.", |
+ "type": "boolean" |
+ }, |
+ "available": { |
+ "description": "The number of codes for this offer that are available for distribution.", |
+ "format": "int32", |
+ "type": "integer" |
+ }, |
+ "description": { |
+ "description": "Description of the offer.", |
+ "type": "string" |
+ }, |
+ "offerLevel": { |
+ "description": "Level of this offer.", |
+ "enum": [ |
+ "OFFER_LEVEL_UNSPECIFIED", |
+ "OFFER_LEVEL_DENY_PROBLEM", |
+ "OFFER_LEVEL_DENY_CONTRACT", |
+ "OFFER_LEVEL_MANUAL", |
+ "OFFER_LEVEL_LIMIT_0", |
+ "OFFER_LEVEL_LIMIT_5", |
+ "OFFER_LEVEL_LIMIT_15", |
+ "OFFER_LEVEL_LIMIT_50" |
+ ], |
+ "enumDescriptions": [ |
+ "Unset.", |
+ "Users/Agencies that have no offers because of a problem.", |
+ "Users/Agencies that have no offers due to contractural agreements.", |
+ "Users/Agencies that have a manually-configured limit.", |
+ "Some Agencies don't get any offers.", |
+ "Basic level gets 5 per month.", |
+ "Agencies with adequate AHI and spend get 15/month.", |
+ "Badged partners (even in grace) get 50 per month." |
+ ], |
+ "type": "string" |
+ }, |
+ "name": { |
+ "description": "Name of the offer.", |
+ "type": "string" |
+ }, |
+ "qualifiedCustomersComplete": { |
+ "description": "Whether or not the list of qualified customers is definitely complete.", |
+ "type": "boolean" |
+ }, |
+ "id": { |
+ "description": "ID of this offer.", |
+ "format": "int64", |
+ "type": "string" |
+ }, |
+ "countryOfferInfos": { |
+ "description": "Offer info by country.", |
+ "items": { |
+ "$ref": "CountryOfferInfo" |
+ }, |
+ "type": "array" |
+ }, |
+ "offerType": { |
+ "description": "Type of offer.", |
+ "enum": [ |
+ "OFFER_TYPE_UNSPECIFIED", |
+ "OFFER_TYPE_SPEND_X_GET_Y", |
+ "OFFER_TYPE_VIDEO", |
+ "OFFER_TYPE_SPEND_MATCH" |
+ ], |
+ "enumDescriptions": [ |
+ "Unset.", |
+ "AdWords spend X get Y.", |
+ "Youtube video.", |
+ "Spend Match up to Y." |
+ ], |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "LatLng": { |
+ "description": "An object representing a latitude/longitude pair. This is expressed as a pair\nof doubles representing degrees latitude and degrees longitude. Unless\nspecified otherwise, this must conform to the\n<a href=\"http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf\">WGS84\nstandard</a>. Values must be within normalized ranges.\n\nExample of normalization code in Python:\n\n def NormalizeLongitude(longitude):\n \"\"\"Wraps decimal degrees longitude to [-180.0, 180.0].\"\"\"\n q, r = divmod(longitude, 360.0)\n if r > 180.0 or (r == 180.0 and q <= -1.0):\n return r - 360.0\n return r\n\n def NormalizeLatLng(latitude, longitude):\n \"\"\"Wraps decimal degrees latitude and longitude to\n [-90.0, 90.0] and [-180.0, 180.0], respectively.\"\"\"\n r = latitude % 360.0\n if r <= 90.0:\n return r, NormalizeLongitude(longitude)\n elif r >= 270.0:\n return r - 360, NormalizeLongitude(longitude)\n else:\n return 180 - r, NormalizeLongitude(longitude + 180.0)\n\n assert 180.0 == NormalizeLongitude(180.0)\n assert -180.0 == NormalizeLongitude(-180.0)\n assert -179.0 == NormalizeLongitude(181.0)\n assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)\n assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)\n assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)\n assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)\n assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)\n assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)\n assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)\n assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)\n assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)\n assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)\n\nThe code in logs/storage/validator/logs_validator_traits.cc treats this type\nas if it were annotated as ST_LOCATION.", |
+ "id": "LatLng", |
+ "properties": { |
+ "latitude": { |
+ "description": "The latitude in degrees. It must be in the range [-90.0, +90.0].", |
+ "format": "double", |
+ "type": "number" |
+ }, |
+ "longitude": { |
+ "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].", |
+ "format": "double", |
+ "type": "number" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "Money": { |
+ "description": "Represents an amount of money with its currency type.", |
+ "id": "Money", |
+ "properties": { |
+ "currencyCode": { |
+ "description": "The 3-letter currency code defined in ISO 4217.", |
+ "type": "string" |
+ }, |
+ "nanos": { |
+ "description": "Number of nano (10^-9) units of the amount.\nThe value must be between -999,999,999 and +999,999,999 inclusive.\nIf `units` is positive, `nanos` must be positive or zero.\nIf `units` is zero, `nanos` can be positive, zero, or negative.\nIf `units` is negative, `nanos` must be negative or zero.\nFor example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.", |
"format": "int32", |
"type": "integer" |
+ }, |
+ "units": { |
+ "description": "The whole units of the amount.\nFor example if `currencyCode` is `\"USD\"`, then 1 unit is one US dollar.", |
+ "format": "int64", |
+ "type": "string" |
} |
}, |
"type": "object" |