Currently I am using this API in sandbox. Is that the reason I am not getting results?
* * *Pankaj Patel* *Java Web Architect* *IH**G** - Web Delivery* Phone: 770.604.5519 Email: pankaj.pa...@ihg.com Web: *www.ihg.com* On Fri, Jun 8, 2012 at 4:04 PM, Slava <sl...@justanswer.com> wrote: > PlaceHolder means that the corresponding operation failed. It was either > because an error in the operation itself or because of some other operation > that caused this one to error. If the operation is successful, instead of > PlaceHolder you get the entity you were creating or updating. > > Watch this video, it explains how to process results and errors from > getResults() > > http://www.youtube.com/watch?v=CV_kOTW3ld > > > > > On Friday, June 8, 2012 12:42:25 PM UTC-7, pnp_13 wrote: >> >> Thanks for your answer. >> But GetResuls() method only returns the PlaceHolders for all the Oprands. >> All other objects(Ad, AdGroup) are coming null. >> Can you please help me how can I fetch it using MutateJobService? >> >> Below is the snapshot of the code I am using to get Resuts. >> >> AdWordsUser user = new AdWordsUser(); >> // Get the MutateJobService. >> MutateJobServiceInterface mutateJobService = >> user.getService(AdWordsService**.V201109.MUTATE_JOB_SERVICE); >> >> // Create selector to retrieve job status and wait for it to complete. >> BulkMutateJobSelector selector = new BulkMutateJobSelector(); >> selector.setJobIds( new long[] { >> <jobId> // replace with Job ID returned by >> mutateJobService.mutate() call >> } ); >> >> // Below code after Job is in COMPETED state >> >> JobResult result; try { result = mutateJobService.getResult( selector >> ); } catch( Exception e ) { throw new AdwordsException( e, e.getMessage() >> ); } // Process Output results. for( Operand operand : >> result.getSimpleMutateResult()**.getResults() ) { logic to read object >> from Operands here. } >> >> * >> * >> >> *Pankaj Patel* >> >> *Java Web Architect* >> *IH**G** - Web Delivery* >> Phone: 770.604.5519 >> Email: pankaj.pa...@ihg.com >> Web: *www.ihg.com* >> >> >> >> >> On Fri, Jun 8, 2012 at 1:19 PM, Slava <sl...@justanswer.com> wrote: >> >>> That exactly how you get the Ids. getResults comes back with just >>> created Ads with Ids included. >>> >>> >>> On Thursday, June 7, 2012 2:40:19 PM UTC-7, pnp_13 wrote: >>>> >>>> We are using MutateJobService Interface to create Text Ads in bulk for >>>> different Ad Groups. Ads are getting created successfully but as part of >>>> our System we need the Ad Id for each ad created. So that we can show them >>>> back to the end user of our System. >>>> >>>> We cannot relay on the separate calls to get Ad Id as we have >>>> to maintain the order of result. >>>> >>>> Is it realy possible to get Ad Ids by MutateJobService.getResults() >>>> call. Please help me to resolve this issue. >>>> >>> -- >>> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~**=~=~=~=~=~=~=~=~=~ >>> Also find us on our blog and discussion group: >>> http://adwordsapi.blogspot.com >>> http://groups.google.com/**group/adwords-api<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+unsubscribe@**googlegroups.com<adwords-api%2bunsubscr...@googlegroups.com> >>> For more options, visit this group at >>> http://groups.google.com/**group/adwords-api?hl=en<http://groups.google.com/group/adwords-api?hl=en> >>> >> >> -- > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ > 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 > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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