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

*Inquiry*
1. 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.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a8e303fb-fa38-4c9a-91f7-631b731f3533n%40googlegroups.com.

Reply via email to