ConstantDataService (v201809)

77 views
Skip to first unread message

lucie.ra...@gmail.com

unread,
Mar 22, 2019, 6:43:50 AM3/22/19
to AdWords API and Google Ads API Forum
Hi all,

I'm trying to get uservertical list via ConstantDataService, but it looks like service doesn't exist. Can you please advise what I'm doing wrong.


def main(client):
  user_vertical_service = client.GetService('ConstantDataService', version='v201809')

  offset = 0
  selector = {
      'fields': ['Id', 'Name','Status'],
      'paging': {
          'startIndex': str(offset),
          'numberResults': str(PAGE_SIZE)
      }
  }

  more_pages = True
  while more_pages:
    page = user_vertical_service.get(selector)



Thanks a lot, Lucie

googleadsapi...@google.com

unread,
Mar 22, 2019, 1:40:09 PM3/22/19
to AdWords API and Google Ads API Forum
Hello Lucie, 

Could you please elaborate on the error you're receiving while trying to make an API call with ConstantDataService? Please note that the service is still available and you may refer to the code sample from here

Thanks,
Bharani, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

lucie.ra...@gmail.com

unread,
Mar 24, 2019, 2:30:15 AM3/24/19
to AdWords API and Google Ads API Forum
Hi Bharani,

Error Attached.

Thanks a lot, Lucie
API error.png

lucie.ra...@gmail.com

unread,
Mar 25, 2019, 4:55:19 AM3/25/19
to AdWords API and Google Ads API Forum
Hi Bharani,

It is started to work for some reason using the same script.
I might have last question related to Custom intent audiences. 
I'm reading that it is not possible to get via API, but is there any way how to get it? I have about 50 accounts within Europe, and I'm not able to contact all of them.

googleadsapi...@google.com

unread,
Mar 25, 2019, 11:09:30 AM3/25/19
to AdWords API and Google Ads API Forum
Hello Lucie, 

You may use the AdGroupCriterionService.get() to pull the Custom Intent audience. Their stats will be available in reports too. Let me know if you have any other questions. 

Thanks,
Bharani, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

lucie.ra...@gmail.com

unread,
Apr 8, 2019, 6:19:27 AM4/8/19
to AdWords API and Google Ads API Forum
Thanks a lot,

if so, please update documentation...:-)

lucie.ra...@gmail.com

unread,
Apr 14, 2019, 9:49:45 AM4/14/19
to AdWords API and Google Ads API Forum
Hi Bharani,

sorry to reopening this. How exactly should I use AdGroupCriterionService.get(), because using this service I'm getting null values.

For example:

There are 3 IDs I'm looking for:

custominmarket::1455608,
custominmarket::1456139,
custominmarket::1461150

I suggest that using AdGroupCriterionService.get() I should get the following names:


'SQA - Ford Fiesta generics (2nd segment: Offers,Price, Promotions,Buy)'
'SQA - Ford Fiesta competitors'
'SQA - Ford only'

but I'm getting null, no rows.

I've used Criterion.Type = 'CUSTOM_INTENT', but there is no custom.type populated, weird.

AccountId = '582-691-1830'
CampaignId = 1356020385

May I ask you to point me how to use this service properly? Can you please try to run the above example?

your help is welcome!, thank you




googleadsapi...@google.com

unread,
Apr 15, 2019, 1:15:58 PM4/15/19
to lucie.ra...@gmail.com, AdWords API and Google Ads API Forum
Hi Lucie, 

I was able to get the Custom Intent audience through the AdGroupCriterionService. It looks like you're performing this operation for a Video campaign. Please note that Video campaigns are not supported through the API Services. As an alternative, you may use the Criteria Performance Report with the query as below:

SELECT CampaignId, Criteria, CriteriaType FROM CRITERIA_PERFORMANCE_REPORT WHERE CampaignId IN ["1356020385"]


Thanks,
Bharani, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:

lucie.ra...@gmail.com

unread,
Apr 16, 2019, 4:37:36 AM4/16/19
to AdWords API and Google Ads API Forum

Hi Bharani,

Yes, I want to see Video Campaigns only. And using your alternative solution I'm getting 'Content' under the CriteriaType and not name itself. 
It looks like there is no way how to get the following names


'SQA - Ford Fiesta generics (2nd segment: Offers,Price, Promotions,Buy)'
'SQA - Ford Fiesta competitors'
'SQA - Ford only'

using API, can you please confirm?

thanks, Lucie

googleadsapi...@google.com

unread,
Apr 16, 2019, 2:06:40 PM4/16/19
to lucie.ra...@gmail.com, AdWords API and Google Ads API Forum
Hello, 

The report will return the Custom Intent Audience for video campaigns. It is not possible to get the Audience names. Let me know if you have any other questions.

Regards,
Bharani, Google Ads API Team
Reply all
Reply to author
Forward
0 new messages