ErikEvenson / googleads-node-lib

17 stars 23 forks source link

Issue with SOAP error response #4

Open mmarchet opened 8 years ago

mmarchet commented 8 years ago

Hello, first of all thanks for your job, it's pretty amazing.

I'm currently trying to work TrafficEstimatorService, with this code :


var service = new AdWords.TrafficEstimatorService({
              ADWORDS_CLIENT_ID: clientID,
              ADWORDS_CLIENT_CUSTOMER_ID: clientCustomerID,
              ADWORDS_DEVELOPER_TOKEN: developerToken,
              ADWORDS_REFRESH_TOKEN: refreshToken,
              ADWORDS_SECRET: clientSecret,
              ADWORDS_USER_AGENT: userAgent,
});

var selector = new AdWords.Selector.model({ 
                campaignEstimateRequests: {     
                    adGroupEstimateRequests: {
                        keywordEstimateRequests: {
                            keyword: {
                                'cm:text': 'myKeyword',
                                'cm:matchType': 'BROAD'
                            }
                        }
                    }
                }, 
});

service.get(clientCustomerID, selector, function(err, results) {
[...]

Then I run into this error :

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
        <soap:Fault>
            <faultcode>soap:Client</faultcode>
            <faultstring>Unmarshalling Error: cvc-complex-type.2.4.a: Invalid content was found starting with element \'paging\'. One of \'{"https://adwords.google.com/api/adwords/o/v201509":campaignEstimateRequests}\' is expected. </faultstring>
        </soap:Fault>
   </soap:Body>
</soap:Envelope>

I don't really understand why the error is starting with "paging" since there is no "paging" in my code. Any idea ?