Getting CPC bids for Shopping Campaign Adgroups > Subdivide All products by: Brands > Custom label 3 level

7 views
Skip to first unread message

Mahantesh Patil

unread,
Mar 2, 2017, 10:39:01 AM3/2/17
to AdWords API Forum
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;
}


Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages