api for getting info using gclid

4,559 views
Skip to first unread message

Vijayraj Chauhan

unread,
Dec 12, 2011, 8:44:27 AM12/12/11
to adwor...@googlegroups.com
Hi,

I gone through many documents and forums but was unable to find any api which can give me the information like adwords Id, campaign Id and keyword using the given gclid. Is there any such api?? 

TIA,
Vijayraj

Kevin Winter

unread,
Dec 14, 2011, 9:39:25 AM12/14/11
to adwor...@googlegroups.com
Hi,
  There's currently no way to tie the gclid back to your campaigns and keywords.  However, you can make use of ValueTrack to include some of this information in your destination URL: http://support.google.com/adwords/bin/answer.py?hl=en&answer=178482

- Kevin Winter
AdWords API Team

Vijayraj Chauhan

unread,
Jan 11, 2012, 7:24:26 AM1/11/12
to adwor...@googlegroups.com
Hi Kevin,

Thanks for the link...However referring to ValueTrack I found that it is possible only to get the keyword...Using this keyword we can find the AdGroup in which that keyword is present, but we cannot find the ad which was displayed to the user...Is it possible to retrieve the Ad id .......??

TIA,
Vijayraj

Kevin Winter

unread,
Jan 11, 2012, 11:34:45 AM1/11/12
to adwor...@googlegroups.com
Hi Vijayraj,
  I believe the {creative} parameter will return the ID of the Ad, but I have not used ValueTrack myself, so I recommend you test this.

- Kevin Winter
AdWords API Team

Vijayraj Chauhan

unread,
Apr 25, 2012, 9:01:15 AM4/25/12
to adwor...@googlegroups.com
Hi Kevin,

Using  {keyword} parameter we can get the word which was searched by the user. But how to get the exact keyword from the AdGroup which triggered the Ads.

For e.g. I am running a Adgroup by name Project Management and keywords associated with this are project, project management app , and project web app.

Now the user have searched for, say project app and my ad was displayed. How do I know that my ad was displayed from the keyword  project management app or project web app.

TIA,
Vijayraj

Ewan Heming

unread,
Apr 25, 2012, 9:28:10 AM4/25/12
to adwor...@googlegroups.com
Hi Vijayraj,

I usually use the {creative} parameter to get the ad id, then match this up in the API to find out which adgroup triggered the ad. I can then match the {keyword} and {matchtype} parameters to a keyword within the adgroup. It's a bit convoluted and not the most efficient process, but it's been this way for a long time: It would make life much easier if the API adGroupId and keywordId were available as ValueTrack parameters.

Regards,

Ewan

Ewan Heming

unread,
Apr 25, 2012, 9:47:58 AM4/25/12
to adwor...@googlegroups.com
The {keyword} parameter is the one you're actually bidding on that triggered the ad. If you want the exact search query typed into Google, you need to extract it from the HTTP referrer.

Vijayraj Chauhan

unread,
Apr 25, 2012, 10:03:50 AM4/25/12
to adwor...@googlegroups.com
Hi Ewan,

{keyword} parameter gives you the exact search query typed into Google or a word which is there in your AdGroup? From what I know, it gives the word which the user have searched in Google....let me know if I am wrong...

TIA,
Vijayraj

Ewan Heming

unread,
Apr 25, 2012, 11:18:44 AM4/25/12
to adwor...@googlegroups.com
Hi Vijayraj,

I haven't used it for a while, but I'm reasonably confident that it's the keyword from your account, not the search query. I seem to remember being able to match them up with the keywords in an adgroup in the past anyway, but my memory isn't that great these days, so you should probably try a few clicks out to be sure! If the parameter just contained the search query then there wouldn't be so much point in using it as it's already available in the referrer header; for the moment at least....

Regards,

Ewan

2546...@qq.com

unread,
Jun 5, 2014, 5:25:47 AM6/5/14
to adwor...@googlegroups.com
Hi Ewan,

How to get the adgroup Id and campaign Id by ad Id.which api can get the imformation.

Thank you!

Josh Radcliff (AdWords API Team)

unread,
Jun 5, 2014, 11:25:22 AM6/5/14
to adwor...@googlegroups.com
Hi,

Ad ID is only unique by AdGroup (see our Working with Objects Guide for uniqueness rules). If you have captured the click ID (GCLID) then you could use the Click Performance Report to get ad group ID, campaign ID, etc. by click ID.

Cheers,
Josh, AdWords API Team

2546...@qq.com

unread,
Jun 6, 2014, 1:07:40 AM6/6/14
to adwor...@googlegroups.com
Hi Josh,

Thanks a million. I really appreciate it.I will try it

2546...@qq.com

unread,
Jun 12, 2014, 11:33:29 PM6/12/14
to adwor...@googlegroups.com
Hi Josh,

I can get CampainId and AdgroupId by run Click Performance Report.Then I need to get campainName and AdgroupName .But I can't find the field Name about campainName and AdgroupName in selector.I already know I can get the Name by using ID in campaignService and adGroupService.But could I get the Name In Click Performance Report? So I would not like to use more two Service.

Thank you very much !


On Thursday, June 5, 2014 11:25:22 PM UTC+8, Josh Radcliff (AdWords API Team) wrote:

Josh Radcliff (AdWords API Team)

unread,
Jun 13, 2014, 11:25:51 AM6/13/14
to adwor...@googlegroups.com
Hi,

At this time the campaign and ad group name are not available in the Click Performance Report, so you would either have to use the services you mentioned or the Ad Group Performance Report to get the mapping of campaign ID and ad group ID to names.

Cheers,
Josh, AdWords API Team

2546...@qq.com

unread,
Jun 15, 2014, 1:59:46 PM6/15/14
to adwor...@googlegroups.com
Hi Josh,

Thank you ! Your suggestion helped me a lot.I can get the mapping of campaign ID and ad group ID to names by running Ad Group Performance Report now.There is another question.I get adgroupId and campaingnId by DateRange before.Actually, I want get those Ids by GCLID,but I don't know the predicate field name of it .I want to know more about the selector fields and predicate fields in Click Performance Report and Ad Group Performance Report.Is there any help document for me to know it?
I need the information of keyword(the word which was searched by the user),AdGroupName and CampaingnName by a click(destination URL).What I know is get the keyword by ValueTrack and get the Name by two report,Is there a better way get those informations for once?

Thank you for your patience reply!

2546...@qq.com

unread,
Jun 16, 2014, 2:11:21 AM6/16/14
to adwor...@googlegroups.com
Hi Josh,

This issue is resolved.I used the wrong field name 'GCLID',the correct field name is 'GclId'.It's Case sensitive.Thank you !

Pankaj Pandey

unread,
Jul 31, 2015, 7:39:32 AM7/31/15
to AdWords API Forum, adwordsapia...@google.com
Hi Josh,

Is it possible to get referral url ( URL from user came to my website after clicking ad ) from gclid. i have tried URL PERFORMANCE REPORT but there is no gclid field there to get fetch one unique URL.

Thanks in advance

adwor...@penstarpower.com

unread,
Apr 27, 2016, 3:11:28 PM4/27/16
to AdWords API Forum
Hi Kevin,

Is there still no API to obtain info from gclid?  

I've searched the docs but can't find anything except for the Click Performance report.  Ideally, we'd like to pull whatever info (source, medium, keywords) we can get when an event happens and if there's a gclid.

Thanks

adwor...@penstarpower.com

unread,
Apr 27, 2016, 3:11:28 PM4/27/16
to AdWords API Forum
Hi Kevin,

Is there still no API for this?

I've searched the docs and couldn't find anything that returns info based on gclid.  Ideally, we like to query the API for info (source, medium, and keywords) when an event happens and we have a gclid.

Thanks

On Wednesday, December 14, 2011 at 8:39:25 AM UTC-6, Kevin Winter wrote:

Yin Niu

unread,
Apr 27, 2016, 3:28:06 PM4/27/16
to AdWords API Forum
Hi, 

Yes, it is still the case. Gclid is only available in Click Performance report. Please refer to the AdWords API blog for any updates or announcements. 

Thanks,
Yin, AdWords API Team. 

Reply all
Reply to author
Forward
0 new messages