Google API (get merchanrID)

78 views
Skip to first unread message

Анастасия Иванова

unread,
Jun 13, 2016, 1:57:34 PM6/13/16
to AdWords API Forum
Is it possible to get the MerchantIDs that are linked to Adword accounts? What API to use? What method describes this?
Thank you for the help

Vishal Vinayak (Adwords API Team)

unread,
Jun 13, 2016, 4:58:45 PM6/13/16
to AdWords API Forum
Hi Ivanova,

While fetching the campaigns data via the API, you can also get the campaign settings, which contain the merchant ID for the campaign. 

Please refer to a sample java code to retrieve campaigns here

When trying to use the get method of a service, you can pass a Selector object to retrieve specific fields.  To retrieve campaign settings, add settings to the list of fields passed to the SelectorBuilder.fields method. The settings array contains the ShoppingSetting object which has merchantID as one of it's fields.

Alternatively, you can download the Shopping Performance Report which has the associated merchantID with each shopping campaign.

Regards,
Vishal

Анастасия Иванова

unread,
Jun 15, 2016, 5:41:17 AM6/15/16
to AdWords API Forum
Hi Vishal,

Thank you for the answer, the thing is that we need to get the list of all the available merchantID, but not the merchantID from the campaigns that already exist. In other words, we need to get all the linked accounts, whose IDs we can use. Can you please help with this?
Thanks



понедельник, 13 июня 2016 г., 23:58:45 UTC+3 пользователь Vishal Vinayak (Adwords API Team) написал:

Vishal Vinayak (Adwords API Team)

unread,
Jun 15, 2016, 2:32:18 PM6/15/16
to AdWords API Forum
Hi Ivanova,

Unfortunately, the only place in adwords API where you can find the merchant ID information linked to an account is the Shopping Performance Report. You can perhaps use the google shopping API to fetch data linked to your google merchant account.   
 

Regards,
Vishal Vinayak, Adwords API Team

Анастасия Иванова

unread,
Jun 16, 2016, 7:15:16 AM6/16/16
to AdWords API Forum
Thanks

среда, 15 июня 2016 г., 21:32:18 UTC+3 пользователь Vishal Vinayak (Adwords API Team) написал:
Reply all
Reply to author
Forward
0 new messages