convert the return value directly to standard Python Types?

30 views
Skip to first unread message

Mohsen Shafiey Kasrineh

unread,
May 10, 2021, 11:50:40 AM5/10/21
to AdWords API and Google Ads API Forum
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

Mat

unread,
May 12, 2021, 2:35:46 AM5/12/21
to AdWords API and Google Ads API Forum
Hi there,


Regards
Mat

AdWords API and Google Ads API Forum

unread,
Jun 4, 2021, 2:25:21 AM6/4/21
to AdWords API and Google Ads API Forum
Reposting the last inquiry (https://groups.google.com/g/adwords-api/c/-wjclloiqIo/m/vKOAeqWPBgAJ) from the forum as it wasn't routed to our support queue. 

Thanks,

Peter Laurence Napa Oliquino 
Google Ads API Team 

Google Ads API Forum Advisor

unread,
Jun 7, 2021, 11:11:07 PM6/7/21
to adwor...@googlegroups.com
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,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2I0Ak4:ref
Reply all
Reply to author
Forward
0 new messages