Hi,
CampaignCriterion (Targeting) is a different entity from Campaign.
Please use CampaginCriterionService to add location targetings like this
example<https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201309/targeting/AddCampaignTargetingCriteria.java>
.
Best,
- Takeshi, AdWords API Team
On Wednesday, February 26, 2014 8:47:29 PM UTC+9, Ashish Pathak wrote:
>
> Hi,
>
> I'm also facing same problem please provide some code to set location for
> campaign.
>
> e.g I wan't to target USA how do i set that at the time of campaign
> creation.
>
> 'settings': [
> {
> 'xsi_type': 'GeoTargetTypeSetting',
> 'positiveGeoTargetType': 'DONT_CARE',
> 'negativeGeoTargetType': 'DONT_CARE'
> },
> {
> 'xsi_type': 'KeywordMatchSetting',
> 'optIn': 'false'
> }
> ]
>
>
> On Tuesday, October 25, 2011 10:08:34 AM UTC+5:30, dummy one wrote:
>>
>>
>> Hi,
>>
>> I want to add location say india to my campaign , how can it be done
>> ..Can you provide me some code example .
>>
>>
>> Best Regards ,
>>
>> jana
>>
>>
>>
>>
>>
>> On Mon, Oct 24, 2011 at 8:01 AM, Anash P. Oommen <
>> [email protected]> wrote:
>>
>>> Hi,
>>>
>>> Location codes for geo targeting are available at
>>> http://code.google.com/apis/adwords/docs/appendix/geotargeting.html.
>>>
>>> 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
>>>
>>
>>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
For more options, visit https://groups.google.com/groups/opt_out.