Which report will get the campaign id or name with gclid?

1,521 views
Skip to first unread message

JM

unread,
Jul 20, 2022, 4:44:50 PM7/20/22
to Google Ads API and AdWords API Forum
which Google ads api report have this information?

i have the gclid and need the campaign id or name.

Google Ads API Forum Advisor

unread,
Jul 21, 2022, 2:33:35 AM7/21/22
to rxt...@gmail.com, adwor...@googlegroups.com
Hi JM,

Thank you for reaching us out. I am Sherwin from Google Ads API support team. I hope that you are doing well today.

You may use the Click View report. You may use this GAQL for you to create a query for Click View. You may select the click_view.gclid and choose the campaign.id and campaign.name on the segment clause. Please note that when a click_view is the resource in the FROM clause, a filtering condition must be present in the WHERE clause specifying a single day within last 90 days.

Please let us know if this works for you.

Kind regards,
Google Logo
Sherwin Vincent
Google Ads API Team
 


ref:_00D1U1174p._5004Q2bmAL2:ref

JM

unread,
Jul 21, 2022, 12:58:51 PM7/21/22
to Google Ads API and AdWords API Forum
Got it thanks!

Is the api the only place where campaign id/name and gclid can be looked up together?  Does the Google Ads Editor have this information?

Google Ads API Forum Advisor

unread,
Jul 21, 2022, 3:18:31 PM7/21/22
to rxt...@gmail.com, adwor...@googlegroups.com
Hi Joe,

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

We provide assistance to issues/concerns related to the AdWords API / Google Ads API. If you have any question regarding question on the Google Ads UI, i suggest you reach out to our product support team for further assistance.

Thanks,
Google Logo
Nirmitabahen Gaurav
Google Ads API Team
 


ref:_00D1U1174p._5004Q2bmAL2:ref

Joe Man

unread,
Jul 26, 2022, 11:49:15 AM7/26/22
to Google Ads API Forum Advisor, adwor...@googlegroups.com
I tried querying the click_view table, but why does it return nothing?  Is data not populated in click_view for App campaigns?

SELECT campaign.id, campaign.name FROM click_view where  segments.date DURING YESTERDAY



JM

unread,
Jul 26, 2022, 12:09:06 PM7/26/22
to Google Ads API and AdWords API Forum
with REST, only this is returned
{
  "fieldMask": "campaign.id,campaign.name"
}

with JAVA, this is returned

INFO: SUCCESS REQUEST SUMMARY. Method: google.ads.googleads.v11.services.GoogleAdsService/SearchStream, Endpoint: googleads.googleapis.com:443, CustomerID: xxxxxxxxx, RequestID: qnjWppCgz8-Tu8GqXkJlmg, ResponseCode: OK, Fault: null.


Google Ads API Forum Advisor

unread,
Jul 26, 2022, 3:18:47 PM7/26/22
to rxt...@gmail.com, adwor...@googlegroups.com
Hi Joe,

Thank you for your reply.

Could you confirm if you have tried other custom dates in your query? Also, so our team can take a closer look as well, could you share your updated and complete request and response logs, with the request-id?

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

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


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