I am doing a new integration to the v201603 API and implementing what we need for the BatchJobService.
However, I made a mistake and downloaded the mutateResponse and started trying to parse the XML but our parser only spat out errors, specifically on errorString.
This is the message I got from google:
"<?xml version=\"1.0\" encoding=\"UTF-8\"?><mutateResponse xmlns=\"https://adwords.google.com/api/adwords/cm/v201603\"><rval><errorList><errors xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"BudgetError\"><fieldPath>operations[0].operand.budget.budgetId</fieldPath><trigger></trigger><errorString>BudgetError.BUDGET_DELETED</errorString><ApiError.Type>BudgetError</ApiError.Type><reason>BUDGET_REMOVED</reason></errors><errors xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"RequiredError\"><fieldPath>operations[0].operand.biddingStrategyConfiguration.biddingStrategyType</fieldPath><trigger></trigger><errorString>RequiredError.REQUIRED</errorString><ApiError.Type>RequiredError</ApiError.Type><reason>REQUIRED</reason></errors></errorList><index>0</index></rval></mutateResponse>"
I find it weird that errorString comes after trigger, cause when you look at the XSD for v201603 this is the relevant part:
<xs:complexType abstract="true" name="ApiError">
<xs:sequence>
<xs:element minOccurs="0" name="ApiError.Type" type="xs:string"/>
<xs:element minOccurs="0" name="errorString" type="xs:string"/>
<xs:element minOccurs="0" name="fieldPath" type="xs:string"/>
<xs:element minOccurs="0" name="trigger" type="xs:string"/>
</xs:sequence>
</xs:complexType>
ApiError.Type and errorString should be before fieldPath and trigger.
So I looked at diffs with older XSDs and this is the relevant part in v201509:
<xs:complexType abstract="true" name="ApiError">
<xs:sequence>
<xs:element minOccurs="0" name="fieldPath" type="xs:string"/>
<xs:element minOccurs="0" name="trigger" type="xs:string"/>
<xs:element minOccurs="0" name="errorString" type="xs:string"/>
<xs:element minOccurs="0" name="ApiError.Type" type="xs:string"/>
</xs:sequence>
</xs:complexType>
So it looks like the response is actually v201509 formatted somehow.
Any ideas why?
/cjk
-- However, I made a mistake and downloaded the mutateResponse and started trying to parse the XML but our parser only spat out errors, specifically on errorString.
This is the message I got from google:
"<?xml version=\"1.0\" encoding=\"UTF-8\"?><mutateResponse xmlns=\"https://adwords.google.com/api/adwords/cm/v201603\"><rval><errorList><errors xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"BudgetError\"><fieldPath>operations[0].operand.budget.budgetId</fieldPath><trigger></trigger><errorString>BudgetError.BUDGET_DELETED</errorString><ApiError.Type>BudgetError</ApiError.Type><reason>BUDGET_REMOVED</reason></errors><errors xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"RequiredError\"><fieldPath>operations[0].operand.biddingStrategyConfiguration.biddingStrategyType</fieldPath><trigger></trigger><errorString>RequiredError.REQUIRED</errorString><ApiError.Type>RequiredError</ApiError.Type><reason>REQUIRED</reason></errors></errorList><index>0</index></rval></mutateResponse>"
I find it weird that errorString comes after trigger, cause when you look at the XSD for v201603 this is the relevant part:
<xs:complexType abstract="true" name="ApiError">
<xs:sequence>
<xs:element minOccurs="0" name="ApiError.Type" type="xs:string"/>
<xs:element minOccurs="0" name="errorString" type="xs:string"/>
<xs:element minOccurs="0" name="fieldPath" type="xs:string"/>
<xs:element minOccurs="0" name="trigger" type="xs:string"/>
</xs:sequence>
</xs:complexType>
ApiError.Type and errorString should be before fieldPath and trigger.
So I looked at diffs with older XSDs and this is the relevant part in v201509:
<xs:complexType abstract="true" name="ApiError">
<xs:sequence>
<xs:element minOccurs="0" name="fieldPath" type="xs:string"/>
<xs:element minOccurs="0" name="trigger" type="xs:string"/>
<xs:element minOccurs="0" name="errorString" type="xs:string"/>
<xs:element minOccurs="0" name="ApiError.Type" type="xs:string"/>
</xs:sequence>
</xs:complexType>
So it looks like the response is actually v201509 formatted somehow.
Any ideas why?
/cjk
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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+unsubscribe@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+unsubscribe@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/fba85415-c232-44dc-aeac-9ceed604acc5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment