The request contains "UTF-8" encoding declaration. 
The problem might be withe the 
          <queries>żarowka</queries>
but this is also in the UTF-8.




W dniu wtorek, 16 czerwca 2020 15:26:45 UTC+2 użytkownik Adam Jay napisał:
>
> Hi. 
> I have some issue withe encoding the XML request to the Ads API 
> ("TargetingIdeaService") 
> The request is: 
> <?xml version="1.0" encoding="UTF-8"?>
> <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"; xmlns:wsdl="
> https://adwords.google.com/api/adwords/o/v201809"; xmlns:env="
> http://schemas.xmlsoap.org/soap/envelope/"; xmlns:cm="
> https://adwords.google.com/api/adwords/cm/v201809"; xmlns:o="
> https://adwords.google.com/api/adwords/o/v201809";>
>   <env:Header>
>     <wsdl:RequestHeader xmlns="
> https://adwords.google.com/api/adwords/cm/v201809";>
>       <clientCustomerId>xxxxxxx</clientCustomerId>
>       <userAgent>xxxxxxxxxx</userAgent>
>       <developerToken>xxxxxxxx</developerToken>
>     </wsdl:RequestHeader>
>   </env:Header>
>   <env:Body>
>     <get xmlns="https://adwords.google.com/api/adwords/o/v201809";>
>       <selector>
>         <searchParameters xsi:type="LanguageSearchParameter">
>           <languages xmlns:cm="
> https://adwords.google.com/api/adwords/cm/v201809"; xsi:type="cm:Language">
>             <cm:id>1000</cm:id>
>           </languages>
>         </searchParameters>
>         <searchParameters xsi:type="LocationSearchParameter">
>           <locations xmlns:cm="
> https://adwords.google.com/api/adwords/cm/v201809"; xsi:type="cm:Location">
>             <cm:id>2616</cm:id>
>           </locations>
>         </searchParameters>
>         <searchParameters xsi:type="RelatedToQuerySearchParameter">
>           <queries>żarowka</queries>
>         </searchParameters>
>         <ideaType>KEYWORD</ideaType>
>         <requestType>STATS</requestType>
>         <requestedAttributeTypes>KEYWORD_TEXT</requestedAttributeTypes>
>         <requestedAttributeTypes>SEARCH_VOLUME</requestedAttributeTypes>
>         <requestedAttributeTypes>COMPETITION</requestedAttributeTypes>
>         <requestedAttributeTypes>AVERAGE_CPC</requestedAttributeTypes>
>         
> <requestedAttributeTypes>TARGETED_MONTHLY_SEARCHES</requestedAttributeTypes>
>         
> <requestedAttributeTypes>CATEGORY_PRODUCTS_AND_SERVICES</requestedAttributeTypes>
>         <paging xmlns:cm="
> https://adwords.google.com/api/adwords/cm/v201809"; xsi:type="cm:Paging">
>           <cm:startIndex>0</cm:startIndex>
>           <cm:numberResults>100</cm:numberResults>
>         </paging>
>       </selector>
>     </get>
>   </env:Body>
> </env:Envelope>
>
> In response i get: 
> <?xml version="1.0" encoding="UTF-8"?>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
>   <soap:Body>
>     <soap:Fault>
>       <faultcode>soap:Client</faultcode>
>       <faultstring>Unmarshalling Error: ParseError at [row,col]:[22,100]
> Message: Invalid byte 1 of 1-byte UTF-8 sequence. </faultstring>
>     </soap:Fault>
>   </soap:Body>
> </soap:Envelope>
>
> I'm am working in R. 
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/3542c3fe-53f5-4a74-94d2-a02530ee3f6do%40googlegroups.com.

Reply via email to