Negative target gender in adgroup

15 views
Skip to first unread message

Lucas Pelegrino

unread,
Feb 27, 2019, 5:13:15 PM2/27/19
to AdWords API and Google Ads API Forum
Hello there.

I'm trying to specify a negative gender criterion for one of my adgroups, I'm sending the following XML:

<mutate xmlns="https://adwords.google.com/api/adwords/cm/v201809">
    <operations>
        <operator>ADD</operator>
        <operand>
            <adGroupId>67746674096</adGroupId>
            <criterionUse>NEGATIVE</criterionUse>
            <criterion xsi:type="Gender">
                <id>11</id>
            </criterion>
        </operand>
    </operations>
</mutate>

And I get back the following error: AdGroupCriterionError.CONCRETE_TYPE_REQUIRED

I'm not sure what I'm doing wrong. Can you guys help?

googleadsapi...@google.com

unread,
Feb 28, 2019, 2:05:06 AM2/28/19
to AdWords API and Google Ads API Forum
Hi Lucas,

The CONCRETE_TYPE_REQUIRED error normally occurs if you are not specifying the type of Criterion that you are trying to mutate. Based on your SOAP request, it seems like you did not specify the type in your operand. You may refer below for sample request log for this operation.

<soapenv:Body>

        <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201809">
            <operations>
                <operator>ADD</operator>
                <operand xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201809" xsi:type="ns2:NegativeAdGroupCriterion">
                    <ns2:adGroupId>47976756421</ns2:adGroupId>
                    <ns2:criterion xsi:type="ns2:Gender">
                        <ns2:id>10</ns2:id>
                    </ns2:criterion>
                </operand>
            </operations>
        </mutate>
    </soapenv:Body>

Thanks and regards,
Luis
AdWords API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@googlegroups.com
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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/111d2cdc-3f42-490b-81fc-f2d3900618d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages