Share your feedback about the Google Ads (AdWords) API. Take the 2021 AdWords API and Google Ads API Annual Survey.

The AdWords API will sunset on April 27, 2022. Migrate to the Google Ads API to take advantage of the latest Google Ads features.

Structured Snippets

Structured snippets allow your ads to highlight specific aspects of your products and services. These ad extensions provide context on the nature and variety of your products and services before visitors click through to your site.

Each snippet contains a header and list of features you would like to highlight. Up to two headers at a time can show on your ad. We will algorithmically decide the best header combinations to show, so we recommend adding as many headers relevant to your business as possible.

Below is an example of what an ad using snippets might look like. The snippet is outlined with a red rectangle: a "Styles" header with four values (Chukka, Combat, Cowboy, Chelsea).

The header defines the category for your snippet. Your text must match one of the categories in this list exactly (for translations, see Structured Snippet Header Translations). A few examples of headers include: Amenities, Brands, Destinations, Models, and Styles.


The values are a list of featured products/services you would like to highlight. There are a few things to keep in mind:

  • You'll need a minimum of 3 values.
  • Each snippet value has a 25 character limit.
  • For mobile, it's best to limit snippet text to less than 12 characters.
  • The snippet values must adhere to our policy and be family safe.

Adding structured snippets to your ads

Structured snippets can be added at the customer, campaign or ad group level using the extension setting services.

Similar to other ad extensions, you create a feed item and add it to the relevant extension setting. The following code snippet shows how to create a new StructuredSnippetFeedItem and associate it with a campaign.

package adwords.axis.v201809.extensions;

import java.rmi.RemoteException;

 * This example adds structured snippets to a campaign. To create a campaign,
 * run {@code AddCampaigns}.
 * <p>Credentials and properties in {@code fromFile()} are pulled from the
 * "" file. See README for more info.
public class AddStructuredSnippets {

  public static void main(String[] args) throws Exception {
    // Generate a refreshable OAuth2 credential.
    Credential oAuth2Credential = new OfflineCredentials.Builder()

    // Construct an AdWordsSession.
    AdWordsSession session = new AdWordsSession.Builder()

    AdWordsServicesInterface adWordsServices = AdWordsServices.getInstance();

    Long campaignId = Long.valueOf("INSERT_CAMPAIGN_ID");
    runExample(adWordsServices, session, campaignId);

  public static void runExample(AdWordsServicesInterface adWordsServices, AdWordsSession session,
      Long campaignId) throws ApiException, RemoteException {

    StructuredSnippetFeedItem amenitiesStructuredSnippetFeedItem = 
        "Amenities", new String[] {"Free Wi-Fi", "Breakfast", "Swimming Pool", "Fitness Center", 

    StructuredSnippetFeedItem destinationsStructuredSnippetFeedItem = 
        "Destinations", new String[] {"Paris", "London", "Berlin"});

    // Get the CampaignExtensionSettingService.
    CampaignExtensionSettingServiceInterface campaignExtensionSettingService =
        adWordsServices.get(session, CampaignExtensionSettingServiceInterface.class);

    CampaignExtensionSetting campaignExtensionSetting = new CampaignExtensionSetting();
    ExtensionSetting extensionSetting = new ExtensionSetting();
        new ExtensionFeedItem[] {amenitiesStructuredSnippetFeedItem, 

    CampaignExtensionSettingOperation operation = new CampaignExtensionSettingOperation();

    // Create your campaign extension settings. This associates the structured snippet
    // with your campaign.

    // Add the extensions.
    CampaignExtensionSettingReturnValue returnValue =
        campaignExtensionSettingService.mutate(new CampaignExtensionSettingOperation[] {operation});
    if (returnValue.getValue() != null && returnValue.getValue().length > 0) {
      CampaignExtensionSetting newExtensionSetting = returnValue.getValue(0);
      System.out.printf("Extension setting with type %s was added to campaign ID %d.%n",
          newExtensionSetting.getExtensionType(), newExtensionSetting.getCampaignId());
    } else {
      System.out.println("No extension settings were created.");

  private static StructuredSnippetFeedItem createStructuredSnippetsFeedItem(String header,
      String[] values){
    StructuredSnippetFeedItem structuredSnippetFeedItem = new StructuredSnippetFeedItem();
    return structuredSnippetFeedItem;

Structured snippets reports

The Placeholder Feed Item Report shows performance for feed items and can be used to report statistics for each structured snippet. Additionally, the Placeholder Report shows performance for feed-based ad extensions and can be used to report statistics for all structured snippets. Filter on ExtensionPlaceHolderType where the placeholder type ID is 24 to get only structured snippet ad extensions.