I'm trying to update the table rows of price extensions, e.g. changing 3 
first rows and removing the last 5 rows. Leaving stringValue and 
stringValues attributes empty works fine for clearing them (headline, 
description, URLs, etc.), but it doesn't work for moneyWithCurrencyValue 
attributes 
(item price).

This a request to clear the stringValue and stringValues attributes, which 
works as expected.

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:ns0="https://adwords.google.com/api/adwords/cm/v201705"; 
xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:tns="https://adwords.google.com/api/adwords/cm/v201705"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <SOAP-ENV:Header>
    <tns:RequestHeader>
      <tns:clientCustomerId>578-741-4405</tns:clientCustomerId>
      <tns:developerToken>XXXXXXXXXXXXXXXXXXXXXX</tns:developerToken>
      <tns:userAgent>Webrepublic Googletools/20.1.0 (AwApi-Python, 
googleads/5.6.0, Python/3.5.2)</tns:userAgent>
      <tns:validateOnly>false</tns:validateOnly>
      <tns:partialFailure>false</tns:partialFailure>
    </tns:RequestHeader>
  </SOAP-ENV:Header>
  <ns1:Body>
    <ns0:mutate>
      <ns0:operations>
        <ns0:operator>SET</ns0:operator>
        <ns0:operand>
          <ns0:feedId>59560008</ns0:feedId>
          <ns0:feedItemId>19849123362</ns0:feedItemId>
          <ns0:attributeValues>
            <ns0:feedAttributeId>5</ns0:feedAttributeId>
            <ns0:stringValue/>
          </ns0:attributeValues>
          <ns0:attributeValues>
            <ns0:feedAttributeId>6</ns0:feedAttributeId>
            <ns0:stringValue/>
          </ns0:attributeValues>
          <ns0:attributeValues>
            <ns0:feedAttributeId>8</ns0:feedAttributeId>
            <ns0:stringValue/>
          </ns0:attributeValues>
          <ns0:attributeValues>
            <ns0:feedAttributeId>9</ns0:feedAttributeId>
            <ns0:stringValues/>
          </ns0:attributeValues>
          <ns0:attributeValues>
            <ns0:feedAttributeId>10</ns0:feedAttributeId>
            <ns0:stringValues/>
          </ns0:attributeValues>
        </ns0:operand>
      </ns0:operations>
    </ns0:mutate>
  </ns1:Body>
</SOAP-ENV:Envelope>


And now an example of a request to empty moneyWithCurrencyValue attributes, 
which fails:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:ns0="https://adwords.google.com/api/adwords/cm/v201705"; 
xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:tns="https://adwords.google.com/api/adwords/cm/v201705"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <SOAP-ENV:Header>
    <tns:RequestHeader>
      <tns:clientCustomerId>578-741-4405</tns:clientCustomerId>
      <tns:developerToken>XXXXXXXXXXXXXXXXXXXXXX</tns:developerToken>
      <tns:userAgent>Webrepublic Googletools/20.1.0 (AwApi-Python, 
googleads/5.6.0, Python/3.5.2)</tns:userAgent>
      <tns:validateOnly>false</tns:validateOnly>
      <tns:partialFailure>false</tns:partialFailure>
    </tns:RequestHeader>
  </SOAP-ENV:Header>
  <ns1:Body>
    <ns0:mutate>
      <ns0:operations>
        <ns0:operator>SET</ns0:operator>
        <ns0:operand>
          <ns0:feedId>59560008</ns0:feedId>
          <ns0:feedItemId>19849123362</ns0:feedItemId>
          <ns0:attributeValues>
            <ns0:feedAttributeId>7</ns0:feedAttributeId>
            <ns0:moneyWithCurrencyValue/>
          </ns0:attributeValues>
        </ns0:operand>
      </ns0:operations>
    </ns0:mutate>
  </ns1:Body>
</SOAP-ENV:Envelope>


Which returns the following error response:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
  <soap:Header>
    <ResponseHeader 
xmlns="https://adwords.google.com/api/adwords/cm/v201705";>
      <requestId>00055a0016460a310a3728247807d3c1</requestId>
      <serviceName>FeedItemService</serviceName>
      <methodName>mutate</methodName>
      <operations>1</operations>
      <responseTime>174</responseTime>
    </ResponseHeader>
  </soap:Header>
  <soap:Body>
    <soap:Fault>
      <faultcode>soap:Server</faultcode>
      <faultstring>[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
com.google.ads.api.services.common.error.InternalApiError.&lt;init&gt;(InternalApiErro]</faultstring>
      <detail>
        <ApiExceptionFault 
xmlns="https://adwords.google.com/api/adwords/cm/v201705";>
          <message>[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
com.google.ads.api.services.common.error.InternalApiError.&lt;init&gt;(InternalApiErro]</message>
          
<ApplicationException.Type>ApiException</ApplicationException.Type>
          <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="InternalApiError">
            <fieldPath/>
            <trigger/>
            
<errorString>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR</errorString>
            <ApiError.Type>InternalApiError</ApiError.Type>
            <reason>UNEXPECTED_INTERNAL_API_ERROR</reason>
          </errors>
        </ApiExceptionFault>
      </detail>
    </soap:Fault>
  </soap:Body>
</soap:Envelope>



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
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/1b230940-d510-4d15-8866-d5101d83b96e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • FeedItemService... Paco Hobi
    • Re: FeedIt... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
      • Re: Fe... Paco Hobi
        • Re... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
          • ... Dorian Kind
            • ... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
              • ... Dorian Kind

Reply via email to