Hi Evgeniy, No error cURL returns! There is no error.
Thank you for your help! On Jan 9, 4:58 pm, Evgeniy Bogdanov <[email protected]> wrote: > Hi Máté. > > Could you show which error cURL returns? > > echo curl_error($ch); > > Regards, > Evgeniy. > > On 9 янв, 17:27, Máté Markovics <[email protected]> wrote: > > > > > > > > > Hi, > > > Please help! I do not know what the problem. > > Reason a request to CURL, but I get an error! > > > Error: > > soap:ClientXML_STREAM_EXC > > > File: > > > $xml_data = ' > > <?xml version="1.0" encoding="UTF-8"?> > > <SOAP-ENV:Envelope > > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" > > xmlns:cm="https://adwords.google.com/api/adwords/cm/v201101" > > xmlns:o="https://adwords.google.com/api/adwords/o/v201101" > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > <SOAP-ENV:Header> > > <o:RequestHeader> > > <cm:authToken>****************</cm:authToken> > > <cm:developerToken>[email protected]++HUF</cm:developerToken> > > <cm:userAgent>TEST API</cm:userAgent> > > <cm:clientEmail>[email protected]</cm:clientEmail> > > </o:RequestHeader> > > </SOAP-ENV:Header> > > <SOAP-ENV:Body> > > <o:get> > > <o:selector> > > <o:searchParameters > > xsi:type="o:RelatedToKeywordSearchParameter"> > > <o:keywords> > > <cm:text>website build</cm:text> > > <cm:matchType>EXACT</cm:matchType> > > </o:keywords> > > </o:searchParameters> > > <o:searchParameters > > xsi:type="o:LanguageTargetSearchParameter"> > > <o:languageTargets> > > > > <cm:languageCode>en</cm:languageCode> > > </o:languageTargets> > > </o:searchParameters> > > <o:searchParameters > > xsi:type="o:CountryTargetSearchParameter"> > > <o:countryTargets> > > <cm:countryCode>US</cm:countryCode> > > </o:countryTargets> > > </o:searchParameters> > > <o:searchParameters > > xsi:type="o:KeywordMatchTypeSearchParameter"> > > > > <o:keywordMatchTypes>EXACT</o:keywordMatchTypes> > > > > <o:keywordMatchTypes>BROAD</o:keywordMatchTypes> > > </o:searchParameters> > > <o:ideaType>KEYWORD</o:ideaType> > > <o:requestType>IDEAS</o:requestType> > > > > <o:requestedAttributeTypes>KEYWORD</o:requestedAttributeTypes> > > > > <o:requestedAttributeTypes>AVERAGE_TARGETED_MONTHLY_SEARCHES</ > > o:requestedAttributeTypes> > > <o:requestedAttributeTypes>GLOBAL_MONTHLY_SEARCHES</ > > o:requestedAttributeTypes> > > > > <o:requestedAttributeTypes>COMPETITION</o:requestedAttributeTypes> > > > > <o:requestedAttributeTypes>TARGETED_MONTHLY_SEARCHES</ > > o:requestedAttributeTypes> > > <o:paging> > > <cm:startIndex>0</cm:startIndex> > > > > <cm:numberResults>10</cm:numberResults> > > </o:paging> > > </o:selector> > > </o:get> > > </SOAP-ENV:Body> > > </SOAP-ENV:Envelope> > > '; > > > $feedUrl = "https://adwords-sandbox.google.com/api/adwords/o/v201101/ > > TargetingIdeaService?wsdl"; > > > $ch = curl_init(); > > curl_setopt($ch, CURLOPT_URL, $feedUrl); > > curl_setopt($ch, CURLOPT_POST, 1); > > curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/ > > soap+xml; charset=utf-8")); > > curl_setopt($ch, CURLOPT_POSTFIELDS, $xml_data); > > $data = curl_exec($ch); > > > Thanks. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [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
