I am trying to modify the sample here: https://github.com/googleads/googleads-python-lib/blob/master/examples/adwords/v201802/targeting/add_customer_negative_criteria.py
to include the following (actual IP address redacted):
{ 'xsi_type': 'IpBlock', 'ipAddress': 'xx.xx.xxx.xx' }
instead of:
{ 'xsi_type': 'ContentLabel', 'contentLabelType': 'TRAGEDY' }
however when attempting to use "IpBlock" based on the documentation here: https://developers.google.com/adwords/api/docs/reference/v201802/CampaignCriterionService.IpBlock
I get the following error:
LookupError: No type 'IpBlock' in namespace http://www.w3.org/2001/XMLSchema. Available types are: .....
What am I doing wrong? My version is entirely unchanged from the sample except for changing the bracketed content as shown above.
Thanks!