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

45 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 - Mansion Athletics -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 Subdivide by Custom label 3 level. Appreciate any 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;
}

Shwetha Vastrad (AdWords API Team)

unread,
Mar 2, 2017, 3:05:52 PM3/2/17
to AdWords API Forum
Hi Mahantesh,

Could you send over the SOAP request and response logs for this GET request? Each product partition in your AdGroup should be available in the response. You should then use the parentCriteironId value returned in the response to construct the complete product partition tree. Once I have the logs, I'll be able to dig deeper. Please use Reply privately to author when responding. 

Regards,
Shwetha, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages