Hi K,
Thank you for posting your concern.
It appears that the error occurred because there is an issue on how the code is implemented. With this, I would suggest to utilize this
sample code as your base code because it illustrate how to add demographic targeting criteria. Yet, audience criteria should have similar implementation with demographic targeting criteria.
However, since your error is more code related, then I would suggest reaching out to the author of the Python client library via this
link as they are more equipped to provide support to this issue.
Regards,
 |
| Ernie John |
| Google Ads API Team |
|
|
| |

ref:_00D1U1174p._5004Q2YqGZg:ref