Hello,
Attempting to retrieve data with the Google Ads API using either the Python
client library or using HTTP 1.1 results in incomplete data and 404 error
messages being returned, respectively, for multiple CID accounts for
multiple resources.
Target resource: Campaigns
Login-customer-id: xxx...
CID account id: xxx...
Python client snippet:
query = """SELECT
campaign.name,
campaign.id,
campaign.status,
segments.device,
metrics.impressions,
metrics.clicks,
metrics.ctr,
metrics.average_cpc,
metrics.cost_micros
FROM campaign”""
data = ga_service.search(cid, query=query)
Log: google.ads.google_ads.client:183 > Request made: ClientCustomerId:
xxx, Host: googleads.googleapis.com:443, Method:
/google.ads.googleads.v2.services.GoogleAdsService/Search, RequestId:
xoVABa1mX1T2opJ6Mdr3PQ, IsFault: False, FaultMessage: None
Expected response: Data for all available campaigns in Google Ads UI
Actual response: Data available for only one campaign out of four
HTTP 1.1 request:
Request url:
https://googleads.googleapis.com/v2/customers/customer_id/campaigns/working_campaign_id
Request headers:
- login-customer-id: xxx ...
- Authorization: Bearer xxx...
- developer-token: xxx...
- Content-Type: application/json
Response:
{
"resourceName": "customers/xxx/campaigns/xxx",
"id": "xxx",
"name": CAMPAIGN_NAME",
"status": ENABLED\,
…
}
Request url:
https://googleads.googleapis.com/v2/customers/customer_id/campaigns/NON_WORKING_CAMPAIGN_IDS
Response:
{
"error": {
"code": 404,
"message": "Requested entity was not found.",
"status": "NOT_FOUND",
"details": [
{
"@type": "
type.googleapis.com/google.ads.googleads.v2.errors.GoogleAdsFailure",
"errors": [
{
"errorCode": {
"requestError": "RESOURCE_NOT_FOUND"
},
"message": "Resource not found."
}
]
}
]
}
Is there an issue with the Google Ads API servers returning incomplete data?
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
"AdWords API and Google Ads 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/968f67fa-15c1-47c5-a7d7-636582ae7912%40googlegroups.com.