GetCampaignsByAccountId is not returning any campaigns

Digital Control 20 Reputation points
2023-04-19T06:34:40.4233333+00:00

We have managed to authenticate, query the current user, its advertising accounts and also the client/customer data. But trying to obtain the campaigns from the requested account ID and customer ID, just returns an empty list. This is weird as there has to be at least one. The campaign is also shown, when visiting the https://ads.microsoft.com/ frontend with the same user. User's image

We are using the PHP-SDK in V13. Any possible scope has been used, but did not change the output. Our code is copied from the SDK samples and queries any possible campaign type. No SOAP fault, just an empty list. It seems, the problem is located in the account or campaign permission. Can anyone help?

Microsoft Advertising API
Microsoft Advertising API
A Microsoft API that provides programmatic access to Microsoft Advertising to manage large campaigns or to integrate your marketing with other in-house systems.
401 questions
{count} votes