Problem with INVALID_CONVERSION_TYPE

75 views
Skip to first unread message

Dmitry Mukhach

unread,
Jul 5, 2020, 6:20:45 AM7/5/20
to AdWords API and Google Ads API Forum
In MCC account I have "ImportSaleWithValue" conversion.
We try to upload conversion and got error:

[2020-07-05 13:00:26] AW_SOAP.WARNING: clientCustomerId=702-256-1235 operations=1 service=OfflineConversionFeedService method=mutate responseTime=171 requestId=0005a9aed3c58b1e0a37b646fe079183 server=adwords.google.com isFault=1 faultMessage=[OfflineConversionError.INVALID_CONVERSION_TYPE @ operations[0].operand]
[2020-07-05 13:00:26] AW_SOAP.NOTICE: POST /api/adwords/cm/v201809/OfflineConversionFeedService?wsdl HTTP/1.1
Connection: close
User-Agent: PHP-SOAP/7.2.31-1+0~20200514.41+debian9~1.gbpe2a56b
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 1122
Authorization: REDACTED

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809"><SOAP-ENV:Header><ns1:RequestHeader><ns1:clientCustomerId>702-256-1235</ns1:clientCustomerId><ns1:developerToken>REDACTED</ns1:developerToken><ns1:userAgent>unknown (AwApi-PHP, googleads-php-lib/40.0.0, PHP/7.2.31-1+0~20200514.41+debian9~1.gbpe2a56b)</ns1:userAgent><ns1:validateOnly>false</ns1:validateOnly><ns1:partialFailure>false</ns1:partialFailure></ns1:RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><ns1:mutate><ns1:operations><ns1:operator>ADD</ns1:operator><ns1:operand><ns1:googleClickId>Cj0KCQjwoPL2BRDxARIsAEMm9y9lHWDWDrZrkKpYoIqxZFQ6_74j_ffYSlV1xtqQQNz8YNrr6YF11nUaArvQEALw_wcB</ns1:googleClickId><ns1:conversionName>ImportSaleWithValue</ns1:conversionName><ns1:conversionTime>20200608 114538 Europe/Moscow</ns1:conversionTime><ns1:conversionValue>2.26</ns1:conversionValue><ns1:conversionCurrencyCode>USD</ns1:conversionCurrencyCode></ns1:operand></ns1:operations></ns1:mutate></SOAP-ENV:Body></SOAP-ENV:Envelope>

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=UTF-8
Date: Sun, 05 Jul 2020 10:00:26 GMT
Expires: Sun, 05 Jul 2020 10:00:26 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: frame-ancestors 'self'
X-XSS-Protection: 1; mode=block
Server: GSE
Alt-Svc: h3-29=":443"; ma=2592000,h3-27=":443"; ma=2592000,h3-25=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Accept-Ranges: none
Vary: Accept-Encoding
Connection: close
Transfer-Encoding: chunked

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201809"><requestId>0005a9aed3c58b1e0a37b646fe079183</requestId><serviceName>OfflineConversionFeedService</serviceName><methodName>mutate</methodName><operations>1</operations><responseTime>171</responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>[OfflineConversionError.INVALID_CONVERSION_TYPE @ operations[0].operand]</faultstring><detail><ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201809"><message>[OfflineConversionError.INVALID_CONVERSION_TYPE @ operations[0].operand]</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="OfflineConversionError"><fieldPath>operations[0].operand</fieldPath><fieldPathElements><field>operations</field><index>0</index></fieldPathElements><fieldPathElements><field>operand</field></fieldPathElements><trigger></trigger><errorString>OfflineConversionError.INVALID_CONVERSION_TYPE</errorString><ApiError.Type>OfflineConversionError</ApiError.Type><reason>INVALID_CONVERSION_TYPE</reason></errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>

PHP Fatal error:  Uncaught Google\AdsApi\AdWords\v201809\cm\ApiException: [OfflineConversionError.INVALID_CONVERSION_TYPE @ operations[0].operand] in /var/www/html/surf-and-buy.online/public_html/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php:43
Stack trace:
#0 /var/www/html/xxx/public_html/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php(43): ReflectionClass->newInstanceArgs(Array)
#1 /var/www/html/xxx/public_html/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(202): Google\AdsApi\Common\Util\Reflection->createInstance('Google\\AdsApi\\A...', Array)
#2 /var/www/html/xxx/public_html/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(164): Google\AdsApi\Common\AdsSoapClient->parseApiExceptionFromSoapFault(Object(SoapFault))
#3 /var/www/html/xxx/public_html/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsAp in /var/www/html/surf-and-buy.online/public_html/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php on line 43

Where is problem? Please help!

Google Ads API Forum Advisor Prod

unread,
Jul 6, 2020, 5:25:06 PM7/6/20
to dmitry....@gmail.com, adwor...@googlegroups.com
Hi Dmitry,

Thank you for reaching out. Please see here for the common causes of that error. Another possible cause of this error is if you recently changes the name of the conversion action and this GCLID was generated before the name change.

Please let me know if none of these apply to your situation.

Regards,
Mitchell
Google Ads API Team

ref:_00D1U1174p._5004Q21jEvz:ref

Dmitry Mukhach

unread,
Jul 7, 2020, 3:42:45 AM7/7/20
to Google Ads API Forum Advisor Prod, adwor...@googlegroups.com
None of these apply to my situation. Please, help.

Google Ads API Forum Advisor Prod

unread,
Jul 7, 2020, 9:38:41 AM7/7/20
to dmitry....@gmail.com, adwor...@googlegroups.com
Hi Dmitry,

My team is looking into this issue and will let you know when there's an update.

Google Ads API Forum Advisor Prod

unread,
Jul 8, 2020, 12:28:07 PM7/8/20
to dmitry....@gmail.com, adwor...@googlegroups.com
Hi Dmitry,

The GCLID you shared actually belongs to account 741-734-1409 so please try making the upload call with this account and let me know if you are still facing any issues.

Dmitry Mukhach

unread,
Jul 8, 2020, 12:33:58 PM7/8/20
to Google Ads API Forum Advisor Prod, adwor...@googlegroups.com
Yes, but this account under MCC & in settings:
image.png

Dmitry Mukhach

unread,
Jul 9, 2020, 3:58:49 AM7/9/20
to AdWords API and Google Ads API Forum
Tried as you said, same error:

AW_SOAP.WARNING: clientCustomerId=741-734-1409 operations=1 service=OfflineConversionFeedService method=mutate responseTime=345 requestId=0005a9fd4c15c9c60a37524269025299 server=adwords.google.com isFault=1 faultMessage=[OfflineConversionError.INVALID_CONVERSION_TYPE @ operations[0].operand]  
AW_SOAP.NOTICE: POST /api/adwords/cm/v201809/OfflineConversionFeedService?wsdl HTTP/1.1
Connection: close
User-Agent: PHP-SOAP/7.2.31-1+0~20200514.41+debian9~1.gbpe2a56b
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 1121
Authorization: REDACTED

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809"><SOAP-ENV:Header><ns1:RequestHeader><ns1:clientCustomerId>741-734-1409</ns1:clientCustomerId><ns1:developerToken>REDACTED</ns1:developerToken><ns1:userAgent>unknown (AwApi-PHP, googleads-php-lib/40.0.0, PHP/7.2.31-1+0~20200514.41+debian9~1.gbpe2a56b)</ns1:userAgent><ns1:validateOnly>false</ns1:validateOnly><ns1:partialFailure>false</ns1:partialFailure></ns1:RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><ns1:mutate><ns1:operations><ns1:operator>ADD</ns1:operator><ns1:operand><ns1:googleClickId>CjwKCAjw5vz2BRAtEiwAbcVILxfzZNotky6Ps-ZtbZJWbAe-gTdHZCM8BgQD1eNkSkxKBFJaWNmlbBoCq3MQAvD_BwE</ns1:googleClickId><ns1:conversionName>ImportSaleWithValue</ns1:conversionName><ns1:conversionTime>20200610 184107 Europe/Moscow</ns1:conversionTime><ns1:conversionValue>0.94</ns1:conversionValue><ns1:conversionCurrencyCode>USD</ns1:conversionCurrencyCode></ns1:operand></ns1:operations></ns1:mutate></SOAP-ENV:Body></SOAP-ENV:Envelope>

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=UTF-8
Date: Thu, 09 Jul 2020 07:37:32 GMT
Expires: Thu, 09 Jul 2020 07:37:32 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: frame-ancestors 'self'
X-XSS-Protection: 1; mode=block
Server: GSE
Alt-Svc: h3-29=":443"; ma=2592000,h3-27=":443"; ma=2592000,h3-25=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Accept-Ranges: none
Vary: Accept-Encoding
Connection: close
Transfer-Encoding: chunked

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201809"><requestId>0005a9fd4c15c9c60a37524269025299</requestId><serviceName>OfflineConversionFeedService</serviceName><methodName>mutate</methodName><operations>1</operations><responseTime>345</responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>[OfflineConversionError.INVALID_CONVERSION_TYPE @ operations[0].operand]</faultstring><detail><ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201809"><message>[OfflineConversionError.INVALID_CONVERSION_TYPE @ operations[0].operand]</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="OfflineConversionError"><fieldPath>operations[0].operand</fieldPath><fieldPathElements><field>operations</field><index>0</index></fieldPathElements><fieldPathElements><field>operand</field></fieldPathElements><trigger></trigger><errorString>OfflineConversionError.INVALID_CONVERSION_TYPE</errorString><ApiError.Type>OfflineConversionError</ApiError.Type><reason>INVALID_CONVERSION_TYPE</reason></errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>
  
PHP Fatal error:  Uncaught Google\AdsApi\AdWords\v201809\cm\ApiException: [OfflineConversionError.INVALID_CONVERSION_TYPE @ operations[0].operand] in /var/www/html/surf-and-buy.online/public_html/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php:43
Stack trace:
#0 /var/www/html/surf-and-buy.online/public_html/adwords/vendor/googlea

ds/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php(43): ReflectionClass->newInstanceArgs(Array)
#1 /var/www/html/surf-and-buy.online/public_html/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(202): Google\AdsApi\Common\Util\Reflection->createInstance('Google\\AdsApi\\A...', Array)
#2 /var/www/html/surf-and-buy.online/public_html/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(164): Google\AdsApi\Common\AdsSoapClient->parseApiExceptionFromSoapFault(Object(SoapFault))
#3 /var/www/html/surf-and-buy.online/public_html/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsAp in /var/www/html/surf-and-buy.online/public_html/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php on line 43

AW_SOAP.WARNING: clientCustomerId=741-734-1409 operations=1 service=OfflineConversionFeedService method=mutate responseTime=182 requestId=0005a9fd8971c0d80a377d85120b9bc1 server=adwords.google.com isFault=1 faultMessage=[OfflineConversionError.INVALID_CONVERSION_TYPE @ operations[0].operand]  
[2020-07-09 10:54:41] AW_SOAP.NOTICE: POST /api/adwords/cm/v201809/OfflineConversionFeedService?wsdl HTTP/1.1
Connection: close
User-Agent: PHP-SOAP/7.2.31-1+0~20200514.41+debian9~1.gbpe2a56b
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 1125
Authorization: REDACTED

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809"><SOAP-ENV:Header><ns1:RequestHeader><ns1:clientCustomerId>741-734-1409</ns1:clientCustomerId><ns1:developerToken>REDACTED</ns1:developerToken><ns1:userAgent>unknown (AwApi-PHP, googleads-php-lib/40.0.0, PHP/7.2.31-1+0~20200514.41+debian9~1.gbpe2a56b)</ns1:userAgent><ns1:validateOnly>false</ns1:validateOnly><ns1:partialFailure>false</ns1:partialFailure></ns1:RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><ns1:mutate><ns1:operations><ns1:operator>ADD</ns1:operator><ns1:operand><ns1:googleClickId>CjwKCAjw5vz2BRAtEiwAbcVILxfzZNotky6Ps-ZtbZJWbAe-gTdHZCM8BgQD1eNkSkxKBFJaWNmlbBoCq3MQAvD_BwE</ns1:googleClickId><ns1:conversionName>OfflineConversions3days</ns1:conversionName><ns1:conversionTime>20200610 184107 Europe/Moscow</ns1:conversionTime><ns1:conversionValue>0.94</ns1:conversionValue><ns1:conversionCurrencyCode>USD</ns1:conversionCurrencyCode></ns1:operand></ns1:operations></ns1:mutate></SOAP-ENV:Body></SOAP-ENV:Envelope>

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=UTF-8
Date: Thu, 09 Jul 2020 07:54:41 GMT
Expires: Thu, 09 Jul 2020 07:54:41 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: frame-ancestors 'self'
X-XSS-Protection: 1; mode=block
Server: GSE
Alt-Svc: h3-29=":443"; ma=2592000,h3-27=":443"; ma=2592000,h3-25=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Accept-Ranges: none
Vary: Accept-Encoding
Connection: close
Transfer-Encoding: chunked

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201809"><requestId>0005a9fd8971c0d80a377d85120b9bc1</requestId><serviceName>OfflineConversionFeedService</serviceName><methodName>mutate</methodName><operations>1</operations><responseTime>182</responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>[OfflineConversionError.INVALID_CONVERSION_TYPE @ operations[0].operand]</faultstring><detail><ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201809"><message>[OfflineConversionError.INVALID_CONVERSION_TYPE @ operations[0].operand]</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="OfflineConversionError"><fieldPath>operations[0].operand</fieldPath><fieldPathElements><field>operations</field><index>0</index></fieldPathElements><fieldPathElements><field>operand</field></fieldPathElements><trigger></trigger><errorString>OfflineConversionError.INVALID_CONVERSION_TYPE</errorString><ApiError.Type>OfflineConversionError</ApiError.Type><reason>INVALID_CONVERSION_TYPE</reason></errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>
  
PHP Fatal error:  Uncaught Google\AdsApi\AdWords\v201809\cm\ApiException: [OfflineConversionError.INVALID_CONVERSION_TYPE @ operations[0].operand] in /var/www/html/surf-and-buy.online/public_html/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php:43
Stack trace:
#0 /var/www/html/surf-and-buy.online/public_html/adwords/vendor/goo

gleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php(43): ReflectionClass->newInstanceArgs(Array)
#1 /var/www/html/surf-and-buy.online/public_html/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(202): Google\AdsApi\Common\Util\Reflection->createInstance('Google\\AdsApi\\A...', Array)
#2 /var/www/html/surf-and-buy.online/public_html/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(164): Google\AdsApi\Common\AdsSoapClient->parseApiExceptionFromSoapFault(Object(SoapFault))
#3 /var/www/html/surf-and-buy.online/public_html/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsAp in /var/www/html/surf-and-buy.online/public_html/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php on line 43

Google Ads API Forum Advisor Prod

unread,
Jul 9, 2020, 9:35:49 AM7/9/20
to dmitry....@gmail.com, adwor...@googlegroups.com

Hello Dmitry,

I sent you a message privately earlier, but I'm not sure you saw it, so I'm sending it again.

When a question gets to be very strange and mysterious, it makes its way to me. I took a look, and I don't see anything obvious, but I do have a few questions that may help me figure out what's happening.

  • I can see that the click happened on June 7 and the conversion on June 8, so that looks like that's ok. That means there may be something interesting happening with the configuration.

  • You attached the client to the manager account on May 25, 2020. Correct? I'm guessing that based on some Change History data. Sometimes additional configuration happens after that, so I want to make sure I have my timing correct.

  • What date did you turn on manager conversion tracking where you showed the screenshot? I'm seeing something interesting on our side about the possible timing of that affecting the uploads now. 

Sometimes, when I'm playing Sherlock Holmes, I have to follow the clues and remove all the possibilities before I can get the answer. I would really appreciate your help in figuring out the mystery by helping me with these questions.

Thanks,
Nadine Wang, Google Ads API Team



ref:_00D1U1174p._5004Q21jEvz:ref

Dmitry Mukhach

unread,
Jul 9, 2020, 10:50:30 AM7/9/20
to Google Ads API Forum Advisor Prod, adwor...@googlegroups.com
Hello Nadine Wang!

Where can I see message privately? I not see it.
Yes, this client was created under MCC account on May 25, 2020.
I don't remember when I changed "Google Ads conversion account" from "Client" to "This manager". In history can't find it. :(

Dmitry Mukhach

unread,
Jul 13, 2020, 7:17:41 AM7/13/20
to AdWords API and Google Ads API Forum
All is OK no. I think mportant is date when changed "Google Ads conversion account" from "Client" to "This manager". I don't see it in the account. When it was changed.

Google Ads API Forum Advisor Prod

unread,
Jul 13, 2020, 10:30:26 AM7/13/20
to dmitry....@gmail.com, adwor...@googlegroups.com
Hello Dmitry,

I realize in the Change History that this event is missing; I also was surprised not to see it there. I've filed a feature request to add this to the UI so in the future there is less confusion. The only way I was able to track the date down was to go through our back-end systems to find when that setting was changed, and our back-end systems are telling me it was July 4th that the value changed. This would explain the failures that you're seeing.

Were you able to try a conversion that is later than July 4th to see if it's working?

Cheers,
Nadine, Google Ads API Team

ref:_00D1U1174p._5004Q21jEvz:ref

Dmitry Mukhach

unread,
Jul 13, 2020, 10:35:33 AM7/13/20
to Google Ads API Forum Advisor Prod, adwor...@googlegroups.com
Yes, today was 2 conversion and they were successfully uploaded! Thanks!

Google Ads API Forum Advisor Prod

unread,
Jul 13, 2020, 10:47:42 AM7/13/20
to dmitry....@gmail.com, adwor...@googlegroups.com
Greetings,

Victory!!! Well, that explains the mystery. I'll work on getting that into the Change History in the future, so we don't end up with surprises like this. Thanks for working with me to get to the bottom of this mystery. 

Take care,
Reply all
Reply to author
Forward
0 new messages