Google Business Performance API has a NEW API method that allows fetching multiple `DailyMetrics` in a single API request. Review the deprecation schedule and instructions to migrate over from v4 reportInsights API method to Google Business Profile Performance API.
Method: accounts.generateAccountNumber
Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
This endpoint generates an account number for an existing Google My Business account, which is not automatically provisioned during account creation.
To generate an account number, send an empty POST request to the specified endpoint, including the account name in the path.
A successful request returns the Account resource, containing the generated account number.
Requires appropriate OAuth scopes for authorization, such as https://www.googleapis.com/auth/plus.business.manage or https://www.googleapis.com/auth/business.manage.
This endpoint is marked as deprecated and might be subject to removal or changes in the future.
Generates an account number for this account. The account number is not provisioned when an account is created. Use this request to create an account number when it is required.
HTTP request
POST https://mybusiness.googleapis.com/v4/{name=accounts/*}:generateAccountNumber
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-16 UTC."],[],["This content describes how to generate an account number for an existing account via a deprecated endpoint. A `POST` request is sent to `https://mybusiness.googleapis.com/v4/{name=accounts/*}:generateAccountNumber` with the account's name as a path parameter. The request body must be empty. A successful request returns an `Account` instance in the response body. Authorization requires one of two specified OAuth scopes. The URL utilizes gRPC Transcoding syntax.\n"]]