for those who are still wondering in 2023, you can parse the resource name 
using the client you're using (eg: batchjobserviceclient).

I'm using PHP so:

$parsed_resource_name = 
$batchJobServiceClient->parseName($batch_job_result->getMutateOperationResponse()->getAdGroupResult()->getResourceName());

// the parseName method will return an array containing all the variable 
segments (enclosed with {}) of a resource string  
(eg: customers/{customer_id}/adGroups/{ad_group_id})
// so to get the ad group id, you can do like this:

$parsed_resource_name['ad_group_id']; 

Hope that helps.
Cheers,

On Friday, March 4, 2022 at 3:12:56 PM UTC+8 Google Ads API Forum Advisor 
wrote:

> Hi,
>
> Thank you for posting your concern.
>
> To investigate the issue, could you provide the complete request 
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
>  and response 
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
>  logs 
> with request ID 
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
>  and request header 
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers>
>  generated 
> on your end?
>
> You can provide it via *Reply privately to author* option. If this option 
> is not available, then send it instead on this email address 
> googleadsa...@google.com.
>
> Regards,
> [image: Google Logo] 
> Ernie John 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2Xl1RD:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6f2796f4-ea78-4b90-a2cc-ce45a085923bn%40googlegroups.com.

Reply via email to