Hi ! Thanks for the answer.
I still have several questions.
1. We create lead Form (by creating lead form asset using rest API), 
connect it to campaign (campaign_asset link). From the documentation, i see 
that Ad can only be updated and not created 
: 
https://developers.google.com/google-ads/api/rest/reference/rest/v12/AdOperation
 
, how can we create Ad (not from google UI, but from API)? If Ad creation 
is not available from API, how can we select existing ads to get ads 
objects info and ids from the API to modify them?
2. How Ad can be connected to Lead Form ? Or Ad can be connected to 
campaign only? What API should be called to connect Ad to campaign (or to 
lead form, why I asking about connection to lead form, I saw that Lead form 
call to action is applied to ad in UI (responsive search ad))?

Thanks in advance.

On Tuesday, November 1, 2022 at 11:49:50 PM UTC+2 adsapi wrote:

> Hi Anna,
>
> To change the Headlines of an Ad you need to edit the Ad resource 
> <https://developers.google.com/google-ads/api/rest/reference/rest/v12/customers.ads>
>  
> and its corresponding field based on the Ad type you are using. Based on 
> your screenshot I think you are using a Responsive Search Ad 
> <https://support.google.com/google-ads/answer/7684791> so it would be the 
> “responsiveSearchAd'' field with a ResponsiveSearchAdInfo 
> <https://developers.google.com/google-ads/api/rest/reference/rest/v12/customers.ads#ResponsiveSearchAdInfo>
>  
> object.
>
> In that object you have a “headlines” field to which you can add multiple 
> AdTextAsset 
> <https://developers.google.com/google-ads/api/rest/reference/rest/v12/customers.ads#AdTextAsset>
>  
> objects. On each of those AdTextAsset objects you can set the “text” field 
> to the target headline text you want to use and have other options such as 
> pinning the headline to a position.
>
> Let us know if you have any other questions.
>
> [image: Google Logo] 
> Daniel 
> Google Ads API Team 
>   
>  
>
> ref:_00D1U1174p._5004Q2fqO3b:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3ef15b0f-bf5e-410b-aa45-286233151ee0n%40googlegroups.com.
  • RE... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
    • ... Anna Lysak
      • ... Anna Lysak
        • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to