Re: problem with Criterion

2011-12-13 Thread Mihail Podorojniy
Thank you. The criteria to become clearer. But why is not associated
enum GenderGenderType and Id? As an example -

   public enum GenderGenderType {
 GENDER_MALE = 10,
 GENDER_FEMALE = 11,
 GENDER_UNDETERMINED = 20
   }

and do not use the Id. then pass the Id criterion can be without being
attached to these codes. and initialize the id in API implementation
such a way

criterion.id = (long) type;

where "type" - an enumeration object.

About UNEXPECTED_INTERNAL_API_ERROR. I used the code example given in
the client library AddCampaignTargetingCriteria.cs.

this generated XML.


https://adwords.google.com/api/adwords/cm/v201109";>
  
ADD

  469311
  
1010
  

  
  
ADD

  469311
  
1005
  

  
  
ADD

  469311
  
2840
  

  
  
ADD

  469311
  
2276
  

  
  
ADD

  469311
  
3
  

  

  

On 13 дек, 18:41, "Anash P. Oommen" 
wrote:
> Hi Mihail,
>
> The necessary criterion ids are available here:
>
> http://code.google.com/apis/adwords/docs/appendix/genders.htmlhttp://code.google.com/apis/adwords/docs/appendix/ages.html
>
> Also, UNEXPECTED_INTERNAL_API_ERROR error happens when we have an issue at
> our end. Could you please turn on the SOAP logging as mentioned in the
> first section of this document, sanitize (i.e. remove password, authtoken,
> etc.) and post the xml 
> here?http://code.google.com/p/google-api-adwords-dotnet/wiki/HowToCaptureS...
>
> Cheers,
> Anash P. Oommen,
> AdWords API Advisor.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


problem with Criterion

2011-12-12 Thread Mihail Podorojniy
Hello! Sorry, I'm junior in AdWords API. Tell me please. I'm using.
Net library.
I am trying to run an example AddCampaignTargetingCriteria.cs but it
returns the error UNEXPECTED_INTERNAL_API_ERROR.

Targeting doesn't work. Can you explain how to make targeting Gender,
AgeRange etc. During adding of targeting of Gender object I get an
error that Id field isn't filled. What kind of Id I should pass?

CampaignCriterionOperation CriterionOperation = new
CampaignCriterionOperation();

Gender gender = new Gender();
gender.genderType = GenderGenderType.GENDER_MALE;
gender.type = CriterionType.GENDER;

NegativeCampaignCriterion crirerion = new
NegativeCampaignCriterion();
crirerion.campaignId = campaignId;
crirerion.criterion = gender;

//crirerion.criterion.id = ???;

CriterionOperation.@operator = Operator.SET;
CriterionOperation.operand = crirerion;

CampaignCriterionReturnValue retval =
campCriterionService.mutate(new CampaignCriterionOperation[]
{ CriterionOperation });

Is it possible to set up targeting of Gender or AgeRange on AdGroup?

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en