The newest Perl library, v4.13.0 v201702, introduced the
"fieldPathElements" field of ApiError. In testing prior to this upgrade, I
have noticed that the first fieldPathElements.operations index is always 0
and the second fieldPathElements.operations index is the expected index of
the failed job's error.
Dumped ApiError.EntityNotFound xml object:
<fieldPath>operations[20].operand.campaignId</fieldPath>
<fieldPathElements>
<field>operations</field>
<index>0</index>
</fieldPathElements>
<fieldPathElements>
<field>operations</field>
<index>20</index>
</fieldPathElements>
<fieldPathElements>
<field>operand</field>
</fieldPathElements>
<fieldPathElements>
<field>campaignId</field>
</fieldPathElements>
<trigger>CampaignId: 111222333</trigger>
<errorString>EntityNotFound.INVALID_ID</errorString>
<ApiError.Type>EntityNotFound</ApiError.Type>
<reason>INVALID_ID</reason>
Is this behavior expected or is this a bug? If it is expected, should we
always handle these errors by parsing the second "operations" attribute?
We can also handle this appropriately by just parsing index from the
fieldPath string, but according to the release notes
(https://developers.google.com/adwords/api/docs/reference/#getquery) we
should be using the fieldPathElements instead.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
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/1f79ce98-5c78-4bc0-a0e0-aa12041b09d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.