Re: how can i get customer client id which is linked my MCC account using adwords api ????

2017-10-13 Thread MWA
Hi n,

When getting account under your manager accounts you don't need to add

->withClientCustomerId('xxx-xxx-xxx') // this is my manager 
account id

Try without it. use this function only when you want to access your 
customers data. currently you want to access your data, that's why it's not 
working.

On Saturday, August 19, 2017 at 2:40:12 PM UTC+5, n wrote:
>
> Hi, 
>
>   I have standard access but, I can't get AdWords report data 
> using my MCC account *customer_id*so, how I can get customer client 
> report using its *customer_id *AdWords API
>
>
>   when I use my MCC account customer_id I can't get data. and 
> when I use another production account customer_id gives same data for all 
> customer.
>
>  
>
>   I need different report for different customer *client_id*.  *I 
> want to create report same as report garden.*
>
> Thanks
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
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/364797a6-ff2a-41f5-a09a-0e1df4394449%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: how can i get customer client id which is linked my MCC account using adwords api ????

2017-08-29 Thread v
hi 

   Thnks for your reply  but using 
ManagedCustomerService.get 

 and Account Management 
 
I 
create new account under manager account, but still I getting error 
[AuthorizationError.USER_PERMISSION_DENIED 
@ ; trigger:''] 

I need to get customer id which I want to log in for getting those account 
report.

in this below code if I have use withClientCustomerId('xxx-xxx-xxx') in 
session then its give error  
[AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED 
@ ; trigger:''].

My code is below :

 $session = (new AdWordsSessionBuilder())
->fromFile(base_path() . '/adsapi_php.ini')
->withClientCustomerId('xxx-xxx-xxx') // this is my manager 
account id
->withOAuth2Credential($oauth2)
->build();

$customer = new ManagedCustomer();
$customer->setName('Account #' . uniqid());
$customer->setCurrencyCode('USD');
$customer->setDateTimeZone('Europe/London');

$operations = [];
$operation = new ManagedCustomerOperation();
$operation->setOperator(Operator::ADD);
$operation->setOperand($customer);
$operations[] = $operation;

$adWordsServices = new AdWordsServices();

$managedCustomerService =
$adWordsServices->get($session, 
ManagedCustomerService::class);

$customer = 
$managedCustomerService->mutate($operations)->getRval()[0];

$cust_id = $customer->getCustomerId();
$user->client_customer_id=$cust_id; // i need this id

On Monday, August 21, 2017 at 9:14:07 AM UTC+5:30, Peter Oliquino wrote:
>
> Hi,
>
> If you wish to retrieve the list of customers linked to your MCC, then you 
> may use the ManagedCustomerService.get 
> 
>  and 
> refer to the GetAccountHierarchy 
> 
>  example 
> (other supported languages are also available in the link).
>
> As for generating all of your accounts' reports using your MCC, you may 
> refer to the Parallel Report Download 
> 
>  example. 
> Let me know if this helps.
>
> Best regards,
> Peter
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
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/eb080c01-edb5-4c43-860b-13c07630b080%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: how can i get customer client id which is linked my MCC account using adwords api ????

2017-08-20 Thread 'Peter Oliquino' via AdWords API Forum
Hi,

If you wish to retrieve the list of customers linked to your MCC, then you 
may use the ManagedCustomerService.get 

 and 
refer to the GetAccountHierarchy 

 example 
(other supported languages are also available in the link).

As for generating all of your accounts' reports using your MCC, you may 
refer to the Parallel Report Download 

 example. 
Let me know if this helps.

Best regards,
Peter
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
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/03fe0c0b-2dc0-4da4-b7cd-92782b0899f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


how can i get customer client id which is linked my MCC account using adwords api ????

2017-08-19 Thread v


Hi, 

  I have standard access but, I can't get AdWords report data using 
my MCC account *customer_id*so, how I can get customer client report using 
its *customer_id *AdWords API


  when I use my MCC account customer_id I can't get data. and when 
I use another production account customer_id gives same data for all 
customer.

 

  I need different report for different customer *client_id*.  *I 
want to create report same as report garden.*

Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
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/219f7cb1-61d9-4bbf-afac-3fa71cb028ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.