ManagedCustomerService accepting a link

120 views
Skip to first unread message

robi...@hunt.social

unread,
Sep 25, 2017, 4:33:50 PM9/25/17
to AdWords API Forum
I think the method for account management to work is to create a ManagedCustomerLink to a client's adwords account with my MCC account. I as successful to create the link between accounts. The next steps after "Extending Invitations" in the "Managing Account" guide: https://developers.google.com/adwords/api/docs/guides/accounts-overview#getting_started_with_test_accounts; are "Rescind invitations", "Get pending invitations" and "Accept/Decline invitations".  I cannot just "Accept/Decline invitations" I sent from my MCC on behalf of my client; I will need to be authorized by my client. So I would like to know how do I call the AdWrods API to such that my client does not need to log into their AdWords account via AdWords console and accept the invitation manually; I am having trouble looking for ways to run the guide's "Decline invitation" code without getting a authorization error. I am just trying to manage my client's AdWord account to perform some basic operations for their campaign and I am using test accounts for now.




Please consider the environment before printing this email or attachment

This email and any attachments are confidential and may also be privileged. If you are not the addressee, do not disclose, copy, circulate or in any other way use or rely on the information contained in this email or any attachments. If received in error, notify the sender immediately and delete this email and any attachments from your system. Emails cannot be guaranteed to be secure or error free as the message and any attachments could be intercepted, corrupted, lost, delayed, incomplete or amended. Master Concept Group and its subsidiaries do not accept liability for damage caused by this email or any attachments and may monitor email traffic.

Peter Oliquino

unread,
Sep 26, 2017, 2:59:11 AM9/26/17
to AdWords API Forum
Hi,

In order to access or manage information of a certain client account, you must generate OAuth2 credentials using an email address with access to that specific client account and use these credentials in your properties file. Doing so will allow you to not only manage invitations, but also to create, update, remove objects within that specific account.

Let me know if this helps.

Thanks and regards,
Peter
AdWords API Team

robi...@hunt.social

unread,
Sep 26, 2017, 5:44:39 AM9/26/17
to AdWords API Forum
Thanks for your reply,

The OAuth2 credentials that I need to replace in order to manage the targeted account are the clientId, clientSecret, and refreshToken in the properties file right? How exactly do you do that? I know that you can dynamically change clientCustomerId but not clientId. From the examples I saw, I can only see credentials are set from the default properties file and from the provided methods, I can only see ways to set access token and refresh token but not clientId nor clientSecret.

Because I want to manage accounts on behalf of my client, I don't want my client to go through the whole process of getting the OAuth2 credentials. Is there a way that I can generate the OAuth2 credentials by using an email address with access to that specific client account through AdWords API or I will need to follow the OAuth2 Service account guide to do so?

Thanks,
Rob

Peter Oliquino

unread,
Sep 26, 2017, 6:33:14 AM9/26/17
to AdWords API Forum
Hi Rob,

You may dynamically replace the clientId and clientSecret in the code itself by accessing the Credential object and manually specify the accounts OAuth2 credentials. As for generating the said credentials, I'm afraid you will be required to follow the steps as instructed in the guide as there is no direct way to generate them via the AdWords API.
Reply all
Reply to author
Forward
0 new messages