*SOLUTION: *REINSTALL GOOGLE-ADS PYTHON PACKAGE On Wednesday, July 20, 2022 at 1:25:32 PM UTC-3 Jose Luis Petracca wrote:
> 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":"serviceacc...@email.iam.gserviceaccount.com", > "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 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 "Google Ads API and AdWords 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/74e211f7-1ebe-46a9-be12-edea07cdd7c5n%40googlegroups.com.