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;
}
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
---
You received this message because you are subscribed to the Google Groups
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/ad8441e3-a43b-4b2b-920e-fc9ae5e9c1b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.