To whom it may concern:

As of October 16, 2018 at around 18.00, we've been experiencing some issues 
when using the python API. I have spent today looking into the issue, but I 
found something strange. I made a small example so that I could share the 
problem with you.

I have the following code:

service = client.GetService('AdGroupCriterionService', version='v201809')

adgroup_adwords_id = 41434232302

selector = {
    'fields': [
        'Id',
        'CpcBid',
        'BaseAdGroupId',
        'CriteriaType',
        'PartitionType',
        'CaseValue'
    ],
    'predicates': [
        {
            'field': 'AdGroupId',
            'operator': 'IN',
            'values': [adgroup_adwords_id]
        },
        {
            'field': 'CriteriaType',
            'operator': 'EQUALS',
            'values': 'PRODUCT_PARTITION'
        },
        {
            'field': 'Status',
            'operator': 'NOT_EQUALS',
            'values': 'REMOVED'
        }
    ]
}

result = service.get(selector)



I am trying to query Google Ads to find all the Adgroup Criterions for a 
Shopping Campaign. When I run the above code, it results in different 
responses when I call it multiple times, i.e.

# First run
{
    'adgroup_id': 41434232302,
    'criterion_use': 'BIDDABLE',
    'criterion': {
        'id': 318749511508,
        'type': 'PRODUCT_PARTITION',
        'Criterion.Type': 'ProductPartition',
        'partitionType': 'UNIT',
        'parentCriterionId': 293946777986,
        'caseValue': {
            'ProductDimension.Type': 'ProductOfferId',
            'value': 'fbeni618004'
        }
    }
}

# A later run
{
    'adgroup_id': 41434232302,
    'criterion_use': 'BIDDABLE',
    'criterion': {
        'id': 318749511508,
        'type': 'PRODUCT_PARTITION',
        'Criterion.Type': 'ProductPartition',
        'partitionType': 'UNIT',
        'parentCriterionId': None,
        'caseValue': {
            'ProductDimension.Type': 'ProductOfferId',
            'value': 'fbeni618004'
        }
    }
}



The `parentCriterionId` changes from a value to a `None`. On Google Ads, 
nothing has changed about this criterion:

<https://user-images.githubusercontent.com/3688009/47086368-9031d380-d219-11e8-92a3-b80a1f415fda.png>



Could you share some insight into what is going on? We've been running this 
code for quite some time, so we were a bit surprised when we all of a 
sudden got errors for this.

We are using `v201809` of the API and version 14.1.0 of the `googleads` 
Python library

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a06b0c15-7fa5-47e2-ae24-d4cd8ce3639f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to