Set tracking at the account level using Adwords api version v201908

101 views
Skip to first unread message

rentcafe dev

unread,
Nov 15, 2019, 12:24:44 PM11/15/19
to AdWords API and Google Ads API Forum
Hello,

I'm trying to set TrackingUrlTemplate and finalUrlSuffix at the account level and I'm receiving the following error:

OperationAccessDeniedReason.ACTION_NOT_PERMITTED. (Error: OperationAccessDenied.ACTION_NOT_PERMITTED, FieldPath: customer.parallelTrackingEnabled, Trigger: )

  Stack Trace:   
Server stack trace: 
   at Google.Api.Ads.Common.Lib.SoapFaultInspector`1.AfterReceiveReply(Message& reply, Object correlationState)
   at System.ServiceModel.Dispatcher.ImmutableClientRuntime.AfterReceiveReply(ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Google.Api.Ads.AdWords.v201809.CustomerServiceInterface.mutate(Customer customer)
   at YSI.Ads.GoogleAdwordsHelper.SetTracking(Int64& ClientCustomerId) in C:\TFS\Cafés\yCPC\Source\GoogleAdwords.vb:line 1744
   at YSI.Ads.GoogleAdwordsHelper.CreatePropertyAccount(String name, String propertyCode, String propertyTimeZone) in C:\TFS\Cafés\yCPC\Source\GoogleAdwords.vb:line 1714
   at YSI.Cafe.RC.SiteManager.ContentClasses.sitemgrgoogleadwordsmanager.SetAccount(Boolean CreateAcct) in C:\TFS\Cafés\RentCafe\Source\ManagerCafe\ContentClasses\SiteMgrGoogleAdwordsManager.vb:line 5228   

I have tried to set customer.parallelTrackingEnabled to True, False, Nothing and with customer.parallelTrackingEnabled removed from the call (using VB.Net) and I receive the same error.

Below is the soap request and response:

-----------------BEGIN API CALL---------------------

Request
-------

POST /api/adwords/mcm/v201809/CustomerService
VsDebuggerCausalityData: uIDPo+u6o/El8thFiu3GbPv6ZrgAAAAAgDPweXWU7kiQ3n7vsPdLTwm2ZVsLyt5IiAbzZbBXv/IACQAA
Authorization: REDACTED
Accept-Encoding: gzip, deflate
TimeStamp: Fri, 15 Nov 2019 08:54:42 GMT


<?xml version="1.0" encoding="utf-16"?>
  <s:Header>
      <clientCustomerId xmlns="https://adwords.google.com/api/adwords/cm/v201809">REDACTED</clientCustomerId>
      <developerToken xmlns="https://adwords.google.com/api/adwords/cm/v201809">REDACTED</developerToken>
      <userAgent xmlns="https://adwords.google.com/api/adwords/cm/v201809">RentCafe Site Manager (AwApi-DotNet/24.5.0, Common-Dotnet/9.5.0, .NET CLR/4.0.30319.42000, , gzip)</userAgent>
    </RequestHeader>
  </s:Header>
      <customer>
        <customerId>REDACTED</customerId>
        <currencyCode>USD</currencyCode>
        <dateTimeZone>America/Los_Angeles</dateTimeZone>
        <descriptiveName>#paj00100#AjSFH100</descriptiveName>
        <canManageClients>false</canManageClients>
        <testAccount>true</testAccount>
        <autoTaggingEnabled>false</autoTaggingEnabled>
        <trackingUrlTemplate>{lpurl}?gadid={creative}&amp;network={network}&amp;device={device}&amp;keyword={keyword}&amp;adgroup={adgroupid}&amp;campaign={campaignid}</trackingUrlTemplate>
        <parallelTrackingEnabled>false</parallelTrackingEnabled>
        <conversionTrackingSettings>
          <effectiveConversionTrackingId>0</effectiveConversionTrackingId>
          <usesCrossAccountConversionTracking>false</usesCrossAccountConversionTracking>
        </conversionTrackingSettings>
        <remarketingSettings>
          <snippet>&lt;!-- Google Code for Remarketing Tag --&gt;
&lt;script type="text/javascript"&gt;
/* &lt;![CDATA[ */
var google_conversion_id = 694455670;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
/* ]]&gt; */
&lt;/script&gt;
&lt;script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"&gt;
&lt;/script&gt;
&lt;noscript&gt;
&lt;div style="display:inline;"&gt;
&lt;img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/694455670/?guid=ON&amp;amp;script=0"/&gt;
&lt;/div&gt;
&lt;/noscript&gt;
</snippet>
          <googleGlobalSiteTag>&lt;!-- Global site tag (gtag.js) - Google Ads: 694455670 --&gt;
&lt;script async src="https://www.googletagmanager.com/gtag/js?id=AW-694455670"&gt;&lt;/script&gt;
&lt;script&gt;
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'AW-694455670');
&lt;/script&gt;
</googleGlobalSiteTag>
        </remarketingSettings>
      </customer>
    </mutate>
  </s:Body>
</s:Envelope>

Response
--------

Content-Encoding: 
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Alt-Svc: quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443"; ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000
Transfer-Encoding: chunked
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=UTF-8
Date: Fri, 15 Nov 2019 16:54:42 GMT
Expires: Fri, 15 Nov 2019 16:54:42 GMT
Server: GSE
TimeStamp: Fri, 15 Nov 2019 08:54:42 GMT


<?xml version="1.0" encoding="utf-16"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
      <ns2:requestId>000597657453a5620ab4784ef9057a16</ns2:requestId>
      <ns2:serviceName>CustomerService</ns2:serviceName>
      <ns2:methodName>mutate</ns2:methodName>
      <ns2:operations>1</ns2:operations>
      <ns2:responseTime>108</ns2:responseTime>
    </ResponseHeader>
  </soap:Header>
  <soap:Body>
    <soap:Fault>
      <faultcode>soap:Server</faultcode>
      <faultstring>[OperationAccessDenied.ACTION_NOT_PERMITTED @ customer.parallelTrackingEnabled]</faultstring>
      <detail>
          <ns2:message>[OperationAccessDenied.ACTION_NOT_PERMITTED @ customer.parallelTrackingEnabled]</ns2:message>
          <ns2:ApplicationException.Type>ApiException</ns2:ApplicationException.Type>
          <ns2:errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:OperationAccessDenied">
            <ns2:fieldPath>customer.parallelTrackingEnabled</ns2:fieldPath>
            <ns2:fieldPathElements>
              <ns2:field>customer</ns2:field>
            </ns2:fieldPathElements>
            <ns2:fieldPathElements>
              <ns2:field>parallelTrackingEnabled</ns2:field>
            </ns2:fieldPathElements>
            <ns2:trigger></ns2:trigger>
            <ns2:errorString>OperationAccessDenied.ACTION_NOT_PERMITTED</ns2:errorString>
            <ns2:ApiError.Type>OperationAccessDenied</ns2:ApiError.Type>
            <ns2:reason>ACTION_NOT_PERMITTED</ns2:reason>
          </ns2:errors>
        </ApiExceptionFault>
      </detail>
    </soap:Fault>
  </soap:Body>
</soap:Envelope>
-----------------END API CALL-----------------------

KDJ

Google Ads API Forum Advisor Prod

unread,
Nov 15, 2019, 12:58:22 PM11/15/19
to rentca...@gmail.com, adwor...@googlegroups.com

Hi,

 

Thank you for reaching out. As explained in this blog post, parallel tracking is now required for all accounts. Try setting parallelTrackingEnabled to null and see if that fixes the error (see this forum post). If not, please provide the client customer ID of your account via reply privately to author so that I can further investigate the issue.

 

Regards,

Mitchell

Google Ads API Team



ref:_00D1U1174p._5001UOCFW4:ref
Reply all
Reply to author
Forward
0 new messages