Re: google ads api fails with python

2019-05-22 Thread Anushri shanbhag
After modifying the login-customer-id to that of test manager account. The 
issue got solved. Thank you everyone !!

On Monday, May 20, 2019 at 2:34:38 PM UTC+5:30, Anushri shanbhag wrote:
>
> Thanks Andre.  I appreciate your continuous support. 
>
> I am asked to modify the login-customer-id  from production manger account 
> to that of test manager account.  I am trying with that.  Meanwhile I am 
> also following up on issue with client account creation 
> under test manager account.
>
> Will update with the result after my trial. Hopefully something positive !!
>
> Thanks and Regards,
> Anushri
>
>
>
>
> On Sunday, May 19, 2019 at 2:30:27 AM UTC+5:30, Andre Tannus wrote:
>>
>> Let's see...
>>  
>>
>>> On the  "test" account that you mention. I have created a test manager 
>>> account . 
>>> 1.  Do I need to create another test account under it  ?
>>>
>>
>> I believe so. It is probably possible to access data directly from the 
>> Manager account, but what I do is access the managed accounts (by 
>> CustomerId) directly.
>> Either way, you can only access data from accounts under your Manager 
>> Account, i.e. while using Test credentials, you'll only be able to interact 
>> with accounts under the Test account.
>> You should create a fresh account under the Test Manager Account 
>> (apparently you already have done that). Try to manually create a campaign 
>> there (via Google Ads) and then try to pull it from the API.
>> Don't put production accounts under your test account. I'm not sure it's 
>> even possible, but test accounts will never be able to run ads in real 
>> life, so watch out.
>>
>> 2.  Meanwhile, I also  tried to create another account under test manager 
>>> account. "testacc" as in the attachment.
>>>
>>
>> Good.
>>  
>>
>>> 3.  I see the red "X" mark and I see if I refresh the page, the account 
>>> is not listed and if I use the account number however, it still gets back 
>>> with the same error .
>>>
>>
>> That red "X" means the account has been canceled. It should be a green 
>> circle for an active account.
>>
>> Check the settings bellow to enable displaying canceled and hidden 
>> accounts.
>>
>> [image: google-ads-help.png]
>>
>>  
>>
>>> Can you please elaborate on the test setup ? 
>>> Also,  please let me know which language did it work for you . Also did 
>>> it work for you in python anytime ? 
>>>
>>
>> I use the PHP library. In them, the examples require you to set a 
>> CustomerId, I didn't see that in the Python examples, it seems they load 
>> that information from file (perhaps the yaml config).
>>
>> The error you're getting means you're trying to access an account to 
>> which you don't have access.
>>
>> Remember that the Manager account needs to have full access to the 
>> Managed account. In the past, you needed to either:
>>
>> 1. Create the new account from within the Manager account - or
>> 2. Request access *from the Manager account* to the child account, then 
>> grant the access in the child account. I remember having trouble using the 
>> API when the child account invited the Manager account, it has to be the 
>> other way around.
>>  
>>
>>> I am totally stuck on this , any help would be appreciated. 
>>>
>>
>> It took me a couple of days to get going too, there's a lot to take in. 
>> Maybe get some sleep, work out a little, blow off steam, and start fresh. 
>> That always helps me.
>>
>> André
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d216f824-01e0-40fd-8c1f-a42042b69a18%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: google ads api fails with python

2019-05-20 Thread Anushri shanbhag
Thanks Andre.  I appreciate your continuous support. 

I am asked to modify the login-customer-id  from production manger account 
to that of test manager account.  I am trying with that.  Meanwhile I am 
also following up on issue with client account creation 
under test manager account.

Will update with the result after my trial. Hopefully something positive !!

Thanks and Regards,
Anushri




On Sunday, May 19, 2019 at 2:30:27 AM UTC+5:30, Andre Tannus wrote:
>
> Let's see...
>  
>
>> On the  "test" account that you mention. I have created a test manager 
>> account . 
>> 1.  Do I need to create another test account under it  ?
>>
>
> I believe so. It is probably possible to access data directly from the 
> Manager account, but what I do is access the managed accounts (by 
> CustomerId) directly.
> Either way, you can only access data from accounts under your Manager 
> Account, i.e. while using Test credentials, you'll only be able to interact 
> with accounts under the Test account.
> You should create a fresh account under the Test Manager Account 
> (apparently you already have done that). Try to manually create a campaign 
> there (via Google Ads) and then try to pull it from the API.
> Don't put production accounts under your test account. I'm not sure it's 
> even possible, but test accounts will never be able to run ads in real 
> life, so watch out.
>
> 2.  Meanwhile, I also  tried to create another account under test manager 
>> account. "testacc" as in the attachment.
>>
>
> Good.
>  
>
>> 3.  I see the red "X" mark and I see if I refresh the page, the account 
>> is not listed and if I use the account number however, it still gets back 
>> with the same error .
>>
>
> That red "X" means the account has been canceled. It should be a green 
> circle for an active account.
>
> Check the settings bellow to enable displaying canceled and hidden 
> accounts.
>
> [image: google-ads-help.png]
>
>  
>
>> Can you please elaborate on the test setup ? 
>> Also,  please let me know which language did it work for you . Also did 
>> it work for you in python anytime ? 
>>
>
> I use the PHP library. In them, the examples require you to set a 
> CustomerId, I didn't see that in the Python examples, it seems they load 
> that information from file (perhaps the yaml config).
>
> The error you're getting means you're trying to access an account to which 
> you don't have access.
>
> Remember that the Manager account needs to have full access to the Managed 
> account. In the past, you needed to either:
>
> 1. Create the new account from within the Manager account - or
> 2. Request access *from the Manager account* to the child account, then 
> grant the access in the child account. I remember having trouble using the 
> API when the child account invited the Manager account, it has to be the 
> other way around.
>  
>
>> I am totally stuck on this , any help would be appreciated. 
>>
>
> It took me a couple of days to get going too, there's a lot to take in. 
> Maybe get some sleep, work out a little, blow off steam, and start fresh. 
> That always helps me.
>
> André
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/23fa4230-2526-42bc-9307-8b6117239085%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: google ads api fails with python

2019-05-20 Thread Anushri shanbhag
Hi, 

Thank you. Let me try with the same.


On Monday, May 20, 2019 at 8:52:18 AM UTC+5:30, adsapiforumadvisor wrote:
>
> Hi Anushri,
>
> Thank you for reaching out. Sorry for the delayed response.
>
> The credentials in your .yaml file seem correct. However, since you are 
> using your test manager account, kindly use the account id of your test 
> manager account in the login-customer-id 
> 
>  
> field. Let me know if this solves your problem. 
>
> Also, test client accounts will appear as cancelled accounts in the UI. 
> However, they are not really cancelled. 
>
> Regards,
> Dannison
> Google Ads API Team
>
> ref:_00D1U1174p._5001UAq0VQ: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.
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/ecefde29-f2f6-461b-8eca-3f670f625ca6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: google ads api fails with python

2019-05-19 Thread Google Ads API Forum Advisor Prod
Hi Anushri,

Thank you for reaching out. Sorry for the delayed response.

The credentials in your .yaml file seem correct. However, since you are using 
your test manager account, kindly use the account id of your test manager 
account in the login-customer-id field. Let me know if this solves your problem.

Also, test client accounts will appear as cancelled accounts in the UI. 
However, they are not really cancelled.

Regards,
Dannison
Google Ads API Team
ref:_00D1U1174p._5001UAq0VQ: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.
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/VFz-G0PRS9CO00QYOrsrA8QTq8GNSlUsDfIA%40sfdc.net.
For more options, visit https://groups.google.com/d/optout.


Re: google ads api fails with python

2019-05-18 Thread Andre Tannus
Let's see...
 

> On the  "test" account that you mention. I have created a test manager 
> account . 
> 1.  Do I need to create another test account under it  ?
>

I believe so. It is probably possible to access data directly from the 
Manager account, but what I do is access the managed accounts (by 
CustomerId) directly.
Either way, you can only access data from accounts under your Manager 
Account, i.e. while using Test credentials, you'll only be able to interact 
with accounts under the Test account.
You should create a fresh account under the Test Manager Account 
(apparently you already have done that). Try to manually create a campaign 
there (via Google Ads) and then try to pull it from the API.
Don't put production accounts under your test account. I'm not sure it's 
even possible, but test accounts will never be able to run ads in real 
life, so watch out.

2.  Meanwhile, I also  tried to create another account under test manager 
> account. "testacc" as in the attachment.
>

Good.
 

> 3.  I see the red "X" mark and I see if I refresh the page, the account is 
> not listed and if I use the account number however, it still gets back with 
> the same error .
>

That red "X" means the account has been canceled. It should be a green 
circle for an active account.

Check the settings bellow to enable displaying canceled and hidden accounts.

[image: google-ads-help.png]

 

> Can you please elaborate on the test setup ? 
> Also,  please let me know which language did it work for you . Also did it 
> work for you in python anytime ? 
>

I use the PHP library. In them, the examples require you to set a 
CustomerId, I didn't see that in the Python examples, it seems they load 
that information from file (perhaps the yaml config).

The error you're getting means you're trying to access an account to which 
you don't have access.

Remember that the Manager account needs to have full access to the Managed 
account. In the past, you needed to either:

1. Create the new account from within the Manager account - or
2. Request access *from the Manager account* to the child account, then 
grant the access in the child account. I remember having trouble using the 
API when the child account invited the Manager account, it has to be the 
other way around.
 

> I am totally stuck on this , any help would be appreciated. 
>

It took me a couple of days to get going too, there's a lot to take in. 
Maybe get some sleep, work out a little, blow off steam, and start fresh. 
That always helps me.

André

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b374c1db-d2e9-44ce-aab0-8e365acd324e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: google ads api fails with python

2019-05-18 Thread Anushri shanbhag
Thanks Andre. I am still not able to figure out what am I doing wrong. 

Could you please help clarify the following 

On the  "test" account that you mention. I have created a test manager 
account . 

1.  Do I need to create another test account under it  ?
2.  Meanwhile, I also  tried to create another account under test manager 
account. "testacc" as in the attachment.
3.  I see the red "X" mark and I see if I refresh the page, the account is 
not listed and if I use the account number however, it still gets back with 
the same error . 

Can you please elaborate on the test setup ? 
Also,  please let me know which language did it work for you . Also did it 
work for you in python anytime ? 

I am totally stuck on this , any help would be appreciated. 

Thanks and Regards,
Vinutha
On Saturday, May 18, 2019 at 10:30:18 PM UTC+5:30, Andre Tannus wrote:
>
> Do this checklist:
>
> - You have a valid set of credentials obtained for the *test* account. 
> Remember, the developer token is global (for both test and production) but 
> client_id, client_secret and refresh_token are local to either test OR 
> production accounts.
> - You are logging in with the *test* account id (the xxx-xxx- code 
> you get from you test manager account)
> - You are trying to get campaigns from a child account of the *test* 
> account (not the production account)
>
> If you check all of the above, it should be working. Make sure that if 
> you're accessing a child account directly you still need to send the 
> manager id, as it is mentioned in the error message.
>
> "message": "User doesn't have permission to access customer. Note: If 
>> you're accessing a client customer, the manager's customer id must be set 
>> in the 'login-customer-id' header. See https://developers.google.com/goo
>> gle-ads/api/docs/concepts/call-structure#login-customer-id"
>
>
> Also, check your logs, maybe there will be more information here.
>
> André 
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/3eb18bfd-5e3c-4fdc-ac29-328d138156b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: google ads api fails with python

2019-05-18 Thread Andre Tannus
Do this checklist:

- You have a valid set of credentials obtained for the *test* account. 
Remember, the developer token is global (for both test and production) but 
client_id, client_secret and refresh_token are local to either test OR 
production accounts.
- You are logging in with the *test* account id (the xxx-xxx- code you 
get from you test manager account)
- You are trying to get campaigns from a child account of the *test* 
account (not the production account)

If you check all of the above, it should be working. Make sure that if 
you're accessing a child account directly you still need to send the 
manager id, as it is mentioned in the error message.

"message": "User doesn't have permission to access customer. Note: If 
> you're accessing a client customer, the manager's customer id must be set 
> in the 'login-customer-id' header. See https://developers.google.com/goo
> gle-ads/api/docs/concepts/call-structure#login-customer-id"


Also, check your logs, maybe there will be more information here.

André 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6dc64464-7f1b-41d6-b9f8-012e77072d85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: google ads api fails with python

2019-05-18 Thread Anushri shanbhag
Client_secret I have used the one displayed in credentials page of test 
manager account  along with client id 

On Saturday, May 18, 2019 at 7:04:46 PM UTC+5:30, Andre Tannus wrote:
>
> Hi there.
>  
>
>> *developer_token:* From manager production account 
>> *client_id:* test manager account
>> *client_secret: * test manager account
>> *refresh_token:*generated as mentioned providing test manager id
>>
>
> The client_secret is not the account number.
> It should be an alpha-numeric string.
> I think you get it along with the refresh token.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/cb6b881e-f7f8-4842-adf7-3ad2102590d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: google ads api fails with python

2019-05-18 Thread Andre Tannus
Hi there.
 

> *developer_token:* From manager production account 
> *client_id:* test manager account
> *client_secret: * test manager account
> *refresh_token:*generated as mentioned providing test manager id
>

The client_secret is not the account number.
It should be an alpha-numeric string.
I think you get it along with the refresh token.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/60680a36-6d8b-4258-b938-82e70f23fb96%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.