Hi Jamie,
You can add sitelinks to accounts via the
addSitelink function in the common
Account object. For example, one way to add an account sitelink would be:
AdsApp.currentAccount().addSitelink(sitelink) // assume a previously defined variable 'sitelink' that is of type, SiteLink
You can also create a sitelink with the
sitelink builder and use the newly created sitelink as the argument to addSitelink(argument). Also, please note that although this example was done in a client account, this can also be accomplished from an MCC as well.
Regards,
Matt
Google Ads Scripts Team