Hi there,
I am trying to fetch Google Ads campaign and Asset form realted data with 
API implementation, i am able to fetch customer ID info (Name, location 
etc) from the same API but when trying to fetch campaign and asset info 
with Queries (which i have tried a lot of different ones available on 
internet), I am just getting 200 status in response with field mask data 
but no information.

Context:
I am using a Manager account (Developer token which is in Test) and one 
test account on which i have made one campaign and listed one form asset 
with it.

Curl example:
curl --location 
'https://googleads.googleapis.com/v20/customers/xxx/googleAds:search' \
--header 'Authorization: Bearer xxx' \
--header 'developer-token: xxx' \
--header 'Content-Type: application/json' \
--data '{
  "query": "SELECT asset.id, asset.name, asset.type, 
asset.lead_form_asset.call_to_action_type, 
asset.lead_form_asset.business_name, asset.lead_form_asset.headline, 
asset.lead_form_asset.description, 
asset.lead_form_asset.privacy_policy_url, 
asset.lead_form_asset.post_submit_headline, 
asset.lead_form_asset.post_submit_description FROM asset WHERE 
asset.resource_name = '\''customers/xxx/assets/xxx'\''"
}

or 
{
    "query": "SELECT campaign.id, campaign.name, campaign.status FROM 
campaign"
}

In response i am getting just getting the field mask with no data while its 
there on Google ads dashboard with campaign and form asset there.

Response:
{
    "fieldMask": 
"asset.id,asset.name,asset.type,asset.leadFormAsset.callToActionType,asset.leadFormAsset.businessName,asset.leadFormAsset.headline,asset.leadFormAsset.description,asset.leadFormAsset.privacyPolicyUrl,asset.leadFormAsset.postSubmitHeadline,asset.leadFormAsset.postSubmitDescription"
}

Can anyone help me here?

Thanks
Rishabh
'

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 visit 
https://groups.google.com/d/msgid/adwords-api/bf70f176-e8d7-45c4-9dfa-418ee32a281an%40googlegroups.com.

Reply via email to