Our API key is not allowing us to access new Campaigns from Accounts that our Account has access to. We are simply receiving a subset of the Campaigns that exist under the Account ID we are requesting for. Would like to understand why or if we are calling with a filter we should not be.
public function testGetCampaigns() {
$adwordsConfigData = config('adwords');
$customerId = '
5087815391';
$configuration = new Configuration($adwordsConfigData);
$oAuth2Credential = (new OAuth2TokenBuilder())
->from($configuration)
->build();
$session = (new AdWordsSessionBuilder())
->from($configuration)
->withOAuth2Credential($oAuth2Credential)
->withClientCustomerId($customerId)
->build();
$service = (new AdWordsServices())
->get($session, \Google\AdsApi\AdWords\v201809\cm\CampaignService::class);
$selector = new Selector();
$selector->setFields(['Id', 'Name', 'Status']);
$selector->setPredicates([
new Predicate('CampaignStatus', PredicateOperator::IN, ['ENABLED', 'PAUSED', 'REMOVED'])
]);
$page = $service->get($selector);
$entries = $page->getEntries();
$this->assertGreaterThan(0, $page->getTotalNumEntries());
}