Hi,

When I fetch campaigns with the following request:
```
$experimentTypes = ['BASE', 'EXPERIMENT', 'UNKNOWN'];
  foreach ($experimentTypes as $experimentType) {
    $query = "SELECT 
    campaign.id,
    campaign.advertising_channel_type,
    campaign.start_date,
    campaign.end_date, 
    campaign.serving_status,
    campaign.status,
    campaign.name,
    campaign.experiment_type 
    FROM campaign
    WHERE
    campaign.experiment_type = '{$experimentType}'"
    campaigns = [];
    foreach (
      $this->googleAdsServiceClient->searchStream($account, 
$query)->iterateAllElements() as $googleAdsRow) {
              $campaigns[] = $googleAdsRow->getCampaign()
            }
    }
count($campaigns)
```

I get more campaigns returned than when I fetch with this request:

```
    $query = "SELECT
    campaign.id,
    campaign.advertising_channel_type,
    campaign.start_date,
    campaign.end_date,
    campaign.serving_status,
    campaign.status,
    campaign.name,
    campaign.experiment_type
    FROM campaign
    WHERE
    campaign.experiment_type IN('BASE', 'EXPERIMENT', 'UNKNOWN')
    campaigns = [];
    foreach (
      $this->googleAdsServiceClient->searchStream($account, 
$query)->iterateAllElements() as $googleAdsRow) {
              $campaigns[] = $googleAdsRow->getCampaign()
            }
count($campaigns)
```

As far as I can tell the missing campaigns with the second request are 
mostly of type EXPERIMENT.

Could there be something wrong with the way IN operator is being evaluated 
on your side? Or am I missing something here?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0bebf1a1-fa9e-4378-b1f6-52283036c0ebn%40googlegroups.com.
  • Fe... Andjel Boskovic
    • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum

Reply via email to