RE: convert the return value directly to standard Python Types?
Hi, Just to add on this thread, for client library specific concerns, such as for Python, you may instead reach out to their client library owners directly via this link. I hope this helps. Best regards, Peter Laurence Napa Oliquino Google Ads API Team ref:_00D1U1174p._5004Q2I0Ak4:ref -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/wgZon0QUD4TY00On3AKcORS6qvGtIQVd3KzQ%40sfdc.net.
Re: convert the return value directly to standard Python Types?
Reposting the last inquiry ( https://groups.google.com/g/adwords-api/c/-wjclloiqIo/m/vKOAeqWPBgAJ <https://groups.google.com/g/adwords-api/c/-oAo_Lgokbo/m/FK1DYR_1BgAJ>) from the forum as it wasn't routed to our support queue. Thanks, *Peter Laurence Napa Oliquino * Google Ads API Team On Wednesday, May 12, 2021 at 2:35:46 PM UTC+8 Mat wrote: > Hi there, > > you might find something here: > > https://googleapis.dev/python/protobuf/latest/google/protobuf/json_format.html > > > > Regards > Mat > > > mohsen...@gmail.com schrieb am Montag, 10. Mai 2021 um 17:50:40 UTC+2: > >> Is there a way to convert the return value directly to standard Python >> Types? >> >> Instead of using the same method as in the examples: >> >> for batch in response: >> for row in batch.results: >> print( >> f"Campaign with ID {row.campaign.id} and name " >> f'"{row.campaign.name}" was found.' >> ) >> >> do convert directly "response" to python object >> > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/106a1034-34d3-4c02-abc9-0c7f8a713b39n%40googlegroups.com.
Re: convert the return value directly to standard Python Types?
Hi there, you might find something here: https://googleapis.dev/python/protobuf/latest/google/protobuf/json_format.html Regards Mat mohsen...@gmail.com schrieb am Montag, 10. Mai 2021 um 17:50:40 UTC+2: > Is there a way to convert the return value directly to standard Python > Types? > > Instead of using the same method as in the examples: > > for batch in response: > for row in batch.results: > print( > f"Campaign with ID {row.campaign.id} and name " > f'"{row.campaign.name}" was found.' > ) > > do convert directly "response" to python object > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/89382f73-8bb9-443e-9b17-225274ecda0bn%40googlegroups.com.
convert the return value directly to standard Python Types?
Is there a way to convert the return value directly to standard Python Types? Instead of using the same method as in the examples: for batch in response: for row in batch.results: print( f"Campaign with ID {row.campaign.id} and name " f'"{row.campaign.name}" was found.' ) do convert directly "response" to python object -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/15a38789-30cd-4001-8a41-f70e0efa3987n%40googlegroups.com.