LocalAdInfo

  • Local ads can include headlines, descriptions, call-to-actions, marketing images, logo images, videos, and optional URL paths.

  • Each type of asset (headlines, descriptions, call-to-actions, images, videos) has minimum and maximum quantity requirements.

  • Marketing images must be either 314x600 or 320x320 pixels, and logo images must be 128x128 pixels and not larger than 120KB.

  • The optional URL paths, path1 and path2, can be appended to the ad's URL, but path2 can only be set if path1 is also set.

A local ad.

Fields

headlines[]

AdTextAsset

List of text assets for headlines. When the ad serves the headlines will be selected from this list. At least 1 and at most 5 headlines must be specified.

descriptions[]

AdTextAsset

List of text assets for descriptions. When the ad serves the descriptions will be selected from this list. At least 1 and at most 5 descriptions must be specified.

call_to_actions[]

AdTextAsset

List of text assets for call-to-actions. When the ad serves the call-to-actions will be selected from this list. At least 1 and at most 5 call-to-actions must be specified.

marketing_images[]

AdImageAsset

List of marketing image assets that may be displayed with the ad. The images must be 314x600 pixels or 320x320 pixels. At least 1 and at most 20 image assets must be specified.

logo_images[]

AdImageAsset

List of logo image assets that may be displayed with the ad. The images must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5 image assets must be specified.

videos[]

AdVideoAsset

List of YouTube video assets that may be displayed with the ad. At least 1 and at most 20 video assets must be specified.

path1

string

First part of optional text that can be appended to the URL in the ad.

path2

string

Second part of optional text that can be appended to the URL in the ad. This field can only be set when path1 is also set.