Hello!
I am trying to get stats from campaign report and got an error module 
'google.ads.google_ads.v2.proto.errors' has no attribute 'errors_pb2'.

Here is a part of code:

client = GoogleAdsClient.load_from_string(yaml.safe_dump(adwords_client_config))


ga_service = client.get_service('GoogleAdsService', version='v2')

query = """
    SELECT
      campaign.name,
      campaign.status,
      segments.device,
      metrics.impressions,
      metrics.clicks,
      metrics.ctr,
      metrics.average_cpc,
      metrics.cost_micros
FROM campaign
WHERE segments.date DURING LAST_30_DAYS
"""
response = ga_service.search(client_customer_id, query, 1000)
for row in response:
    print(row)


Please help me with this error.

Thanks a lot!

Olesya

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/52264b6d-22bc-4667-86c2-a6af9a62cd92%40googlegroups.com.

Reply via email to