Hi Yevheniya,
You can get and set campaign final URL suffixes through the
campaign URLs class.
function main() {
var campaignIterator = AdsApp.campaigns().withCondition("Name = 'Search Campaign'").get();
if(campaignIterator.hasNext()) {
var campaign = campaignIterator.next();
//Get final URL suffix
var finalUrlSuffix = campaign.urls().setFinalUrlSuffix('NEW_SUFFIX');
}
}
If you wish to run the script from an MCC, on the 10 child accounts, you can use
Ad Manager scripts. If each campaign has a unique suffix then you can read them in from a source (e.g. a spreadsheet).
Regards,
Matt
Google Ads Scripts Team

ref:_00D1U1174p._5001UODbAM:ref