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.

<soap:Body>
    <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201109";>
      <operations>
        <operator>ADD</operator>
        <operand>
          <campaignId>469311</campaignId>
          <criterion xsi:type="Language">
            <id>1010</id>
          </criterion>
        </operand>
      </operations>
      <operations>
        <operator>ADD</operator>
        <operand>
          <campaignId>469311</campaignId>
          <criterion xsi:type="Language">
            <id>1005</id>
          </criterion>
        </operand>
      </operations>
      <operations>
        <operator>ADD</operator>
        <operand>
          <campaignId>469311</campaignId>
          <criterion xsi:type="Location">
            <id>2840</id>
          </criterion>
        </operand>
      </operations>
      <operations>
        <operator>ADD</operator>
        <operand>
          <campaignId>469311</campaignId>
          <criterion xsi:type="Location">
            <id>2276</id>
          </criterion>
        </operand>
      </operations>
      <operations>
        <operator>ADD</operator>
        <operand>
          <campaignId>469311</campaignId>
          <criterion xsi:type="Platform">
            <id>30000</id>
          </criterion>
        </operand>
      </operations>
    </mutate>
  </soap:Body>

On 13 дек, 18:41, "Anash P. Oommen" <[email protected]>
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 [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

Reply via email to