Hi Contra,

It seems you've pasted the soap log without the response. The error above 
suggests that DOM is unable to process the response XML.

Can you include it or provide a recent requestId (from the log) to allow us 
to investigate the issue further.

Regards,

- Paul, AdWords API Team.

On Sunday, 15 September 2013 13:11:41 UTC+1, Contra Mundi wrote:
>
> I get a very similar problem. I am trying to run one of the examples in 
> PHP Client Library (latest version i.e. 4.5.1) - GetKeywordIdeas.php. I 
> have set up a test MCC account for that, also sorted Google Console API 
> stuff. 
> Client ID for web applications  didnt work for me, probably because 
> Windows is not capable of active listening for a response when I try to use 
> oauth2, so I used 
> Client ID for installed applications(even though my app/examples are 
> running on localhost, WAMP server (Apache 2.4.2 – Mysql 5.5.24 – PHP 5.4.3 
> XDebug 2.1.2 XDC 1.5 PhpMyadmin 3.4.10.1 SQLBuddy 1.3.3 webGrind 1.0) on 
> windows 8 64bit.
>
>
> When I try to run GetKeywordIdeas.php from command line, I get 
>
>> SCREAM:  Error suppression ignored for
>> Notice: Failed to load response into DOM: DOMDocument::loadXML(): Empty 
>> string s
>> upplied as input in 
>> C:\wamp\www\awwebapp\src\Google\Api\Ads\Common\Lib\AdsSoapCl
>> ient.php on line 355
>>
>  
> My soap_xml_log is as follows:
>
>
>
> [Sep 15 2013 11:53:30.000000 - ERROR] POST 
>> /api/adwords/o/v201306/TargetingIdeaService?access_token=MY ACCESS TOKEN 
>> GOES HERE HTTP/1.1
>> Host: adwords.google.com
>> Connection: Keep-Alive
>> User-Agent: PHP-SOAP/5.4.3, gzip
>> Accept-Encoding: gzip, deflate
>> Content-Encoding: deflate
>> Content-Type: text/xml; charset=utf-8
>> SOAPAction: ""
>> Content-Length: 590
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <SOAP-ENV:Envelope xmlns:SOAP-ENV="
>> http://schemas.xmlsoap.org/soap/envelope/"; xmlns:ns1="
>> https://adwords.google.com/api/adwords/o/v201306"; xmlns:xsi="
>> http://www.w3.org/2001/XMLSchema-instance"; xmlns:ns2="
>> https://adwords.google.com/api/adwords/cm/v201306";>
>>   <SOAP-ENV:Header>
>>     <ns1:RequestHeader>
>>       <ns2:developerToken>DEVELOPER TOKEN GOES HERE</ns2:developerToken>
>>       <ns2:userAgent>Sample Adwords API Web App (AwApi-PHP/4.5.1, 
>> Common-PHP/5.0.0, PHP/5.4.3)</ns2:userAgent>
>>     </ns1:RequestHeader>
>>   </SOAP-ENV:Header>
>>   <SOAP-ENV:Body>
>>     <ns1:get>
>>       <ns1:selector>
>>         <ns1:searchParameters 
>> xsi:type="ns1:RelatedToQuerySearchParameter">
>>           <ns1:queries>honda</ns1:queries>
>>         </ns1:searchParameters>
>>         <ns1:searchParameters xsi:type="ns1:LanguageSearchParameter">
>>           <ns1:languages>
>>             <ns2:id>1000</ns2:id>
>>           </ns1:languages>
>>         </ns1:searchParameters>
>>         <ns1:ideaType>KEYWORD</ns1:ideaType>
>>         <ns1:requestType>IDEAS</ns1:requestType>
>>         
>> <ns1:requestedAttributeTypes>KEYWORD_TEXT</ns1:requestedAttributeTypes>
>>         
>> <ns1:requestedAttributeTypes>SEARCH_VOLUME</ns1:requestedAttributeTypes>
>>         
>> <ns1:requestedAttributeTypes>CATEGORY_PRODUCTS_AND_SERVICES</ns1:requestedAttributeTypes>
>>         <ns1:paging>
>>           <ns2:startIndex>0</ns2:startIndex>
>>           <ns2:numberResults>500</ns2:numberResults>
>>         </ns1:paging>
>>       </ns1:selector>
>>     </ns1:get>
>>   </SOAP-ENV:Body>
>> </SOAP-ENV:Envelope>
>>
>> HTTP/1.1 415 Unsupported Media Type
>> Content-Type: text/html; charset=UTF-8
>> Content-Encoding: gzip
>> Date: Sun, 15 Sep 2013 11:53:30 GMT
>> Expires: Sun, 15 Sep 2013 11:53:30 GMT
>> Cache-Control: private, max-age=0
>> X-Content-Type-Options: nosniff
>> X-Frame-Options: SAMEORIGIN
>> X-XSS-Protection: 1; mode=block
>> Content-Length: 131
>> Server: GSE
>>
>>
>
> Please help :)
>  
>
> 2013 m. gegužė 22 d., trečiadienis 09:21:38 UTC+1, Modestas Stankevičius 
> rašė:
>>
>> I have a problem with my google adwords api. I do a request and i get a 
>> null response. I'm using v201209 my code:
>>
>> $user = new AdWordsUser(NULL, $email, $password, $developerToken,
>>      $applicationToken, $userAgent, $clientId);
>> // Get the CampaignService.
>> $campaignService = $user->GetCampaignService('v201209');
>> $selector = new Selector();
>> $selector->fields = array('Id', 'Name', 'Status');
>> $selector->ordering = array(new OrderBy('Name', 'ASCENDING'));
>> // Get all campaigns.
>> $page = $campaignService->get($selector);
>>
>> $page is null. i know that because i tried to put var_dump($page) after 
>> the $page = $campaingService->get($selector) and it didn't print anythign. 
>> Also i get this error
>>
>> Notice: Failed to load response into DOM: DOMDocument::loadXML(): Empty 
>> string 
>> supplied as input in 
>> C:\wamp\www\google_ad_stats\src201209\Google\Api\Ads\Common\Lib\AdsSoapClient.php
>>  
>> on line 234
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to