We are creating a product monitoring script, which should gather
information on specific products by ID in one of our campaigns. We're
having success using the Reports API for most metrics, but we would also
like to know the current MaxCPC for individual IDs, which Reports does not
seem to support.
Instead, we launch a new query for each product ID that looks like this:
var pGroup = AdWordsApp.productGroups().withCondition("ProductGroup
CONTAINS '" + row['OfferId'] + "'").withCondition("CampaignName = 'Shopping
var p = pGroup.next();
curMaxCPC = p.asItemId().getMaxCpc();
where row['OfferId'] in our code is the current product ID.
This does return a MaxCPC value, and the value is often correct. But
sometimes, it is not!! Having to make sure that the value is in fact the
current MaxCPC defeats the purpose of the script.
Is there a better way? Or really any way that works? Our campaign is
organized with a single product group containing all of the product IDs.
Thanks in advance
Also find us on our blog and Google+:
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to firstname.lastname@example.org
To unsubscribe from this group, send email to
For more options, visit this group at
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
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.