ok i found the right customer id for this gclid . but my response is still 
empty. 
now im trying to query a simple click_view query but i still get en empty 
response.
im using a correct query. what am i missing ?:


query = """SELECT click_view.gclid, click_view.ad_group_ad, 
click_view.keyword, click_view.resource_name, click_view.keyword_info.text, 
campaign.id FROM click_view WHERE campaign.id = 'XXXX' AND segments.date = 
'2021-10-31'"""
client = GoogleAdsClient.load_from_storage('XXX.yaml')
my_ga_service = client.get_service("GoogleAdsService", version="v8")
search_request = client.get_type("SearchGoogleAdsStreamRequest")
search_request.customer_id = customer_id
search_request.query = query
response = my_ga_service.search_stream(request=search_request)
for batch in response:
  for row in batch:
    print(row)



On Monday, November 1, 2021 at 12:44:42 PM UTC+2 Nimrod Grinberg wrote:

> i need to find the ad of a specific gclid.
> so i created this query 
> query = """SELECT click_view.gclid, click_view.ad_group_ad, 
> click_view.keyword, click_view.resource_name, click_view.keyword_info.text 
> FROM click_view WHERE segments.date = '2021-10-31' and click_view.gclid = 
> 'XXXXXX' """
>
> i get an empty response
>
> the customer_id i use in order to defined the search_request is the top 
> MCC , because i dont know which customer id this gclid belongs to. 
>
> how can i find this gclid ad correctly?
>
> im using google ads. 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/7fa7ddfb-ff98-4d3a-8ef5-0966615915c9n%40googlegroups.com.
  • se... Nimrod Grinberg
    • ... Nimrod Grinberg
      • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum

Reply via email to