Hi Team, I am using batch job to add Adgroup to a campaign,but while fetching the ad id always getting 0, even though i added response content type as MUTABLE_RESOURCE. here is my code,
ListBatchJobResultsPagedResponse batchJobResults = batchJobServiceClient .listBatchJobResults(ListBatchJobResultsRequest.newBuilder().setResourceName(batchJobResourceName) .setPageSize(PAGE_SIZE).setResponseContentType(ResponseContentType.MUTABLE_RESOURCE).build()); try (AdGroupServiceClient adGroupServiceClient = googleAdsClient.getLatestVersion() .createAdGroupServiceClient()) { for (BatchJobResult batchJobResult : batchJobResults.iterateAll()) { // AdGroupAd ad = // batchJobResult.getMutateOperationResponse().getAdGroupAdResult().getResourceName(); String adGroupResourceName = batchJobResult.getMutateOperationResponse().getAdGroupResult() .getResourceName(); LOGGER.info("test batch id....." + batchJobResult.getMutateOperationResponse().getAdGroupResult().getAdGroup().getId()); -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads 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 --- You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/55174f99-566b-43de-b311-784c9608a424n%40googlegroups.com.