OperatorError.OPERATOR_NOT_SUPPORTED in AdwordsUserListService v201806

98 views
Skip to first unread message

Vilen Topchii

unread,
Jun 11, 2018, 5:03:21 PM6/11/18
to AdWords API and Google Ads API Forum
Hi.

I'm getting OperatorError.OPERATOR_NOT_SUPPORTED error while trying to add the user.
My request:
      <soapenv:Header>
          <RequestHeader xmlns="https://adwords.google.com/api/adwords/rm/v201806" soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0">
              <clientCustomerId>123-456-7890</clientCustomerId>
              <developerToken>abc</developerToken>
              <userAgent>def</userAgent>
              <validateOnly>false</validateOnly>
              <partialFailure>false</partialFailure>
          </RequestHeader>
      </soapenv:Header>
      <soapenv:Body>
              <operations xsi:type="objtype:UserListOperation" xmlns:objtype="https://adwords.google.com/api/adwords/rm/v201806">
                  <operator>ADD</operator>
                  <operand>
                      <id>1</id>
                      <name>will</name>
                      <description>A list of mars cruise customers in the last year</description>
                      <status>OPEN</status>
                      <membershipLifeSpan>365</membershipLifeSpan>
                  </operand>
              </operations>
          </mutate>
      </soapenv:Body>
  </soapenv:Envelope>


URL: https://adwords.google.com/api/adwords/rm/v201806/AdwordsUserListService

Luis Xander Talag (AdWords API Team)

unread,
Jun 11, 2018, 11:59:32 PM6/11/18
to AdWords API and Google Ads API Forum
Hi Vilen,

Based on your logs, you did not specify a concrete type of UserListOperation in your operand which might have caused the error. You may look up to this sample code for your reference on how to add BasicUserList. Also, you may refer to the sample SOAP request below. If the issue persist, could you provide the complete SOAP request and response logs together with your clientCustomerId so I could further investigate the issue. Please reply via Reply privately to author.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Header>
        <ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/rm/v201806" soapenv:mustUnderstand="0">
            <ns2:clientCustomerId xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201806">xxx-xxx-xx</ns2:clientCustomerId>
            <ns3:developerToken xmlns:ns3="https://adwords.google.com/api/adwords/cm/v201806">REDACTED</ns3:developerToken>
            <ns4:userAgent xmlns:ns4="https://adwords.google.com/api/adwords/cm/v201806">unknown</ns4:userAgent>
            <ns5:validateOnly xmlns:ns5="https://adwords.google.com/api/adwords/cm/v201806">false</ns5:validateOnly>
            <ns6:partialFailure xmlns:ns6="https://adwords.google.com/api/adwords/cm/v201806">false</ns6:partialFailure>
        </ns1:RequestHeader>

    </soapenv:Header>
    <soapenv:Body>
        <mutate xmlns="https://adwords.google.com/api/adwords/rm/v201806">
            <operations>
                <ns7:operator xmlns:ns7="https://adwords.google.com/api/adwords/cm/v201806">ADD</ns7:operator>
                <operand xmlns:ns8="https://adwords.google.com/api/adwords/rm/v201806" xsi:type="ns8:BasicUserList">
                    <ns8:id>1</ns8:id>
                    <ns8:name>June cruise customers #1528774489303</ns8:name>
                    <ns8:description>A list of june cruise customers in the last year</ns8:description>
                    <ns8:status>OPEN</ns8:status>
                    <ns8:membershipLifeSpan>365</ns8:membershipLifeSpan>

                </operand>
            </operations>
        </mutate>
    </soapenv:Body>
</soapenv:Envelope>

Thanks and regards,
Luis
AdWords API Team

Vilen Topchii

unread,
Jun 12, 2018, 4:22:20 AM6/12/18
to AdWords API and Google Ads API Forum
Thank you.

It helped a lot. Also, the problem was with operator namespace.
Reply all
Reply to author
Forward
0 new messages