Hello, 

I know this is a Google Ads API forum, not an analytics API forum, but the 
problem below concerns a part of the project mainly related to Google Ads 
API. Additionally, I didn't find the forum for the analytics API.

Is there a way to TURN ON the View in Google Ads Linking using API?

[image: Zrzut ekranu 2019-10-21 o 08.16.50.png] <about:invalid#zClosurez>







API I'm using: 
https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtReference/management/webPropertyAdWordsLinks/insert

My code:
service.management().webPropertyAdWordsLinks().insert(
 accountId=account_id,
 webPropertyId=web_property_id,
 body={
   'adWordsAccounts': [
      {
        'customerId': google_ads_id
      }
    ],
    'name': 'Google Ads Link',
    'profileIds': []
  }
).execute()


I tried to retrieve profileIds for Views by:
adWordsLinks = service.management().webPropertyAdWordsLinks().list(
    accountId=account_id,
    webPropertyId=web_property_id
).execute()

but there were no profileIds, until I manually turned on them in the 
analytics panel after linking the Google Ads account.

Any ideas?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/73207eda-f295-48b9-b1c5-45039a531457%40googlegroups.com.

Reply via email to