Update Asset SiteLink

33 views
Skip to first unread message

tal sibony

unread,
Feb 29, 2024, 7:41:21 AM2/29/24
to Google Ads Scripts Forum
Hi All, 

I started dev of small scale system which the main goal is to update the capaign with
updated sitelinks on a daily baisis, I was managed to do the following:

1. connect to google ads api endpoint v16/v15 - done.
2. create campaign asset site links
3. query the relevant campaign and get all assets site links

The main issue I have is with the point of updating the assets site links, I was not able to accomplish it via php sdk / rest api.

the main goal is to be able to be able to update the sitelinks on a cycle, I do not mind deleting and recreated them.

in the code example of php library there are 2 samples:
1.  AddSitelinks.php - this create sitelinks as campaign extention and it clearly declared that this will be deprecated soon and direct you to use site links as assets.
2. AddSitelinksUsingAssets.php works as excpected but there is no example of how it is possible to update or remove the assts.

Any suggestions of how can I achieve my simple goal here, which is to be able to update my campaign assets site links?


Google Ads Scripts Forum Advisor

unread,
Feb 29, 2024, 10:33:55 AM2/29/24
to adwords...@googlegroups.com

Hi,

Thank you for reaching out to the Google Ads Scripts support team.

As per your query, I understand that you want to update the campaign with updated sitelinks with the client library. Please note that this issue is related to the Google Ads API. I would like to emphasize that our team can only provide assistance with the technical issues/concerns related to the Google Ads Scripts. I would suggest you raise your query in the Google Ads API forum.

This message is in relation to case "ref:!00D1U01174p.!5004Q02rzYim:ref"

Thanks,
 
Google Logo Google Ads Scripts Team


Reply all
Reply to author
Forward
0 new messages