See if this would work??
public function GetAccountDetails(AdWordsServices $adWordsServices,
AdWordsSession $session,$refresh_token)
{
$customerService = $adWordsServices->get($session,
CustomerService::class);
$account = $customerService->getCustomers();
foreach ($account as $customers)
{
$customer[] = array(
'customerid'=>$customers->getCustomerId(),
'customername'=>$customers->getDescriptiveName(),
'manager'=>$customers->getCanManageClients(),
'test_account'=>$customers->getTestAccount(),
'refresh_token'=>$refresh_token
);
}
return $customer;
}
On Fri, Jan 10, 2020 at 1:20 PM Rakesh Chauhan <[email protected]>
wrote:
> Hello ,
>
> can you please provide me information how can we get Customer ID using
> Oauth 2.0 or refresh token in Google Ads API(Bita version)
>
> --
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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/46e5ab0e-f5bd-4f6b-9bb8-b085b63a642c%40googlegroups.com
> <https://groups.google.com/d/msgid/adwords-api/46e5ab0e-f5bd-4f6b-9bb8-b085b63a642c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
*subinpvasu*
*9495546474*
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/CAB1%3DLU8LyfaGN1SXM9b9TurTOPJx0x9Zvs1CJgbtxikSuH1_cw%40mail.gmail.com.