Hi, Please find the answers below for your queries.
How do I correctly set up the linkage between a production MCC (with the developer token in Test Access) and a test MCC (with the red banner) so I can use the dev token against the test accounts? A direct "linking" of a production MCC (Manager Account) with a developer token to a test MCC in Google Ads is not possible in the sense of a hierarchical linking like linking sub-accounts. Because test accounts can't interact with your production accounts in any way However, you can use the developer token of your production manager account when making requests against the test manager account. Even if it's not approved yet, the token still works on test accounts, including the ones just created. Kindly refer to this API documentation: Linking to Manager Accounts to link between two Google Ads accounts in the Google Ads API. Is `OPERATION_NOT_PERMITTED_FOR_CONTEXT` expected if I mistakenly try to create campaigns on a real account using only a test access token? It seems you have encountered a ContextError. That error said, "The operation is not allowed for the given context." However, so our team can better check this concern, could you provide the complete API logs (request and response with request-id and request header) generated at your end and customer-id to further investigate this? Maybe you are creating a campaign in the manager account. Unfortunately, from the Google Ads API's perspective, this is not possible, as creating a campaign is only possible on a client account. This is also the reason why the error occurred. Could you confirm that the only supported way to create Performance Max campaigns in sandbox is - Use a developer token from a production MCC (test access level). - But always target customer IDs that belong to a test MCC (red flag) Please note that regarding sandbox testing, it is not specifically mentioned in the API documentation. However, from the Google Ads perspective, you can refer to the Testing API documentation to do full testing of your integration. Thanks, Google Ads API Team Feedback How was our support today? [2025-08-28 13:57:53Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01syNeX:ref" (ADR-00329029) -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/adwords-api/ihxvy000000000000000000000000000000000000000000000T1PISH00-DRrPgGFRtax5q-ou67-SA%40sfdc.net.