Hello everyone,
I have a Label ID that I know is attached to x amount of Standard Text Ads in a campaign, I don't know what the TextAd or AdGroups IDs are.
I'd like to see 1 example of a TextAd from a campaign that has the known Label ID attached.
So, do I have to use the following predicates with the
AdGroupAdService to return all of the TextAds in a campaign with my known Label ID and sort though the results myself?
// Create predicates.
$selector->predicates[] = new Predicate('AdGroupId', 'IN', array($adgroupidarr));
$selector->predicates[] = new Predicate('labelId', 'CONTAINS_ANY', array($labelId));
$selector->predicates[] = new Predicate('AdType', 'IN', array('TEXT_AD'));
Since I don't know in which AdGroups my labelled TextAd exists, this would mean searching for, and returning all correctly labelled TextAds in every AdGroup in a campaign.
Am I correct in my approach? Or is there an easier way of finding an example of a TextAd with a known Label ID?
Many thanks