Hi,

I am receiving the below error when trying to create a radius around the 
given location extension:

googleads.errors.GoogleAdsServerFault: [CriterionError.LOCATION_FILTER_INVALID 
@ operations[0].operand.criterion.matchingFunction; trigger:'70763381629']

This is as a result of the following code:

mutation_result = service.mutate(
    [
        {
            "operator": "ADD",
            "operand": {
                "campaignId": third_party_model.third_party_id,
                "criterion": {
                    'xsi_type': 'LocationGroups',
                    'feedId': feed_id,
                    'matchingFunction': {
                        'operator': 'IDENTITY',
                        'lhsOperand': [
                            {
                                'xsi_type': 'LocationExtensionOperand',
                                'radius': {
                                    'xsi_type': 'ConstantOperand',
                                    'type': 'DOUBLE',
                                    'unit': unit,
                                    'doubleValue': radius
                                },
                                'locationId': third_party_relation.
third_party_id
                            },
                        ],
                    }
                },
            },
        }
    ]
)


Any help as to what is going wrong here would be much appreciated. Am I 
accessing the correct LocationExtension ID?

Many thanks,
Nick

Full stack trace:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/googleads/common.py", line 
1382, in MakeSoapRequest
    *packed_args, _soapheaders=soap_headers)['body']['rval']
  File "/usr/local/lib/python3.6/site-packages/zeep/proxy.py", line 42, in 
__call__
    self._op_name, args, kwargs)
  File "/usr/local/lib/python3.6/site-packages/zeep/wsdl/bindings/soap.py", 
line 132, in send
    return self.process_reply(client, operation_obj, response)
  File "/usr/local/lib/python3.6/site-packages/zeep/wsdl/bindings/soap.py", 
line 194, in process_reply
    return self.process_error(doc, operation)
  File "/usr/local/lib/python3.6/site-packages/zeep/wsdl/bindings/soap.py", 
line 299, in process_error
    detail=fault_node.find('detail'))
zeep.exceptions.Fault: [CriterionError.LOCATION_FILTER_INVALID @ operations[
0].operand.criterion.matchingFunction; trigger:'70763381629']


During handling of the above exception, another exception occurred:


Traceback (most recent call last):
  File "/code/api/ad_networks/shared/sync.py", line 377, in sync_model
    third_party_advertiser_manager,
  File "/usr/local/lib/python3.6/functools.py", line 807, in wrapper
    return dispatch(args[0].__class__)(*args, **kw)
  File "/code/api/ad_networks/adwords/mutations/campaign/campaign.py", line 
1086, in update_model_campaign
    third_party_advertiser_manager,
  File "/code/api/ad_networks/adwords/mutations/campaign/campaign.py", line 
2215, in sync_campaign_location_extension_radius_targeting
    loc_ext_radius_targeting=loc_ext_targeting,
  File "/code/api/ad_networks/adwords/mutations/campaign/campaign.py", line 
2299, in add_location_extension_radius_targeting_to_campaign
    'locationId': third_party_relation.third_party_id
  File "/usr/local/lib/python3.6/site-packages/googleads/common.py", line 
1394, in MakeSoapRequest
    e.detail, errors=error_list, message=e.message)
googleads.errors.GoogleAdsServerFault: [CriterionError.LOCATION_FILTER_INVALID 
@ operations[0].operand.criterion.matchingFunction; trigger:'70763381629']

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/72c217c6-c994-4a04-85ca-ca9b7efdcf24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Receivi... 'Nick Petzold' via AdWords API and Google Ads API Forum
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
      • ... 'Nick Petzold' via AdWords API and Google Ads API Forum

Reply via email to