Setting a Tracking Template w/out setting Final URLs

283 views
Skip to first unread message

Eric Nagel

unread,
Dec 30, 2022, 8:29:01 AM12/30/22
to Google Ads API and AdWords API Forum
Hello,

Yesterday I tried setting a Tracking Template on a keyword via the API without setting the Final URLs and the call failed. Then I asked a coworker to try via the web, and that failed. Then, she tried via the Editor and IT WORKED.

When I downloaded the keyword via the API, the Final URLs was an empty string. So I tried setting the Tracking Template w/ the Final URLs as an array with 1 entity, an empty string, and got a "TOO_SHORT" error.

How can this be done via the Editor, but not the API? Or, what do I need to do to set a Keyword Tracking Template without setting the Final URLs on the Keyword?

Thanks!
Eric

Google Ads API Forum Advisor

unread,
Dec 30, 2022, 11:42:45 AM12/30/22
to er...@ericnagel.com, adwor...@googlegroups.com
Hi Eric,

Thank you for reaching out to our API support team.

Our team and this channel specializes in Google Ads API concerns and we unfortunately would not be able to comment on the available features and inner workings of the Google Ads Editor. What the API mirrors instead, are the functionalities found in the Google Ads UI.

As for the upgraded URLs (ex. tracking template, final URL), this guide discussing these fields does not appear to explicitly state that a tracking template requires a final URL to be set. Looking at the AdGroupCriterion documentation the tracking_url_template also does not specify that the final_urls[] be set first.

Moving forward, our team would like to take a closer look at the TOO_SHORT error you encountered. To do so, could you also share your complete request and response logs, and request-id, generated when the API error occurred?

If you haven't yet, logging can be enabled by referring to this guide, and by using the DEBUG log setting.

You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


ref:_00D1U1174p._5004Q2hXx3l:ref

Eric Nagel

unread,
Dec 30, 2022, 11:56:16 AM12/30/22
to Google Ads API and AdWords API Forum
Hello,

Here is the error when setting a Tracking Template but not a Final URL:
image (11).png

I also did not see this in the API documentation, which is why I'm confused of this requirement.

I'm not concerned with the TOO_SHORT error as that makes sense to me. I was just eliminating that as a possibility.

Google Ads API Forum Advisor

unread,
Dec 30, 2022, 1:08:04 PM12/30/22
to er...@ericnagel.com, adwor...@googlegroups.com
Hi Eric,

Thank you for reaching out to the Google Ads API support team.

To investigate the issue further, could you please provide the complete request and response logs, with the request-id? If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link.You can provide it via Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead. Let me know if you have any questions.

Thanks,
Google Logo
Nirmita
Google Ads API Team
 


ref:_00D1U1174p._5004Q2hXx3l:ref

Eric Nagel

unread,
Jan 3, 2023, 10:41:34 AM1/3/23
to Google Ads API and AdWords API Forum
Hi Nirmita,

I'm using the rest transport, not gRPC, in the PHP library. How can I get you the logs that you need?

Google Ads API Forum Advisor

unread,
Jan 3, 2023, 2:23:18 PM1/3/23
to er...@ericnagel.com, adwor...@googlegroups.com
Hi Eric,

If you are using curl from a bash shell, the request and response should be printed to the screen. If you include the -i parameter, the response headers will also be printed. Our team does not further guidance for other ways of logging REST API calls.

The screenshot you provided already contains the request ID. If you can also include the request headers and the request body, along with the other information you already provided, this should be sufficient. Please provide this information privately, in a text file, instead of a screenshot. 

Thanks,

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2hXx3l:ref
Reply all
Reply to author
Forward
0 new messages