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

Stay organized with collections Save and categorize content based on your preferences.

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)
  },
  "businessProfileLocation": 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 business 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.

businessProfileLocation

string

Optional. The resource name of a Business Profile location. Business Profile location resource names can be fetched through the Business Profile API and adhere to the following format: locations/{locationId}.

See the Business Profile API for additional details.

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.