Ability to set final url suffix via API

288 views
Skip to first unread message

Matt Dworkin

unread,
Oct 23, 2023, 3:44:44 PM10/23/23
to Google Ads API and AdWords API Forum
Hello,

I'm trying to find whether it's possible to set the final url suffix via the API but cannot seem to find anything. I'm specifically trying to find where I can set the value for the input in the attached screen shot. 

Thanks for your help,
Matt
image (1).png

Edvard Adamenko

unread,
Oct 24, 2023, 8:52:06 PM10/24/23
to mdwor...@gmail.com, Google Ads API and AdWords API Forum

пн, 23 окт. 2023 г., 22:44 Matt Dworkin <mdwor...@gmail.com>:
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/8aa64477-90b1-42ea-ac7a-c93cc9d2e6den%40googlegroups.com.

Google Ads API Forum Advisor

unread,
Oct 25, 2023, 3:32:22 AM10/25/23
to mdwor...@gmail.com, adwor...@googlegroups.com
Hi,

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

By reviewing your query, I understand that you are looking for confirmation if the final url suffix is possible via the API. Yes, it is possible to set the final URL suffix via the API. To set the final URL suffix, you need to create a CampaignAssetSetOperation object and set the finalUrlSuffix field. You can then call the mutateCampaignAssetSets method on the CampaignAssetSetServiceClient object to save the changes.

I would suggest you refer to the document Fields to get more information. Also, kindly refer to the guide Serving URL Expansion Rules. Please go through the SitelinkPlaceholderField for more details.

I hope this helps. Kindly get back to us if you have any further queries.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02pVbeZ:ref"

Thanks,
 
Google Logo Google Ads API Team


Google Ads API Forum Advisor

unread,
Oct 25, 2023, 3:35:56 AM10/25/23
to ede...@gmail.com, mdwor...@gmail.com, adwor...@googlegroups.com
Hi,

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

I see that you have already raised this concern on another thread with "Ability to set final url suffix via API" and we have already responded there for this issue. To avoid multiple threads on the same issue, please take a look at that thread and continue the discussion on the same for further updates on the issue.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02pW0xD:ref"


Thanks,
 
Google Logo Google Ads API Team


Matt Dworkin

unread,
Nov 1, 2023, 4:13:17 PM11/1/23
to Google Ads API and AdWords API Forum
Thanks for getting back to me. 

A few follow ups. 

1. Is it possible to set the suffix while creating the campaign?
2. I might be missing something, but it seems like the docs that are linked to are deprecated, are there other docs to use?

Thanks for your help!

Google Ads API Forum Advisor

unread,
Nov 2, 2023, 2:21:30 AM11/2/23
to mdwor...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for getting back to us.

Yes, it is possible to set the suffix while creating the campaign using the Google Ads API. To do this, you can use the tracking_template field. I would recommend you refer to this document Tracking template and Supported Entities to get more information. Kindly note that the links we have provided in the earlier email are the most up-to-date.

Matt Dworkin

unread,
Nov 2, 2023, 12:47:53 PM11/2/23
to Google Ads API and AdWords API Forum
Hello,


That didn't seem to work, but I found a way. For future reference in case other people have a similar question, final_url_suffix is a field on the Campaign object, and there's also a method (at least in the PHP library) setFinalUrlSuffix.

Google Ads API Forum Advisor

unread,
Nov 2, 2023, 3:00:44 PM11/2/23
to mdwor...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for getting back to us.

Glad to hear that you have found the solution and resolved the issue. If you have any more queries related to Google Ads API, please feel free to get back to us.
Reply all
Reply to author
Forward
0 new messages