Caution: You are viewing documentation for the API's REST interface. Most of our official client libraries use gRPC. See the REST Introduction for details.

SmartCampaignSuggestionInfo

Information needed to get suggestion for Smart Campaign. More information provided will help the system to derive better suggestions.

JSON representation
{
  "finalUrl": string,
  "languageCode": string,
  "adSchedules": [
    {
      object (AdScheduleInfo)
    }
  ],
  "keywordThemes": [
    {
      object (KeywordThemeInfo)
    }
  ],

  // Union field business_setting can be only one of the following:
  "businessContext": {
    object (BusinessContext)
  },
  "businessLocationId": string
  // End of list of possible types for union field business_setting.

  // Union field geo_target can be only one of the following:
  "locationList": {
    object (LocationList)
  },
  "proximity": {
    object (ProximityInfo)
  }
  // End of list of possible types for union field geo_target.
}
Fields
finalUrl

string

Optional. Landing page URL of the campaign.

languageCode

string

Optional. The two letter advertising language for the Smart campaign to be constructed, default to 'en' if not set.

adSchedules[]

object (AdScheduleInfo)

Optional. The business ad schedule.

keywordThemes[]

object (KeywordThemeInfo)

Optional. Smart campaign keyword themes. This field may greatly improve suggestion accuracy and we recommend always setting it if possible.

Union field business_setting. The business settings to consider when generating suggestions. Settings are automatically extracted from the GMB location when provided. Otherwise, these settings must be specified explicitly. business_setting can be only one of the following:
businessContext

object (BusinessContext)

Optional. Context describing the business to advertise.

businessLocationId

string (int64 format)

Optional. The ID of the Google My Business (GMB) Location. The location ID can be fetched by GMB API with its form: accounts/{accountId}/locations/{locationId}. The last {locationId} component from the GMB API represents the businessLocationId. See the Google My Business API

Union field geo_target. The geo target of the campaign, either a list of locations or a single proximity shall be specified. geo_target can be only one of the following:
locationList

object (LocationList)

Optional. The targeting geo location by locations.

proximity

object (ProximityInfo)

Optional. The targeting geo location by proximity.

BusinessContext

A context that describes a business.

JSON representation
{
  "businessName": string
}
Fields
businessName

string

Optional. The name of the business.

LocationList

A list of locations.

JSON representation
{
  "locations": [
    {
      object (LocationInfo)
    }
  ]
}
Fields
locations[]

object (LocationInfo)

Required. Locations.