Note that authentication is with the master account id for both the adwords 
and merchant center master accounts.
I create a merchant center account with the adwords id in it.
On the adwords UI it shows the pending link to merchant center.

However to accept the link using the api you need to first use 
getServiceLinks.

The following xml returns nothing (as does everything else I have tried). 
(It doesn't error - just returns nothing)
It should return the pending link. So I can get a handle on it to accept it.

Any ideas?

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
<soap:Header>
<RequestHeader xmlns="https://adwords.google.com/api/adwords/mcm/v201809";>
<developerToken>REDACTED</developerToken>
<userAgent>MyUserAgent</userAgent>
<clientCustomerId>REDACTED</clientCustomerId>
</RequestHeader>
</soap:Header>
<soap:Body>
<getServiceLinks xmlns="https://adwords.google.com/api/adwords/mcm/v201809";>
<selector xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201809";>
<ns2:fields>serviceType</ns2:fields>
<ns2:predicate>
<ns2:field>ServiceType</ns2:field>
<ns2:operator>EQUALS</ns2:operator>
<ns2:values>MERCHANT_CENTER</ns2:values>
</ns2:predicate>
</selector>
</getServiceLinks>
</soap:Body>
</soap:Envelope>

It returns the following
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
<soap:Header>
<ResponseHeader 
xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201809"; 
xmlns="https://adwords.google.com/api/adwords/mcm/v201809";>
<ns2:requestId>00058f09a7cf8e1e0a858099f003364e</ns2:requestId>
<ns2:serviceName>CustomerService</ns2:serviceName>
<ns2:methodName>getServiceLinks</ns2:methodName>
<ns2:operations>1</ns2:operations>
<ns2:responseTime>161</ns2:responseTime>
</ResponseHeader>
</soap:Header>
<soap:Body>
<getServiceLinksResponse 
xmlns="https://adwords.google.com/api/adwords/mcm/v201809"; 
xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201809"/>
</soap:Body>
</soap:Envelope>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3487b120-be67-4ea5-ae76-625e430d1af1%40googlegroups.com.

Reply via email to