You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords API Forum
Hi, the app that i am developed create campaigns in the clients account.
I have a MCC accounts and clients in this.
how i can create a camp in other account?
for create a campaing previously i do "login" with an account.
thanks!
Sreelakshmi Sasidharan (AdWords API Team)
unread,
Jun 26, 2017, 1:21:27 PM6/26/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords API Forum
Hi,
To create a campaign via the API, you can use the CampaignService. Pleas check this sample to understand how to do that in Java. Samples in other languages can also be found here. To access a specific client account via the API, the request should be authenticated by a user who has access to that client account (user on that client account or user on the linked manager account). If you are looking for instructions to add a user to an account, please check this document.
If your question was different, could you please elaborate?
Thanks, Sreelakshmi, AdWords API Team
Che Siri
unread,
Oct 20, 2017, 2:19:10 PM10/20/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords API Forum
I will set an example to develop my question. I have an account that handles other accounts. When I started my application I was authenticated with my main account.When I create (for example) a campaign I do it like this: CampaignService campaignService = (CampaignService) user.GetService ( AdWordsService.v201708.CampaignService); The "user" object is the one in charge to tell which account I will create my campaign. How do I tell the CampaignService to create a campaign in another account associated with mine?
Thank you very much.
Sreelakshmi Sasidharan (AdWords API Team)
unread,
Oct 20, 2017, 3:24:09 PM10/20/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords API Forum
Hi Che,
You are right, you should use the OAuth credentials of your Manager account in this scenario. However, the clientCustomerId in the request header should correspond to the client account in which you need the Campaign to be created. You can check the linked sample in reports which sets the clientCustomerId dynamically. Please give this a try and let me know if you are able to create the campaign successfully.