Hi,
I am trying to create a LogicalUserList via the python googleads library
(api version v201809).
Its a fairly basic request which looks like this:
{
'operator': 'ADD',
'operand': {
'xsi_type': 'LogicalUserList',
'name': 'My unique name',
'status': 'OPEN',
'rules': [{
'operator': 'ALL',
'ruleOperands': [{
'xsi_type': 'BasicUserList',
'id': 814854591
}]
}, {
'operator': 'NONE',
'ruleOperands': [{
'xsi_type': 'BasicUserList',
'id': 814854611
}, {
'xsi_type': 'BasicUserList',
'id': 814854621
}]
}]
}
}
When I mutate this operation via the AdwordsUserListService I get the
following error:
{
'message': 'Cannot construct an instance of
com.google.ads.api.services.datax.userlists.LogicalUserListOperand because
it is abstract. You are probably missing an @Uses annotation while
invoking public abstract
com.google.ads.api.services.datax.userlists.UserListReturnValue
com.google.ads.api.services.datax.adwordsuserlist.AdwordsUserListService.mutate(java.util.List)
throws com.google.ads.api.services.common.error.ApiException with params
[[com.google.ads.api.services.datax.adwordsuserlist.v201809.jaxbgen.UserListOperation@773a608a]].',
'code': 'soap:Server',
'actor': None,
'detail': None,
'subcodes': None
}
soap headers:
{
'clientCustomerId': '<***>',
'developerToken': '<***>,
'userAgent': 'AdWordsClient/201809 (AwApi-Python, googleads/20.0.0,
Python/3.7.0, zeep)',
'validateOnly': False,
'partialFailure': False
}
The requests gets transformed into this soap request by the python
googleads library:
{
'operator': 'ADD',
'Operation.Type': None,
'operand': {
'id': None,
'isReadOnly': None,
'name': 'My unique name',
'description': None,
'status': 'OPEN',
'integrationCode': None,
'accessReason': None,
'accountUserListStatus': None,
'membershipLifeSpan': None,
'size': None,
'sizeRange': None,
'sizeForSearch': None,
'sizeRangeForSearch': None,
'listType': None,
'isEligibleForSearch': None,
'isEligibleForDisplay': None,
'closingReason': None,
'UserList.Type': None,
'rules': [
{
'operator': 'ALL',
'ruleOperands': [
{
'id': 814854651,
'isReadOnly': None,
'name': None,
'description': None,
'status': None,
'integrationCode': None,
'accessReason': None,
'accountUserListStatus': None,
'membershipLifeSpan': None,
'size': None,
'sizeRange': None,
'sizeForSearch': None,
'sizeRangeForSearch': None,
'listType': None,
'isEligibleForSearch': None,
'isEligibleForDisplay': None,
'closingReason': None,
'UserList.Type': None,
'conversionTypes': []
}
]
},
{
'operator': 'NONE',
'ruleOperands': [
{
'id': 814854611,
'isReadOnly': None,
'name': None,
'description': None,
'status': None,
'integrationCode': None,
'accessReason': None,
'accountUserListStatus': None,
'membershipLifeSpan': None,
'size': None,
'sizeRange': None,
'sizeForSearch': None,
'sizeRangeForSearch': None,
'listType': None,
'isEligibleForSearch': None,
'isEligibleForDisplay': None,
'closingReason': None,
'UserList.Type': None,
'conversionTypes': []
},
{
'id': 814854621,
'isReadOnly': None,
'name': None,
'description': None,
'status': None,
'integrationCode': None,
'accessReason': None,
'accountUserListStatus': None,
'membershipLifeSpan': None,
'size': None,
'sizeRange': None,
'sizeForSearch': None,
'sizeRangeForSearch': None,
'listType': None,
'isEligibleForSearch': None,
'isEligibleForDisplay': None,
'closingReason': None,
'UserList.Type': None,
'conversionTypes': []
}
]
}
]
}
}
Any help would be appreciated thanks.
Sanjay
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/e82a4c43-0da4-44c4-a5a1-d4f8c6a8cd33%40googlegroups.com.