Hi,

The *reportTypeSpecified* field you mentioned is not part of the 
*getReportFields* spec (see the service XSD here 
<https://adwords.google.com/api/adwords/reportdownload/v201406/reportDefinition.xsd>).
 
If you remove that field from your request, it should work.

Thanks,
Josh, AdWords API Team

On Friday, March 6, 2015 at 5:40:40 AM UTC-5, Michael D wrote:
>
> Hey People, 
>
> im trying to get a report and im sending this request:
>
> POST 
> https://adwords.google.com/api/adwords/cm/v201406/ReportDefinitionService 
> HTTP/1.1
> User-Agent: Mono Web Services Client Protocol 4.0.50524.0
> Authorization: Bearer 
> ya29.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> SOAPAction: ""
> Content-Type: text/xml; charset=utf-8
> Content-Length: 691
> Host: adwords.google.com
>
> <?xml version="1.0" encoding="utf-8"?>
> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:soap="
> http://schemas.xmlsoap.org/soap/envelope/";>
> <soap:Header>
> <RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/v201406";>
> <clientCustomerId>xxx-xxx-xxxx</clientCustomerId>
> <developerToken>XXXXXXXXXXXXXXXXXXXX</developerToken>
> <userAgent>UserAgent</userAgent>
>
> </RequestHeader>
> </soap:Header>
> <soap:Body>
> <getReportFields xmlns="https://adwords.google.com/api/adwords/cm/v201406
> ">
> <reportType>CAMPAIGN_PERFORMANCE_REPORT</reportType>
> <reportTypeSpecified>true</reportTypeSpecified>
> </getReportFields>
> </soap:Body>
> </soap:Envelope>
>
> if reportTypeSpecified is true im gettin the Error:
>
> soap:Fault faultcode
>  Unmarshalling Error: cvc-complex-type.2.4.d: Invalid content was found 
> starting with element 'reportTypeSpecified'. No child element is expected 
> at this point.
>
> if it is false:
> Unmarshalling Error: cvc-complex-type.2.4.a: Invalid content was found 
> starting with element 'reportTypeSpecified'. One of '{"
> https://adwords.google.com/api/adwords/cm/v201406":reportType}' is 
> expected.
>
> Does anyone know what I have to change to get some Reports?
>
> Thank you
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c354fc39-a2c6-49ae-832c-8edcbcad714e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to