Hello Joab, Thank you for sharing the details privately. Please find my response below for the three set of logs shared:
1. For the logs specific to ManagedCustomerService, it looks like the account is not completely setup. Can you please setup the account completely and retry the API request again? 2. The CUSTOMER_NOT_FOUND <https://developers.google.com/adwords/api/docs/common-errors#AuthenticationError.CUSTOMER_NOT_FOUND> error is triggered when the account specified in the request header is not found. It looks like the CID specified is invalid. Can you make sure that you're using a valid CID and retry the request? 3. Based on the logs shared for the report, it looks like some of the characters are escaped. Could you try using this line: __rdxml: *<?*xml version="1.0" encoding="UTF-8"*?>* in the body of your HTTP POST request and retry the request? Let me know if you run into any issues. 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/d2e48e03-893a-41f6-b490-832ecf5b9d38%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.