Re: PHP Google Ads - How to get descriptive_name for customer_client?

2019-03-16 Thread cv
Hi,

This is big issue.

We have around 300 account under MCC but API using listAccesibleAccounts 
only returns few and that too randomly.
How one can view all of those account to select one from many?


Thanks

On Saturday, 16 March 2019 01:21:20 UTC+5:30, googleadsapi-forumadvisor 
wrote:
>
> Hi Andry,
>
> Unfortunately, this is not obtainable since if you use descriptive_name 
> from the customer_client level, since you'll get the manager account's name 
> for each row. You can, however, use the customer_client.client_customer 
> 
>  field, 
> you can get their account Ids.
>
> Our team is aware of this issue. Please follow our blog 
>  for any updates.
>
> Regards,
> Anthony
> Google Ads API Team
>
>
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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 03/15/19 05:11:42 ankh...@gmail.com  wrote:
>
> Hi, AdWords API Team.
>
> My MCC account has 2000 CustomerClients and I'm trying to get all 
> CustomerClients items  for mmc account customer using 
>
> $query = 'SELECT customer_client.resource_name,
> customer_client.client_customer,
> customer_client.level, customer_client.hidden,
> customer_client.level
> FROM customer_client';
> QUERY, but customer_client schema doesn't contain descriptive_name field 
> (like in customer table).  do you know how to get all descriptive_names for 
> customer clients?
>
>
>
> Also I used this interface, but it returns only one row (loginCustomerId);
>
> $oAuth2Credential = (new OAuth2TokenBuilder())
> ->fromFile('google_ads_php.ini')
> ->build();
> $googleAdsClient = (new GoogleAdsClientBuilder())
> ->fromFile('google_ads_php.ini')
> ->withOAuth2Credential($oAuth2Credential)
> ->build();
>
> $googleAdsServiceClient = $googleAdsClient->getGoogleAdsServiceClient();
>
> $res = $googleAdsServiceClient->search(loginCustomerId, 'SELECT 
> customer.descriptive_name FROM customer');
>
>
>
> 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 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.
> 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/13e8b1ae-c99d-4057-b428-e41326e61648%40googlegroups.com
>  
> 
> .
> 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 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.
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/516c5c52-90c5-4212-b073-c3d84efe52f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: The caller does not have permission

2019-03-16 Thread Caihua Du
I have the same issue here. Looks like the v1 has issue with Testing 
account? Can you please confirm?

On Friday, March 15, 2019 at 3:55:13 AM UTC-7, Ramanajee Kandregula wrote:
>
> Hi Luis,
> we are using Test account  and when i trying to navigate to api center i 
> am getting 
> *The API Center is not available for test accounts. Instead, use the 
> developer token from your production (non-test) manager account. See 
> our test account guide 
> 
>  for 
> more information.*
>
> On Friday, March 15, 2019 at 12:12:45 PM UTC+5:30, 
> googleadsapi-forumadvisor wrote:
>>
>> Hi Ramanajee,
>>
>> As per this blog 
>> 
>>  post, 
>> you will need to accept the updated Terms and Conditions 
>>  to access the 
>> production-ready versions of the Google Ads API. You could do this by 
>> signing in to your Google Ads manager account then navigate to *API 
>> center* where you have your developer token. Scroll down to *API contact 
>> email*, and update it. Then, scroll down to *Principal place of business*, 
>> accept the new conditions, and click *Save*.
>>
>> Once done, you may try your request again and see if it works.
>>
>> Thanks and regards,
>> Luis
>> Google Ads API Team
>>
>>
>> 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 
>> 
>>
>> 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 03/14/19 22:35:29 ramanajee wrote:
>>
>> Hi,
>> When we are using* Google Ads V0* it is working fine,
>> but when we are changing to* V1* then we are getting 
>>
>>
>> *Status(StatusCode=PermissionDenied, Detail="The caller does not have 
>> permission")*
>> *{{ "errorCode": { "authorizationError": "MISSING_TOS" }, "message": "The 
>> developer must sign the terms of service. They can be found here: 
>> ads.google.com/aw/apicenter " }}*
>>
>> -- 
>> -- 
>> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>> 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.
>> 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/a1bfebf7-0dca-4c71-b949-f8d8a8350a5e%40googlegroups.com 
>> 
>> .
>> 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 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.
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/44db1093-721f-40b4-9407-cf2b9fb56bde%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ListAccessibleCustomers Google Ads API

2019-03-16 Thread cv
Hello Bharani,

Thanks, I am able to use query, but my main concern remains same.

As I said Out of few accounts accessible under my MCC I can only get few of 
them so how would I know that or my client know that which account he has 
to link, since I have not all listed.

I can query that and find the account but that to required customerID, how 
would that I can have?


Thanks,



On Friday, 15 March 2019 21:44:13 UTC+5:30, googleadsapi-forumadvisor wrote:
>
> Hello Chirag, 
>
> I have raised this concern about the customer_client fields in the query 
> builder to the team. Could you try with the query below and let me know if 
> you're having an issue?
>
> $query = 'SELECT customer_client.resource_name, customer_client.level FROM 
> customer_client';
>
> Thanks,
> Bharani, Google Ads API Team
>
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_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 
> 
>
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
> https://developers.google.com/adwords/api/community/
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
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/e64995a5-e814-454c-9979-23a0d99b1ad8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ListAccessibleCustomers Google Ads API

2019-03-16 Thread Darshan Pradhan
I had similar issue and the thread is in here 

.

TLDR, the listAccessibleCustomers pull all the active and inactive directly 
accessible 
accounts. 
You should be able to grab the indirectly accessible customer(acounts under 
MCC) using the query provide by Google Team which is "select *  from 
customer_client" .

The problem i ran into was the customer_client only returns the 
customer_clients account id(extract from resource_name) which is not very 
meaningful since I needed to present the user's account by name. 
So for each account i get back for the customer_client I had to go and make 
a customerServiceClient.getCustomer(resourceName) call, which would give me 
the details I needed( other attributes such as is_manager, test_account 
etc). 
With above solution one Caveat is that if you have to make an api call for 
each account you will have to implement a delay between the call which 
sometimes will still results in resource_exhaustion which is not very easy 
to handle in new Ads API. 

There was not easy way to do this so to retrieve the details of the 
customer I had to fall back to old adwords api to pull the customer clients 
details (managedCustomers resource). The old adwords api only return active 
accounts thought so my solution was to 
mash the result of both old adwords api and new ads api for now until new 
Ads words provides a way to pull the clients accounts name from the 
customer_client resource. 



On Saturday, March 16, 2019 at 6:28:54 AM UTC-4, cv wrote:
>
> Hello Bharani,
>
> Thanks, I am able to use query, but my main concern remains same.
>
> As I said Out of few accounts accessible under my MCC I can only get few 
> of them so how would I know that or my client know that which account he 
> has to link, since I have not all listed.
>
> I can query that and find the account but that to required customerID, how 
> would that I can have?
>
>
> Thanks,
>
>
>
> On Friday, 15 March 2019 21:44:13 UTC+5:30, googleadsapi-forumadvisor 
> wrote:
>>
>> Hello Chirag, 
>>
>> I have raised this concern about the customer_client fields in the query 
>> builder to the team. Could you try with the query below and let me know if 
>> you're having an issue?
>>
>> $query = 'SELECT customer_client.resource_name, customer_client.level 
>> FROM customer_client';
>>
>> Thanks,
>> Bharani, Google Ads API Team
>>
>> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>> Also find us on our blog and discussion group:
>> http://googleadsdeveloper.blogspot.com/search/label/adwords_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 
>> 
>>
>> Also find us on our blog and discussion group:
>> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
>> https://developers.google.com/adwords/api/community/
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
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/6f39bd20-4912-42fb-a149-39dbd42cdb17%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: (Google Ads API - JAVA) research of Keywords

2019-03-16 Thread javavilnius

Thank you for your email, code works well and i have one more question:

KeywordPlanKeywordForecast object provides estimated data, but does not 
have keyword name or search query like KeywordPlanKeywordHistoricalMetrics 
has. how to know the keyword name  of data extracted, when more than one 
keyword is loaded.

Thank you
Gintaras


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
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/09a23db3-9a49-422d-9173-32df9b3e24aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.