Now i have, what was wrong, i see that  i should add code

service.clientEmailValue = new clientEmail();
service.clientEmailValue.Value = new String[]
{ subCampaign.GoogleAdWordsUsername };

because my mcc have few accounts ,and while request by default
clientEmail put one of mcc acount's emails, so i shold also fill it.

tnx


On Nov 25, 3:23 pm, Valentina Sargsyan <sargsyanvalent...@gmail.com>
wrote:
> Hi
>
> what do you mean legacy account?
>
> this account have money on adwords, also it use  kewords, and all
> works fine, just when trying to create report from api brings this
> error.
> i have read about API units,that  "Validate your report job using
> validateReportJob before scheduling the report. Validating a report
> job costs only 1 API unit, whereas a failed call to scheduleReportJob
> will cost 500 API units." from 
> herehttp://code.google.com/apis/adwords/docs/developer/ReportService.html
> , may be it could be the problem, i was trying to find where i can pay
> it from this account but i didn't find, i also read that it could be
> paid from mcc , but previouse right account was not assigned to mcc
> and was ok. we also tried to assign wrong account to our mcc, which
> have api units, and ,like before it, everything works ok, except
> connection from code, while validatingReport still bring error.
>
> i don't know from where i can read about this error, i didn't fined
> anything
>
> thx
>
> On Nov 11, 9:50 am, AdWords API Advisor <adwordsapiadvi...@google.com>
> wrote:
>
> > Hi,
>
> > Is the GoogleAdWordsUsername for the failed account a legacy account?
>
> > Cheers,
> > Anash P. Oommen,
> > AdWords API Advisor.
>
> > On Nov 10, 1:00 pm, Valentina Sargsyan <sargsyanvalent...@gmail.com>
> > wrote:
>
> > > Hy
>
> > > when I'm trying to use validateReportJob , one account works fine, and
> > > while validating another account's report brings error   "Either this
> > > object does not exist, or this user does not have permission to access
> > > it"
>
> > > i'm using this code
>
> > >                 AdWordsUser user = new AdWordsUser();
>
> > >                 ReportService service =
> > > (ReportService)user.GetService(AdWordsService.v13.ReportService);
> > >                 service.emailValue = new email();
> > >                 service.emailValue.Value = new String[]
> > > {GoogleAdWordsUsername };
> > >                 service.passwordValue = new password();
> > >                 service.passwordValue.Value = new String[]
> > > { GoogleAdWordsPassword };
>
> > >                 // Create the report job.
> > >                 DefinedReportJob reportJob = new DefinedReportJob();
> > >                 reportJob.name = "Keyword Report";
> > >                 reportJob.selectedReportType = "Creative";
> > >                 reportJob.aggregationTypes = new String[] { "Daily" };
> > >                 reportJob.adWordsType = AdWordsType.SearchOnly;
> > >                 reportJob.keywordType = KeywordType.Broad;
> > >                 reportJob.adWordsTypeSpecified = true;
> > >                 reportJob.startDay = DateTime.Now.AddMonths(-2);
> > >                 reportJob.endDay = DateTime.Now.AddMonths(2);
> > >                 reportJob.selectedColumns = new String[] {
> > >                "CreativeId", "Campaign", "CampaignId","AdGroup",
> > > "AdGroupId", "Keyword", "KeywordId", "CPC", "Cost"};
>
> > >                 // Validate the report job.
> > >                 try
> > >                 {
> > >                     service.validateReportJob(reportJob);
> > >                     //Some code here
> > >                 }
> > >                  catch (Exception e)
> > >                 {
> > >                 }
>
> > > don't think it's because of code, may be some setting for account.
> > > could anybody help me please?
>
> > > thx
>
>

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