Google Ads API is returning to beta status. Please read our blog post for more details.

Targeting for extension settings

Targeting for extension settings is done by using various fields on the ExtensionFeedItem. You can specify a start time, end time, ad schedule, device, location target, or keyword. This will restrict this extension feed item to only serving when the indicated criteria are met.

Below is a demonstration of adding a geo target to an existing extension feed item.


client =

operation = client.operation.update_resource.extension_feed_item(efi_resource_name) do |efi|
  # 2840 corresponds to the USA
  efi.targeted_geo_target_constant = client.path.geo_target_constant(2840)

client.service.extension_feed_item.mutate_extension_feed_items(customer_id, [operation])