Hi Bhavin,
In theory, yes, the type should always be returned. If you can give us
an example of a request/response (with sensitive information removed), it
would help us troubleshoot. The xsi:type is specified to disambiguate -
for example, for keywords: criterion xsi:type=Keyword
- Kevin
In my understanding the type field should never be NULL, it must have a
value. When you encounter this situation again look at the SOAP response
(XML) and see whether the problem is in your code processing the SOAP
response or indeed in the SOAP response itself.
If the problem is indeed the
Thanks for response.
Unfortunately, switching to report-download is not a option for us now.
We must use Services.get calls. As per the documentation in get calls
Although this field is returned in the response, it is ignored on input
and cannot be selected. So if selecting Type is not possible,
Hi,
AdGroupAdService type and AdGroupCriterionService get calls return Ad and
AdGroupCriterion objects respectively. Those objects have Type field which
could be used for determining their specific type as in text-ads, image-ad
etc. But, we've noticed sometimes these calls return null values.
From
thishttps://developers.google.com/adwords/api/docs/appendix/selectorfields#v201209link,
I guess CriterionType can be selected and determined but not sure how
to do it with Ad and AdExtension.
-
bhavin
On Tuesday, November 6, 2012 12:31:02 PM UTC+5:30, bhavin wrote:
Hi,