Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CampaignManagementService - GetCampaignsByAccountId : InvalidAccountId #288

Open
stvckey opened this issue Jul 18, 2024 · 0 comments
Open

Comments

@stvckey
Copy link

stvckey commented Jul 18, 2024

I'm trying to get an account's campaigns using the following

campaign_service = ServiceClient(
                service='CampaignManagementService',
                version=13,
                authorization_data=self.authorization_data,
                environment=self.ENVIRONMENT
            )



campaigns = campaign_service.GetCampaignsByAccountId(
                AccountId=acc_id,
                CampaignType="Search"
            )

But I keep getting the response

`Web service reported a SOAP processing fault using an unexpected HTTP status code 200. Reporting as an internal server error.
ErrorCode: InvalidAccountId
Code: 119
Message: The account ID is invalid.

I've confirmed through other requests and the front end to confirm that the account ID is correct and have tried multiple different account IDs. I'm not quite sure why I keep getting the error: The account ID is invalid.

Numeric Error Code 119 is not listed in the 'MicrosoftAds' Documentation.

Any help would be much appreciated,
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant