API can see test accounts but not campaigns

32 views
Skip to first unread message

RPowers

unread,
Nov 19, 2018, 6:12:44 AM11/19/18
to adwor...@googlegroups.com
Hi,

I am creating my first Adwords API project (in C#) and have the AdWords.Examples project running. (v201809)

I've created test accounts (a manager account and another with campaigns) and setup my OAuth2 access.

When I start the project, I can call GetAccountHierarchy and get this data back....

xxxxxx, SFCR Test Manager
--xxxxxxx, SFCR Test Account

The last account is the one with the campaign. This is what I am providing as my ClientCustomerId

If I call GetCampaigns however I always see this

This code example lists all campaigns. To add a campaign, run AddCampaign.cs.
Number of campaigns found: 0

I thought maybe it's looking for campaigns in the wrong account so I also tried AddCampaign to see where it would create it but I then get this error....

OperationAccessDeniedReason.ADD_OPERATION_NOT_PERMITTED. (Error: OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED, FieldPath: operations[0], Trigger: )

Any help would be hugely appreciated.

Thanks
Rory

Bharani Cherukuri (AdWords API Team)

unread,
Nov 19, 2018, 12:35:02 PM11/19/18
to AdWords API and Google Ads API Forum
Hello Rory, 

Thank you for sharing the details. Please note that the account CIDs are sensitive information, please refrain from posting them on public forum. The ADD_OPERATION_NOT_PERMITTED is usually seen when you're attempting to add the campaigns to a manager account. Can you make sure that you're using the CID of the client account to make the API call? If you're still having an issue adding the campaigns, could you share the API SOAP request and response logs so that I can take a look? Please check this guide on how to enable logging as a reference. You can reply back via Reply privately to author option.

Regards,
Bharani, AdWords API Team
Reply all
Reply to author
Forward
0 new messages