Track Campaign Locations in Landing Page

18 views
Skip to first unread message

Amir Kiai

unread,
Oct 9, 2024, 1:22:50 PM10/9/24
to Google Ads API and AdWords API Forum
I am running a google ad in many locations in a single campaign. My locations are setup as a lat, lng and radius. When a user click on my ad, I want to dynamically pass which of the location got the ad triggered to my landing page url. I do not want the user location, I want to know which one of my Campaign location triggered the ad. Can you help how to do this ?

Google Ads API Forum Advisor

unread,
Oct 10, 2024, 12:42:41 AM10/10/24
to ad...@digitaiz.com, adwor...@googlegroups.com

Hi,

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

By reviewing your concern, I understand that your concern is regarding passing the location that triggered your ad in a campaign with multiple locations. Based on your query, I understand that you're running a Google Ads campaign with various location targets set by latitude, longitude, and radius, and you wish to dynamically pass the specific location to your landing page URL when an ad is clicked.

You can do this by utilizing the ‘custom parameters’ for advanced tracking. By following the below steps you can set this up in your Google Ads account:

  • Choose a Level:
You can create up to 8 custom parameters at any level in your account, except for the account level. If you create custom parameters with the same name at different levels (like ad group and ad level), Google Ads will prioritize the most specific one.
For example: If you create a custom parameter at the ad group level (e.g., {_location}=US) and another at the ad level (e.g., {_location}=UK), Google Ads will use the ad-level custom parameter ({_location}=UK) when the ad is clicked.
  • Define Your Custom Parameters:
Each custom parameter consists of two parts:
  1. Name: Up to 16 alphanumeric characters.
  2. Value: Up to 250 characters, which can include symbols such as | ; _ / ^ ( !), and other ValueTrack parameters.For example, if you have unique IDs for your locations, you can create a custom parameter like {_location}=8912.
  • Set Up the Tracking Template:
Once you’ve defined your custom parameters, add them to your tracking template. For example, if you use {_location}, your tracking template might look like this: {lpurl}?location={_location}. Then it will pass the location-specific value to the landing page when the ad is clicked.

I would recommend you to refer to the help center article links on setting up custom parameters and tracking templates, also on About ValueTrack parameters for more information.

If you face any issue further, please provide us with the uncropped UI screenshot of the Google Ads account where you encountered the issue, to better assist you further.

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:!00D1U01174p.!5004Q02vGd44:ref" (ADR-00271168)

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages