Hi,
I am trying to get data form the api, it is a really simple request, that
is an example from the package
*System information:*
- python 3.9.9
- package version google-ads==17.0.0
- using service account
*The Code*
from google.ads.googleads.client import GoogleAdsClient
from google.ads.googleads.errors import GoogleAdsException
credentials = {
"developer_token": "devELOPERTOkeen",
"json_key_file_path" : PATH_TO_SERVICE_ACCOUNT_JSON,
"impersonated_email":"[email protected]",
"use_proto_plus": True,
'login_customer_id' : '1111111122' #MMC ID
}
googleads_client = GoogleAdsClient.load_from_dict(credentials)
def stream_response(client, customer_id, query):
return
client.get_service("GoogleAdsService").search_stream(customer_id,
query=query)
def main(client, customer_id):
query = "SELECT campaign.name FROM campaign LIMIT 10"
response = stream_response(client, customer_id, query=query)
for batch in response:
print(batch)
customer_id = '1223334445'
main(googleads_client, customer_id)
*The Response* /error
ValueError: Specified service GoogleAdsService" does not exist in Google
Ads API v11.
Anyone knows what i am doing wrong?
Regards
Jose Luis
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
"Google Ads API and AdWords 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/20787d00-d7b9-46f8-bdb4-c0e7a94dd753n%40googlegroups.com.