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