Bing Ads API: The account ID is invalid
<p>We are facing a problem with Bing Ads API version 9 and 10.</p>

<p>We are using the <code>ConstructWithAccountAndCustomerId()</code> method of the <code>ClientProxy class</code>, providing a valid <em>DeveloperToken</em>, <em>AccountId</em>, and <em>AuthenticationToken</em> (OAuth), like so:</p>

<pre><code>$proxy = ClientProxy::ConstructWithAccountAndCustomerId($wsdl, null, null, $DeveloperToken, $AccountId, null, $AuthenticationToken);
</code></pre>

<p>Our goal is to retrieve and list all campaigns for an account. However, when running:</p>

<pre><code>print_r($proxy-&gt;GetService()-&gt;GetCampaignsByAccountId($AccountId));
</code></pre>

<p>...we are faced with this error:</p>

<pre><code>[Code] =&gt; 1102 
[Details] =&gt; AccountId is invalid 
[ErrorCode] =&gt; CampaignServiceInvalidAccountId 
[Message] =&gt; The account ID is invalid.
</code></pre>

<p>Now we've double and triple checked that the AccountID is right (<a href="https://msdn.microsoft.com/en-US/library/bing-ads-getting-started.aspx#accountcustomerid" rel="nofollow">https://msdn.microsoft.com/en-US/library/bing-ads-getting-started.aspx#accountcustomerid</a>). </p>

<p>We've also tried this with both Bing Ads API v9, and Bing Ads API v10 - as well as the <a href="https://github.com/CPCStrategy/bing-ads-sdk-php" rel="nofollow">Bing Ads SDK Api by CPCStrategy</a> - no dice anywhere.</p>

<p>Any ideas on what we are missing?</p>

<p>Thanks</p>