Hello:
I have created the Shopping Campaign (Type: Shopping - Shopping Ads)
Campaign Name: Shopping Product Target -TOP brands
Ad Group Name: Ad Group 1
Product group: Brand (Subdivide All products by: Brand )
For some brands we bid at Brand level but for some brand we further Subdivide Brand by: Custom label 3 ( Items above $100 or Items below $100 ). I am able to get the bids at brand level by using the following code but how to get the bids at Brand > Custom label 3 level. Appreciate your help in resolving the problem.
$adGroupCriterionService = $user->GetService('AdGroupCriterionService', ADWORDS_VERSION);
$selector = new Selector();
$selector->fields = array('AdGroupId', 'CpcBid');
$selector->predicates[] = new Predicate('AdGroupId', 'IN', array($adGroupRow['id']));
$selector->predicates[] = new Predicate('CriteriaType', 'IN', array('PRODUCT_PARTITION'));
$selector->predicates[] = new Predicate('Status', 'IN', array('ENABLED', 'PAUSED'));
$selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE);
$page = $adGroupCriterionService->get($selector);
foreach ($page->entries as $adGroupCriterion) {
$microBidCurrent = $adGroupCriterion->biddingStrategyConfiguration->bids[0]->bid->microAmount;
}