Hi, Sample code is below. I am trying to figure out how to tell if an
offline conversion has been successful or failed when processed by the API.
I have enabled logging, and can see the SOAP response but that does not
indicate either. Many thanks in advance!
# ... conversion and click values assigned previously
feed = {
'conversionName': conversion_name,
'conversionTime': conversion_time,
'conversionValue': conversion_value,
'googleClickId': click_id,
}
offline_conversion_operation = {
'operator': 'ADD',
'operand': feed
}
offline_conversion_response = offline_conversion_feed_service.mutate(
[offline_conversion_operation])
new_feed = offline_conversion_response['value']
Logging;
Request made: Service: "OfflineConversionFeedService" Method: "mutate" URL:
"https://adwords.google.com/api/adwords/cm/v201809/OfflineConversionFeedService"
Outgoing request: {'SOAPAction': '""', 'Content-Type': 'text/xml;
charset=utf-8', 'authorization': 'REDACTED'}
<soap-env:Envelope
xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Header>
<ns0:RequestHeader
xmlns:ns0="https://adwords.google.com/api/adwords/cm/v201809">
<ns0:developerToken>REDACTED</ns0:developerToken>
<ns0:userAgent>unknown (AwApi-Python, googleads/20.0.0, Python/3.7.2,
zeep)</ns0:userAgent>
<ns0:validateOnly>false</ns0:validateOnly>
<ns0:partialFailure>false</ns0:partialFailure>
</ns0:RequestHeader>
</soap-env:Header>
<soap-env:Body>
<ns0:mutate
xmlns:ns0="https://adwords.google.com/api/adwords/cm/v201809">
<ns0:operations>
<ns0:operator>ADD</ns0:operator>
<ns0:operand>
<ns0:googleClickId><snip></ns0:googleClickId>
<ns0:conversionName>something</ns0:conversionName>
<ns0:conversionTime>20190725 000000 Etc/GMT</ns0:conversionTime>
<ns0:conversionValue>100.0</ns0:conversionValue>
</ns0:operand>
</ns0:operations>
</ns0:mutate>
</soap-env:Body>
</soap-env:Envelope>
Incoming response:
b'<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">\n
<soap:Header>\n <ResponseHeader
xmlns="https://adwords.google.com/api/adwords/cm/v201809">\n
<requestId>0005<snip>269f2</requestId>\n
<serviceName>OfflineConversionFeedService</serviceName>\n
<methodName>mutate</methodName>\n <operations>1</operations>\n
<responseTime>212</responseTime>\n </ResponseHeader>\n
</soap:Header>\n <soap:Body>\n <mutateResponse
xmlns="https://adwords.google.com/api/adwords/cm/v201809">\n <rval>\n
<ListReturnValue.Type>OfflineConversionFeedReturnValue</ListReturnValue.Type>\n
<value>\n <googleClickId><snip></googleClickId>\n
<conversionName>PLV</conversionName>\n <conversionTime>2019mmdd
000000 Etc/GMT</conversionTime>\n
<conversionValue>100.0</conversionValue>\n </value>\n
</rval>\n </mutateResponse>\n </soap:Body>\n</soap:Envelope>\n'
<class 'list'>
<class 'zeep.objects.OfflineConversionFeedReturnValue'>
<class 'list'>
[{
'googleClickId': '<snip>',
'conversionName': 'something',
'conversionTime': '20190725 000000 Etc/GMT',
'conversionValue': 100.0,
'conversionCurrencyCode': None,
'externalAttributionCredit': None,
'externalAttributionModel': None
}]
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ab76df2b-822f-4e20-82fc-1f982b93c7cb%40googlegroups.com.