Re: Oauth getAccessToken() is giving error when calling adwords API 2.6.3 (php)

2011-07-07 Thread Chirag eBrandz
Thanks Eric,
After making OAuth token and token secret persist between requests, i
am able get message "OAuth authorization successful.".

On Jul 6, 11:39 pm, Eric Koleda  wrote:
> Hi Chirag,
>
> As I mentioned in the issue 
> tracker,
> you need to persist the OAuth token and token secret between requests, for
> instance in the PHP session.
>
> Best,
> - Eric Koleda, AdWords API Team

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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


Re: [ReportDefinitionError. CUSTOMER_SERVING_TYPE_REPORT_MISMATCH @ operations]

2011-07-07 Thread Chirag eBrandz
Thanks,
Report created after passing customerId under soap header.
Please update us when cross-client reports for v201101 supported.

On Jul 7, 3:28 pm, Chirag eBrandz  wrote:
> Hi Danial,
> I had sent you mail for XML code for the request and response.
>
> Thanks,
> chirag
>
> On Jul 6, 7:34 pm, Danial Klimkin 
>
>
>
>
>
>
> %google@gtempaccount.com> wrote:
> > Hello Chirag,
>
> > I never received any logs unfortunately and it is hard to say without
> > knowing what report you are running and what kind of account you have.
>
> > Please send me full XML code of your request and response you get back
> > from server.
>
> > -Danial, AdWords API Team.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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


Re: [ReportDefinitionError. CUSTOMER_SERVING_TYPE_REPORT_MISMATCH @ operations]

2011-07-07 Thread Chirag eBrandz
Hi Danial,
I had sent you mail for XML code for the request and response.

Thanks,
chirag

On Jul 6, 7:34 pm, Danial Klimkin  wrote:
> Hello Chirag,
>
> I never received any logs unfortunately and it is hard to say without
> knowing what report you are running and what kind of account you have.
>
> Please send me full XML code of your request and response you get back
> from server.
>
> -Danial, AdWords API Team.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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


Re: [ReportDefinitionError. CUSTOMER_SERVING_TYPE_REPORT_MISMATCH @ operations]

2011-07-07 Thread Chirag eBrandz
Yes, On behalf of MCC account.

On Jul 6, 7:44 pm, Stefan Podkowinski  wrote:
> Are you trying to create the report on behalf of a MCC account?
>
> On 6 Jul., 16:18, Chirag eBrandz  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" 
> > 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 definiti

Re: [ReportDefinitionError. CUSTOMER_SERVING_TYPE_REPORT_MISMATCH @ operations]

2011-07-06 Thread Chirag eBrandz
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"  wrote:
> Hi,
>
> so, i use the newest 
> 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


Oauth getAccessToken() is giving error when calling adwords API 2.6.3 (php)

2011-07-05 Thread Chirag eBrandz
Hi,

When i am calling callbackurl under RequestOAuthToken(), useOAuth.php
is redirecting to callbackurl. on callbackurl i am also getting
oauth_verifier. but when i calling UpgradeOAuthToken($verifier) under
callbackurl page,I am getting error message "The token is invalid.".
When track the code i realize that the set values of $this->oauthinfo;
is not there under getAccesstoken.

Thanks

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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