Re: Google Ads Api V5 How to get manage account 's customer list?

2020-10-26 Thread
Thanks a lot!  It works!
[image: 12312321.png]
在2020年10月23日星期五 UTC+8 下午11:39:26 写道:

> Hi Wenwei,
>
> Thank you for reaching out. Please use this code example 
> 
>  
> as a template to query the customer_client 
>  
> resource in the Google Ads API. 
>
>
>
> Thanks and regards,
> Xiaoming, Google Ads API Team
>
>
> [image: Google Logo] 
> Xiaoming 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q26BFbP: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 
"AdWords API and Google Ads 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/30867f2d-c24d-476e-b0c5-3e08814934c1n%40googlegroups.com.


Re: Google Ads Api V5 How to get manage account 's customer list?

2020-10-22 Thread
i also using this code:

$googleAdsServiceClient = $googleAdsClient->getGoogleAdsServiceClient();
$query = "
SELECT 
customer_client.resource_name,customer_client.time_zone,customer_client.manager,customer_client.descriptive_name,customer_client.currency_code,customer_client.id
FROM customer_client";
$stream = $googleAdsServiceClient->search(123456,$query);
$res = $stream->iterateAllElements();

but it response nothing:
Generator Object ( ) 

 also try:
$stream = $googleAdsServiceClient->searchStream(123456,$query);
$res = $stream->iterateAllElements();

response:
 Streaming calls are not supported while using the REST transport.

i am testing on Windows 10, I don't want to use grpc.

在2020年10月23日星期五 UTC+8 上午9:13:33<吴文伟> 写道:

> Thanks for answer!
>
> For example: 
>123456 is the MCC account.
> this is my code:
>   
> $CustomerClientServiceClient = 
> $googleAdsClient->getCustomerClientServiceClient();
> $customers = 
> $CustomerClientServiceClient->getCustomerClient("customers/12345/customerClients/Id");
>
> the request throw error:
>Google\ApiCore\ApiException{
>   "message": "Requested entity was not found.",
>   "code": 5,
>   "status": "NOT_FOUND",
> "details": [
> {
> "@type": 0,
> "data": "type.googleapis.com
> \/google.ads.googleads.v5.errors.GoogleAdsFailure"
> },
> {
> "@type": 0,
> "data": [
> {
> "errorCode": {
> "requestError": "BAD_RESOURCE_ID"
> },
> "message": "'Id' part of the resource name is invalid."
> }
> ]
> }
> ]
> }
>
>
> i donot know the parameter "resourceName" format.
>
> can you help me,please!
> 在2020年10月23日星期五 UTC+8 上午3:32:13 写道:
>
>> Hi Wenwei,
>>
>> Thank you for reaching out. You could use 
>> CustomerClientService.GetCustomerClient() 
>> <https://developers.google.com/google-ads/api/reference/rpc/v5/CustomerClientService#getcustomerclient>
>>  
>> to fetch the client customer accounts in the hierarchy. You could also 
>> query the customer_client 
>> <https://developers.google.com/google-ads/api/fields/v5/customer_client> 
>> resource to fetch the data which is recommended.
>>
>> Thanks and regards,
>> Xiaoming, Google Ads API Team
>>
>>
>>
>> [image: Google Logo] 
>> Xiaoming 
>> Google Ads API Team 
>>   
>>
>> ref:_00D1U1174p._5004Q26BFbP: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 
"AdWords API and Google Ads 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/c2e83f4e-2c69-4170-a262-b4990d5afbcdn%40googlegroups.com.


Re: Google Ads Api V5 How to get manage account 's customer list?

2020-10-22 Thread
Thanks for answer!

For example: 
   123456 is the MCC account.
this is my code:
  
$CustomerClientServiceClient = 
$googleAdsClient->getCustomerClientServiceClient();
$customers = 
$CustomerClientServiceClient->getCustomerClient("customers/12345/customerClients/Id");

the request throw error:
   Google\ApiCore\ApiException{
  "message": "Requested entity was not found.",
  "code": 5,
  "status": "NOT_FOUND",
"details": [
{
"@type": 0,
"data": 
"type.googleapis.com\/google.ads.googleads.v5.errors.GoogleAdsFailure"
},
{
"@type": 0,
"data": [
{
"errorCode": {
"requestError": "BAD_RESOURCE_ID"
},
"message": "'Id' part of the resource name is invalid."
}
]
}
]
}


i donot know the parameter "resourceName" format.

can you help me,please!
在2020年10月23日星期五 UTC+8 上午3:32:13 写道:

> Hi Wenwei,
>
> Thank you for reaching out. You could use 
> CustomerClientService.GetCustomerClient() 
> 
>  
> to fetch the client customer accounts in the hierarchy. You could also 
> query the customer_client 
>  
> resource to fetch the data which is recommended.
>
> Thanks and regards,
> Xiaoming, Google Ads API Team
>
>
>
> [image: Google Logo] 
> Xiaoming 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q26BFbP: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 
"AdWords API and Google Ads 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/883d7856-2456-45e2-8394-8587beec0f93n%40googlegroups.com.


Re: Google Ads Api V5 How to get manage account 's customer list?

2020-10-22 Thread
I can using Google Adwords Api to get MCC customer list:

$managedCustomerService = $this->adwords->get($session, 
ManagedCustomerService::class);
$selector = new Selector();
$selector->setFields(['CustomerId','Name','CanManageClients','CurrencyCode','DateTimeZone',
 
'TestAccount']);
$selector->setPaging(new Paging(0, self::PAGE_LIMIT));
$customerIds = [];
do {
   $page = $managedCustomerService->get($selector);
   if ($page->getEntries() !== null) {
$totalNumEntries = $page->getTotalNumEntries();
foreach ($page->getEntries() as $customer) {
$customerIds[] = $customer;
  }
  }

 $selector->getPaging()->setStartIndex($selector->getPaging()->getStartIndex() 
+ self::PAGE_LIMIT);
} while ($selector->getPaging()->getStartIndex() < $totalNumEntries);

How to change my code using Google Ads Api? Please Help!
在2020年10月22日星期四 UTC+8 下午3:48:01<吴文伟> 写道:

> How to get manage account 's customer list?
>
> $googleAdsClient->get???(); 
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/18405c45-bf3f-4a90-baae-f88b9d08b060n%40googlegroups.com.


Google Ads Api V5 How to get manage account 's customer list?

2020-10-22 Thread
How to get manage account 's customer list?

$googleAdsClient->get???(); 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/b2bd81b8-d15b-4814-8749-b52b878d2afcn%40googlegroups.com.


Difference between keyword search volume trough API and Keyword planner sometime

2019-06-26 Thread
Is anybody meet this problem : Sometime,difference between keyword search 
volume trough API and Keyword planner 

Is there a solution now?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/7bf731e4-1059-418c-b9ff-b2d3b3da89e6%40googlegroups.com.


ManagedCustomerServiceError.NOT_AUTHORIZED @ operations[0]

2019-06-20 Thread
i has get adwords email 's oauth token
 when use ManagedCustomerService to link customer id to my MCC account, is 
return ManagedCustomerServiceError.NOT_AUTHORIZED @ operations[0],

how can i get this customerid's admin email address? i want to send an 
email to the admin email address

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/5b019053-87b2-439a-aa85-4569ddadbe08%40googlegroups.com.