Hello!
I'm using Google Adwords API via Java library
'com.google.api-ads:ads-lib:1.37.0' and
'com.google.api-ads:adwords-axis:1.3.7'.
Adding new ProductScope for ShoppingCampaign works fine, but I have problem
with reading existing ProductScope and modifying it.
1) So, there is shopping campaign. I created product scope via google
adwords web interface with one dimension (ProductBrand).
2) I try to read this scope with Java library:
CampaignCriterionServiceInterface campaignCriterionService = new
AdWordsServices().get(adWordsSession, CampaignCriterionServiceInterface.
class);
CampaignCriterionPage campaignCriterionPage =
campaignCriterionService.get(selector);
//Output number of entries
System.out.println(">>>" + campaignCriterionPage.getTotalNumEntries());
ProductScope ps = null;
for (CampaignCriterion cc: campaignCriterionPage.getEntries()) {
//Searching for ProductScope
if (cc.getCriterion().getCriterionType().equals("ProductScope")) {
System.out.println(cc.getCriterion().getType().getValue());
//Cast Criterion
ps = (ProductScope)cc.getCriterion();
//Get dimensions
System.out.println(ps.getDimensions());
}
}
The output is:
>>>4
PRODUCT_SCOPE
NULL
getDimensions returns NULL, but i know, that it realy containts one
dimension at least. :(
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/c18c5330-33fa-4648-9956-0fdd3f4958d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.