Hello Dannison,
I mean here is I am getting different resource names with each search query
depends on the nature of the query.
For example If I call the Adgroup Resource
I have this details customers/{customer_id}/adGroups/{ad_group_id}
I need customer_id
Same way If I call Customer client or customer resource I have this as
resource name
customers/{customer_id}
customers/{customer_id}/customerClients/{client_customer_id}
How I can know which customer is called?
Is there any function which will read resource name and give me its values?
Thanks,
On Monday, 15 April 2019 16:01:31 UTC+5:30, googleadsapi-forumadvisor wrote:
>
> Hi,
>
> The Id you specify in the login-customer-id is usually the root MCC in
> your account hierarchy. This will be able to grant access to all accounts
> under the MCC account (even sub-MCC, and client accounts). You can refer to
> this guide
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#login-customer-id>
>
> for further details.
>
> For you concern about the customer Id, could you confirm if my
> understanding is correct? You wish to get all resource names in the Google
> Ads API that returns customer Id only? If this is what you meant, I am
> afraid that there is no such function supported in the Google Ads API. If I
> misunderstood your concern, could you further elaborate this so I could
> better assist you?
>
> Regards,
> Dannison
> Google Ads API Team
>
>
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:
> https://ads-developers.googleblog.com/search/label/google_ads_api
> https://developers.google.com/adwords/api/community/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> Was your question answered? Please rate your experience with us by taking
> a short survey.
> If not -- reply to this email and tell us what else we can do to help.
>
> Take Survey
> <https://support.google.com/google-ads/contact/survey_transactional?caseid=5-7345000025767&hl=en&ctx=1>
>
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
> https://developers.google.com/adwords/api/community/
> On 04/15/19 17:38:23 [email protected] <javascript:> wrote:
>
> Ok,
>
> So I need to use my logic to get onlyCustomerId from resourceNames.
>
> I just want to know any API function that gives me resurceNames do have ny
> revrse capbility?
>
> LIke forCustomer() does?
>
> Thanks,
>
> On Monday, 15 April 2019 11:15:42 UTC+5:30, googleadsapi-forumadvisor
> wrote:
>
> Hi,
>
> Your concern was handed over to me as I am more capable of assisting you
> with Google Ads API related concerns. Unfortunately, in Google Ads API
> perspective, there is no direct way of returning the customerId value
> itself. You have to implement your own parsing function for the resource
> name value.
>
> Let me know if you have further clarifications.
>
> Regards,
> Dannison
> Google Ads API Team
>
>
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:
> https://ads-developers.googleblog.com/search/label/google_ads_api
> https://developers.google.com/adwords/api/community/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> Was your question answered? Please rate your experience with us by taking
> a short survey.
> If not -- reply to this email and tell us what else we can do to help.
>
> Take Survey
> <https://support.google.com/google-ads/contact/survey_transactional?caseid=5-7345000025767&hl=en&ctx=1>
>
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
> https://developers.google.com/adwords/api/community/
> On 04/12/19 20:06:13 [email protected] wrote:
>
> Sorry, I forgot to mention, this error is for New Ads API.
>
> I am getting those data using Adwords API. I was doing migration process
> from Adwords API to Google Ads API.
>
> On Friday, 12 April 2019 15:12:06 UTC+5:30, cv wrote:
>
> Hello Team,
>
> Is that possible to get only customerId without resourcenames?
>
> Like From this resource name customers/8*******74, I only need to have
> 8*******74.
>
> I know I can get using getCustomer(), but It is require lot of time as I
> have 500+ accounts under my MCC and I need to list them all.
>
> $customer = $customerServiceClient->getCustomer($resourceName);
> $customerId = ($customer->getId()!='') ?
> $customer->getId()->getValue() : '';
>
> Is directly possible to have customer info without needing any extra api
> calls?
>
>
> Thanks,
>
> --
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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 [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
> ---
> You received this message because you are subscribed to the Google Groups
> "AdWords API and Google Ads API Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> Visit this group at https://groups.google.com/group/adwords-api.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/adwords-api/507a2585-5664-40a9-8cb7-a8af72a92dab%40googlegroups.com
> <https://groups.google.com/d/msgid/adwords-api/507a2585-5664-40a9-8cb7-a8af72a92dab%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
> --
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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 [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
> ---
> You received this message because you are subscribed to the Google Groups
> "AdWords API and Google Ads API Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> Visit this group at https://groups.google.com/group/adwords-api.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/adwords-api/789c7113-af1e-445c-93a9-ca789907c0fb%40googlegroups.com
>
> <https://groups.google.com/d/msgid/adwords-api/789c7113-af1e-445c-93a9-ca789907c0fb%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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
---
You received this message because you are subscribed to the Google Groups
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/c058f096-1cf2-4424-82a6-7544501d64b4%40googlegroups.com.