An error in a sample of official python sdk for ads

python
ads
api

#1

Hi,
I got an error when Im using a sample of Analytics source".

A source

An error
TypeError: the JSON object must be str, not 'bytes'

I think a variable, raw_response_body in Request class is returned by byte not string but Im not sure how to fix this.

If anyone know how to fix this please let me know!

Thanks,
Yasu


#2

Hey @quicknewsofapps

I haven’t been able to reproduce the issue. Can you try running the script again and paste the entire output (including errors) on this thread? Additionally, can you confirm your Ads account_id as well?

Thanks!


#3

@quicknewsofapps: This may be related to Issue #91 on GitHub. This fix is available in version 1.2.