+add the fact code =the picture
query = '''SELECT campaign.id,
campaign.name,
segments.date,
geographic_view.country_criterion_id,
metrics.impressions,
metrics.clicks,
metrics.ctr,
metrics.cost_micros,
metrics.average_cpc,
metrics.average_cpm,
metrics.conversions,
ad_group.id,
ad_group.name
FROM geographic_view
WHERE segments.date BETWEEN '%s' AND '%s'
'''%(date_str,date_str)
ga_service = client.get_service('GoogleAdsService', version='v8')
search_request = client.get_type("SearchGoogleAdsStreamRequest")
search_request.customer_id = str(1613760841)
search_request.query = query
response = ga_service.search_stream(search_request)
data = ga_service.search_stream(request=search_request,timeout=60)
在2021年9月13日星期一 UTC+8 下午12:09:33<[email protected]> 写道:
> The code is hung in the red box, and has no response
>
> 在2021年9月13日星期一 UTC+8 下午12:07:22<[email protected]> 写道:
>
>>
>> Please ask a question.
>> Our Google ads API switched from V6 to V8 yesterday and found some
>> problems.
>> There is a problem with the stability of our API or our configuration.
>> Can you take a look. At present, our code can run out of data normally,
>> often running a customer_ When ID is, it will be stuck indefinitely without
>> reporting an error or quitting; Setting timeout is also invalid. Only by
>> constantly trying again, you may not be able to run out all successfully
>>
>>
>> The details code like the picture:
>>
>> [image: 微信图片_20210913120657.png]
>>
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/34fc2ab5-cc39-4d00-9d8d-d3b42672145cn%40googlegroups.com.