Hi Ben, You shouldn't set setTargetContentContextual on NetworkSetting field if you are using v201206, instead use TargetRestrictSetting on campaign. Then define the TargetingSetting in your adgroup.
See http://code.google.com/p/google-api-ads-java/source/browse/examples/adwords_axis/src/main/java/adwords/axis/v201206/basicoperations/AddCampaigns.java and http://code.google.com/p/google-api-ads-java/source/browse/examples/adwords_axis/src/main/java/adwords/axis/v201206/basicoperations/AddAdGroups.java for details on how this may be done. Cheers, Anash P. Oommen, AdWords API Advisor. On Thursday, 6 September 2012 19:17:31 UTC+5:30, ben fenster wrote: > > Hi, > > i am currntly using the latest java client API on the latest version of > the adwords api (v201206). > i try to add a campaign after calling the setTargetContentContextual of > the NetworkSetting Object and always get the following API ERROR > [com.google.api.adwords.v201206.cm.TargetError , TargetError , > TargetError.CANNOT_MODIFY_CONTENT_CONTEXTUAL , > operations[0].operand.networkSetting ] > > i also tried playing with the TargetRestrictSetting as mentioned in the > API Docs with no success. > can any one tell me why is that ? > > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
