A Microsoft API that provides programmatic access to Microsoft Advertising to manage large campaigns or to integrate your marketing with other in-house systems.
- GetCampaignsByAccountId behavior for Audience campaigns
From the service definition, GetCampaignsByAccountId returns campaigns in an account filtered by CampaignType and optionally enriched by ReturnAdditionalFields.
Key points from the documentation:
-
CampaignTypeis a flags field; multiple values can be passed as a space-delimited string in SOAP, e.g.<CampaignType>Search Shopping</CampaignType>. - If
CampaignTypeis not set, onlySearchcampaigns are returned by default. - Audience campaigns are supported campaign types and are also listed in
SupportedCampaignTypeson theAudienceobject.
Your SOAP request is syntactically correct:
<ns1:CampaignType>Audience Hotel Search Shopping PerformanceMax</ns1:CampaignType>
This matches the documented pattern for multiple flags, and Audience is included, so Audience campaigns that are eligible for retrieval in that account should be returned.
The Bulk API and Campaign Management API are separate services. The FAQ explicitly recommends Bulk for large-scale add/update, and notes that some features are only available in Campaign Management, but it does not document any intentional divergence where a valid, active campaign of a supported type would appear in Bulk and be completely omitted from GetCampaignsByAccountId for the same account and time.
Given:
- The SOAP call succeeds with no
PartialErrorsor faults. - The
Campaignsarray is empty. - Bulk shows an
Activecampaign withCampaignType = AudienceandParentId = 188355338. - The same
GetCampaignsByAccountIdlogic returns Audience campaigns for other accounts.
There is no documented filter or setting in GetCampaignsByAccountId that would selectively hide Audience campaigns for a specific account while still allowing them in Bulk. With the information available in the documentation, the behavior observed (empty Campaigns for this account while Bulk shows an active Audience campaign) is not explained by documented API rules and is consistent with a service-side issue that requires Microsoft Advertising support to investigate using the TrackingId and account details.
- Account-specific conditions
The documentation for GetCampaignsByAccountId and the Campaign object describes:
-
CampaignTypevalues and requiredSettingsper type (e.g.,ShoppingSettingfor Shopping,DynamicSearchAdsSettingfor DynamicSearchAds,HotelSettingfor Hotel,PerformanceMaxSettingfor PerformanceMax). - Optional
TargetSettingand otherSettingsthat can be requested viaReturnAdditionalFields.
It does not describe any account-level configuration, scope, or eligibility rules that would cause Audience campaigns to:
- Be present and active in Bulk, and
- Be excluded from
GetCampaignsByAccountIdwhenCampaignTypeincludesAudience.
The only documented account-related scope in this area is on the Audience object itself (Scope = Account or Customer), which controls which accounts can use an audience, not whether a campaign is returned by GetCampaignsByAccountId.
Therefore, based solely on the documentation:
-
GetCampaignsByAccountIdshould return Audience campaigns for any account where they exist, whenCampaignTypeincludesAudience. - There are no documented account-specific conditions that would make Audience campaigns retrievable in Bulk but not via
GetCampaignsByAccountId.
Given the valid request and the confirmed presence of an Audience campaign in Bulk, the next step is to open a Microsoft Advertising support ticket, providing:
- The
TrackingIdfrom theGetCampaignsByAccountIdresponse. -
AccountIdandCustomerId. - Example campaign ID from Bulk (e.g.,
487660970).
Support can then review internal logs for that TrackingId and account to determine why the Audience campaign is not being returned by GetCampaignsByAccountId for this specific account.
References:
- GetCampaignsByAccountId Service Operation - Campaign Management (soap)
- GetCampaignsByAccountId Service Operation - Campaign Management (rest)
- GetCampaignsByIds Service Operation - Campaign Management (soap)
- GetAudiencesByIds Service Operation - Campaign Management (soap)
- GetAudiencesByIds Service Operation - Campaign Management (rest)
- Audience Data Object - Campaign Management
- Campaign Data Object - Campaign Management
- Frequently asked questions