Hi Sonny,
Here is a basic outline for a script you might run to accomplish this:
function main() {
var trackingTemplateOne = "TEMPLATE_ONE";
var trackingTemplateTwo = "TEMPLATE_TWO";
var campaignSelector = AdsApp.campaigns().withCondition("YOUR_CONDITION").get();
while(campaignSelector.hasNext()) {
var campaign = campaignSelector.next();
if(
/* condition for one set of weeks */)
campaign.urls().setTrackingTemplate(trackingTemplateOne);
else
/* condition for other set of weeks */
campaign.urls().setTrackingTemplate(trackingTemplateTwo);
}
}
You will need to figure out the date math so that the conditions (if-else statement) assign the correct tracking template, depending on the pair of weeks. Here are a few useful resources for this:
- Working with dates and times
- formatDate method reference (mentioned in the above resource)
- Various date and time patterns that the formatDate method accepts
Regards,
Matt
Google Ads Scripts Team

ref:_00D1U1174p._5001UJaYpr:ref