Hi, Google Ads Team.
1. When call the CampaignAsset API, the SITELINK asset is set to the created adGroupAd.
curl --request POST \
'
https://googleads.googleapis.com/v15/customers/8732160833/campaignAssets:mutate?key=[YOUR_API_KEY]' \
--header 'developer-token: **********************' \
--header 'login-customer-id: **********************' \
--header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '
{
"operations": [
{
"create": {
"campaign": "customers/
8732160833/campaigns/20916937198",
"asset": "customers/
8732160833/assets/119449297077",
"fieldType": "SITELINK"
}
}
]
}' \
--compressed
2. When calling the AdGroupAssets API, the SITELINK asset is not set to the created adGroupAd.
curl --request POST \
'
https://googleads.googleapis.com/v15/customers/8732160833/adGroupAssets:mutate?key=[YOUR_API_KEY]' \
--header 'developer-token: **********************' \
--header 'login-customer-id: **********************' \
--header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '
{
"operations": [
{
"create": {
"adGroup": "customers/
8732160833/adGroups/159834654920",
"asset": "customers/
8732160833/assets/119449297077",
"fieldType": "SITELINK"
}
}
]
}' \
--compressed
Inquiry1. Unlike the CampaignAsset API, aren't the assets automatically set to the AdGroupAssets API?
2. I would like to know the API how to set a SITELINK asset to adGroupAd using the API.