When is the last month data update at targeting_idea_service(requestType='STATS')?

27 views
Skip to first unread message

윤성원

unread,
Jun 15, 2020, 3:49:43 AM6/15/20
to AdWords API and Google Ads API Forum
Hi
I'm trying to get monthly volume data of my keywords.
I heard this API shows the data was shown last 12 months data in default, and automatically updated.
I can get the result until April but I still can't obtain May, 2020 data by call this api (I called it at June 15th).

When can I get the data of May?
Is there any necessary parameter to get updated data like start_date or end_date?
I use python library like below.


        client = adwords.AdWordsClient.LoadFromStorage()

        # Initialize appropriate service.
        targeting_idea_service = client.GetService(
            'TargetingIdeaService', version='v201809')

        # Construct selector object and retrieve related keywords.
        selector = {
            'ideaType': 'KEYWORD',
            'requestType': 'STATS'
        }

        selector['requestedAttributeTypes'] = [
            'KEYWORD_TEXT', 'SEARCH_VOLUME', 'TARGETED_MONTHLY_SEARCHES']
         #'KEYWORD_TEXT', 'SEARCH_VOLUME', 'CATEGORY_PRODUCTS_AND_SERVICES']

        # Language setting (optional).
        selector['searchParameters'] = [{
            # The ID can be found in the documentation:
            'xsi_type': 'LanguageSearchParameter',
            'languages': [{'id': '1012'}]
        }]

        # Network search parameter (optional)
        selector['searchParameters'].append({
            'xsi_type': 'NetworkSearchParameter',
            'networkSetting': {
                'targetGoogleSearch': True,
                'targetSearchNetwork': False,
                'targetContentNetwork': False,
                'targetPartnerSearchNetwork': False
            }
        })

        selector['paging'] = {
                'startIndex': str(offset),
                'numberResults': str(PAGE_SIZE)
        }

        if (len(selector['searchParameters']) > 2):
            del selector['searchParameters'][2]
        selector['searchParameters'].append({
            'xsi_type': 'RelatedToQuerySearchParameter',
            'queries': karr
        })

        page = targeting_idea_service.get(selector)

Google Ads API Forum Advisor Prod

unread,
Jun 15, 2020, 2:43:26 PM6/15/20
to swyoo...@gmail.com, adwor...@googlegroups.com
Hello,

There is no set schedule for when a particular month's data will be available, but data will usually become available once all necessary operations have been performed on the consolidated data on our end. This will automatically update and you will not need to make any changes with additional parameters. If you continue to experience this issue for a prolonged period of time, let me know.

Regards,
Danica, Google Ads API Team

ref:_00D1U1174p._5004Q20YsaK:ref
Reply all
Reply to author
Forward
0 new messages