I'm now creating an UniversalAppCampaign

when set positiveGeoTargetType to AREA_OF_INTEREST

GeoTargetTypeSetting  geoSetting = new GeoTargetTypeSetting();
geoSetting.setPositiveGeoTargetType(GeoTargetTypeSettingPositiveGeoTargetType.AREA_OF_INTEREST);
geoSetting.setNegativeGeoTargetType(GeoTargetTypeSettingNegativeGeoTargetType.DONT_CARE);

campaign.setSettings(new Setting[]{geoSetting});





It gets error

<faultstring>[OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE 
@ operations[0].operand.settings[0].positiveGeoTargetType; 
trigger:'AREA_OF_INTEREST']</faultstring>


It confused me because I can set it on the website page.

For example, I have change campaign 10071047492L to AREA_OF_INTEREST, and I 
retrieve it, the info is:

GeoTargetTypeSetting{negativeGeoTargetType=LOCATION_OF_PRESENCE, 
positiveGeoTargetType=AREA_OF_INTEREST, settingType=GeoTargetTypeSetting}

It's AREA_OF_INTEREST!!!

I didn't know why I can set it on the website page, but can't via the 
AdWords API.


Thanks for your help.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/fec679aa-1bd6-4669-a4d4-d5b2053011af%40googlegroups.com.

Reply via email to