How to add URL Rules using the API?

72 views
Skip to first unread message

Seán Hayes

unread,
Sep 21, 2023, 11:59:10 AM9/21/23
to Google Ads API and AdWords API Forum
Hi

I have an asset group I want to add some URL rules to, namely "If this term appears in the URL, match it to these assets.".

I've been looking for the equivalent way to set them up in the API but it seems very unclear.

Here is a screenshot of the functionality on the web UI.
Screenshot from 2023-09-21 16-56-53.png

Google Ads API Forum Advisor

unread,
Sep 25, 2023, 12:46:57 PM9/25/23
to se...@bpmms.com, adwor...@googlegroups.com
Hi,

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

By reviewing your concern, I understand that you have an asset group for which you want to add URL rules. Could you please confirm whether you have tried it via the Google Ads UI? If so, could you please provide us with the relevant screenshots in an order which you have tried from the UI. Also, you can refer to the API documentation for 'url_custom_parameters', 'final_url_suffix' and 'tracking_url_template'.

You can send the details via Reply privately to the author option, or direct private reply to this email.
 
This message is in relation to case "ref:_00D1U1174p._5004Q2p0CXx:ref"

Thanks,
Google Logo Google Ads API Team


Seán Hayes

unread,
Sep 27, 2023, 11:57:25 AM9/27/23
to Google Ads API and AdWords API Forum
Hi

I can add URL rules to an asset group through the UI with no issue. My question is if it can be done through the API. I cannot see any equivalent function in the API documentation for asset_group for instance.

I have over 1000+ Asset Groups that will each have their own unique URL rules so it is not really scalable to do each of these one at a time through the UI.

I also do not see the relation between the listed entries in the API documentation and what I want to do. I have included two further screenshots for clarity on the exact functionality I want to implement through the API.
Screenshot from 2023-09-27 16-55-29.png
Screenshot from 2023-09-27 16-55-45.png

Google Ads API Forum Advisor

unread,
Sep 29, 2023, 5:37:35 AM9/29/23
to se...@bpmms.com, adwor...@googlegroups.com

Hi,

Thank you for getting back to us.

By reviewing your concern, I understand that you are looking for an equivalent function in the API documentation for asset_group. Kindly refer to this document to know more about the Add Flexible Rule User List. You may refer to the Dynamic Search Ads Page Feeds for more information. Also, please refer to the AssetGroup to know more about the supported fields.

I hope this helps. Kindly get back to us if you have any queries related to Google Ads API. 
 

Reply all
Reply to author
Forward
0 new messages