Hi When i'm getting the datas from a service :
datas = adwords_client.GetService('AdGroupAdService', 'v201809').get( selector) datas = datas['entries'] print(str(datas)) it will pint something like this : [{ 'id': 1xxxxxx, 'campaignGroupId': None, 'name': '1xxxxxe', 'status': 'PAUSED', 'servingStatus': 'SERVING', 'startDate': 'xxxxxx', 'endDate': 'xxxxx0', 'budget': { 'budgetId': xxxxxx, 'name': 'Budget Marque', 'amount': { 'ComparableValue.Type': 'Money', 'microAmount': 80000000 }, 'deliveryMethod': 'STANDARD', 'referenceCount': 17, 'isExplicitlyShared': True, 'status': 'ENABLED' }, Which is not json formator xml format. So let's print the type of "datas". It is a list of "zeep.objects.Campaign". I think it's a class of campaigns. But how do i do to get it in XML or either json ? There are no informations about that on the sdk . Service used : https://developers.google.com/adwords/api/docs/reference/v201809/CampaignService Sdk : https://developers.google.com/adwords/api/docs/samples/python/campaign-management Thanks for your help, Regards Le mercredi 24 octobre 2018 19:54:36 UTC+2, Milind Sankeshware (AdWords API Team) a écrit : > > Hi Osso, > > I am afraid that you will get the data in XML format only. However, you > could convert the response in XML to JSON at your end. Please find the sample > examples > <https://stackoverflow.com/questions/471946/how-to-convert-xml-to-json-in-python> > from > the stack overflow, which might be helpful for you. Let me know if you have > any further questions. > > Thanks, > Milind, AdWords API Team > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/a874f79e-f92a-4868-a33c-2c69d8915dc6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.