adwords vs google ads

138 views
Skip to first unread message

Linkeo Linkeo

unread,
Apr 22, 2020, 10:13:09 AM4/22/20
to AdWords API and Google Ads API Forum
Hi, I'm trying to access to an account with google ads api using same configuration (credential/ token / Login customer) than with Adwords api.

I use 5.0.1-SNAPSHOT version

There's no error, but no response for a simple request:

CustomerServiceClient customerServiceClient = googleAdsClient.getLatestVersion().createCustomerServiceClient();
String customerResourceName = ResourceNames.customer(8975708356l);
com.google.ads.googleads.v3.resources.Customer customer = customerServiceClient.getCustomer(customerResourceName);

In the GUI, I read:

API Access

Your developer token is currently enabled for Test Account Access. Apply for Basic Access in the "Access level" section to begin interacting with production accounts.
but I already had access thru Adwords API.

Should I get a second token ?

Could anyone give me informations ?

Thanks!


Google Ads API Forum Advisor Prod

unread,
Apr 22, 2020, 12:09:02 PM4/22/20
to linkeo...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to us. You should be able to get customer data using this example via the API. I also took a look at your account 8975708356 and see that it's a production account. If you've had access to the API (AdWords) before, you should be able to use the same developer token to access the API. However, if your only developer token is set at test level access and you do not currently have any developer token with basic/standard level access and need to access production level accounts, you will need to apply for basic level access here. If you're still having issues, could you please provide me with your REST Request and Response logs so that I may further investigate this issue? For privacy concerns, you may reply using the "Reply privately to the author" button.

Thank you,
Bryan, Google Ads API Team
 

ref:_00D1U1174p._5001UaRtaw:ref

Linkeo Linkeo

unread,
Apr 23, 2020, 6:05:34 AM4/23/20
to AdWords API and Google Ads API Forum
I use a token to access production accounts with Adwords API. The mcc is 5609887012. I can manage all other child accounts with this token.

the same token seems not working with the new google ads API.

The GUI / Api center shows a different token and:


Your developer token is currently enabled for Test Account Access. Apply for Basic Access in the "Access level" section to begin interacting with production accounts.

I don't understand why I see that on the GUI. 

Why should I ask for production access, if I already have one?



Linkeo Linkeo

unread,
Apr 23, 2020, 9:36:04 AM4/23/20
to AdWords API and Google Ads API Forum
After a long time I have:

Selector.select() returned prematurely 512 times in a row;

Google Ads API Forum Advisor Prod

unread,
Apr 23, 2020, 11:57:15 AM4/23/20
to linkeo...@gmail.com, adwor...@googlegroups.com
Hi,

I took a look at your MCC account 5609887012 and found that this account also has a test account level developer token. Were your AdWords API accounts test accounts? In that case you wouldn't have encountered an issue if you were only accessing test accounts. You can tell if an account is a test account by looking for "Test Account" in the upper right hand corner of the UI. To fix the error you're encountering you may want to apply for Basic Level Access for your token. If the token you're using is not from MCC account 5609887012, could you please send me your developer token that you're using? Please take note that you should send this by clicking "Respond privately to author" for privacy concerns. Let me know if you have further questions.
Reply all
Reply to author
Forward
0 new messages