SET the campaign GeoTargetTypeSetting only works first time

67 views
Skip to first unread message

Luis Rivera

unread,
Oct 12, 2017, 11:48:29 PM10/12/17
to AdWords API Forum
Hi guys,

I have created a campaign with no GeoTargetTypeSetting specified, and then perform the following operation to set a GeoTargetTypeSetting:

Python:

---

operations = [{
    'operator': 'SET',
    'operand': {
        'id': campaign_id,
        'settings': [
            {
                'xsi_type': 'GeoTargetTypeSetting',
                'positiveGeoTargetType': 'LOCATION_OF_PRESENCE',
                'negativeGeoTargetType': 'AREA_OF_INTEREST'
            }
        ]
    }
}]

campaign_service.mutate(operations)

---

The above code set the setting that I wanted, but if I perform the operation once again the setting is never changed, I mean if I set "LOCATION_OF_PRESENCE" for both (negative and positive) it keeps as the first time I perform the SET operation. No errors, the operation executes well, just no changes.

How can I SET (update/overwrite) the current GeoTargetTypeSetting for a given campaign?

Thank you.
Message has been deleted

Vincent Racaza (AdWords API Team)

unread,
Oct 13, 2017, 2:44:49 AM10/13/17
to AdWords API Forum
Hi Luis,

It is weird that you were able to successfully update on your first instance on the GeoTargetTypeSetting of your campaign. Based on your code snippet, you are setting the negativeGeoTargetType to "AREA_OF_INTEREST" which is not a valid value for this field.

So I can further check if your request is really successful or not, could you provide your SOAP request and response logs? If you haven't enabled the SOAP logs yet, you can enable it by following the "How do I log SOAP interactions?" section of this document.

Kindly use the Reply privately to author option when replying.

Thanks,
Vincent
AdWords API Team

Vincent Racaza (AdWords API Team)

unread,
Oct 18, 2017, 5:43:00 AM10/18/17
to AdWords API Forum
Hi Luis,

A gentle follow up on this. If you still have issues regarding this, kindly provide the details that I asked previously.
Reply all
Reply to author
Forward
0 new messages