Hi,
I want to get campaign criteria by selector fields using python code.
I am using the paging method:
page = campaign_criterion_service.get(selector)
selector = {
'fields': ['CampaignId', 'Id', 'CriteriaType', 'PlatformName',
'LanguageName', 'LocationName',
'KeywordText','IsNegative','KeywordMatchType',
'UserListId','UserListName','BidModifier','CampaignCriterionStatus','BaseCampaignId'],
'paging': {
'startIndex': str(offset),
'numberResults': str(PAGE_SIZE)
},
'predicates': [{
'field': 'CampaignId',
'operator': 'IN',
'values':campaignidlist
},{
'field': 'IsNegative',
'operator': 'EQUALS',
'values': str(isNegative)
},
{
'field': 'CriteriaType',
'operator': 'EQUALS',
'values': CriteriaType
}]
}
Now I want to migrate those to Google Ads API. I know that the report
service has a resource mapping document. However, the service only has a
corresponding service without a mapping selector form.
I used SearchGoogleAdsStreamRequest to get the data frame and construct
them to operations. for a service call.
Like I know for GAQL campaign id is campaign.id, Id in this file
is campaign_criterion.criterion_id.
But I couldn't find 'PlatformName', 'LanguageName', 'LocationName', in
campaing criterion
table.
https://developers.google.com/google-ads/api/docs/migration/mapping#campaign_criteria
If I want to use SearchGoogleAdsStreamRequest to get the form with those
selectors,
is there an easier way to map the corresponding GAQL?
Thank you
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
"Google Ads API and AdWords 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/cc7c76bb-857c-4045-adc0-5b9376cd86d9n%40googlegroups.com.