Hello,

You are on the right track for setting up the API.

In step #3, the test client accounts may not be visible as these test
accounts would be in cancelled status and hidden in the regular view. You
could see them by following the steps given below:

   - Sign in to your Google Ads manager account <https://ads.google.com/>.
   - Open the navigational panel by pointing your cursor over the left-hand
   side of the page, or clicking the arrow icon in the upper left corner.
   - Click the 3-dot icon on the navigation panel, then click the check box
   for cancelled accounts.

In step #6, could you confirm if you specified the client customer id of
the test manager account or the test client account? To make API calls to
CampaignService
<https://developers.google.com/adwords/api/docs/reference/v201809/CampaignService>,
AdGroupCriterionService
<https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupCriterionService>
etc, you will need to specify the client customer id of the test client
account in which the campaign and keywords exist and not that of the
manager account. If you are specifying the right client customer Id, could
you please enable logging
<https://github.com/googleads/googleads-python-lib#how-do-i-log-soap-interactions>
and share the SOAP logs of your API call?  You could share the details
using reply privately to author option.


Thanks,
Sreelakshmi, AdWords 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 01/15/19 12:35:52 targetingtestpyt...@gmail.com wrote:

Hi everyone! Sorry for my english

Can't connect to API in my test account

What I use / do:
1. Python3, instal setuptools and googleads;
2. Registered new google account (a1) and manager account to it, add real
client accounts to management, get test dev token;
3. Registered another new google account (a2) with TEST manager account,
make some test client accounts / campaigns / groups / ads / keywords.
* Find some problem (mb it's important) - I can see new test client
accounts in overview but can't see it in menu "Accounts" (remove all
filters) 1. http://prntscr.com/m7kyiq 2. http://prntscr.com/m7kyqp;
4. Get OAuth 2.0 client id / secret in test manager account (a2)
5. Get generate refresh token
6. in googleads.yaml add:
* developer_token: from first real manager account (a1),
* client_customer_id: test client account id from test management account
(a2, like 123-456-7890)
* client_id, client_secret, refresh_token
6. do some "basic operations" (from examples for python3):
* get_campaigns.py return notehing
* remove_keyword.py (add adgroup and keyword id's) return next error code:
No handlers could be found for logger "googleads.soap"
Traceback (most recent call last):
  File "remove_keyword.py", line 40, in <module>
    main(adwords_client, AD_GROUP_ID, CRITERION_ID)
  File "remove_keyword.py", line 26, in main
    result = ad_group_criterion_service.mutate(operations)
  File "/home/pi/.local/lib/python2.7/site-packages/googleads/common.py",
line 1396, in MakeSoapRequest
    e.detail, errors=error_list, message=e.message)
googleads.errors.GoogleAdsServerFault: [EntityNotFound.INVALID_ID @
operations[0].operand.adGroupId; trigger:'AdGroupId: ###########']

Anybody know where I have mistakes?
Thank you

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c39ffdc0-14e0-40ce-8af7-029663b2f487%40googlegroups.com
<https://groups.google.com/d/msgid/adwords-api/c39ffdc0-14e0-40ce-8af7-029663b2f487%40googlegroups.com?utm_medium=email&utm_source=footer>
.
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/00d12hvrm0000000oqi5n6004nuh7ez74mj6d1o6so30c1g68q3id1g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • Can't c... targetingtestpython
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
      • ... targetingtestpython
        • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to