I am trying to add a conversion value rule to a campaign but can't figure
out how to set the geo location. There is a GeoTargetConstants property
of ValueRuleGeoLocationCondition, but it is ReadOnly. When I run the code
below, I get a TOO_FEW error referencing geo_location_condition. I know I
need to add the location, but I can't figure out where. What am I missing?
Dim convRule As New ConversionValueRule With {
.Action = New ConversionValueRule.Types.ValueRuleAction
With {
.Operation =
ValueRuleOperationEnum.Types.ValueRuleOperation.Multiply,
.Value = 2.0
},
.GeoLocationCondition = New
ConversionValueRule.Types.ValueRuleGeoLocationCondition With {
.GeoMatchType =
ValueRuleGeoLocationMatchTypeEnum.Types.ValueRuleGeoLocationMatchType.LocationOfPresence
}
}
Dim operation As New ConversionValueRuleOperation With {
.Create = convRule
}
Dim convRuleService As ConversionValueRuleServiceClient =
client.GetService(Services.V13.ConversionValueRuleService)
Dim request As New MutateConversionValueRulesRequest
request.CustomerId = ClientCustomerId
request.ResponseContentType =
ResponseContentTypeEnum.Types.ResponseContentType.MutableResource
request.Operations.Add(operation)
Dim response As MutateConversionValueRulesResponse =
convRuleService.MutateConversionValueRules(request)
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
"Google Ads API and AdWords 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/ba9ecc62-0982-47f3-b2cf-bb5d88a5c3e0n%40googlegroups.com.