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

Update an extension setting

Updating an extension setting is as simple as modifying the ExtensionFeedItem. Any associated customers, campaigns, and feeds will be automatically updated to use the new values.

In the example below, we demonstrate how to update a sitelink's link text. The extension feed item resource name is carried over from the previous example.

Ruby

client = Google::Ads::GoogleAds::GoogleAdsClient.new

operation = client.operation.update_resource.extension_feed_item(efi_resource_name) do |efi|
  efi.sitelink_feed_item = client.resource.sitelink_feed_item
  efi.sitelink_feed_item.link_text = "Hours of Operation"
end

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