
Hello,
I'm from the Google Ads API team.
You may refer here to learn about Responsive Search Ads in Google Ads API. Based on this section, Headlines and descriptions are represented as arrays of a resource called an AdTextAsset. Furthermore, if you want a specific headline to always show first, you can set that AssetLink to have a pinnedField of HEADLINE_1. Then, whenever that ad is served, that specific text will be in the first headline position and the other fields will be drawn from the pool of remaining assets. If more than one asset is pinned to a specific position, then that position will rotate text between all assets that are pinned to that position.
In order to get the pin settings of an existing ad, you may use AdService's getAd method then check its ResponsiveSearchAdInfo to access the AdTextAsset which contains the ServedAssetFieldType.
I hope this helps. Let us know if you have any further clarifications.
Regards,
![]() |
Google Ads API Team |