|
359 | 359 | "partner_link_data = datamanager_v1.PartnerLink(\n", |
360 | 360 | " owning_account=datamanager_v1.ProductAccount(\n", |
361 | 361 | " account_id=linked_customer_id,\n", |
362 | | - " product=GOOGLE_ADS\n", |
| 362 | + " account_type=GOOGLE_ADS\n", |
363 | 363 | " ),\n", |
364 | 364 | " partner_account=datamanager_v1.ProductAccount(\n", |
365 | 365 | " account_id=login_customer_id,\n", |
366 | | - " product=DATA_PARTNER\n", |
| 366 | + " account_type=DATA_PARTNER\n", |
367 | 367 | " )\n", |
368 | 368 | ")\n", |
369 | 369 | "\n", |
|
484 | 484 | "if persona == \"Data Partner\":\n", |
485 | 485 | " destination_obj = datamanager_v1.Destination(\n", |
486 | 486 | " login_account=datamanager_v1.ProductAccount(\n", |
487 | | - " product=DATA_PARTNER,\n", |
| 487 | + " account_type=DATA_PARTNER,\n", |
488 | 488 | " account_id=login_customer_id\n", |
489 | 489 | " ),\n", |
490 | 490 | " operating_account=datamanager_v1.ProductAccount(\n", |
491 | | - " product=GOOGLE_ADS,\n", |
| 491 | + " account_type=GOOGLE_ADS,\n", |
492 | 492 | " account_id=target_account_id\n", |
493 | 493 | " ),\n", |
494 | 494 | " linked_account=datamanager_v1.ProductAccount(\n", |
495 | | - " product=GOOGLE_ADS,\n", |
| 495 | + " account_type=GOOGLE_ADS,\n", |
496 | 496 | " account_id=linked_customer_id\n", |
497 | 497 | " ),\n", |
498 | 498 | " product_destination_id=str(destination_id)\n", |
|
501 | 501 | " # Advertiser Persona\n", |
502 | 502 | " destination_obj = datamanager_v1.Destination(\n", |
503 | 503 | " login_account=datamanager_v1.ProductAccount(\n", |
504 | | - " product=GOOGLE_ADS,\n", |
| 504 | + " account_type=GOOGLE_ADS,\n", |
505 | 505 | " account_id=target_account_id # Advertiser login is their Google Ads account\n", |
506 | 506 | " ),\n", |
507 | 507 | " operating_account=datamanager_v1.ProductAccount(\n", |
508 | | - " product=GOOGLE_ADS,\n", |
| 508 | + " account_type=GOOGLE_ADS,\n", |
509 | 509 | " account_id=target_account_id\n", |
510 | 510 | " ),\n", |
511 | 511 | " # Note: linked_account is omitted for Advertisers\n", |
|
0 commit comments