Hi guys,
I'm having some issues with the below mutation call:
mutation_result = service.mutate(
[
{
"operator": "ADD",
"operand": {
"campaignId": campaign_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': location_id
},
],
}
},
},
}
]
)
I get two different errors depending on how it is called. To give some
context, the above call is made as part of a wider operation to first
create the location extension, and then create the proximity radius around
it. If I just run it as is, it raises the below Unmarshalling Error:
googleads.errors.GoogleAdsServerFault: Unmarshalling Error: For input string
: "12195786098815662524"
However, if I put in a codebreak with pdb(), I get the following error once
the code is restarted:
googleads.errors.GoogleAdsServerFault: [CriterionError.LOCATION_FILTER_INVALID
@ operations[0].operand.criterion.matchingFunction; trigger:
'1122280410674159235']
I am assuming the difference in error is because there is some delay
incorporated in the second run, but I have no idea why. Can anyone explain
what I am doing wrong here?
To clarify, the strings in each error above refer to location IDs, the only
reason they are seen to be different is because the locations have been
generated as part of the wider code. They should be exactly the same in
there structure/makeup.
Thanks in advance!
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/cd0c7e3f-3184-47a1-9faf-a2eebf6151bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.