Yes, On behalf of MCC account.

On Jul 6, 7:44 pm, Stefan Podkowinski <s.podkowin...@gmail.com> wrote:
> Are you trying to create the report on behalf of a MCC account?
>
> On 6 Jul., 16:18, Chirag eBrandz <chirag.ebra...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I am also getting same error
> > [ReportDefinitionError.CUSTOMER_SERVING_TYPE_REPORT_MISMATCH @
> > operations].
> > Can you help me out what i am doing wrong?
> > If you find the solution can you help me out.
>
> > Thanks,
> > chirag
>
> > On May 9, 4:41 pm, "tfren...@internet-mit-iq.de" <tfren...@internet-
>
> > mit-iq.de> wrote:
> > > Hi,
>
> > > so, i use the newest 
> > > google-api-adwords-php<http://code.google.com/p/google-api-adwords-php/>
> > > .
> > > Unfortunately I get this error every report type:
> > > [@ ReportDefinitionError.CUSTOMER_SERVING_TYPE_REPORT_MISMATCH operations]
>
> > > And so no reports.
>
> > > The API that I use is the version 201,101th
>
> > > My goal is really to create custom reports with cross-client, so I 
> > > thought I
> > > start first with the existing report types of project before I approached 
> > > the
> > > heavy trust me.
> > > Unfortunately, I do not get this out already.
>
> > > Here one has an idea?
>
> > > -----------
> > > Leider erhalte ich bei jedem reporttyp diesen fehler:
> > > [ReportDefinitionError.
> > > CUSTOMER_SERVING_TYPE_REPORT_MISMATCH @ operations]
>
> > > Und damit keine Reporte.
>
> > > Die Api die ich nutze ist die Version 201101.
>
> > > Mein Ziel ist es eigentlich individuelle Berichte mit crossclient zu
> > > erstellen, daher dachte ich, ich beginne ersteinmal mit den bestehenden
> > > reporttypen bevor ich mich an das schwere projekt heran traue.
> > > Leider bekomme ich dies schon nicht hin.
>
> > > Hat hier einer eine eine Idee?
> > > ---------------
>
> > > [code]
> > > error_reporting(E_STRICT | E_ALL);
>
> > > // You can set the include path to src directory or reference
> > > // AdWordsUser.php directly via require_once.
> > > // $path = '/path/to/aw_api_php_lib/src';
> > > $path = dirname(__FILE__) . '/../../src';
> > > set_include_path(get_include_path() . PATH_SEPARATOR . $path);
>
> > > require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php';
> > > require_once 'Google/Api/Ads/AdWords/Util/ReportUtils.php';
> > > require_once
> > > 'Google/Api/Ads/AdWords/v201101/cm/ReportDefinitionService.php';
> > > require_once 'Google/Api/Ads/AdWords/v201101/cm/CampaignService.php';
> > > require_once 'Google/Api/Ads/AdWords/Util/ReportDownloadException.php';
>
> > > try {
> > >   // Get AdWordsUser from credentials in "../auth.ini"
> > >   // relative to the AdWordsUser.php file's directory.
>
> > >     $sfileName = "test.csv";
>
> > >       $user = new AdWordsUser();
> > >       $user->SetClientId(eigene ID);
> > >     $user->LogDefaults();
>
> > >     $reportDefinitionService = 
> > > $user->GetReportDefinitionService('v201101');
> > >       $servicedAccountService =
> > > $user->GetServicedAccountService("v201101");    
>
> > >       // Create selector.
> > >       $selector = new Selector();
> > >       $selector->fields = array('AdGroupId', 'Id', 'KeywordText',
> > >       'KeywordMatchType', 'Impressions', 'Clicks', 'Cost');
> > >       $selector->dateRange = new DateRange("20100101", "20110509");
>
> > >       $reportDefinition = new ReportDefinition();
> > >       $reportDefinition->reportName = 'Keywords performance report #' .
> > > time();
> > >       $reportDefinition->dateRangeType = 'CUSTOM_DATE';
> > >       $reportDefinition->reportType = 'KEYWORDS_PERFORMANCE_REPORT';
> > >       $reportDefinition->downloadFormat = 'CSVFOREXCEL';
> > >       $reportDefinition->selector = $selector;
>
> > >     // Create operations.
> > >       $operation = new ReportDefinitionOperation();
> > >       $operation->operand = $reportDefinition;
> > >       $operation->operator = 'ADD';
>
> > >       $operations = array($operation);
>
> > >      // Add report definition.
> > >      $result = $reportDefinitionService->mutate($operations);
>
> > >      $path = dirname(__FILE__) . '/' . $sfileName;
>
> > >      for($x = 0; $x < count($result); $x++ ){                        
> > >         #$reportDefintionId, $path = NULL,AdWordsUser $user, $server = 
> > > NULL,
> > > $returnMoneyInMicros = NULL
> > >         ReportUtils::DownloadReport($result[$x]->id, $path, $user, null,
> > > true);                        
> > >      }
>
> > >      printf("Report with definition id '%s' was downloaded to '%s'.\n",
> > >         $reportDefinitionId, $sfileName);} catch (Exception $e) {
>
> > >   print $e->getMessage();}
>
> > > [/code]

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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

Reply via email to