Clarification on Campaign URL Options in Google Ads API

58 views
Skip to first unread message

Amit Tomar

unread,
Oct 17, 2024, 5:40:15 AM10/17/24
to Google Ads API and AdWords API Forum
Hello Team,

While implementing Google Ads, I encountered Campaign URL options  (Tracking template, Final URL Suffix and Custom Parameters) as part of the campaign settings. However, when reviewing the API documentation  "https://developers.google.com/google-ads/api/docs/ads/upgraded-urls/fields", I noticed that tracking templates and custom parameters fall under "Upgraded URLs." According to the document, Upgraded URLs are deprecated.

Could you clarify which documentation we should refer to for URL options, and if there are any upcoming changes related to this?

Thank you in advance for your help!

Screenshot 2024-10-17 at 2.35.25 PM.pngScreenshot from 2024-10-17 14-54-39.png

Google Ads API Forum Advisor

unread,
Oct 17, 2024, 3:51:07 PM10/17/24
to amittomar...@gmail.com, adwor...@googlegroups.com
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 Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages