Unable to add location extension via MutateJobService

42 views
Skip to first unread message

siddhar...@sokrati.com

unread,
Jul 6, 2015, 8:41:44 AM7/6/15
to adwor...@googlegroups.com
Hi,


When I'm trying to add location extension by creating an object of CampaignAdExtension, and using the MutateJobService, it gives following error AdExtensionError.INVALID_ADEXTENSION_TYPE.

I'm using the client library with version v201502.

Can anybody tell me, which adExtensionType to be set, because according to the documentation, it need not to be set.

Thanks.

Umesh Dengale

unread,
Jul 6, 2015, 2:33:52 PM7/6/15
to adwor...@googlegroups.com, siddhar...@sokrati.com
Hello Siddharth,

The adExtension is required field for the CampaignAdExtension object and above error is due to this reason. Please refer the CampaignAdExtension document for setting value for the adExtension field. 

Regards,
Umesh, AdWords API Team.

siddhar...@sokrati.com

unread,
Jul 16, 2015, 5:37:39 AM7/16/15
to adwor...@googlegroups.com, siddhar...@sokrati.com
Hi Umesh,

I am creating adExtension object. In the adExtension object I'm setting location extension object. In location extension object, documentation specifies that AdExtension.Type is not required to be provided. Then also, when I'm using MutateJobService to upload location extension by giving the CampaignAdExtensionOperation, it gives the error  INVALID_ADEXTENSION_TYPE. 

Umesh Dengale

unread,
Jul 16, 2015, 4:37:53 PM7/16/15
to adwor...@googlegroups.com, siddhar...@sokrati.com
Hi Siddharth,

I suggest you to use the Extension Setting Services for adding/updating the ad extension instead of the MutateJobService. Please check out how to add new ad extensions to a campaign and update the Ad extension using the CampaignExtensionSettingService
You can use the AdGroupExtensionSettingService to manage extensions at the adgroup level, the CampaignExtensionSettingService to manage extensions at the campaign level, and the CustomerExtensionSettingService to manage extensions at the customer level.

siddhar...@sokrati.com

unread,
Jul 17, 2015, 8:17:10 AM7/17/15
to adwor...@googlegroups.com, siddhar...@sokrati.com
Please consider my requirement. I only want to add location extension at campaign level.

In the documentation it specifies under "When are legacy feed services preferred?" that adWords does not support location extension to be uploaded using CampaignExtensionService. That's why I am using CampaignAdExtension.

But I'm unable to add location extension using campaignAdExtension. This is my problem? Please suggest a way so that I can add location extension at Campaign level using the API.
Reply all
Reply to author
Forward
0 new messages