> [!TIP]
> **Tip:** Already using Dynamic Search Ads? See the benefits of [upgrading to
> Performance Max](https://developers.google.com/google-ads/api/performance-max/upgrade-overview).

[Dynamic Search Ads](https://support.google.com/google-ads/answer/2471185) (DSAs) let you target entire websites, or
portions of them, without having to create keywords and ads for all possible
matches. Instead, whenever a relevant user search occurs, Google Ads dynamically
generates an ad with a headline based on the query and text based on your most
relevant landing page. The ad enters the auction and competes normally, helping
you expand exposure for in-stock inventory without modifying your existing
keyword campaigns.

In addition to broadly targeting a website or domain, DSAs can serve as a
"catch-all" or backup option for your existing campaigns and keywords. You can
set up keywords, ad groups, and ads as usual, and then add a DSA ad group to
capture relevant queries that don't match your existing keyword setup.

## Implementation in the Google Ads API

To configure Dynamic Search Ads using the Google Ads API:

1. Set [`dynamic_search_ads_setting`](https://developers.google.com/google-ads/api/reference/rpc/v26/Campaign#dynamic_search_ads_setting) (`domain_name` and `language_code` on [`DynamicSearchAdsSetting`](https://developers.google.com/google-ads/api/reference/rpc/v26/Campaign.DynamicSearchAdsSetting)) on a `SEARCH` [`Campaign`](https://developers.google.com/google-ads/api/reference/rpc/v26/Campaign).
2. Create an [`AdGroup`](https://developers.google.com/google-ads/api/reference/rpc/v26/AdGroup) with `type` set to [`SEARCH_DYNAMIC_ADS`](https://developers.google.com/google-ads/api/reference/rpc/v26/AdGroupTypeEnum.AdGroupType#search_dynamic_ads).
3. Create an [`AdGroupAd`](https://developers.google.com/google-ads/api/reference/rpc/v26/AdGroupAd) using [`ExpandedDynamicSearchAdInfo`](https://developers.google.com/google-ads/api/reference/rpc/v26/ExpandedDynamicSearchAdInfo).
4. Add [`webpage`](https://developers.google.com/google-ads/api/reference/rpc/v26/AdGroupCriterion#webpage) targeting criteria using [`WebpageInfo`](https://developers.google.com/google-ads/api/reference/rpc/v26/WebpageInfo) (and optionally attach [DSA page
   feeds](https://developers.google.com/google-ads/api/docs/dynamic-search-ads/dsa-page-feeds) using [`AssetSet`](https://developers.google.com/google-ads/api/reference/rpc/v26/AssetSet)).

## Next steps

- [Create Dynamic Search Ads](https://developers.google.com/google-ads/api/docs/dynamic-search-ads/create-dynamic-search-ads)
- [Dynamic Search Ads page feeds](https://developers.google.com/google-ads/api/docs/dynamic-search-ads/dsa-page-feeds)
- [Dynamic Search Ads search term reporting](https://developers.google.com/google-ads/api/docs/dynamic-search-ads/reporting)