POST
/
gads
/
create_location_group
Create Location Group
curl --request POST \
  --url https://public.plai.io/gads/create_location_group \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "userId": "<string>",
  "locationAssetIds": [
    "<string>"
  ]
}'
{
  "success": true,
  "results": {
    "success": true,
    "locationGroupId": "<string>",
    "error": "<string>"
  }
}

Request Body

userId
string
required
User ID, If not already created, make a user on create user page first. If already created, retrieve the user ID from get profile page.
locationAssetIds
string[]
required
Array of locationAssetIds representing your connected business locations in Google Ads.These IDs are used to generate a locationGroupId allowing your ads to appear on Google Maps and in location-based search results.You can retrieve these IDs by calling the Get Location Asset API and using the id field from each returned location.

Response

success
boolean
Indicates that the HTTP response was successful (status code 200 OK).
results
object