Error: Got 400 response in google-adwords npm (nodejs)

129 views
Skip to first unread message

vikas...@globussoft.com

unread,
Sep 24, 2015, 10:59:18 AM9/24/15
to AdWords API Forum
This is what i m trying but not able to get data. Always getting error 400.


var ga= require('google-adwords');
ga.use({
          clientID: 'myClientID',
          clientSecret: 'myClientSecret',
           developerToken: 'myDevToken' 
     });

 ga.use({
             refreshToken: 'myRefreshToken', // getting from oauth2.0
              clientCustomerID: 'myCustomerID' // Adwords Customer ID
     });
ga.awql()
             .select('Date,Clicks')
             .from('ACCOUNT_PERFORMANCE_REPORT')
             .during('20150909,20150924')
             .send().then(function(results) {
             console.log(results);
             // your code here 
         }).catch(function(error) {
           console.log(error);
           // error handling code here 
    })

I am getting this error
" { [Error: got 400 response] status: 400 } "

Anthony Madrigal

unread,
Sep 24, 2015, 11:36:14 AM9/24/15
to AdWords API Forum
Hi,

I could further investigate why you are getting this error. To do so, could you please reply privately to author your SOAP XML request and response?

Thanks,
Anthony
AdWords API Team

Anthony Madrigal

unread,
Sep 24, 2015, 11:49:44 AM9/24/15
to AdWords API Forum
Hello,

Please disregard my last response. A colleague pointed out that since this is a report request, there is no SOAP request and response. Please instead look at your HTTP response for the 400 code. The text should contain more details on why this error is occurring. 

Regards,
Anthony
AdWords API Team
Reply all
Reply to author
Forward
0 new messages