PATCHhttps://mybusiness.googleapis.com/v3/123456/locations/654321?languageCode=en-US&fieldMask=priceLists { "priceLists": [ { "priceListId": "Breakfast", "labels": [ { "displayName": "Breakfast", "description": "Tasty Google Breakfast", "languageCode": "en-US" } ], "sourceUrl": "http://www.google.com/todays_menu", "sections": [ { "sectionId": "entree_menu", "labels": [ { "displayName": "Entrées", "description": "Breakfast Entrées", "languageCode": "en-US" } ], "items": [ { "itemId": "scramble", "labels": [ { "displayName": "Big Scramble", "description": "A delicious scramble filled with Potatoes, Eggs, Bell Peppers, and Sausage", "languageCode": "en-US" } ], "price": { "currencyCode": "USD", "units": "12", "nanos": "200000000" }, "photoUrls": [ "http://www.google.com/images/breakfast_scramble1.jpg", "http://www.google.com/images/breakfast_scramble2.jpg" ] }, { "itemId": "steak_omelette", "labels": [ { "displayName": "Steak Omelette", "description": "Three egg omelette with grilled prime rib, fire-roasted bell peppers and onions, saut\u00e9ed mushrooms and melted Swiss cheese", "languageCode": "en-US" } ], "price": { "currencyCode": "USD", "units": "15", "nanos": "750000000" } } ] } ] } ]}
POST https://mybusiness.googleapis.com/v3/123456/locations:reportInsights{ "locationNames": [ “accounts/110714876951578713336/locations/14372810722634034850”, ], “basicRequest” : { "metricRequests": [ { "metric": QUERIES_DIRECT, }, { "metric": QUERIES_INDIRECT, } ], "timeRange": { "startTime": 2016-10-12T01:01:23.045123456Z, "endTime": 2017-01-10T23:59:59.045123456Z, }, },}
{ "locationMetrics": [ { "locationName": "accounts/110714876951578713336/locations/ 14372810722634034850", "timeZone": "America/Los_Angeles", "metricValues": [ { "metric": "QUERIES_DIRECT", "totalValue": { "metricOption": "AGGREGATED_TOTAL", "timeDimension": { "timeRange": { "startTime": "2016-10-12T04:00:00Z", "endTime": "2017-01-10T04:00:00Z" } }, "value": "36738" } }, { "metric": "QUERIES_INDIRECT", "totalValue": { "metricOption": "AGGREGATED_TOTAL", "timeDimension": { "timeRange": { "startTime": "2016-10-12T04:00:00Z", "endTime": "2017-01-10T04:00:00Z" } }, "value": "81770" } } ] } ]}
POST https://mybusiness.googleapis.com/v3/123456/locations:reportInsights{ “locationNames": [ “accounts/110714876951578713336/locations/14372810722634034850”, ], "drivingDirectionsRequest”: { "numDays": NINETY, },}
{ "locationDrivingDirectionMetrics": [ { "locationName": "accounts/110714876951578713336/locations/ 14372810722634034850", "topDirectionSources": [ { "dayCount": 90, "regionCounts": [ { "latlng": { "latitude": 37.789, "longitude": -121.392 }, "label": "94105", "count": "2980", }, { "latlng": { "latitude": 37.779, "longitude": -122.421 }, "label": "94102", "count": "887", }, { "latlng": { "latitude": 37.773, "longitude": -122.410 }, "label": "94103", "count": "886", } ] } ], "timeZone": "America/Los_Angeles" } ]}
Give us feedback in our Product Forums.