Hello! I'm dealing with a big problem.
I've created a test MCC account to get an access to API, created several test clients account: *MCC / *Test AdWords API (533-433-6839) > *CLIENT /* > Test Client Account 1 (264-130-2396) *CLIENT /* > Test Client Account 2 (117-541-4601) Now, when I'm trying to get a report (ACCOUNT_PERFORMANCE_REPORT), after checking whether account is not MCC, I'm still getting this error: "Details: [fieldPath: selector.reportDefinition; trigger: ; errorString: ReportDefinitionError.*CUSTOMER_SERVING_TYPE_REPORT_MISMATCH*]" Here's my code: if (! $managedCustomer->getCanManageClients()) { *// --> Checked 100 times: this code works only when ManagedCustomer object's **getCanManageClients() getter returns FALSE* $reportSession = (new AdWordsSessionBuilder()) ->withOAuth2Credential($oauth2) ->withDeveloperToken(env('ADWORDS_DEVELOPER_TOKEN')) ->withClientCustomerId($_managedCustomer->customer_id) ->build(); *// --> No matter which clientCustomerId is mentioned, i've tried all of them hardcoded - none of them works (*2641302396, 1175414601*)* ... ... ... $reportTemporaryFilePath = sprintf( '%s.csv', tempnam(sys_get_temp_dir(), 'report-') ); $selector = new Selector(); $selector->setFields([ 'Cost', 'Conversions', 'CostPerAllConversion', 'Impressions', 'AverageCpm', 'Ctr', 'Clicks', 'AverageCpc', 'ConversionRate', 'InvalidClicks', 'InvalidClickRate', ]); $reportDefinition = new ReportDefinition(); $reportDefinition->setSelector($selector); $reportDefinition->setReportType( ReportDefinitionReportType::ACCOUNT_PERFORMANCE_REPORT); $reportDefinition->setReportName( 'AAPR_' . uniqid()); // Adwords Account Performance Report $reportDefinition->setDateRangeType( ReportDefinitionDateRangeType::TODAY); $reportDefinition->setDownloadFormat(DownloadFormat::CSV); $reportDownloader = new ReportDownloader($session); ... ... ... $reportDownloadResult = $reportDownloader->downloadReport($reportDefinition); * // --> Here I'm getting this error* } What's the problem? How can I solve it? -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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. 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/bf8865bd-d08d-44cf-9f83-37789c41baeb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.