Hello,
When I try to create a location sync asset set, I get the following error,
ErrorCode: “{{ “fieldError”: “VALUE_MUST_BE_UNSET” }}’
Location: {{ “fieldPathElements”: [ { “fieldName”: “operations”, “index”: 0
}, { “fieldName”: “create” }, { “fieldName”: “location_set” } ] }}
Your guide clearly states that the location set field on the AssetSet
entity needs to be set. (
https://developers.google.com/google-ads/api/docs/assets/location-assets#create-location-sync
)
Can you give me some guidance? Here's my code.
BusinessProfileLocationSet businessProfileLocationSet = new
BusinessProfileLocationSet { HttpAuthorizationToken = await
GetBusinessProfileAccessToken(), EmailAddress =
BusinessProfileEmailAddress, BusinessAccountId = BusinessAccountId, };
businessProfileLocationSet.LabelFilters.Add("SomeLabelFilter"); AssetSet
assetSet = new AssetSet { Type = AssetSetType.LocationSync, LocationSet =
new LocationSet { LocationOwnershipType = LocationOwnershipType.Affiliate,
BusinessProfileLocationSet = businessProfileLocationSet }, Name =
"LocationAsset", }; GoogleAdsClient client =
Authenticator.CreateGoogleAdsClientForTestAccount(); AssetSetServiceClient
assetSetService = client.GetService(Services.V15.AssetSetService);
MutateAssetSetsResponse mutateAssetSetsResponse = await
assetSetService.MutateAssetSetsAsync(CustomerId.ToString(), new
AssetSetOperation[] { new() { Create = assetSet } });
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0bf110d2-2eb0-4a9b-8ce6-b0a8eb133d9cn%40googlegroups.com.