Hello Joab, Can you make sure that you're giving the client customer Id in the config file of the client library that you're using? Could you please share the complete API SOAP request and response logs for the ManagedCustomerService.get() <https://developers.google.com/adwords/api/docs/reference/v201806/ManagedCustomerService#get> operation so I can take a closer look?
For the second issue, can you make sure that you're specifying the client customer id in the request header while generating the report? Thanks, Bharani, AdWords API Team On Tuesday, August 28, 2018 at 6:00:51 AM UTC-4, Adwords Trapica wrote: > > Hi, > > I'm new to Google Adwords API and I would appreciate your help. > > Since, for now, my clients on boarding manually by link their accounts to > mine I don't have the option to get their refresh token but I have mine and > I hope it's enough. > When I do the signup process by using URL: > https://accounts.google.com/o/oauth2/v2/auth I do get my refresh token, > but when I try to get my clients ids by using AdwordsUser I get zero > results: {\"totalNumEntries\":0,\"Page.Type\":\"ManagedCustomerPage\"}. > Here's my code (Using node-adwords sdk): > > let adwordsUser = new AdwordsUser({ > developerToken : token, > userAgent : agent, > clientCustomerId : clientCustomerId, // xxx-xxx-xxxxx format > client_id : clientId, // > xxxxxx.apps.googleusercontent.com > client_secret : secret, > refresh_token : refreshToken > }) > > > let managedCustomerService = > adwordsUser.getService('ManagedCustomerService', 'v201806') > let managedCustomerSelector = { > fields: ['Name', 'CustomerId'], > ordering: [{field: 'CustomerId', sortOrder: 'ASCENDING'}], > paging: {startIndex: 0, numberResults: > AdwordsConstants.RECOMMENDED_PAGE_SIZE} > } > > managedCustomerService.get({serviceSelector: managedCustomerSelector}, > (error, results) => {... > > Any idea why I can't see the client ids of my customer? > > > > Yet, I can see my customer's client ids in my web console and I'm trying > to get insights about their campaigns. > Here's my code (Using node-adwords sdk): > > let report = new AdwordsReport({ > developerToken: developerToken, > userAgent: agent, > clientCustomerId: clientCustomerId, // Tried to use my customer's > client id and tried to use mine > client_id: clientId, > client_secret: secret, > refresh_token: refreshToken > }) > > report.getReport('v201806', { > reportName: `${clientCustomerId} report for ${duration}`, > reportType: 'CAMPAIGN_PERFORMANCE_REPORT', > query: query, > additionalHeaders: { > skipReportHeader: true, > skipReportSummary: true, > skipColumnHeader: true > }, > format: 'CSV' > }... > > > but I get: eportDownloadError.INVALID_PARAMETER ... Missing client > information > Please advise. > > Thanks, > Joab > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/fbc910c0-9a09-43dc-b73f-4af026caa470%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.