When trying to create test client I get redirected to production client

71 views
Skip to first unread message

Tal Lipits

unread,
May 12, 2020, 2:48:44 AM5/12/20
to AdWords API and Google Ads API Forum
Hi,

I have followed the steps in this link below and successful created a test manager account (with the red label) using the Google Ads UI.
I did that with a different google id than the one I used for the production manager account.
Then it says "While logged in to Google Ads as your test manager account, any client accounts you create will automatically be test accounts."
But for me those clients accounts were created as production. No red label, and requesting for budget. Is that ok, or am I doing anything wrong?

btw, in this link it says "Once your test manager account is established, you can proceed to make API calls against it."
So may be client test account (and customer id) is not needed?

Appreciate your help,
Tal

Google Ads API Forum Advisor Prod

unread,
May 12, 2020, 1:26:43 PM5/12/20
to tal...@gmail.com, adwor...@googlegroups.com
Hi Tal,

Thank you for reaching out. Looks like you are following the steps correctly. Since you are accomplishing this in the UI, I suggest reaching out to the product team as they are better equipped to address your concerns. You can reach out them through their support page here to find out if this behavior is expected. 

With regards to whether or not the client test account is necessary, a client account is needed for services that can only be accessed by client accounts/customer ids. If you have any other questions pertaining to the API, let me know.

Thanks,
Danica Calusin, Google Ads API Team 

ref:_00D1U1174p._5004Q1zLS8U:ref

Tal Lipits

unread,
May 13, 2020, 3:34:02 AM5/13/20
to AdWords API and Google Ads API Forum
Thanks a lot for the reply Danica
I have posted my question at the product team link you sent me.

I have managed to generate developer_token, oauth client_id, oauth client_secret and oauth refresh_token.
I've set their values in the googleads.yaml
I did not set any value to client_customer_id, because of the above issue

Could this be the reason to the AuthenticationError.OAUTH_TOKEN_INVALID error I get when I run the below code (python)?


adwords_client = adwords.AdWordsClient.LoadFromStorage(f'{os.getcwd()}/oauth/googleads.yaml')


# Initialize appropriate service.
campaign_service = client.GetService('CampaignService', version='v201809')
# Construct selector and get all campaigns.
offset = 0
selector = {
   
'fields': ['Id', 'Name', 'Status'],
   
'paging': {
       
'startIndex': str(offset),
       
'numberResults': str(PAGE_SIZE)
    }
}
more_pages =
True
while
more_pages:
    page = campaign_service.get(selector)
# this line throws the exception

Thanks a lot,
Tal

Google Ads API Forum Advisor Prod

unread,
May 13, 2020, 2:16:12 PM5/13/20
to tal...@gmail.com, adwor...@googlegroups.com
Hi Tal,

The OAUTH_TOKEN_INVALID error indicates that the access token passed with the HTTP header was not correct. Once you are able to create a test client account, please try making the request again with your CID in the headers. 

Regards,
Danica, Google Ads API Team 

ref:_00D1U1174p._5004Q1zLS8U:ref

Tal Lipits

unread,
May 14, 2020, 3:43:13 AM5/14/20
to AdWords API and Google Ads API Forum
Thanks Danica
So I will wait till I'm able to create a test client account and then use CID as you tell.
Reply all
Reply to author
Forward
0 new messages