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: [email protected]
Web: *www.ihg.com*




On Fri, Jun 8, 2012 at 1:19 PM, Slava <[email protected]> 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
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> You received this message because you are subscribed to the Google
> Groups "AdWords API Forum" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to