Hi,
Thank you for reaching out to the Google Ads API support team.
Yes, the
upgraded URL is deprecated. To set the campaign URL, you need to use the
customers.campaigns.mutate rest interface method. In the
campaign operation, you can specify the trackingUrlTemplate, finalUrlSuffix and urlCustomParameters[].
You may try the below sample request body:
{
"operations": [
{
"create": {
"name": "testing_search_campaign",
"advertisingChannelType": "SEARCH",
"campaignBudget": "customers/{customer_id}/campaignBudgets/{campaign_budget_id}",
"maximizeConversions": {
"targetCpaMicros": 17249760000
},
"status": "ENABLED",
"startDate": "2024-10-26",
"endDate": "2024-12-28",
"targetingSetting": {
"targetRestrictions": [
{
"bidOnly": true,
"targetingDimension": "AUDIENCE"
}
]
},
"finalUrlSuffix": "",
"trackingUrlTemplate": "",
"urlCustomParameters": [
{
"key": "",
"value": ""
}
]
}
}
],
"partialFailure": true,
"responseContentType": "MUTABLE_RESOURCE"
}
I hope this helps! Let us know if you have any further questions.
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGexF:ref" (ADR-00272044)
Thanks,
 |
Google Ads API Team |
