Hi Luis,

This page <https://code.google.com/p/google-api-adwords-php/> is a good 
start for the PHP library.

Best,
- Takeshi, AdWords API Team

On Monday, December 2, 2013 4:29:19 PM UTC+9, Takeshi Hagikura (AdWords API 
Team) wrote:
>
> Hi Luis,
>
> The 400 error code usually means a client error. 
> Do you have the complete SOAP XML and HTTP headers? 
> If so, what happens if you send it using curl?
>
> By the way, if you don't have any specific reason you want to avoid the PHP 
> client library <https://code.google.com/p/google-api-adwords-php/>, I 
> strongly recommend using it. 
> It constructs the SOAP request instead of constructing it on your own.
>
> Best,
> - Takeshi, AdWords API Team
>
> On Friday, November 29, 2013 1:49:12 AM UTC+9, Luis M. CastaƱeda wrote:
>>
>> I wrote a PHP program to run a report using a Cron Job.
>>
>> The program was running fine but recently I started to get an error 400.
>>
>> Obviusly, I did not make any change to the code.
>>
>> Any idea why it is not running anymore?
>>
>> The request code is:
>>
>>                $ch_report1 = curl_init($url_report);
>>
>>                curl_setopt($ch_report1, CURLOPT_SSL_VERIFYHOST, 0);
>>
>>                curl_setopt($ch_report1, CURLOPT_SSL_VERIFYPEER, 0);
>>
>>                curl_setopt($ch_report1, CURLOPT_CONNECTTIMEOUT, 0);
>>
>>                curl_setopt($ch_report1, CURLOPT_TIMEOUT, 600);
>>
>>                curl_setopt($ch_report1, CURLOPT_POSTFIELDS, 
>> $params_report);
>>
>>                curl_setopt($ch_report1, CURLOPT_HTTPHEADER, 
>> $headers_report);
>>
>>                curl_setopt($ch_report1, CURLOPT_RETURNTRANSFER, true);
>>
>>                $response_report1 = curl_exec($ch_report1);
>>
>>                $code_report1 = curl_getinfo($ch_report1, 
>> CURLINFO_HTTP_CODE);
>>
>>                curl_close($ch_report1);
>>
>> Thanks for your help,
>>
>>  
>>
>> Luis
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.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