Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

How to get the feed information in the account, and how to set the feed for the campaign?

43 views
Skip to first unread message

xiaochuan li

unread,
Apr 29, 2025, 4:31:13 AMApr 29
to Google Ads API and AdWords API Forum
In the UI, I have the following feed data, but when I query it through the API, I can't get any information.

UI interface:PixPin_2025-04-29_16-28-56.png

The API result returns:
```
field_mask {
  paths: "feed.affiliate_location_feed_data.chain_ids"
  paths: "feed.affiliate_location_feed_data.relationship_type"
  paths: "feed.attributes"
  paths: "feed.id"
  paths: "feed.name"
  paths: "feed.origin"
  paths: "feed.places_location_feed_data.business_name_filter"
  paths: "feed.places_location_feed_data.category_filters"
  paths: "feed.places_location_feed_data.email_address"
  paths: "feed.places_location_feed_data.label_filters"
  paths: "feed.resource_name"
  paths: "feed.status"
}
request_id: "4yV4bDo-2O3Fbkj06uDjRA"
query_resource_consumption: 78
```

GAOL: 
```
SELECT
  campaign_feed.campaign,
  campaign_feed.feed,
  campaign_feed.matching_function.function_string,
  campaign_feed.matching_function.left_operands,
  campaign_feed.matching_function.operator,
  campaign_feed.matching_function.right_operands,
  campaign_feed.placeholder_types,
  campaign_feed.resource_name,
  campaign_feed.status
FROM campaign_feed
```

Google Ads API Forum Advisor

unread,
Apr 29, 2025, 8:46:40 AMApr 29
to clixia...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

Please be informed that I have removed your response from the forums as it contains the PII information. Do note that the feed-based extensions were migrated to asset-based extensions. Kindly refresh the blog post for more details. Feed items no longer exist and no longer gather metrics. You can retrieve the feed data using the asset set resource as below:

POST https://googleads.googleapis.com/v19/customers/{customer Id}/googleAds:search?key=[YOUR_API_KEY] HTTP/1.1

developer-token: **********************
Authorization: Bearer [YOUR_ACCESS_TOKEN]
Accept: application/json
Content-Type: application/json

{
  "query": "SELECT asset_set.id, asset_set.type, asset_set.status, asset_set.resource_name, asset_set.name FROM asset_set"
}

{
  "results": [
    {
      "assetSet": {
        "resourceName": "customers/{customer Id}/assetSets/{asset set Id}",
        "name": "PTV a03 s Game feed",
        "type": "DYNAMIC_CUSTOM",
        "status": "ENABLED",
        "id": "{asset set Id}""
      }
    },
    {
      "assetSet": {
        "resourceName": "customers/{customer Id}/assetSets/{asset set Id}"",
        "name": "PTV S Game feed",
        "type": "DYNAMIC_CUSTOM",
        "status": "ENABLED",
        "id": "{asset set Id}""
      }
    }
  ],
  "fieldMask": "assetSet.id,assetSet.type,assetSet.status,assetSet.resourceName,assetSet.name",
  "queryResourceConsumption": "80"
}
You can try making a request using the Search or SearchStream by passing the customer Id. Also, you can use QueryBuilder to create your query and QueryValidator  to validate your query.


Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-04-29 12:45:32Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01qVGSy:ref" (ADR-00302777)



xiaochuan li

unread,
Apr 30, 2025, 3:28:34 AM (14 days ago) Apr 30
to Google Ads API and AdWords API Forum
Thank you for your answer. The feed information I need is indeed in AssetSet. So how do I associate AssetSet with Campaign?

Google Ads API Forum Advisor

unread,
Apr 30, 2025, 6:57:13 AM (14 days ago) Apr 30
to clixia...@gmail.com, adwor...@googlegroups.com
Hi,

You can associate an AssetSet with a Campaign in the Google Ads API using the CampaignAssetSetService. This service allows you to create and remove links between campaigns and asset sets. In CampaignAssetSet resource. This resource represents the relationship between a campaign and an asset set. Its resource name has the following format:
  • customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-04-30 10:56:34Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01qVGSy:ref" (ADR-00302777)



Reply all
Reply to author
Forward
0 new messages