Enable Auto Tagging Via API

204 views
Skip to first unread message

eftikhar emad

unread,
Jul 23, 2023, 6:28:19 AM7/23/23
to Google Ads API and AdWords API Forum
Hello, 
I was checking the offline conversion and enable auto tagging on demand for a specific account using API requests
all answers and docs points to a manual process to setup an account for auto tagging 
So is there any API/action I can use to enable it on the account using the API.

I was checking this 
and this mutate action 

But I am not sure if it will work or not, do you have sample code on changing the account setting , since I am using the ruby gem https://github.com/googleads/google-ads-ruby/tree/main/examples/account_management and I can't find the mutate service 

Thank you  

Google Ads API Forum Advisor

unread,
Jul 24, 2023, 4:47:57 AM7/24/23
to eeabu...@gmail.com, adwor...@googlegroups.com
Hi Eftikhar,

Thank you for reaching out to us. In order for us to assist you further, could you please confirm your use case that you want to achieve via API? Do you want to do the following?
  • Upload offline conversions
  • Set the Google Ads account auto tagging preference to Yes base on specific/preferred conditions
This message is in relation to case "ref:_00D1U1174p._5004Q2nRig3:ref"

Thanks,
 
Google Logo Google Ads API Team


eftikhar emad

unread,
Jul 24, 2023, 5:54:43 AM7/24/23
to Google Ads API and AdWords API Forum
Hi, 

I am trying to make the whole process initiated by system, through API request , so 
- I need to check if the account enabled for auto tagging or not
- if not I need to enable it (this what I am asking about its API in ruby)
- check if there is offline conversion action 
- if no action found I will created new also using the api 

the bottleneck in the flow is, can I update the autoTagging flag using and api ? 
if there is an example on update customer attribute in Ruby It would help a lot , mutate CustomerService https://developers.google.com/google-ads/api/reference/rpc/v13/CustomerService

Google Ads API Forum Advisor

unread,
Jul 24, 2023, 10:30:09 AM7/24/23
to eeabu...@gmail.com, adwor...@googlegroups.com
Hi Eftikhar, 

Thank you for getting back to us.

To answer your concern, in Google Ads API perspective, If the click conversions are uploaded in the Google Ads UI, auto-tagging is automatically enabled so your website will start receiving the GCLID as a URL parameter.  

However, this does not occur when using the Google Ads API, so you should enable auto-tagging by updating the auto_tagging_enabled attribute of Customer. You may check the CustomerService to update the auto_tagging.

On the other hand, I am afraid that there is no sample code that we can provide for now to update customer. However, you may also reach out to the client library owners of Ruby instead in this link https://github.com/googleads/google-ads-ruby/issues.

Reference links:

eftikhar emad

unread,
Jul 25, 2023, 4:36:16 AM7/25/23
to Google Ads API and AdWords API Forum
Thank you for your support.
Reply all
Reply to author
Forward
0 new messages