Hi, I'm using the AdParamService and I'm trying to get all ads which contain an id. I'm trying to use the CONTAINS operator in the selctor predicate but it returns the error INVALID_PREDICATE_OPERATOR.
>From the docs page https://developers.google.com/adwords/api/docs/reference/latest/AdParamService.Predicate it seems to say this is a valid operator. I've tried on the sandbox and live servers and get the same result. Can you confirm if this is a valid operator? Here's the code I'm using: $adwords_user = new AdWordsUser(); $adwords_user->setClientId('xxxxxxxxxx'); $adwords_user->LogAll(); $ad_param_service = $adwords_user->GetService('AdParamService', 'v201206'); $selector = new Selector(); $selector->fields = array('AdGroupId', 'CriterionId', 'InsertionText', 'ParamIndex'); $selector->predicates[] = new Predicate('AdGroupId', 'CONTAINS', array('256')); do{ $page = $ad_param_service->get($selector); if (isset($page->entries)) { foreach ($page->entries as $adParam) { printf("Ad param with groupId '%s' and criterionId '%s' was found.\n", $adParam->AdGroupId, $adParam->CriterionId); } } else { print "No ad params were found.\n"; } $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; } while ($page->totalNumEntries > $selector->paging->startIndex); Best regards, Matt -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords 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
