How to get valid GCLIDs (for testing)?

3,544 views
Skip to first unread message

Hustle OU

unread,
Feb 9, 2022, 4:54:55 AM2/9/22
to Google Ads API and AdWords API Forum
We would like to test our current implementation of the Google Ads API V9.

For that, we need valid GCLID values.

Is there a way to get these valid GCLID values without launching a "real" campaign?

For example, for Facebook, they have this "Facebook Debugger Tool" where you can get valid "fbclid" values (similar to gclid), that you can use for testing.

They also have a parameter called "test_event_code" for testing purposes.

Is there something similar in Google Ads API?

Google Ads API Forum Advisor

unread,
Feb 9, 2022, 2:36:11 PM2/9/22
to hust...@gmail.com, adwor...@googlegroups.com
Hello,

Thanks for reaching out. Google Ads does not support dummy GCLID values, and as such the API does not support them either. You can use Campaign Experiments as a means of testing campaigns. If you provide more context on what you're attempting to test, we may be able to provide a workaround for this.

Regards,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2W5f7R:ref

Hustle OU

unread,
Feb 9, 2022, 2:38:55 PM2/9/22
to Google Ads API and AdWords API Forum
Ok, I see. Can we use the "Campaign Experiments" directly in the Google Ads UI or does it need to go through API?

We would like to test that our Google Ads API V9 implementation works correctly. We have implemented the Upload Offline Conversions (CLICKS) service.

To test that service a valid GCLID is needed.

Google Ads API Forum Advisor

unread,
Feb 10, 2022, 10:11:02 AM2/10/22
to hust...@gmail.com, adwor...@googlegroups.com
Hello,

Campaign Experiments can be used in both the API and UI. Please allow me to make a feature request, subject to review, on your behalf for a testable 'dummy' GCLID. Relevant updates can be found on the Ads Developer blog.

Hustle OU

unread,
Feb 10, 2022, 10:27:08 AM2/10/22
to Google Ads API and AdWords API Forum
Sounds good Matt! Thanks.

That will be great to have (dummy GCLID) so that we can properly test without running live traffic.

Hustle OU

unread,
Feb 16, 2022, 6:03:19 AM2/16/22
to Google Ads API and AdWords API Forum
Hi Matt,

Just checking out with you if they received the feedback suggestion about "gclid" IDs.

And if they are willing to implement a tool to generate those.

Google Ads API Forum Advisor

unread,
Feb 16, 2022, 10:58:22 PM2/16/22
to hust...@gmail.com, adwor...@googlegroups.com

Hi there,

Thanks for getting back to us.

Our team is looking into the created feature request. However, I can not guarantee that it will be implemented soon regarding its availability in the API. For now, you may for now keep an eye on our blog for updates when they become supported.

Let us know if you have any additional questions.

Regards,

Google Logo
Yasar
Google Ads API Team
 

 

 



ref:_00D1U1174p._5004Q2W5f7R:ref

Dario Macieira Mitchell

unread,
Jul 21, 2022, 6:04:32 PM7/21/22
to Google Ads API and AdWords API Forum
Just adding my support, would be great to have this feature.

Marcin Karpiński

unread,
Feb 6, 2023, 8:25:55 AM2/6/23
to Google Ads API and AdWords API Forum
Was Dummy GCLID added already or it is still in progress?

Google Ads API Forum Advisor

unread,
Feb 6, 2023, 9:59:44 AM2/6/23
to marcin.k...@vimncontractor.com, adwor...@googlegroups.com
Hi Marcin,

We appreciate your request for updates to the feature request "Dummy GCLID". However, could you please provide a business use case here? Because, in the Google Ads API, GCLID is automatically created, and you need to have a production account in order to get a GCLID. Having that said, I'm afraid that test or dummy gclid cannot be supported in the Google Ads API.

Best regards,
Google Logo
Jinky
Google Ads API Team
 


ref:_00D1U1174p._5004Q2W5f7R:ref

Marcin Karpiński

unread,
Feb 6, 2023, 10:12:14 AM2/6/23
to Google Ads API and AdWords API Forum
We use conversions on production and it looks like it is working correctly. However we also have e2e tests and we need GCLID to check if google ads api response was fine.  Those tests check whole flow (request/response) on dev/qa environment. In our config for now we use special qa/dev conversion but every 90 days we need to refresh GCLID. I'm just curious if there is another way or something like dynamic GCLID just to not refresh GCLID on e2e every 90 days.

Google Ads API Forum Advisor

unread,
Feb 7, 2023, 8:04:07 AM2/7/23
to marcin.k...@vimncontractor.com, adwor...@googlegroups.com

Hi Marcin,


I'm Darwin, also a member of the Google Ads API team. I work with Jinky and allow me to assist you here. I hope you are doing well today.
 

Thank you for providing your business use case. Please note that the Google Ads API mirrors the Google Ads UI. meaning, if the feature is not available in Google Ads UI most likely also not available in the Google Ads API.


However, you may include this validate_only field in this UploadClickConversionsRequest. If true, the request is validated but not executed. Only errors are returned, not results.
 

Regards,

Google Logo
Darwin
Google Ads API Team
 



ref:_00D1U1174p._5004Q2W5f7R:ref

Marcin Karpiński

unread,
Feb 7, 2023, 10:29:39 AM2/7/23
to Google Ads API and AdWords API Forum
Hi Darwin,
If I set "validate_only to true" isn't it still be returning "EXPIRED_EVENT" on dev/qa environment after 90 days? So we cannot test google ads api response (check if whole flow "request" is correct). All we can do is take production GCLID and refresh to a new one after "max 90 days"?

Regards, 

Google Ads API Forum Advisor

unread,
Feb 7, 2023, 4:31:31 PM2/7/23
to marcin.k...@vimncontractor.com, adwor...@googlegroups.com
Hi Marcin,

Thank you for getting back to the Google Ads API support team.

With regards to "If I set "validate_only to true" isn't it still be returning "EXPIRED_EVENT" on dev/qa environment after 90 days?", yes, it will return an error.

As mentioned by my colleague, note that if a feature is not available in the Google Ads UI, then it is most likely that this is also not available in the Google Ads API. Note that features will be first in the UI before in the API. Having said that, if these Dummy gclids are available in the Google Ads UI, can you please provide the whole Google Ads UI screenshot first so our team can provide accurate recommendations?

You may then send the requested logs 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.

Regards,
Google Logo
Carmela
Google Ads API Team
 


ref:_00D1U1174p._5004Q2W5f7R:ref

Robert De Vivo

unread,
Feb 9, 2023, 7:16:40 PM2/9/23
to Google Ads API and AdWords API Forum
When (if) I get API access and want to post conversions in real time as they occur via a post request to the endpoint with access token and gclid, will I be able to? or do you ALWAYS need to wait 4 hours after the click to send a conversion?

I wish there was a way to mimic the <script> AW gtag method so it a conversion fires as soon as its loaded/requested

Am i wrong here?

Google Ads API Forum Advisor

unread,
Feb 10, 2023, 6:39:09 AM2/10/23
to dev...@gmail.com, adwor...@googlegroups.com

Hi Robert,

Thank you for your latest email.

Based on our documentation, it takes up to 3 hours for imported conversion statistics to appear in your Google Ads account for last-click attribution. For other search attribution models, it can take longer than 3 hours. Having said that, I'm afraid that it's not possible to see conversions in realtime. Also, I can confirm that there's no way to replicate Google tag for Google Ads conversion tracking via Google Ads API where you can see conversions as they occur.

Regards,

Google Logo
Kevin Gil
Google Ads API Team
 


ref:_00D1U1174p._5004Q2W5f7R:ref

Robert De Vivo

unread,
Feb 10, 2023, 1:10:24 PM2/10/23
to ads...@forumsupport.google, adwor...@googlegroups.com
will that ever be a possibility for that ? 
Thanks

Google Ads API Forum Advisor

unread,
Feb 13, 2023, 2:03:46 AM2/13/23
to dev...@gmail.com, adwor...@googlegroups.com

Hi Robert,


Thank you for getting back to us. I hope you are doing well today.
 

Moving forward to your concern about this "will that ever be a possibility for that ?" As my colleague mentioned in his last response "I'm afraid that it's not possible to see conversions in real time. Also, I can confirm that there's no way to replicate Google tag for Google Ads conversion tracking via Google Ads API where you can see conversions as they occur." I also, confirm that this is not possible.
 

On the other hand, you may also check this data freshness guide for more information on performance data that isn’t available instantly. If you want further insights regarding this, you may instead reach out to the Product team via this link, as they are better equipped to provide guidance on this matter.
 

Regards,

Google Logo
Darwin
Google Ads API Team
 



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