1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052
/// Represents a view of BiddingStrategies owned by and shared with the customer.
///
/// In contrast to BiddingStrategy, this resource includes strategies owned by
/// managers of the customer and shared with this customer - in addition to
/// strategies owned by this customer. This resource does not provide metrics and
/// only exposes a limited subset of the BiddingStrategy attributes.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccessibleBiddingStrategy {
/// Output only. The resource name of the accessible bidding strategy.
/// AccessibleBiddingStrategy resource names have the form:
///
/// `customers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the bidding strategy.
#[prost(int64, tag = "2")]
pub id: i64,
/// Output only. The name of the bidding strategy.
#[prost(string, tag = "3")]
pub name: ::prost::alloc::string::String,
/// Output only. The type of the bidding strategy.
#[prost(
enumeration = "super::enums::bidding_strategy_type_enum::BiddingStrategyType",
tag = "4"
)]
pub r#type: i32,
/// Output only. The ID of the Customer which owns the bidding strategy.
#[prost(int64, tag = "5")]
pub owner_customer_id: i64,
/// Output only. descriptive_name of the Customer which owns the bidding strategy.
#[prost(string, tag = "6")]
pub owner_descriptive_name: ::prost::alloc::string::String,
/// The bidding scheme.
///
/// Only one can be set.
#[prost(
oneof = "accessible_bidding_strategy::Scheme",
tags = "7, 8, 9, 10, 11, 12"
)]
pub scheme: ::core::option::Option<accessible_bidding_strategy::Scheme>,
}
/// Nested message and enum types in `AccessibleBiddingStrategy`.
pub mod accessible_bidding_strategy {
/// An automated bidding strategy to help get the most conversion value for
/// your campaigns while spending your budget.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MaximizeConversionValue {
/// Output only. The target return on ad spend (ROAS) option. If set, the bid strategy
/// will maximize revenue while averaging the target return on ad spend. If
/// the target ROAS is high, the bid strategy may not be able to spend the
/// full budget. If the target ROAS is not set, the bid strategy will aim to
/// achieve the highest possible ROAS for the budget.
#[prost(double, tag = "1")]
pub target_roas: f64,
}
/// An automated bidding strategy to help get the most conversions for your
/// campaigns while spending your budget.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MaximizeConversions {
/// Output only. The target cost per acquisition (CPA) option. This is the average amount
/// that you would like to spend per acquisition.
#[prost(int64, tag = "1")]
pub target_cpa: i64,
}
/// An automated bid strategy that sets your bids to help get as many clicks
/// as possible within your budget.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetSpend {
/// Output only. The spend target under which to maximize clicks.
/// A TargetSpend bidder will attempt to spend the smaller of this value
/// or the natural throttling spend amount.
/// If not specified, the budget is used as the spend target.
/// This field is deprecated and should no longer be used. See
/// <https://ads-developers.googleblog.com/2020/05/reminder-about-sunset-creation-of.html>
/// for details.
#[deprecated]
#[prost(int64, optional, tag = "1")]
pub target_spend_micros: ::core::option::Option<i64>,
/// Output only. Maximum bid limit that can be set by the bid strategy.
/// The limit applies to all keywords managed by the strategy.
#[prost(int64, optional, tag = "2")]
pub cpc_bid_ceiling_micros: ::core::option::Option<i64>,
}
/// An automated bid strategy that sets bids to help get as many conversions as
/// possible at the target cost-per-acquisition (CPA) you set.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetCpa {
/// Output only. Average CPA target.
/// This target should be greater than or equal to minimum billable unit
/// based on the currency for the account.
#[prost(int64, optional, tag = "1")]
pub target_cpa_micros: ::core::option::Option<i64>,
}
/// An automated bidding strategy that sets bids so that a certain percentage
/// of search ads are shown at the top of the first page (or other targeted
/// location).
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetImpressionShare {
/// Output only. The targeted location on the search results page.
#[prost(
enumeration = "super::super::enums::target_impression_share_location_enum::TargetImpressionShareLocation",
tag = "1"
)]
pub location: i32,
/// The desired fraction of ads to be shown in the targeted location in
/// micros. E.g. 1% equals 10,000.
#[prost(int64, optional, tag = "2")]
pub location_fraction_micros: ::core::option::Option<i64>,
/// Output only. The highest CPC bid the automated bidding system is permitted to specify.
/// This is a required field entered by the advertiser that sets the ceiling
/// and specified in local micros.
#[prost(int64, optional, tag = "3")]
pub cpc_bid_ceiling_micros: ::core::option::Option<i64>,
}
/// An automated bidding strategy that helps you maximize revenue while
/// averaging a specific target return on ad spend (ROAS).
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetRoas {
/// Output only. The desired revenue (based on conversion data) per unit of spend.
#[prost(double, optional, tag = "1")]
pub target_roas: ::core::option::Option<f64>,
}
/// The bidding scheme.
///
/// Only one can be set.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Scheme {
/// Output only. An automated bidding strategy to help get the most conversion value for
/// your campaigns while spending your budget.
#[prost(message, tag = "7")]
MaximizeConversionValue(MaximizeConversionValue),
/// Output only. An automated bidding strategy to help get the most conversions for your
/// campaigns while spending your budget.
#[prost(message, tag = "8")]
MaximizeConversions(MaximizeConversions),
/// Output only. A bidding strategy that sets bids to help get as many conversions as
/// possible at the target cost-per-acquisition (CPA) you set.
#[prost(message, tag = "9")]
TargetCpa(TargetCpa),
/// Output only. A bidding strategy that automatically optimizes towards a desired
/// percentage of impressions.
#[prost(message, tag = "10")]
TargetImpressionShare(TargetImpressionShare),
/// Output only. A bidding strategy that helps you maximize revenue while averaging a
/// specific target Return On Ad Spend (ROAS).
#[prost(message, tag = "11")]
TargetRoas(TargetRoas),
/// Output only. A bid strategy that sets your bids to help get as many clicks as
/// possible within your budget.
#[prost(message, tag = "12")]
TargetSpend(TargetSpend),
}
}
// Proto file describing the AccountBudget resource.
/// An account-level budget. It contains information about the budget itself,
/// as well as the most recently approved changes to the budget and proposed
/// changes that are pending approval. The proposed changes that are pending
/// approval, if any, are found in 'pending_proposal'. Effective details about
/// the budget are found in fields prefixed 'approved_', 'adjusted_' and those
/// without a prefix. Since some effective details may differ from what the user
/// had originally requested (e.g. spending limit), these differences are
/// juxtaposed via 'proposed_', 'approved_', and possibly 'adjusted_' fields.
///
/// This resource is mutated using AccountBudgetProposal and cannot be mutated
/// directly. A budget may have at most one pending proposal at any given time.
/// It is read through pending_proposal.
///
/// Once approved, a budget may be subject to adjustments, such as credit
/// adjustments. Adjustments create differences between the 'approved' and
/// 'adjusted' fields, which would otherwise be identical.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccountBudget {
/// Output only. The resource name of the account-level budget.
/// AccountBudget resource names have the form:
///
/// `customers/{customer_id}/accountBudgets/{account_budget_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the account-level budget.
#[prost(int64, optional, tag = "23")]
pub id: ::core::option::Option<i64>,
/// Output only. The resource name of the billing setup associated with this account-level
/// budget. BillingSetup resource names have the form:
///
/// `customers/{customer_id}/billingSetups/{billing_setup_id}`
#[prost(string, optional, tag = "24")]
pub billing_setup: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The status of this account-level budget.
#[prost(
enumeration = "super::enums::account_budget_status_enum::AccountBudgetStatus",
tag = "4"
)]
pub status: i32,
/// Output only. The name of the account-level budget.
#[prost(string, optional, tag = "25")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The proposed start time of the account-level budget in
/// yyyy-MM-dd HH:mm:ss format. If a start time type of NOW was proposed,
/// this is the time of request.
#[prost(string, optional, tag = "26")]
pub proposed_start_date_time: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The approved start time of the account-level budget in yyyy-MM-dd HH:mm:ss
/// format.
///
/// For example, if a new budget is approved after the proposed start time,
/// the approved start time is the time of approval.
#[prost(string, optional, tag = "27")]
pub approved_start_date_time: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The total adjustments amount.
///
/// An example of an adjustment is courtesy credits.
#[prost(int64, tag = "33")]
pub total_adjustments_micros: i64,
/// Output only. The value of Ads that have been served, in micros.
///
/// This includes overdelivery costs, in which case a credit might be
/// automatically applied to the budget (see total_adjustments_micros).
#[prost(int64, tag = "34")]
pub amount_served_micros: i64,
/// Output only. A purchase order number is a value that helps users reference this budget
/// in their monthly invoices.
#[prost(string, optional, tag = "35")]
pub purchase_order_number: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Notes associated with the budget.
#[prost(string, optional, tag = "36")]
pub notes: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The pending proposal to modify this budget, if applicable.
#[prost(message, optional, tag = "22")]
pub pending_proposal: ::core::option::Option<account_budget::PendingAccountBudgetProposal>,
/// The proposed end time of the account-level budget.
#[prost(oneof = "account_budget::ProposedEndTime", tags = "28, 9")]
pub proposed_end_time: ::core::option::Option<account_budget::ProposedEndTime>,
/// The approved end time of the account-level budget.
///
/// For example, if a budget's end time is updated and the proposal is approved
/// after the proposed end time, the approved end time is the time of approval.
#[prost(oneof = "account_budget::ApprovedEndTime", tags = "29, 11")]
pub approved_end_time: ::core::option::Option<account_budget::ApprovedEndTime>,
/// The proposed spending limit.
#[prost(oneof = "account_budget::ProposedSpendingLimit", tags = "30, 13")]
pub proposed_spending_limit: ::core::option::Option<account_budget::ProposedSpendingLimit>,
/// The approved spending limit.
///
/// For example, if the amount already spent by the account exceeds the
/// proposed spending limit at the time the proposal is approved, the approved
/// spending limit is set to the amount already spent.
#[prost(oneof = "account_budget::ApprovedSpendingLimit", tags = "31, 15")]
pub approved_spending_limit: ::core::option::Option<account_budget::ApprovedSpendingLimit>,
/// The spending limit after adjustments have been applied. Adjustments are
/// stored in total_adjustments_micros.
///
/// This value has the final say on how much the account is allowed to spend.
#[prost(oneof = "account_budget::AdjustedSpendingLimit", tags = "32, 17")]
pub adjusted_spending_limit: ::core::option::Option<account_budget::AdjustedSpendingLimit>,
}
/// Nested message and enum types in `AccountBudget`.
pub mod account_budget {
/// A pending proposal associated with the enclosing account-level budget,
/// if applicable.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PendingAccountBudgetProposal {
/// Output only. The resource name of the proposal.
/// AccountBudgetProposal resource names have the form:
///
/// `customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}`
#[prost(string, optional, tag = "12")]
pub account_budget_proposal: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The type of this proposal, e.g. END to end the budget associated
/// with this proposal.
#[prost(
enumeration = "super::super::enums::account_budget_proposal_type_enum::AccountBudgetProposalType",
tag = "2"
)]
pub proposal_type: i32,
/// Output only. The name to assign to the account-level budget.
#[prost(string, optional, tag = "13")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The start time in yyyy-MM-dd HH:mm:ss format.
#[prost(string, optional, tag = "14")]
pub start_date_time: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. A purchase order number is a value that helps users reference this budget
/// in their monthly invoices.
#[prost(string, optional, tag = "17")]
pub purchase_order_number: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Notes associated with this budget.
#[prost(string, optional, tag = "18")]
pub notes: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The time when this account-level budget proposal was created.
/// Formatted as yyyy-MM-dd HH:mm:ss.
#[prost(string, optional, tag = "19")]
pub creation_date_time: ::core::option::Option<::prost::alloc::string::String>,
/// The end time of the account-level budget.
#[prost(oneof = "pending_account_budget_proposal::EndTime", tags = "15, 6")]
pub end_time: ::core::option::Option<pending_account_budget_proposal::EndTime>,
/// The spending limit.
#[prost(
oneof = "pending_account_budget_proposal::SpendingLimit",
tags = "16, 8"
)]
pub spending_limit: ::core::option::Option<pending_account_budget_proposal::SpendingLimit>,
}
/// Nested message and enum types in `PendingAccountBudgetProposal`.
pub mod pending_account_budget_proposal {
/// The end time of the account-level budget.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum EndTime {
/// Output only. The end time in yyyy-MM-dd HH:mm:ss format.
#[prost(string, tag = "15")]
EndDateTime(::prost::alloc::string::String),
/// Output only. The end time as a well-defined type, e.g. FOREVER.
#[prost(
enumeration = "super::super::super::enums::time_type_enum::TimeType",
tag = "6"
)]
EndTimeType(i32),
}
/// The spending limit.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum SpendingLimit {
/// Output only. The spending limit in micros. One million is equivalent to
/// one unit.
#[prost(int64, tag = "16")]
SpendingLimitMicros(i64),
/// Output only. The spending limit as a well-defined type, e.g. INFINITE.
#[prost(
enumeration = "super::super::super::enums::spending_limit_type_enum::SpendingLimitType",
tag = "8"
)]
SpendingLimitType(i32),
}
}
/// The proposed end time of the account-level budget.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum ProposedEndTime {
/// Output only. The proposed end time in yyyy-MM-dd HH:mm:ss format.
#[prost(string, tag = "28")]
ProposedEndDateTime(::prost::alloc::string::String),
/// Output only. The proposed end time as a well-defined type, e.g. FOREVER.
#[prost(
enumeration = "super::super::enums::time_type_enum::TimeType",
tag = "9"
)]
ProposedEndTimeType(i32),
}
/// The approved end time of the account-level budget.
///
/// For example, if a budget's end time is updated and the proposal is approved
/// after the proposed end time, the approved end time is the time of approval.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum ApprovedEndTime {
/// Output only. The approved end time in yyyy-MM-dd HH:mm:ss format.
#[prost(string, tag = "29")]
ApprovedEndDateTime(::prost::alloc::string::String),
/// Output only. The approved end time as a well-defined type, e.g. FOREVER.
#[prost(
enumeration = "super::super::enums::time_type_enum::TimeType",
tag = "11"
)]
ApprovedEndTimeType(i32),
}
/// The proposed spending limit.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum ProposedSpendingLimit {
/// Output only. The proposed spending limit in micros. One million is equivalent to
/// one unit.
#[prost(int64, tag = "30")]
ProposedSpendingLimitMicros(i64),
/// Output only. The proposed spending limit as a well-defined type, e.g. INFINITE.
#[prost(
enumeration = "super::super::enums::spending_limit_type_enum::SpendingLimitType",
tag = "13"
)]
ProposedSpendingLimitType(i32),
}
/// The approved spending limit.
///
/// For example, if the amount already spent by the account exceeds the
/// proposed spending limit at the time the proposal is approved, the approved
/// spending limit is set to the amount already spent.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum ApprovedSpendingLimit {
/// Output only. The approved spending limit in micros. One million is equivalent to
/// one unit. This will only be populated if the proposed spending limit
/// is finite, and will always be greater than or equal to the
/// proposed spending limit.
#[prost(int64, tag = "31")]
ApprovedSpendingLimitMicros(i64),
/// Output only. The approved spending limit as a well-defined type, e.g. INFINITE. This
/// will only be populated if the approved spending limit is INFINITE.
#[prost(
enumeration = "super::super::enums::spending_limit_type_enum::SpendingLimitType",
tag = "15"
)]
ApprovedSpendingLimitType(i32),
}
/// The spending limit after adjustments have been applied. Adjustments are
/// stored in total_adjustments_micros.
///
/// This value has the final say on how much the account is allowed to spend.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum AdjustedSpendingLimit {
/// Output only. The adjusted spending limit in micros. One million is equivalent to
/// one unit.
///
/// If the approved spending limit is finite, the adjusted
/// spending limit may vary depending on the types of adjustments applied
/// to this budget, if applicable.
///
/// The different kinds of adjustments are described here:
/// <https://support.google.com/google-ads/answer/1704323>
///
/// For example, a debit adjustment reduces how much the account is
/// allowed to spend.
#[prost(int64, tag = "32")]
AdjustedSpendingLimitMicros(i64),
/// Output only. The adjusted spending limit as a well-defined type, e.g. INFINITE.
/// This will only be populated if the adjusted spending limit is INFINITE,
/// which is guaranteed to be true if the approved spending limit is
/// INFINITE.
#[prost(
enumeration = "super::super::enums::spending_limit_type_enum::SpendingLimitType",
tag = "17"
)]
AdjustedSpendingLimitType(i32),
}
}
// Proto file describing the AccountBudgetProposal resource.
/// An account-level budget proposal.
///
/// All fields prefixed with 'proposed' may not necessarily be applied directly.
/// For example, proposed spending limits may be adjusted before their
/// application. This is true if the 'proposed' field has an 'approved'
/// counterpart, e.g. spending limits.
///
/// Please note that the proposal type (proposal_type) changes which fields are
/// required and which must remain empty.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccountBudgetProposal {
/// Immutable. The resource name of the proposal.
/// AccountBudgetProposal resource names have the form:
///
/// `customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the proposal.
#[prost(int64, optional, tag = "25")]
pub id: ::core::option::Option<i64>,
/// Immutable. The resource name of the billing setup associated with this proposal.
#[prost(string, optional, tag = "26")]
pub billing_setup: ::core::option::Option<::prost::alloc::string::String>,
/// Immutable. The resource name of the account-level budget associated with this
/// proposal.
#[prost(string, optional, tag = "27")]
pub account_budget: ::core::option::Option<::prost::alloc::string::String>,
/// Immutable. The type of this proposal, e.g. END to end the budget associated with this
/// proposal.
#[prost(
enumeration = "super::enums::account_budget_proposal_type_enum::AccountBudgetProposalType",
tag = "4"
)]
pub proposal_type: i32,
/// Output only. The status of this proposal.
/// When a new proposal is created, the status defaults to PENDING.
#[prost(
enumeration = "super::enums::account_budget_proposal_status_enum::AccountBudgetProposalStatus",
tag = "15"
)]
pub status: i32,
/// Immutable. The name to assign to the account-level budget.
#[prost(string, optional, tag = "28")]
pub proposed_name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The approved start date time in yyyy-mm-dd hh:mm:ss format.
#[prost(string, optional, tag = "30")]
pub approved_start_date_time: ::core::option::Option<::prost::alloc::string::String>,
/// Immutable. A purchase order number is a value that enables the user to help them
/// reference this budget in their monthly invoices.
#[prost(string, optional, tag = "35")]
pub proposed_purchase_order_number: ::core::option::Option<::prost::alloc::string::String>,
/// Immutable. Notes associated with this budget.
#[prost(string, optional, tag = "36")]
pub proposed_notes: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The date time when this account-level budget proposal was created, which is
/// not the same as its approval date time, if applicable.
#[prost(string, optional, tag = "37")]
pub creation_date_time: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The date time when this account-level budget was approved, if applicable.
#[prost(string, optional, tag = "38")]
pub approval_date_time: ::core::option::Option<::prost::alloc::string::String>,
/// The proposed start date time of the account-level budget, which cannot be
/// in the past.
#[prost(oneof = "account_budget_proposal::ProposedStartTime", tags = "29, 7")]
pub proposed_start_time: ::core::option::Option<account_budget_proposal::ProposedStartTime>,
/// The proposed end date time of the account-level budget, which cannot be in
/// the past.
#[prost(oneof = "account_budget_proposal::ProposedEndTime", tags = "31, 9")]
pub proposed_end_time: ::core::option::Option<account_budget_proposal::ProposedEndTime>,
/// The approved end date time of the account-level budget.
#[prost(oneof = "account_budget_proposal::ApprovedEndTime", tags = "32, 22")]
pub approved_end_time: ::core::option::Option<account_budget_proposal::ApprovedEndTime>,
/// The proposed spending limit.
#[prost(
oneof = "account_budget_proposal::ProposedSpendingLimit",
tags = "33, 11"
)]
pub proposed_spending_limit:
::core::option::Option<account_budget_proposal::ProposedSpendingLimit>,
/// The approved spending limit.
#[prost(
oneof = "account_budget_proposal::ApprovedSpendingLimit",
tags = "34, 24"
)]
pub approved_spending_limit:
::core::option::Option<account_budget_proposal::ApprovedSpendingLimit>,
}
/// Nested message and enum types in `AccountBudgetProposal`.
pub mod account_budget_proposal {
/// The proposed start date time of the account-level budget, which cannot be
/// in the past.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum ProposedStartTime {
/// Immutable. The proposed start date time in yyyy-mm-dd hh:mm:ss format.
#[prost(string, tag = "29")]
ProposedStartDateTime(::prost::alloc::string::String),
/// Immutable. The proposed start date time as a well-defined type, e.g. NOW.
#[prost(
enumeration = "super::super::enums::time_type_enum::TimeType",
tag = "7"
)]
ProposedStartTimeType(i32),
}
/// The proposed end date time of the account-level budget, which cannot be in
/// the past.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum ProposedEndTime {
/// Immutable. The proposed end date time in yyyy-mm-dd hh:mm:ss format.
#[prost(string, tag = "31")]
ProposedEndDateTime(::prost::alloc::string::String),
/// Immutable. The proposed end date time as a well-defined type, e.g. FOREVER.
#[prost(
enumeration = "super::super::enums::time_type_enum::TimeType",
tag = "9"
)]
ProposedEndTimeType(i32),
}
/// The approved end date time of the account-level budget.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum ApprovedEndTime {
/// Output only. The approved end date time in yyyy-mm-dd hh:mm:ss format.
#[prost(string, tag = "32")]
ApprovedEndDateTime(::prost::alloc::string::String),
/// Output only. The approved end date time as a well-defined type, e.g. FOREVER.
#[prost(
enumeration = "super::super::enums::time_type_enum::TimeType",
tag = "22"
)]
ApprovedEndTimeType(i32),
}
/// The proposed spending limit.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum ProposedSpendingLimit {
/// Immutable. The proposed spending limit in micros. One million is equivalent to
/// one unit.
#[prost(int64, tag = "33")]
ProposedSpendingLimitMicros(i64),
/// Immutable. The proposed spending limit as a well-defined type, e.g. INFINITE.
#[prost(
enumeration = "super::super::enums::spending_limit_type_enum::SpendingLimitType",
tag = "11"
)]
ProposedSpendingLimitType(i32),
}
/// The approved spending limit.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum ApprovedSpendingLimit {
/// Output only. The approved spending limit in micros. One million is equivalent to
/// one unit.
#[prost(int64, tag = "34")]
ApprovedSpendingLimitMicros(i64),
/// Output only. The approved spending limit as a well-defined type, e.g. INFINITE.
#[prost(
enumeration = "super::super::enums::spending_limit_type_enum::SpendingLimitType",
tag = "24"
)]
ApprovedSpendingLimitType(i32),
}
}
/// Represents the data sharing connection between a Google Ads account and
/// another account
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccountLink {
/// Immutable. Resource name of the account link.
/// AccountLink resource names have the form:
/// `customers/{customer_id}/accountLinks/{account_link_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the link.
/// This field is read only.
#[prost(int64, optional, tag = "8")]
pub account_link_id: ::core::option::Option<i64>,
/// The status of the link.
#[prost(
enumeration = "super::enums::account_link_status_enum::AccountLinkStatus",
tag = "3"
)]
pub status: i32,
/// Output only. The type of the linked account.
#[prost(
enumeration = "super::enums::linked_account_type_enum::LinkedAccountType",
tag = "4"
)]
pub r#type: i32,
/// An account linked to this Google Ads account.
#[prost(oneof = "account_link::LinkedAccount", tags = "5, 6, 7")]
pub linked_account: ::core::option::Option<account_link::LinkedAccount>,
}
/// Nested message and enum types in `AccountLink`.
pub mod account_link {
/// An account linked to this Google Ads account.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum LinkedAccount {
/// Immutable. A third party app analytics link.
#[prost(message, tag = "5")]
ThirdPartyAppAnalytics(super::ThirdPartyAppAnalyticsLinkIdentifier),
/// Output only. Data partner link.
#[prost(message, tag = "6")]
DataPartner(super::DataPartnerLinkIdentifier),
/// Output only. Google Ads link.
#[prost(message, tag = "7")]
GoogleAds(super::GoogleAdsLinkIdentifier),
}
}
/// The identifiers of a Third Party App Analytics Link.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ThirdPartyAppAnalyticsLinkIdentifier {
/// Immutable. The ID of the app analytics provider.
/// This field should not be empty when creating a new third
/// party app analytics link. It is unable to be modified after the creation of
/// the link.
#[prost(int64, optional, tag = "4")]
pub app_analytics_provider_id: ::core::option::Option<i64>,
/// Immutable. A string that uniquely identifies a mobile application from which the data
/// was collected to the Google Ads API. For iOS, the ID string is the 9 digit
/// string that appears at the end of an App Store URL (e.g., "422689480" for
/// "Gmail" whose App Store link is
/// <https://apps.apple.com/us/app/gmail-email-by-google/id422689480>). For
/// Android, the ID string is the application's package name (e.g.,
/// "com.google.android.gm" for "Gmail" given Google Play link
/// <https://play.google.com/store/apps/details?id=com.google.android.gm>)
/// This field should not be empty when creating a new third
/// party app analytics link. It is unable to be modified after the creation of
/// the link.
#[prost(string, optional, tag = "5")]
pub app_id: ::core::option::Option<::prost::alloc::string::String>,
/// Immutable. The vendor of the app.
/// This field should not be empty when creating a new third
/// party app analytics link. It is unable to be modified after the creation of
/// the link.
#[prost(
enumeration = "super::enums::mobile_app_vendor_enum::MobileAppVendor",
tag = "3"
)]
pub app_vendor: i32,
}
/// The identifier for Data Partner account.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DataPartnerLinkIdentifier {
/// Immutable. The customer ID of the Data partner account.
/// This field is required and should not be empty when creating a new
/// data partner link. It is unable to be modified after the creation of
/// the link.
#[prost(int64, optional, tag = "1")]
pub data_partner_id: ::core::option::Option<i64>,
}
/// The identifier for Google Ads account.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GoogleAdsLinkIdentifier {
/// Immutable. The resource name of the Google Ads account.
/// This field is required and should not be empty when creating a new
/// Google Ads link. It is unable to be modified after the creation of
/// the link.
#[prost(string, optional, tag = "3")]
pub customer: ::core::option::Option<::prost::alloc::string::String>,
}
// Proto file describing the ad type.
/// An ad.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Ad {
/// Immutable. The resource name of the ad.
/// Ad resource names have the form:
///
/// `customers/{customer_id}/ads/{ad_id}`
#[prost(string, tag = "37")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the ad.
#[prost(int64, optional, tag = "40")]
pub id: ::core::option::Option<i64>,
/// The list of possible final URLs after all cross-domain redirects for the
/// ad.
#[prost(string, repeated, tag = "41")]
pub final_urls: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// A list of final app URLs that will be used on mobile if the user has the
/// specific app installed.
#[prost(message, repeated, tag = "35")]
pub final_app_urls: ::prost::alloc::vec::Vec<super::common::FinalAppUrl>,
/// The list of possible final mobile URLs after all cross-domain redirects
/// for the ad.
#[prost(string, repeated, tag = "42")]
pub final_mobile_urls: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The URL template for constructing a tracking URL.
#[prost(string, optional, tag = "43")]
pub tracking_url_template: ::core::option::Option<::prost::alloc::string::String>,
/// The suffix to use when constructing a final URL.
#[prost(string, optional, tag = "44")]
pub final_url_suffix: ::core::option::Option<::prost::alloc::string::String>,
/// The list of mappings that can be used to substitute custom parameter tags
/// in a `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
/// For mutates, please use url custom parameter operations.
#[prost(message, repeated, tag = "10")]
pub url_custom_parameters: ::prost::alloc::vec::Vec<super::common::CustomParameter>,
/// The URL that appears in the ad description for some ad formats.
#[prost(string, optional, tag = "45")]
pub display_url: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The type of ad.
#[prost(enumeration = "super::enums::ad_type_enum::AdType", tag = "5")]
pub r#type: i32,
/// Output only. Indicates if this ad was automatically added by Google Ads and not by a
/// user. For example, this could happen when ads are automatically created as
/// suggestions for new ads based on knowledge of how existing ads are
/// performing.
#[prost(bool, optional, tag = "46")]
pub added_by_google_ads: ::core::option::Option<bool>,
/// The device preference for the ad. You can only specify a preference for
/// mobile devices. When this preference is set the ad will be preferred over
/// other ads when being displayed on a mobile device. The ad can still be
/// displayed on other device types, e.g. if no other ads are available.
/// If unspecified (no device preference), all devices are targeted.
/// This is only supported by some ad types.
#[prost(enumeration = "super::enums::device_enum::Device", tag = "20")]
pub device_preference: i32,
/// Additional URLs for the ad that are tagged with a unique identifier that
/// can be referenced from other fields in the ad.
#[prost(message, repeated, tag = "26")]
pub url_collections: ::prost::alloc::vec::Vec<super::common::UrlCollection>,
/// Immutable. The name of the ad. This is only used to be able to identify the ad. It
/// does not need to be unique and does not affect the served ad. The name
/// field is currently only supported for DisplayUploadAd, ImageAd,
/// ShoppingComparisonListingAd and VideoAd.
#[prost(string, optional, tag = "47")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. If this ad is system managed, then this field will indicate the source.
/// This field is read-only.
#[prost(
enumeration = "super::enums::system_managed_resource_source_enum::SystemManagedResourceSource",
tag = "27"
)]
pub system_managed_resource_source: i32,
/// Details pertinent to the ad type. Exactly one value must be set.
#[prost(
oneof = "ad::AdData",
tags = "6, 7, 49, 14, 15, 17, 18, 21, 22, 24, 39, 25, 28, 29, 30, 31, 32, 33, 34, 36, 48"
)]
pub ad_data: ::core::option::Option<ad::AdData>,
}
/// Nested message and enum types in `Ad`.
pub mod ad {
/// Details pertinent to the ad type. Exactly one value must be set.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum AdData {
/// Immutable. Details pertaining to a text ad.
#[prost(message, tag = "6")]
TextAd(super::super::common::TextAdInfo),
/// Details pertaining to an expanded text ad.
#[prost(message, tag = "7")]
ExpandedTextAd(super::super::common::ExpandedTextAdInfo),
/// Details pertaining to a call ad.
#[prost(message, tag = "49")]
CallAd(super::super::common::CallAdInfo),
/// Immutable. Details pertaining to an Expanded Dynamic Search Ad.
/// This type of ad has its headline, final URLs, and display URL
/// auto-generated at serving time according to domain name specific
/// information provided by `dynamic_search_ads_setting` linked at the
/// campaign level.
#[prost(message, tag = "14")]
ExpandedDynamicSearchAd(super::super::common::ExpandedDynamicSearchAdInfo),
/// Details pertaining to a hotel ad.
#[prost(message, tag = "15")]
HotelAd(super::super::common::HotelAdInfo),
/// Details pertaining to a Smart Shopping ad.
#[prost(message, tag = "17")]
ShoppingSmartAd(super::super::common::ShoppingSmartAdInfo),
/// Details pertaining to a Shopping product ad.
#[prost(message, tag = "18")]
ShoppingProductAd(super::super::common::ShoppingProductAdInfo),
/// Immutable. Details pertaining to a Gmail ad.
#[prost(message, tag = "21")]
GmailAd(super::super::common::GmailAdInfo),
/// Immutable. Details pertaining to an Image ad.
#[prost(message, tag = "22")]
ImageAd(super::super::common::ImageAdInfo),
/// Details pertaining to a Video ad.
#[prost(message, tag = "24")]
VideoAd(super::super::common::VideoAdInfo),
/// Details pertaining to a Video responsive ad.
#[prost(message, tag = "39")]
VideoResponsiveAd(super::super::common::VideoResponsiveAdInfo),
/// Details pertaining to a responsive search ad.
#[prost(message, tag = "25")]
ResponsiveSearchAd(super::super::common::ResponsiveSearchAdInfo),
/// Details pertaining to a legacy responsive display ad.
#[prost(message, tag = "28")]
LegacyResponsiveDisplayAd(super::super::common::LegacyResponsiveDisplayAdInfo),
/// Details pertaining to an app ad.
#[prost(message, tag = "29")]
AppAd(super::super::common::AppAdInfo),
/// Immutable. Details pertaining to a legacy app install ad.
#[prost(message, tag = "30")]
LegacyAppInstallAd(super::super::common::LegacyAppInstallAdInfo),
/// Details pertaining to a responsive display ad.
#[prost(message, tag = "31")]
ResponsiveDisplayAd(super::super::common::ResponsiveDisplayAdInfo),
/// Details pertaining to a local ad.
#[prost(message, tag = "32")]
LocalAd(super::super::common::LocalAdInfo),
/// Details pertaining to a display upload ad.
#[prost(message, tag = "33")]
DisplayUploadAd(super::super::common::DisplayUploadAdInfo),
/// Details pertaining to an app engagement ad.
#[prost(message, tag = "34")]
AppEngagementAd(super::super::common::AppEngagementAdInfo),
/// Details pertaining to a Shopping Comparison Listing ad.
#[prost(message, tag = "36")]
ShoppingComparisonListingAd(super::super::common::ShoppingComparisonListingAdInfo),
/// Details pertaining to a Smart campaign ad.
#[prost(message, tag = "48")]
SmartCampaignAd(super::super::common::SmartCampaignAdInfo),
}
}
// Proto file describing the ad group resource.
/// An ad group.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdGroup {
/// Immutable. The resource name of the ad group.
/// Ad group resource names have the form:
///
/// `customers/{customer_id}/adGroups/{ad_group_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the ad group.
#[prost(int64, optional, tag = "34")]
pub id: ::core::option::Option<i64>,
/// The name of the ad group.
///
/// This field is required and should not be empty when creating new ad
/// groups.
///
/// It must contain fewer than 255 UTF-8 full-width characters.
///
/// It must not contain any null (code point 0x0), NL line feed
/// (code point 0xA) or carriage return (code point 0xD) characters.
#[prost(string, optional, tag = "35")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The status of the ad group.
#[prost(
enumeration = "super::enums::ad_group_status_enum::AdGroupStatus",
tag = "5"
)]
pub status: i32,
/// Immutable. The type of the ad group.
#[prost(
enumeration = "super::enums::ad_group_type_enum::AdGroupType",
tag = "12"
)]
pub r#type: i32,
/// The ad rotation mode of the ad group.
#[prost(
enumeration = "super::enums::ad_group_ad_rotation_mode_enum::AdGroupAdRotationMode",
tag = "22"
)]
pub ad_rotation_mode: i32,
/// Output only. For draft or experiment ad groups, this field is the resource name of the
/// base ad group from which this ad group was created. If a draft or
/// experiment ad group does not have a base ad group, then this field is null.
///
/// For base ad groups, this field equals the ad group resource name.
///
/// This field is read-only.
#[prost(string, optional, tag = "36")]
pub base_ad_group: ::core::option::Option<::prost::alloc::string::String>,
/// The URL template for constructing a tracking URL.
#[prost(string, optional, tag = "37")]
pub tracking_url_template: ::core::option::Option<::prost::alloc::string::String>,
/// The list of mappings used to substitute custom parameter tags in a
/// `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
#[prost(message, repeated, tag = "6")]
pub url_custom_parameters: ::prost::alloc::vec::Vec<super::common::CustomParameter>,
/// Immutable. The campaign to which the ad group belongs.
#[prost(string, optional, tag = "38")]
pub campaign: ::core::option::Option<::prost::alloc::string::String>,
/// The maximum CPC (cost-per-click) bid.
#[prost(int64, optional, tag = "39")]
pub cpc_bid_micros: ::core::option::Option<i64>,
/// The maximum CPM (cost-per-thousand viewable impressions) bid.
#[prost(int64, optional, tag = "40")]
pub cpm_bid_micros: ::core::option::Option<i64>,
/// The target CPA (cost-per-acquisition). If the ad group's campaign
/// bidding strategy is TargetCpa or MaximizeConversions (with its target_cpa
/// field set), then this field overrides the target CPA specified in the
/// campaign's bidding strategy.
/// Otherwise, this value is ignored.
#[prost(int64, optional, tag = "41")]
pub target_cpa_micros: ::core::option::Option<i64>,
/// Output only. The CPV (cost-per-view) bid.
#[prost(int64, optional, tag = "42")]
pub cpv_bid_micros: ::core::option::Option<i64>,
/// Average amount in micros that the advertiser is willing to pay for every
/// thousand times the ad is shown.
#[prost(int64, optional, tag = "43")]
pub target_cpm_micros: ::core::option::Option<i64>,
/// The target ROAS (return-on-ad-spend) override. If the ad group's campaign
/// bidding strategy is TargetRoas or MaximizeConversionValue (with its
/// target_roas field set), then this field overrides the target ROAS specified
/// in the campaign's bidding strategy.
/// Otherwise, this value is ignored.
#[prost(double, optional, tag = "44")]
pub target_roas: ::core::option::Option<f64>,
/// The percent cpc bid amount, expressed as a fraction of the advertised price
/// for some good or service. The valid range for the fraction is [0,1) and the
/// value stored here is 1,000,000 * \[fraction\].
#[prost(int64, optional, tag = "45")]
pub percent_cpc_bid_micros: ::core::option::Option<i64>,
/// Settings for the Display Campaign Optimizer, initially termed "Explorer".
#[prost(message, optional, tag = "21")]
pub explorer_auto_optimizer_setting:
::core::option::Option<super::common::ExplorerAutoOptimizerSetting>,
/// Allows advertisers to specify a targeting dimension on which to place
/// absolute bids. This is only applicable for campaigns that target only the
/// display network and not search.
#[prost(
enumeration = "super::enums::targeting_dimension_enum::TargetingDimension",
tag = "23"
)]
pub display_custom_bid_dimension: i32,
/// URL template for appending params to Final URL.
#[prost(string, optional, tag = "46")]
pub final_url_suffix: ::core::option::Option<::prost::alloc::string::String>,
/// Setting for targeting related features.
#[prost(message, optional, tag = "25")]
pub targeting_setting: ::core::option::Option<super::common::TargetingSetting>,
/// Output only. The effective target CPA (cost-per-acquisition).
/// This field is read-only.
#[prost(int64, optional, tag = "47")]
pub effective_target_cpa_micros: ::core::option::Option<i64>,
/// Output only. Source of the effective target CPA.
/// This field is read-only.
#[prost(
enumeration = "super::enums::bidding_source_enum::BiddingSource",
tag = "29"
)]
pub effective_target_cpa_source: i32,
/// Output only. The effective target ROAS (return-on-ad-spend).
/// This field is read-only.
#[prost(double, optional, tag = "48")]
pub effective_target_roas: ::core::option::Option<f64>,
/// Output only. Source of the effective target ROAS.
/// This field is read-only.
#[prost(
enumeration = "super::enums::bidding_source_enum::BiddingSource",
tag = "32"
)]
pub effective_target_roas_source: i32,
/// Output only. The resource names of labels attached to this ad group.
#[prost(string, repeated, tag = "49")]
pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The asset field types that should be excluded from this ad group. Asset
/// links with these field types will not be inherited by this ad group from
/// the upper levels.
#[prost(
enumeration = "super::enums::asset_field_type_enum::AssetFieldType",
repeated,
tag = "54"
)]
pub excluded_parent_asset_field_types: ::prost::alloc::vec::Vec<i32>,
}
// Proto file describing the ad group ad resource.
/// An ad group ad.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdGroupAd {
/// Immutable. The resource name of the ad.
/// Ad group ad resource names have the form:
///
/// `customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// The status of the ad.
#[prost(
enumeration = "super::enums::ad_group_ad_status_enum::AdGroupAdStatus",
tag = "3"
)]
pub status: i32,
/// Immutable. The ad group to which the ad belongs.
#[prost(string, optional, tag = "9")]
pub ad_group: ::core::option::Option<::prost::alloc::string::String>,
/// Immutable. The ad.
#[prost(message, optional, tag = "5")]
pub ad: ::core::option::Option<Ad>,
/// Output only. Policy information for the ad.
#[prost(message, optional, tag = "6")]
pub policy_summary: ::core::option::Option<AdGroupAdPolicySummary>,
/// Output only. Overall ad strength for this ad group ad.
#[prost(enumeration = "super::enums::ad_strength_enum::AdStrength", tag = "7")]
pub ad_strength: i32,
/// Output only. A list of recommendations to improve the ad strength. For example, a
/// recommendation could be "Your headlines are a little too similar.
/// Try adding more distinct headlines.".
#[prost(string, repeated, tag = "13")]
pub action_items: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Output only. The resource names of labels attached to this ad group ad.
#[prost(string, repeated, tag = "10")]
pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Contains policy information for an ad.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdGroupAdPolicySummary {
/// Output only. The list of policy findings for this ad.
#[prost(message, repeated, tag = "1")]
pub policy_topic_entries: ::prost::alloc::vec::Vec<super::common::PolicyTopicEntry>,
/// Output only. Where in the review process this ad is.
#[prost(
enumeration = "super::enums::policy_review_status_enum::PolicyReviewStatus",
tag = "2"
)]
pub review_status: i32,
/// Output only. The overall approval status of this ad, calculated based on the status of
/// its individual policy topic entries.
#[prost(
enumeration = "super::enums::policy_approval_status_enum::PolicyApprovalStatus",
tag = "3"
)]
pub approval_status: i32,
}
// Proto file describing the ad group ad asset view resource.
/// A link between an AdGroupAd and an Asset.
/// Currently we only support AdGroupAdAssetView for AppAds.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdGroupAdAssetView {
/// Output only. The resource name of the ad group ad asset view.
/// Ad group ad asset view resource names have the form (Before V4):
///
/// `customers/{customer_id}/adGroupAdAssets/{AdGroupAdAsset.ad_group_id}~{AdGroupAdAsset.ad.ad_id}~{AdGroupAdAsset.asset_id}~{AdGroupAdAsset.field_type}`
///
/// Ad group ad asset view resource names have the form (Beginning from V4):
///
/// `customers/{customer_id}/adGroupAdAssetViews/{AdGroupAdAsset.ad_group_id}~{AdGroupAdAsset.ad_id}~{AdGroupAdAsset.asset_id}~{AdGroupAdAsset.field_type}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ad group ad to which the asset is linked.
#[prost(string, optional, tag = "9")]
pub ad_group_ad: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The asset which is linked to the ad group ad.
#[prost(string, optional, tag = "10")]
pub asset: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Role that the asset takes in the ad.
#[prost(
enumeration = "super::enums::asset_field_type_enum::AssetFieldType",
tag = "2"
)]
pub field_type: i32,
/// Output only. The status between the asset and the latest version of the ad. If true, the
/// asset is linked to the latest version of the ad. If false, it means the
/// link once existed but has been removed and is no longer present in the
/// latest version of the ad.
#[prost(bool, optional, tag = "8")]
pub enabled: ::core::option::Option<bool>,
/// Output only. Policy information for the ad group ad asset.
#[prost(message, optional, tag = "3")]
pub policy_summary: ::core::option::Option<AdGroupAdAssetPolicySummary>,
/// Output only. Performance of an asset linkage.
#[prost(
enumeration = "super::enums::asset_performance_label_enum::AssetPerformanceLabel",
tag = "4"
)]
pub performance_label: i32,
}
/// Contains policy information for an ad group ad asset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdGroupAdAssetPolicySummary {
/// Output only. The list of policy findings for the ad group ad asset.
#[prost(message, repeated, tag = "1")]
pub policy_topic_entries: ::prost::alloc::vec::Vec<super::common::PolicyTopicEntry>,
/// Output only. Where in the review process this ad group ad asset is.
#[prost(
enumeration = "super::enums::policy_review_status_enum::PolicyReviewStatus",
tag = "2"
)]
pub review_status: i32,
/// Output only. The overall approval status of this ad group ad asset, calculated based on
/// the status of its individual policy topic entries.
#[prost(
enumeration = "super::enums::policy_approval_status_enum::PolicyApprovalStatus",
tag = "3"
)]
pub approval_status: i32,
}
// Proto file describing the ad group ad label resource.
/// A relationship between an ad group ad and a label.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdGroupAdLabel {
/// Immutable. The resource name of the ad group ad label.
/// Ad group ad label resource names have the form:
/// `customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Immutable. The ad group ad to which the label is attached.
#[prost(string, optional, tag = "4")]
pub ad_group_ad: ::core::option::Option<::prost::alloc::string::String>,
/// Immutable. The label assigned to the ad group ad.
#[prost(string, optional, tag = "5")]
pub label: ::core::option::Option<::prost::alloc::string::String>,
}
// Proto file describing the AdGroupAsset resource.
/// A link between an ad group and an asset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdGroupAsset {
/// Immutable. The resource name of the ad group asset.
/// AdGroupAsset resource names have the form:
///
/// `customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Required. Immutable. The ad group to which the asset is linked.
#[prost(string, tag = "2")]
pub ad_group: ::prost::alloc::string::String,
/// Required. Immutable. The asset which is linked to the ad group.
#[prost(string, tag = "3")]
pub asset: ::prost::alloc::string::String,
/// Required. Immutable. Role that the asset takes under the linked ad group.
#[prost(
enumeration = "super::enums::asset_field_type_enum::AssetFieldType",
tag = "4"
)]
pub field_type: i32,
/// Status of the ad group asset.
#[prost(
enumeration = "super::enums::asset_link_status_enum::AssetLinkStatus",
tag = "5"
)]
pub status: i32,
}
// Proto file describing the ad group audience view resource.
/// An ad group audience view.
/// Includes performance data from interests and remarketing lists for Display
/// Network and YouTube Network ads, and remarketing lists for search ads (RLSA),
/// aggregated at the audience level.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdGroupAudienceView {
/// Output only. The resource name of the ad group audience view.
/// Ad group audience view resource names have the form:
///
/// `customers/{customer_id}/adGroupAudienceViews/{ad_group_id}~{criterion_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
}
// Proto file describing the ad group bid modifier resource.
/// Represents an ad group bid modifier.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdGroupBidModifier {
/// Immutable. The resource name of the ad group bid modifier.
/// Ad group bid modifier resource names have the form:
///
/// `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Immutable. The ad group to which this criterion belongs.
#[prost(string, optional, tag = "13")]
pub ad_group: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The ID of the criterion to bid modify.
///
/// This field is ignored for mutates.
#[prost(int64, optional, tag = "14")]
pub criterion_id: ::core::option::Option<i64>,
/// The modifier for the bid when the criterion matches. The modifier must be
/// in the range: 0.1 - 10.0. The range is 1.0 - 6.0 for PreferredContent.
/// Use 0 to opt out of a Device type.
#[prost(double, optional, tag = "15")]
pub bid_modifier: ::core::option::Option<f64>,
/// Output only. The base ad group from which this draft/trial adgroup bid modifier was
/// created. If ad_group is a base ad group then this field will be equal to
/// ad_group. If the ad group was created in the draft or trial and has no
/// corresponding base ad group, then this field will be null.
/// This field is readonly.
#[prost(string, optional, tag = "16")]
pub base_ad_group: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Bid modifier source.
#[prost(
enumeration = "super::enums::bid_modifier_source_enum::BidModifierSource",
tag = "10"
)]
pub bid_modifier_source: i32,
/// The criterion of this ad group bid modifier.
///
/// Required in create operations starting in V5.
#[prost(
oneof = "ad_group_bid_modifier::Criterion",
tags = "5, 6, 7, 8, 11, 12, 17"
)]
pub criterion: ::core::option::Option<ad_group_bid_modifier::Criterion>,
}
/// Nested message and enum types in `AdGroupBidModifier`.
pub mod ad_group_bid_modifier {
/// The criterion of this ad group bid modifier.
///
/// Required in create operations starting in V5.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Criterion {
/// Immutable. Criterion for hotel date selection (default dates vs. user selected).
#[prost(message, tag = "5")]
HotelDateSelectionType(super::super::common::HotelDateSelectionTypeInfo),
/// Immutable. Criterion for number of days prior to the stay the booking is being made.
#[prost(message, tag = "6")]
HotelAdvanceBookingWindow(super::super::common::HotelAdvanceBookingWindowInfo),
/// Immutable. Criterion for length of hotel stay in nights.
#[prost(message, tag = "7")]
HotelLengthOfStay(super::super::common::HotelLengthOfStayInfo),
/// Immutable. Criterion for day of the week the booking is for.
#[prost(message, tag = "8")]
HotelCheckInDay(super::super::common::HotelCheckInDayInfo),
/// Immutable. A device criterion.
#[prost(message, tag = "11")]
Device(super::super::common::DeviceInfo),
/// Immutable. A preferred content criterion.
#[prost(message, tag = "12")]
PreferredContent(super::super::common::PreferredContentInfo),
/// Immutable. Criterion for a hotel check-in date range.
#[prost(message, tag = "17")]
HotelCheckInDateRange(super::super::common::HotelCheckInDateRangeInfo),
}
}
// Proto file describing the ad group criterion resource.
/// An ad group criterion.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdGroupCriterion {
/// Immutable. The resource name of the ad group criterion.
/// Ad group criterion resource names have the form:
///
/// `customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the criterion.
///
/// This field is ignored for mutates.
#[prost(int64, optional, tag = "56")]
pub criterion_id: ::core::option::Option<i64>,
/// Output only. The display name of the criterion.
///
/// This field is ignored for mutates.
#[prost(string, tag = "77")]
pub display_name: ::prost::alloc::string::String,
/// The status of the criterion.
///
/// This is the status of the ad group criterion entity, set by the client.
/// Note: UI reports may incorporate additional information that affects
/// whether a criterion is eligible to run. In some cases a criterion that's
/// REMOVED in the API can still show as enabled in the UI.
/// For example, campaigns by default show to users of all age ranges unless
/// excluded. The UI will show each age range as "enabled", since they're
/// eligible to see the ads; but AdGroupCriterion.status will show "removed",
/// since no positive criterion was added.
#[prost(
enumeration = "super::enums::ad_group_criterion_status_enum::AdGroupCriterionStatus",
tag = "3"
)]
pub status: i32,
/// Output only. Information regarding the quality of the criterion.
#[prost(message, optional, tag = "4")]
pub quality_info: ::core::option::Option<ad_group_criterion::QualityInfo>,
/// Immutable. The ad group to which the criterion belongs.
#[prost(string, optional, tag = "57")]
pub ad_group: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The type of the criterion.
#[prost(
enumeration = "super::enums::criterion_type_enum::CriterionType",
tag = "25"
)]
pub r#type: i32,
/// Immutable. Whether to target (`false`) or exclude (`true`) the criterion.
///
/// This field is immutable. To switch a criterion from positive to negative,
/// remove then re-add it.
#[prost(bool, optional, tag = "58")]
pub negative: ::core::option::Option<bool>,
/// Output only. Serving status of the criterion.
#[prost(
enumeration = "super::enums::criterion_system_serving_status_enum::CriterionSystemServingStatus",
tag = "52"
)]
pub system_serving_status: i32,
/// Output only. Approval status of the criterion.
#[prost(
enumeration = "super::enums::ad_group_criterion_approval_status_enum::AdGroupCriterionApprovalStatus",
tag = "53"
)]
pub approval_status: i32,
/// Output only. List of disapproval reasons of the criterion.
///
/// The different reasons for disapproving a criterion can be found here:
/// <https://support.google.com/adspolicy/answer/6008942>
///
/// This field is read-only.
#[prost(string, repeated, tag = "59")]
pub disapproval_reasons: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Output only. The resource names of labels attached to this ad group criterion.
#[prost(string, repeated, tag = "60")]
pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The modifier for the bid when the criterion matches. The modifier must be
/// in the range: 0.1 - 10.0. Most targetable criteria types support modifiers.
#[prost(double, optional, tag = "61")]
pub bid_modifier: ::core::option::Option<f64>,
/// The CPC (cost-per-click) bid.
#[prost(int64, optional, tag = "62")]
pub cpc_bid_micros: ::core::option::Option<i64>,
/// The CPM (cost-per-thousand viewable impressions) bid.
#[prost(int64, optional, tag = "63")]
pub cpm_bid_micros: ::core::option::Option<i64>,
/// The CPV (cost-per-view) bid.
#[prost(int64, optional, tag = "64")]
pub cpv_bid_micros: ::core::option::Option<i64>,
/// The CPC bid amount, expressed as a fraction of the advertised price
/// for some good or service. The valid range for the fraction is [0,1) and the
/// value stored here is 1,000,000 * \[fraction\].
#[prost(int64, optional, tag = "65")]
pub percent_cpc_bid_micros: ::core::option::Option<i64>,
/// Output only. The effective CPC (cost-per-click) bid.
#[prost(int64, optional, tag = "66")]
pub effective_cpc_bid_micros: ::core::option::Option<i64>,
/// Output only. The effective CPM (cost-per-thousand viewable impressions) bid.
#[prost(int64, optional, tag = "67")]
pub effective_cpm_bid_micros: ::core::option::Option<i64>,
/// Output only. The effective CPV (cost-per-view) bid.
#[prost(int64, optional, tag = "68")]
pub effective_cpv_bid_micros: ::core::option::Option<i64>,
/// Output only. The effective Percent CPC bid amount.
#[prost(int64, optional, tag = "69")]
pub effective_percent_cpc_bid_micros: ::core::option::Option<i64>,
/// Output only. Source of the effective CPC bid.
#[prost(
enumeration = "super::enums::bidding_source_enum::BiddingSource",
tag = "21"
)]
pub effective_cpc_bid_source: i32,
/// Output only. Source of the effective CPM bid.
#[prost(
enumeration = "super::enums::bidding_source_enum::BiddingSource",
tag = "22"
)]
pub effective_cpm_bid_source: i32,
/// Output only. Source of the effective CPV bid.
#[prost(
enumeration = "super::enums::bidding_source_enum::BiddingSource",
tag = "23"
)]
pub effective_cpv_bid_source: i32,
/// Output only. Source of the effective Percent CPC bid.
#[prost(
enumeration = "super::enums::bidding_source_enum::BiddingSource",
tag = "35"
)]
pub effective_percent_cpc_bid_source: i32,
/// Output only. Estimates for criterion bids at various positions.
#[prost(message, optional, tag = "10")]
pub position_estimates: ::core::option::Option<ad_group_criterion::PositionEstimates>,
/// The list of possible final URLs after all cross-domain redirects for the
/// ad.
#[prost(string, repeated, tag = "70")]
pub final_urls: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The list of possible final mobile URLs after all cross-domain redirects.
#[prost(string, repeated, tag = "71")]
pub final_mobile_urls: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// URL template for appending params to final URL.
#[prost(string, optional, tag = "72")]
pub final_url_suffix: ::core::option::Option<::prost::alloc::string::String>,
/// The URL template for constructing a tracking URL.
#[prost(string, optional, tag = "73")]
pub tracking_url_template: ::core::option::Option<::prost::alloc::string::String>,
/// The list of mappings used to substitute custom parameter tags in a
/// `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
#[prost(message, repeated, tag = "14")]
pub url_custom_parameters: ::prost::alloc::vec::Vec<super::common::CustomParameter>,
/// The ad group criterion.
///
/// Exactly one must be set.
#[prost(
oneof = "ad_group_criterion::Criterion",
tags = "27, 28, 29, 30, 32, 36, 37, 38, 39, 42, 40, 41, 43, 45, 46, 47, 48, 49, 74, 75"
)]
pub criterion: ::core::option::Option<ad_group_criterion::Criterion>,
}
/// Nested message and enum types in `AdGroupCriterion`.
pub mod ad_group_criterion {
/// A container for ad group criterion quality information.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QualityInfo {
/// Output only. The quality score.
///
/// This field may not be populated if Google does not have enough
/// information to determine a value.
#[prost(int32, optional, tag = "5")]
pub quality_score: ::core::option::Option<i32>,
/// Output only. The performance of the ad compared to other advertisers.
#[prost(
enumeration = "super::super::enums::quality_score_bucket_enum::QualityScoreBucket",
tag = "2"
)]
pub creative_quality_score: i32,
/// Output only. The quality score of the landing page.
#[prost(
enumeration = "super::super::enums::quality_score_bucket_enum::QualityScoreBucket",
tag = "3"
)]
pub post_click_quality_score: i32,
/// Output only. The click-through rate compared to that of other advertisers.
#[prost(
enumeration = "super::super::enums::quality_score_bucket_enum::QualityScoreBucket",
tag = "4"
)]
pub search_predicted_ctr: i32,
}
/// Estimates for criterion bids at various positions.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PositionEstimates {
/// Output only. The estimate of the CPC bid required for ad to be shown on first
/// page of search results.
#[prost(int64, optional, tag = "6")]
pub first_page_cpc_micros: ::core::option::Option<i64>,
/// Output only. The estimate of the CPC bid required for ad to be displayed in first
/// position, at the top of the first page of search results.
#[prost(int64, optional, tag = "7")]
pub first_position_cpc_micros: ::core::option::Option<i64>,
/// Output only. The estimate of the CPC bid required for ad to be displayed at the top
/// of the first page of search results.
#[prost(int64, optional, tag = "8")]
pub top_of_page_cpc_micros: ::core::option::Option<i64>,
/// Output only. Estimate of how many clicks per week you might get by changing your
/// keyword bid to the value in first_position_cpc_micros.
#[prost(int64, optional, tag = "9")]
pub estimated_add_clicks_at_first_position_cpc: ::core::option::Option<i64>,
/// Output only. Estimate of how your cost per week might change when changing your
/// keyword bid to the value in first_position_cpc_micros.
#[prost(int64, optional, tag = "10")]
pub estimated_add_cost_at_first_position_cpc: ::core::option::Option<i64>,
}
/// The ad group criterion.
///
/// Exactly one must be set.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Criterion {
/// Immutable. Keyword.
#[prost(message, tag = "27")]
Keyword(super::super::common::KeywordInfo),
/// Immutable. Placement.
#[prost(message, tag = "28")]
Placement(super::super::common::PlacementInfo),
/// Immutable. Mobile app category.
#[prost(message, tag = "29")]
MobileAppCategory(super::super::common::MobileAppCategoryInfo),
/// Immutable. Mobile application.
#[prost(message, tag = "30")]
MobileApplication(super::super::common::MobileApplicationInfo),
/// Immutable. Listing group.
#[prost(message, tag = "32")]
ListingGroup(super::super::common::ListingGroupInfo),
/// Immutable. Age range.
#[prost(message, tag = "36")]
AgeRange(super::super::common::AgeRangeInfo),
/// Immutable. Gender.
#[prost(message, tag = "37")]
Gender(super::super::common::GenderInfo),
/// Immutable. Income range.
#[prost(message, tag = "38")]
IncomeRange(super::super::common::IncomeRangeInfo),
/// Immutable. Parental status.
#[prost(message, tag = "39")]
ParentalStatus(super::super::common::ParentalStatusInfo),
/// Immutable. User List.
#[prost(message, tag = "42")]
UserList(super::super::common::UserListInfo),
/// Immutable. YouTube Video.
#[prost(message, tag = "40")]
YoutubeVideo(super::super::common::YouTubeVideoInfo),
/// Immutable. YouTube Channel.
#[prost(message, tag = "41")]
YoutubeChannel(super::super::common::YouTubeChannelInfo),
/// Immutable. Topic.
#[prost(message, tag = "43")]
Topic(super::super::common::TopicInfo),
/// Immutable. User Interest.
#[prost(message, tag = "45")]
UserInterest(super::super::common::UserInterestInfo),
/// Immutable. Webpage
#[prost(message, tag = "46")]
Webpage(super::super::common::WebpageInfo),
/// Immutable. App Payment Model.
#[prost(message, tag = "47")]
AppPaymentModel(super::super::common::AppPaymentModelInfo),
/// Immutable. Custom Affinity.
#[prost(message, tag = "48")]
CustomAffinity(super::super::common::CustomAffinityInfo),
/// Immutable. Custom Intent.
#[prost(message, tag = "49")]
CustomIntent(super::super::common::CustomIntentInfo),
/// Immutable. Custom Audience.
#[prost(message, tag = "74")]
CustomAudience(super::super::common::CustomAudienceInfo),
/// Immutable. Combined Audience.
#[prost(message, tag = "75")]
CombinedAudience(super::super::common::CombinedAudienceInfo),
}
}
// Proto file describing the ad group criterion label resource.
/// A relationship between an ad group criterion and a label.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdGroupCriterionLabel {
/// Immutable. The resource name of the ad group criterion label.
/// Ad group criterion label resource names have the form:
/// `customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Immutable. The ad group criterion to which the label is attached.
#[prost(string, optional, tag = "4")]
pub ad_group_criterion: ::core::option::Option<::prost::alloc::string::String>,
/// Immutable. The label assigned to the ad group criterion.
#[prost(string, optional, tag = "5")]
pub label: ::core::option::Option<::prost::alloc::string::String>,
}
// Proto file describing the ad group criterion simulation resource.
/// An ad group criterion simulation. Supported combinations of advertising
/// channel type, criterion type, simulation type, and simulation modification
/// method are detailed below respectively. Hotel AdGroupCriterion simulation
/// operations starting in V5.
///
/// 1. DISPLAY - KEYWORD - CPC_BID - UNIFORM
/// 2. SEARCH - KEYWORD - CPC_BID - UNIFORM
/// 3. SHOPPING - LISTING_GROUP - CPC_BID - UNIFORM
/// 4. HOTEL - LISTING_GROUP - CPC_BID - UNIFORM
/// 5. HOTEL - LISTING_GROUP - PERCENT_CPC_BID - UNIFORM
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdGroupCriterionSimulation {
/// Output only. The resource name of the ad group criterion simulation.
/// Ad group criterion simulation resource names have the form:
///
/// `customers/{customer_id}/adGroupCriterionSimulations/{ad_group_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. AdGroup ID of the simulation.
#[prost(int64, optional, tag = "9")]
pub ad_group_id: ::core::option::Option<i64>,
/// Output only. Criterion ID of the simulation.
#[prost(int64, optional, tag = "10")]
pub criterion_id: ::core::option::Option<i64>,
/// Output only. The field that the simulation modifies.
#[prost(
enumeration = "super::enums::simulation_type_enum::SimulationType",
tag = "4"
)]
pub r#type: i32,
/// Output only. How the simulation modifies the field.
#[prost(
enumeration = "super::enums::simulation_modification_method_enum::SimulationModificationMethod",
tag = "5"
)]
pub modification_method: i32,
/// Output only. First day on which the simulation is based, in YYYY-MM-DD format.
#[prost(string, optional, tag = "11")]
pub start_date: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Last day on which the simulation is based, in YYYY-MM-DD format.
#[prost(string, optional, tag = "12")]
pub end_date: ::core::option::Option<::prost::alloc::string::String>,
/// List of simulation points.
#[prost(oneof = "ad_group_criterion_simulation::PointList", tags = "8, 13")]
pub point_list: ::core::option::Option<ad_group_criterion_simulation::PointList>,
}
/// Nested message and enum types in `AdGroupCriterionSimulation`.
pub mod ad_group_criterion_simulation {
/// List of simulation points.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum PointList {
/// Output only. Simulation points if the simulation type is CPC_BID.
#[prost(message, tag = "8")]
CpcBidPointList(super::super::common::CpcBidSimulationPointList),
/// Output only. Simulation points if the simulation type is PERCENT_CPC_BID.
#[prost(message, tag = "13")]
PercentCpcBidPointList(super::super::common::PercentCpcBidSimulationPointList),
}
}
// Proto file describing the AdGroupExtensionSetting resource.
/// An ad group extension setting.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdGroupExtensionSetting {
/// Immutable. The resource name of the ad group extension setting.
/// AdGroupExtensionSetting resource names have the form:
///
/// `customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Immutable. The extension type of the ad group extension setting.
#[prost(
enumeration = "super::enums::extension_type_enum::ExtensionType",
tag = "2"
)]
pub extension_type: i32,
/// Immutable. The resource name of the ad group. The linked extension feed items will
/// serve under this ad group.
/// AdGroup resource names have the form:
///
/// `customers/{customer_id}/adGroups/{ad_group_id}`
#[prost(string, optional, tag = "6")]
pub ad_group: ::core::option::Option<::prost::alloc::string::String>,
/// The resource names of the extension feed items to serve under the ad group.
/// ExtensionFeedItem resource names have the form:
///
/// `customers/{customer_id}/extensionFeedItems/{feed_item_id}`
#[prost(string, repeated, tag = "7")]
pub extension_feed_items: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The device for which the extensions will serve. Optional.
#[prost(
enumeration = "super::enums::extension_setting_device_enum::ExtensionSettingDevice",
tag = "5"
)]
pub device: i32,
}
// Proto file describing the AdGroupFeed resource.
/// An ad group feed.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdGroupFeed {
/// Immutable. The resource name of the ad group feed.
/// Ad group feed resource names have the form:
///
/// `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Immutable. The feed being linked to the ad group.
#[prost(string, optional, tag = "7")]
pub feed: ::core::option::Option<::prost::alloc::string::String>,
/// Immutable. The ad group being linked to the feed.
#[prost(string, optional, tag = "8")]
pub ad_group: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates which placeholder types the feed may populate under the connected
/// ad group. Required.
#[prost(
enumeration = "super::enums::placeholder_type_enum::PlaceholderType",
repeated,
tag = "4"
)]
pub placeholder_types: ::prost::alloc::vec::Vec<i32>,
/// Matching function associated with the AdGroupFeed.
/// The matching function is used to filter the set of feed items selected.
/// Required.
#[prost(message, optional, tag = "5")]
pub matching_function: ::core::option::Option<super::common::MatchingFunction>,
/// Output only. Status of the ad group feed.
/// This field is read-only.
#[prost(
enumeration = "super::enums::feed_link_status_enum::FeedLinkStatus",
tag = "6"
)]
pub status: i32,
}
// Proto file describing the ad group label resource.
/// A relationship between an ad group and a label.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdGroupLabel {
/// Immutable. The resource name of the ad group label.
/// Ad group label resource names have the form:
/// `customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Immutable. The ad group to which the label is attached.
#[prost(string, optional, tag = "4")]
pub ad_group: ::core::option::Option<::prost::alloc::string::String>,
/// Immutable. The label assigned to the ad group.
#[prost(string, optional, tag = "5")]
pub label: ::core::option::Option<::prost::alloc::string::String>,
}
// Proto file describing the ad group simulation resource.
/// An ad group simulation. Supported combinations of advertising
/// channel type, simulation type and simulation modification method is
/// detailed below respectively.
///
/// 1. SEARCH - CPC_BID - DEFAULT
/// 2. SEARCH - CPC_BID - UNIFORM
/// 3. SEARCH - TARGET_CPA - UNIFORM
/// 4. SEARCH - TARGET_ROAS - UNIFORM
/// 5. DISPLAY - CPC_BID - DEFAULT
/// 6. DISPLAY - CPC_BID - UNIFORM
/// 7. DISPLAY - TARGET_CPA - UNIFORM
/// 8. VIDEO - CPV_BID - DEFAULT
/// 9. VIDEO - CPV_BID - UNIFORM
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdGroupSimulation {
/// Output only. The resource name of the ad group simulation.
/// Ad group simulation resource names have the form:
///
/// `customers/{customer_id}/adGroupSimulations/{ad_group_id}~{type}~{modification_method}~{start_date}~{end_date}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. Ad group id of the simulation.
#[prost(int64, optional, tag = "12")]
pub ad_group_id: ::core::option::Option<i64>,
/// Output only. The field that the simulation modifies.
#[prost(
enumeration = "super::enums::simulation_type_enum::SimulationType",
tag = "3"
)]
pub r#type: i32,
/// Output only. How the simulation modifies the field.
#[prost(
enumeration = "super::enums::simulation_modification_method_enum::SimulationModificationMethod",
tag = "4"
)]
pub modification_method: i32,
/// Output only. First day on which the simulation is based, in YYYY-MM-DD format.
#[prost(string, optional, tag = "13")]
pub start_date: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Last day on which the simulation is based, in YYYY-MM-DD format
#[prost(string, optional, tag = "14")]
pub end_date: ::core::option::Option<::prost::alloc::string::String>,
/// List of simulation points.
#[prost(oneof = "ad_group_simulation::PointList", tags = "8, 10, 9, 11")]
pub point_list: ::core::option::Option<ad_group_simulation::PointList>,
}
/// Nested message and enum types in `AdGroupSimulation`.
pub mod ad_group_simulation {
/// List of simulation points.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum PointList {
/// Output only. Simulation points if the simulation type is CPC_BID.
#[prost(message, tag = "8")]
CpcBidPointList(super::super::common::CpcBidSimulationPointList),
/// Output only. Simulation points if the simulation type is CPV_BID.
#[prost(message, tag = "10")]
CpvBidPointList(super::super::common::CpvBidSimulationPointList),
/// Output only. Simulation points if the simulation type is TARGET_CPA.
#[prost(message, tag = "9")]
TargetCpaPointList(super::super::common::TargetCpaSimulationPointList),
/// Output only. Simulation points if the simulation type is TARGET_ROAS.
#[prost(message, tag = "11")]
TargetRoasPointList(super::super::common::TargetRoasSimulationPointList),
}
}
// Proto file describing the ad parameter resource.
/// An ad parameter that is used to update numeric values (such as prices or
/// inventory levels) in any text line of an ad (including URLs). There can
/// be a maximum of two AdParameters per ad group criterion. (One with
/// parameter_index = 1 and one with parameter_index = 2.)
/// In the ad the parameters are referenced by a placeholder of the form
/// "{param#:value}". E.g. "{param1:$17}"
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdParameter {
/// Immutable. The resource name of the ad parameter.
/// Ad parameter resource names have the form:
///
/// `customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Immutable. The ad group criterion that this ad parameter belongs to.
#[prost(string, optional, tag = "5")]
pub ad_group_criterion: ::core::option::Option<::prost::alloc::string::String>,
/// Immutable. The unique index of this ad parameter. Must be either 1 or 2.
#[prost(int64, optional, tag = "6")]
pub parameter_index: ::core::option::Option<i64>,
/// Numeric value to insert into the ad text. The following restrictions
/// apply:
/// - Can use comma or period as a separator, with an optional period or
/// comma (respectively) for fractional values. For example, 1,000,000.00
/// and 2.000.000,10 are valid.
/// - Can be prepended or appended with a currency symbol. For example,
/// $99.99 is valid.
/// - Can be prepended or appended with a currency code. For example, 99.99USD
/// and EUR200 are valid.
/// - Can use '%'. For example, 1.0% and 1,0% are valid.
/// - Can use plus or minus. For example, -10.99 and 25+ are valid.
/// - Can use '/' between two numbers. For example 4/1 and 0.95/0.45 are
/// valid.
#[prost(string, optional, tag = "7")]
pub insertion_text: ::core::option::Option<::prost::alloc::string::String>,
}
// Proto file describing the ad schedule view resource.
/// An ad schedule view summarizes the performance of campaigns by
/// AdSchedule criteria.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdScheduleView {
/// Output only. The resource name of the ad schedule view.
/// AdSchedule view resource names have the form:
///
/// `customers/{customer_id}/adScheduleViews/{campaign_id}~{criterion_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
}
// Proto file describing the age range view resource.
/// An age range view.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AgeRangeView {
/// Output only. The resource name of the age range view.
/// Age range view resource names have the form:
///
/// `customers/{customer_id}/ageRangeViews/{ad_group_id}~{criterion_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
}
// Proto file describing the asset resource.
/// Asset is a part of an ad which can be shared across multiple ads.
/// It can be an image (ImageAsset), a video (YoutubeVideoAsset), etc.
/// Assets are immutable and cannot be removed. To stop an asset from serving,
/// remove the asset from the entity that is using it.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Asset {
/// Immutable. The resource name of the asset.
/// Asset resource names have the form:
///
/// `customers/{customer_id}/assets/{asset_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the asset.
#[prost(int64, optional, tag = "11")]
pub id: ::core::option::Option<i64>,
/// Optional name of the asset.
#[prost(string, optional, tag = "12")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Type of the asset.
#[prost(enumeration = "super::enums::asset_type_enum::AssetType", tag = "4")]
pub r#type: i32,
/// A list of possible final URLs after all cross domain redirects.
#[prost(string, repeated, tag = "14")]
pub final_urls: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// A list of possible final mobile URLs after all cross domain redirects.
#[prost(string, repeated, tag = "16")]
pub final_mobile_urls: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// URL template for constructing a tracking URL.
#[prost(string, optional, tag = "17")]
pub tracking_url_template: ::core::option::Option<::prost::alloc::string::String>,
/// A list of mappings to be used for substituting URL custom parameter tags in
/// the tracking_url_template, final_urls, and/or final_mobile_urls.
#[prost(message, repeated, tag = "18")]
pub url_custom_parameters: ::prost::alloc::vec::Vec<super::common::CustomParameter>,
/// URL template for appending params to landing page URLs served with parallel
/// tracking.
#[prost(string, optional, tag = "19")]
pub final_url_suffix: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Policy information for the asset.
#[prost(message, optional, tag = "13")]
pub policy_summary: ::core::option::Option<AssetPolicySummary>,
/// The specific type of the asset.
#[prost(oneof = "asset::AssetData", tags = "5, 6, 7, 8, 9, 10, 15, 20, 21, 22")]
pub asset_data: ::core::option::Option<asset::AssetData>,
}
/// Nested message and enum types in `Asset`.
pub mod asset {
/// The specific type of the asset.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum AssetData {
/// Immutable. A YouTube video asset.
#[prost(message, tag = "5")]
YoutubeVideoAsset(super::super::common::YoutubeVideoAsset),
/// Immutable. A media bundle asset.
#[prost(message, tag = "6")]
MediaBundleAsset(super::super::common::MediaBundleAsset),
/// Output only. An image asset.
#[prost(message, tag = "7")]
ImageAsset(super::super::common::ImageAsset),
/// Output only. A text asset.
#[prost(message, tag = "8")]
TextAsset(super::super::common::TextAsset),
/// A lead form asset.
#[prost(message, tag = "9")]
LeadFormAsset(super::super::common::LeadFormAsset),
/// A book on google asset.
#[prost(message, tag = "10")]
BookOnGoogleAsset(super::super::common::BookOnGoogleAsset),
/// A promotion asset.
#[prost(message, tag = "15")]
PromotionAsset(super::super::common::PromotionAsset),
/// A callout asset.
#[prost(message, tag = "20")]
CalloutAsset(super::super::common::CalloutAsset),
/// A structured snippet asset.
#[prost(message, tag = "21")]
StructuredSnippetAsset(super::super::common::StructuredSnippetAsset),
/// A sitelink asset.
#[prost(message, tag = "22")]
SitelinkAsset(super::super::common::SitelinkAsset),
}
}
/// Contains policy information for an asset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AssetPolicySummary {
/// Output only. The list of policy findings for this asset.
#[prost(message, repeated, tag = "1")]
pub policy_topic_entries: ::prost::alloc::vec::Vec<super::common::PolicyTopicEntry>,
/// Output only. Where in the review process this asset is.
#[prost(
enumeration = "super::enums::policy_review_status_enum::PolicyReviewStatus",
tag = "2"
)]
pub review_status: i32,
/// Output only. The overall approval status of this asset, calculated based on the status
/// of its individual policy topic entries.
#[prost(
enumeration = "super::enums::policy_approval_status_enum::PolicyApprovalStatus",
tag = "3"
)]
pub approval_status: i32,
}
// Proto file describing the AssetFieldTypeView resource.
/// An asset field type view.
/// This view reports non-overcounted metrics for each asset field type when the
/// asset is used as extension.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AssetFieldTypeView {
/// Output only. The resource name of the asset field type view.
/// Asset field type view resource names have the form:
///
/// `customers/{customer_id}/assetFieldTypeViews/{field_type}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The asset field type of the asset field type view.
#[prost(
enumeration = "super::enums::asset_field_type_enum::AssetFieldType",
tag = "3"
)]
pub field_type: i32,
}
// Proto file describing the batch job resource.
/// A list of mutates being processed asynchronously. The mutates are uploaded
/// by the user. The mutates themselves aren't readable and the results of the
/// job can only be read using BatchJobService.ListBatchJobResults.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchJob {
/// Immutable. The resource name of the batch job.
/// Batch job resource names have the form:
///
/// `customers/{customer_id}/batchJobs/{batch_job_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. ID of this batch job.
#[prost(int64, optional, tag = "7")]
pub id: ::core::option::Option<i64>,
/// Output only. The next sequence token to use when adding operations. Only set when the
/// batch job status is PENDING.
#[prost(string, optional, tag = "8")]
pub next_add_sequence_token: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Contains additional information about this batch job.
#[prost(message, optional, tag = "4")]
pub metadata: ::core::option::Option<batch_job::BatchJobMetadata>,
/// Output only. Status of this batch job.
#[prost(
enumeration = "super::enums::batch_job_status_enum::BatchJobStatus",
tag = "5"
)]
pub status: i32,
/// Output only. The resource name of the long-running operation that can be used to poll
/// for completion. Only set when the batch job status is RUNNING or DONE.
#[prost(string, optional, tag = "9")]
pub long_running_operation: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `BatchJob`.
pub mod batch_job {
/// Additional information about the batch job. This message is also used as
/// metadata returned in batch job Long Running Operations.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchJobMetadata {
/// Output only. The time when this batch job was created.
/// Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:00"
#[prost(string, optional, tag = "8")]
pub creation_date_time: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The time when this batch job started running.
/// Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:30"
#[prost(string, optional, tag = "7")]
pub start_date_time: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The time when this batch job was completed.
/// Formatted as yyyy-MM-dd HH:mm:ss. Example: "2018-03-05 09:16:00"
#[prost(string, optional, tag = "9")]
pub completion_date_time: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The fraction (between 0.0 and 1.0) of mutates that have been processed.
/// This is empty if the job hasn't started running yet.
#[prost(double, optional, tag = "10")]
pub estimated_completion_ratio: ::core::option::Option<f64>,
/// Output only. The number of mutate operations in the batch job.
#[prost(int64, optional, tag = "11")]
pub operation_count: ::core::option::Option<i64>,
/// Output only. The number of mutate operations executed by the batch job.
/// Present only if the job has started running.
#[prost(int64, optional, tag = "12")]
pub executed_operation_count: ::core::option::Option<i64>,
}
}
/// Represents a bidding data exclusion.
///
/// See "About data exclusions" at
/// <https://support.google.com/google-ads/answer/10370710.>
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BiddingDataExclusion {
/// Immutable. The resource name of the data exclusion.
/// Data exclusion resource names have the form:
///
/// `customers/{customer_id}/biddingDataExclusions/{data_exclusion_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the data exclusion.
#[prost(int64, tag = "2")]
pub data_exclusion_id: i64,
/// The scope of the data exclusion.
#[prost(
enumeration = "super::enums::seasonality_event_scope_enum::SeasonalityEventScope",
tag = "3"
)]
pub scope: i32,
/// Output only. The status of the data exclusion.
#[prost(
enumeration = "super::enums::seasonality_event_status_enum::SeasonalityEventStatus",
tag = "4"
)]
pub status: i32,
/// Required. The inclusive start time of the data exclusion in yyyy-MM-dd HH:mm:ss
/// format.
///
/// A data exclusion is backward looking and should be used for events that
/// start in the past and end either in the past or future.
#[prost(string, tag = "5")]
pub start_date_time: ::prost::alloc::string::String,
/// Required. The exclusive end time of the data exclusion in yyyy-MM-dd HH:mm:ss format.
///
/// The length of [start_date_time, end_date_time) interval must be
/// within (0, 14 days].
#[prost(string, tag = "6")]
pub end_date_time: ::prost::alloc::string::String,
/// The name of the data exclusion. The name can be at most 255
/// characters.
#[prost(string, tag = "7")]
pub name: ::prost::alloc::string::String,
/// The description of the data exclusion. The description can be at
/// most 2048 characters.
#[prost(string, tag = "8")]
pub description: ::prost::alloc::string::String,
/// If not specified, all devices will be included in this exclusion.
/// Otherwise, only the specified targeted devices will be included in this
/// exclusion.
#[prost(enumeration = "super::enums::device_enum::Device", repeated, tag = "9")]
pub devices: ::prost::alloc::vec::Vec<i32>,
/// The data exclusion will apply to the campaigns listed when the scope of
/// this exclusion is CAMPAIGN. The maximum number of campaigns per event is
/// 2000.
/// Note: a data exclusion with both advertising_channel_types and
/// campaign_ids is not supported.
#[prost(string, repeated, tag = "10")]
pub campaigns: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The data_exclusion will apply to all the campaigns under the listed
/// channels retroactively as well as going forward when the scope of this
/// exclusion is CHANNEL.
/// The supported advertising channel types are DISPLAY, SEARCH and SHOPPING.
/// Note: a data exclusion with both advertising_channel_types and
/// campaign_ids is not supported.
#[prost(
enumeration = "super::enums::advertising_channel_type_enum::AdvertisingChannelType",
repeated,
tag = "11"
)]
pub advertising_channel_types: ::prost::alloc::vec::Vec<i32>,
}
/// Represents a bidding seasonality adjustment.
///
/// See "About seasonality adjustments" at
/// <https://support.google.com/google-ads/answer/10369906.>
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BiddingSeasonalityAdjustment {
/// Immutable. The resource name of the seasonality adjustment.
/// Seasonality adjustment resource names have the form:
///
/// `customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_adjustment_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the seasonality adjustment.
#[prost(int64, tag = "2")]
pub seasonality_adjustment_id: i64,
/// The scope of the seasonality adjustment.
#[prost(
enumeration = "super::enums::seasonality_event_scope_enum::SeasonalityEventScope",
tag = "3"
)]
pub scope: i32,
/// Output only. The status of the seasonality adjustment.
#[prost(
enumeration = "super::enums::seasonality_event_status_enum::SeasonalityEventStatus",
tag = "4"
)]
pub status: i32,
/// Required. The inclusive start time of the seasonality adjustment in yyyy-MM-dd
/// HH:mm:ss format.
///
/// A seasonality adjustment is forward looking and should be used for events
/// that start and end in the future.
#[prost(string, tag = "5")]
pub start_date_time: ::prost::alloc::string::String,
/// Required. The exclusive end time of the seasonality adjustment in yyyy-MM-dd HH:mm:ss
/// format.
///
/// The length of [start_date_time, end_date_time) interval must be
/// within (0, 14 days].
#[prost(string, tag = "6")]
pub end_date_time: ::prost::alloc::string::String,
/// The name of the seasonality adjustment. The name can be at most 255
/// characters.
#[prost(string, tag = "7")]
pub name: ::prost::alloc::string::String,
/// The description of the seasonality adjustment. The description can be at
/// most 2048 characters.
#[prost(string, tag = "8")]
pub description: ::prost::alloc::string::String,
/// If not specified, all devices will be included in this adjustment.
/// Otherwise, only the specified targeted devices will be included in this
/// adjustment.
#[prost(enumeration = "super::enums::device_enum::Device", repeated, tag = "9")]
pub devices: ::prost::alloc::vec::Vec<i32>,
/// Conversion rate modifier estimated based on expected conversion rate
/// changes. When this field is unset or set to 1.0 no adjustment will be
/// applied to traffic. The allowed range is 0.1 to 10.0.
#[prost(double, tag = "10")]
pub conversion_rate_modifier: f64,
/// The seasonality adjustment will apply to the campaigns listed when the
/// scope of this adjustment is CAMPAIGN. The maximum number of campaigns per
/// event is 2000.
/// Note: a seasonality adjustment with both advertising_channel_types and
/// campaign_ids is not supported.
#[prost(string, repeated, tag = "11")]
pub campaigns: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The seasonality adjustment will apply to all the campaigns under the listed
/// channels retroactively as well as going forward when the scope of this
/// adjustment is CHANNEL.
/// The supported advertising channel types are DISPLAY, SEARCH and SHOPPING.
/// Note: a seasonality adjustment with both advertising_channel_types and
/// campaign_ids is not supported.
#[prost(
enumeration = "super::enums::advertising_channel_type_enum::AdvertisingChannelType",
repeated,
tag = "12"
)]
pub advertising_channel_types: ::prost::alloc::vec::Vec<i32>,
}
// Proto file describing the BiddingStrategy resource
/// A bidding strategy.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BiddingStrategy {
/// Immutable. The resource name of the bidding strategy.
/// Bidding strategy resource names have the form:
///
/// `customers/{customer_id}/biddingStrategies/{bidding_strategy_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the bidding strategy.
#[prost(int64, optional, tag = "16")]
pub id: ::core::option::Option<i64>,
/// The name of the bidding strategy.
/// All bidding strategies within an account must be named distinctly.
///
/// The length of this string should be between 1 and 255, inclusive,
/// in UTF-8 bytes, (trimmed).
#[prost(string, optional, tag = "17")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The status of the bidding strategy.
///
/// This field is read-only.
#[prost(
enumeration = "super::enums::bidding_strategy_status_enum::BiddingStrategyStatus",
tag = "15"
)]
pub status: i32,
/// Output only. The type of the bidding strategy.
/// Create a bidding strategy by setting the bidding scheme.
///
/// This field is read-only.
#[prost(
enumeration = "super::enums::bidding_strategy_type_enum::BiddingStrategyType",
tag = "5"
)]
pub r#type: i32,
/// Immutable. The currency used by the bidding strategy (ISO 4217 three-letter code).
///
/// For bidding strategies in manager customers, this currency can be set on
/// creation and defaults to the manager customer's currency. For serving
/// customers, this field cannot be set; all strategies in a serving customer
/// implicitly use the serving customer's currency. In all cases the
/// effective_currency_code field returns the currency used by the strategy.
#[prost(string, tag = "23")]
pub currency_code: ::prost::alloc::string::String,
/// Output only. The currency used by the bidding strategy (ISO 4217 three-letter code).
///
/// For bidding strategies in manager customers, this is the currency set by
/// the advertiser when creating the strategy. For serving customers, this is
/// the customer's currency_code.
///
/// Bidding strategy metrics are reported in this currency.
///
/// This field is read-only.
#[prost(string, optional, tag = "20")]
pub effective_currency_code: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The number of campaigns attached to this bidding strategy.
///
/// This field is read-only.
#[prost(int64, optional, tag = "18")]
pub campaign_count: ::core::option::Option<i64>,
/// Output only. The number of non-removed campaigns attached to this bidding strategy.
///
/// This field is read-only.
#[prost(int64, optional, tag = "19")]
pub non_removed_campaign_count: ::core::option::Option<i64>,
/// The bidding scheme.
///
/// Only one can be set.
#[prost(oneof = "bidding_strategy::Scheme", tags = "7, 21, 22, 9, 48, 11, 12")]
pub scheme: ::core::option::Option<bidding_strategy::Scheme>,
}
/// Nested message and enum types in `BiddingStrategy`.
pub mod bidding_strategy {
/// The bidding scheme.
///
/// Only one can be set.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Scheme {
/// A bidding strategy that raises bids for clicks that seem more likely to
/// lead to a conversion and lowers them for clicks where they seem less
/// likely.
#[prost(message, tag = "7")]
EnhancedCpc(super::super::common::EnhancedCpc),
/// An automated bidding strategy to help get the most conversion value for
/// your campaigns while spending your budget.
#[prost(message, tag = "21")]
MaximizeConversionValue(super::super::common::MaximizeConversionValue),
/// An automated bidding strategy to help get the most conversions for your
/// campaigns while spending your budget.
#[prost(message, tag = "22")]
MaximizeConversions(super::super::common::MaximizeConversions),
/// A bidding strategy that sets bids to help get as many conversions as
/// possible at the target cost-per-acquisition (CPA) you set.
#[prost(message, tag = "9")]
TargetCpa(super::super::common::TargetCpa),
/// A bidding strategy that automatically optimizes towards a desired
/// percentage of impressions.
#[prost(message, tag = "48")]
TargetImpressionShare(super::super::common::TargetImpressionShare),
/// A bidding strategy that helps you maximize revenue while averaging a
/// specific target Return On Ad Spend (ROAS).
#[prost(message, tag = "11")]
TargetRoas(super::super::common::TargetRoas),
/// A bid strategy that sets your bids to help get as many clicks as
/// possible within your budget.
#[prost(message, tag = "12")]
TargetSpend(super::super::common::TargetSpend),
}
}
// Proto file describing the bidding strategy simulation resource.
/// A bidding strategy simulation. Supported combinations of simulation type
/// and simulation modification method are detailed below respectively.
///
/// 1. TARGET_CPA - UNIFORM
/// 2. TARGET_ROAS - UNIFORM
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BiddingStrategySimulation {
/// Output only. The resource name of the bidding strategy simulation.
/// Bidding strategy simulation resource names have the form:
///
/// `customers/{customer_id}/biddingStrategySimulations/{bidding_strategy_id}~{type}~{modification_method}~{start_date}~{end_date}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. Bidding strategy shared set id of the simulation.
#[prost(int64, tag = "2")]
pub bidding_strategy_id: i64,
/// Output only. The field that the simulation modifies.
#[prost(
enumeration = "super::enums::simulation_type_enum::SimulationType",
tag = "3"
)]
pub r#type: i32,
/// Output only. How the simulation modifies the field.
#[prost(
enumeration = "super::enums::simulation_modification_method_enum::SimulationModificationMethod",
tag = "4"
)]
pub modification_method: i32,
/// Output only. First day on which the simulation is based, in YYYY-MM-DD format.
#[prost(string, tag = "5")]
pub start_date: ::prost::alloc::string::String,
/// Output only. Last day on which the simulation is based, in YYYY-MM-DD format
#[prost(string, tag = "6")]
pub end_date: ::prost::alloc::string::String,
/// List of simulation points.
#[prost(oneof = "bidding_strategy_simulation::PointList", tags = "7, 8")]
pub point_list: ::core::option::Option<bidding_strategy_simulation::PointList>,
}
/// Nested message and enum types in `BiddingStrategySimulation`.
pub mod bidding_strategy_simulation {
/// List of simulation points.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum PointList {
/// Output only. Simulation points if the simulation type is TARGET_CPA.
#[prost(message, tag = "7")]
TargetCpaPointList(super::super::common::TargetCpaSimulationPointList),
/// Output only. Simulation points if the simulation type is TARGET_ROAS.
#[prost(message, tag = "8")]
TargetRoasPointList(super::super::common::TargetRoasSimulationPointList),
}
}
// Proto file describing the BillingSetup resource.
/// A billing setup, which associates a payments account and an advertiser. A
/// billing setup is specific to one advertiser.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BillingSetup {
/// Immutable. The resource name of the billing setup.
/// BillingSetup resource names have the form:
///
/// `customers/{customer_id}/billingSetups/{billing_setup_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the billing setup.
#[prost(int64, optional, tag = "15")]
pub id: ::core::option::Option<i64>,
/// Output only. The status of the billing setup.
#[prost(
enumeration = "super::enums::billing_setup_status_enum::BillingSetupStatus",
tag = "3"
)]
pub status: i32,
/// Immutable. The resource name of the payments account associated with this billing
/// setup. Payments resource names have the form:
///
/// `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
/// When setting up billing, this is used to signup with an existing payments
/// account (and then payments_account_info should not be set).
/// When getting a billing setup, this and payments_account_info will be
/// populated.
#[prost(string, optional, tag = "18")]
pub payments_account: ::core::option::Option<::prost::alloc::string::String>,
/// Immutable. The payments account information associated with this billing setup.
/// When setting up billing, this is used to signup with a new payments account
/// (and then payments_account should not be set).
/// When getting a billing setup, this and payments_account will be
/// populated.
#[prost(message, optional, tag = "12")]
pub payments_account_info: ::core::option::Option<billing_setup::PaymentsAccountInfo>,
/// When creating a new billing setup, this is when the setup should take
/// effect. NOW is the only acceptable start time if the customer doesn't have
/// any approved setups.
///
/// When fetching an existing billing setup, this is the requested start time.
/// However, if the setup was approved (see status) after the requested start
/// time, then this is the approval time.
#[prost(oneof = "billing_setup::StartTime", tags = "16, 10")]
pub start_time: ::core::option::Option<billing_setup::StartTime>,
/// When the billing setup ends / ended. This is either FOREVER or the start
/// time of the next scheduled billing setup.
#[prost(oneof = "billing_setup::EndTime", tags = "17, 14")]
pub end_time: ::core::option::Option<billing_setup::EndTime>,
}
/// Nested message and enum types in `BillingSetup`.
pub mod billing_setup {
/// Container of payments account information for this billing.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PaymentsAccountInfo {
/// Output only. A 16 digit id used to identify the payments account associated with the
/// billing setup.
///
/// This must be passed as a string with dashes, e.g. "1234-5678-9012-3456".
#[prost(string, optional, tag = "6")]
pub payments_account_id: ::core::option::Option<::prost::alloc::string::String>,
/// Immutable. The name of the payments account associated with the billing setup.
///
/// This enables the user to specify a meaningful name for a payments account
/// to aid in reconciling monthly invoices.
///
/// This name will be printed in the monthly invoices.
#[prost(string, optional, tag = "7")]
pub payments_account_name: ::core::option::Option<::prost::alloc::string::String>,
/// Immutable. A 12 digit id used to identify the payments profile associated with the
/// billing setup.
///
/// This must be passed in as a string with dashes, e.g. "1234-5678-9012".
#[prost(string, optional, tag = "8")]
pub payments_profile_id: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The name of the payments profile associated with the billing setup.
#[prost(string, optional, tag = "9")]
pub payments_profile_name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. A secondary payments profile id present in uncommon situations, e.g.
/// when a sequential liability agreement has been arranged.
#[prost(string, optional, tag = "10")]
pub secondary_payments_profile_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// When creating a new billing setup, this is when the setup should take
/// effect. NOW is the only acceptable start time if the customer doesn't have
/// any approved setups.
///
/// When fetching an existing billing setup, this is the requested start time.
/// However, if the setup was approved (see status) after the requested start
/// time, then this is the approval time.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum StartTime {
/// Immutable. The start date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss format. Only a
/// future time is allowed.
#[prost(string, tag = "16")]
StartDateTime(::prost::alloc::string::String),
/// Immutable. The start time as a type. Only NOW is allowed.
#[prost(
enumeration = "super::super::enums::time_type_enum::TimeType",
tag = "10"
)]
StartTimeType(i32),
}
/// When the billing setup ends / ended. This is either FOREVER or the start
/// time of the next scheduled billing setup.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum EndTime {
/// Output only. The end date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss format.
#[prost(string, tag = "17")]
EndDateTime(::prost::alloc::string::String),
/// Output only. The end time as a type. The only possible value is FOREVER.
#[prost(
enumeration = "super::super::enums::time_type_enum::TimeType",
tag = "14"
)]
EndTimeType(i32),
}
}
// Proto file describing the call view resource.
/// A call view that includes data for call tracking of call-only ads or call
/// extensions.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CallView {
/// Output only. The resource name of the call view.
/// Call view resource names have the form:
///
/// `customers/{customer_id}/callViews/{call_detail_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. Country code of the caller.
#[prost(string, tag = "2")]
pub caller_country_code: ::prost::alloc::string::String,
/// Output only. Area code of the caller. Null if the call duration is shorter than 15
/// seconds.
#[prost(string, tag = "3")]
pub caller_area_code: ::prost::alloc::string::String,
/// Output only. The advertiser-provided call duration in seconds.
#[prost(int64, tag = "4")]
pub call_duration_seconds: i64,
/// Output only. The advertiser-provided call start date time.
#[prost(string, tag = "5")]
pub start_call_date_time: ::prost::alloc::string::String,
/// Output only. The advertiser-provided call end date time.
#[prost(string, tag = "6")]
pub end_call_date_time: ::prost::alloc::string::String,
/// Output only. The call tracking display location.
#[prost(
enumeration = "super::enums::call_tracking_display_location_enum::CallTrackingDisplayLocation",
tag = "7"
)]
pub call_tracking_display_location: i32,
/// Output only. The type of the call.
#[prost(enumeration = "super::enums::call_type_enum::CallType", tag = "8")]
pub r#type: i32,
/// Output only. The status of the call.
#[prost(
enumeration = "super::enums::google_voice_call_status_enum::GoogleVoiceCallStatus",
tag = "9"
)]
pub call_status: i32,
}
// Proto file describing the Campaign resource.
/// A campaign.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Campaign {
/// Immutable. The resource name of the campaign.
/// Campaign resource names have the form:
///
/// `customers/{customer_id}/campaigns/{campaign_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the campaign.
#[prost(int64, optional, tag = "59")]
pub id: ::core::option::Option<i64>,
/// The name of the campaign.
///
/// This field is required and should not be empty when creating new
/// campaigns.
///
/// It must not contain any null (code point 0x0), NL line feed
/// (code point 0xA) or carriage return (code point 0xD) characters.
#[prost(string, optional, tag = "58")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The status of the campaign.
///
/// When a new campaign is added, the status defaults to ENABLED.
#[prost(
enumeration = "super::enums::campaign_status_enum::CampaignStatus",
tag = "5"
)]
pub status: i32,
/// Output only. The ad serving status of the campaign.
#[prost(
enumeration = "super::enums::campaign_serving_status_enum::CampaignServingStatus",
tag = "21"
)]
pub serving_status: i32,
/// The ad serving optimization status of the campaign.
#[prost(
enumeration = "super::enums::ad_serving_optimization_status_enum::AdServingOptimizationStatus",
tag = "8"
)]
pub ad_serving_optimization_status: i32,
/// Immutable. The primary serving target for ads within the campaign.
/// The targeting options can be refined in `network_settings`.
///
/// This field is required and should not be empty when creating new
/// campaigns.
///
/// Can be set only when creating campaigns.
/// After the campaign is created, the field can not be changed.
#[prost(
enumeration = "super::enums::advertising_channel_type_enum::AdvertisingChannelType",
tag = "9"
)]
pub advertising_channel_type: i32,
/// Immutable. Optional refinement to `advertising_channel_type`.
/// Must be a valid sub-type of the parent channel type.
///
/// Can be set only when creating campaigns.
/// After campaign is created, the field can not be changed.
#[prost(
enumeration = "super::enums::advertising_channel_sub_type_enum::AdvertisingChannelSubType",
tag = "10"
)]
pub advertising_channel_sub_type: i32,
/// The URL template for constructing a tracking URL.
#[prost(string, optional, tag = "60")]
pub tracking_url_template: ::core::option::Option<::prost::alloc::string::String>,
/// The list of mappings used to substitute custom parameter tags in a
/// `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
#[prost(message, repeated, tag = "12")]
pub url_custom_parameters: ::prost::alloc::vec::Vec<super::common::CustomParameter>,
/// Settings for Real-Time Bidding, a feature only available for campaigns
/// targeting the Ad Exchange network.
#[prost(message, optional, tag = "39")]
pub real_time_bidding_setting: ::core::option::Option<super::common::RealTimeBiddingSetting>,
/// The network settings for the campaign.
#[prost(message, optional, tag = "14")]
pub network_settings: ::core::option::Option<campaign::NetworkSettings>,
/// Immutable. The hotel setting for the campaign.
#[prost(message, optional, tag = "32")]
pub hotel_setting: ::core::option::Option<campaign::HotelSettingInfo>,
/// The setting for controlling Dynamic Search Ads (DSA).
#[prost(message, optional, tag = "33")]
pub dynamic_search_ads_setting: ::core::option::Option<campaign::DynamicSearchAdsSetting>,
/// The setting for controlling Shopping campaigns.
#[prost(message, optional, tag = "36")]
pub shopping_setting: ::core::option::Option<campaign::ShoppingSetting>,
/// Setting for targeting related features.
#[prost(message, optional, tag = "43")]
pub targeting_setting: ::core::option::Option<super::common::TargetingSetting>,
/// The setting for ads geotargeting.
#[prost(message, optional, tag = "47")]
pub geo_target_type_setting: ::core::option::Option<campaign::GeoTargetTypeSetting>,
/// The setting for local campaign.
#[prost(message, optional, tag = "50")]
pub local_campaign_setting: ::core::option::Option<campaign::LocalCampaignSetting>,
/// The setting related to App Campaign.
#[prost(message, optional, tag = "51")]
pub app_campaign_setting: ::core::option::Option<campaign::AppCampaignSetting>,
/// Output only. The resource names of labels attached to this campaign.
#[prost(string, repeated, tag = "61")]
pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Output only. The type of campaign: normal, draft, or experiment.
#[prost(
enumeration = "super::enums::campaign_experiment_type_enum::CampaignExperimentType",
tag = "17"
)]
pub experiment_type: i32,
/// Output only. The resource name of the base campaign of a draft or experiment campaign.
/// For base campaigns, this is equal to `resource_name`.
///
/// This field is read-only.
#[prost(string, optional, tag = "56")]
pub base_campaign: ::core::option::Option<::prost::alloc::string::String>,
/// The budget of the campaign.
#[prost(string, optional, tag = "62")]
pub campaign_budget: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The type of bidding strategy.
///
/// A bidding strategy can be created by setting either the bidding scheme to
/// create a standard bidding strategy or the `bidding_strategy` field to
/// create a portfolio bidding strategy.
///
/// This field is read-only.
#[prost(
enumeration = "super::enums::bidding_strategy_type_enum::BiddingStrategyType",
tag = "22"
)]
pub bidding_strategy_type: i32,
/// Output only. Resource name of AccessibleBiddingStrategy, a read-only view of the
/// unrestricted attributes of the attached portfolio bidding
/// strategy identified by 'bidding_strategy'. Empty, if the campaign does not
/// use a portfolio strategy.
/// Unrestricted strategy attributes are available to all customers
/// with whom the strategy is shared and are read from the
/// AccessibleBiddingStrategy resource. In contrast, restricted attributes are
/// only available to the owner customer of the strategy and their managers.
/// Restricted attributes can only be read from the BiddingStrategy resource.
#[prost(string, tag = "71")]
pub accessible_bidding_strategy: ::prost::alloc::string::String,
/// The date when campaign started.
#[prost(string, optional, tag = "63")]
pub start_date: ::core::option::Option<::prost::alloc::string::String>,
/// The last day of the campaign.
#[prost(string, optional, tag = "64")]
pub end_date: ::core::option::Option<::prost::alloc::string::String>,
/// Suffix used to append query parameters to landing pages that are served
/// with parallel tracking.
#[prost(string, optional, tag = "65")]
pub final_url_suffix: ::core::option::Option<::prost::alloc::string::String>,
/// A list that limits how often each user will see this campaign's ads.
#[prost(message, repeated, tag = "40")]
pub frequency_caps: ::prost::alloc::vec::Vec<super::common::FrequencyCapEntry>,
/// Output only. 3-Tier Brand Safety setting for the campaign.
#[prost(
enumeration = "super::enums::brand_safety_suitability_enum::BrandSafetySuitability",
tag = "42"
)]
pub video_brand_safety_suitability: i32,
/// Describes how unbranded pharma ads will be displayed.
#[prost(message, optional, tag = "44")]
pub vanity_pharma: ::core::option::Option<campaign::VanityPharma>,
/// Selective optimization setting for this campaign, which includes a set of
/// conversion actions to optimize this campaign towards.
#[prost(message, optional, tag = "45")]
pub selective_optimization: ::core::option::Option<campaign::SelectiveOptimization>,
/// Optimization goal setting for this campaign, which includes a set of
/// optimization goal types.
#[prost(message, optional, tag = "54")]
pub optimization_goal_setting: ::core::option::Option<campaign::OptimizationGoalSetting>,
/// Output only. Campaign-level settings for tracking information.
#[prost(message, optional, tag = "46")]
pub tracking_setting: ::core::option::Option<campaign::TrackingSetting>,
/// Payment mode for the campaign.
#[prost(
enumeration = "super::enums::payment_mode_enum::PaymentMode",
tag = "52"
)]
pub payment_mode: i32,
/// Output only. Optimization score of the campaign.
///
/// Optimization score is an estimate of how well a campaign is set to perform.
/// It ranges from 0% (0.0) to 100% (1.0), with 100% indicating that the
/// campaign is performing at full potential. This field is null for unscored
/// campaigns.
///
/// See "About optimization score" at
/// <https://support.google.com/google-ads/answer/9061546.>
///
/// This field is read-only.
#[prost(double, optional, tag = "66")]
pub optimization_score: ::core::option::Option<f64>,
/// The asset field types that should be excluded from this campaign. Asset
/// links with these field types will not be inherited by this campaign from
/// the upper level.
#[prost(
enumeration = "super::enums::asset_field_type_enum::AssetFieldType",
repeated,
tag = "69"
)]
pub excluded_parent_asset_field_types: ::prost::alloc::vec::Vec<i32>,
/// The bidding strategy for the campaign.
///
/// Must be either portfolio (created via BiddingStrategy service) or
/// standard, that is embedded into the campaign.
#[prost(
oneof = "campaign::CampaignBiddingStrategy",
tags = "67, 49, 24, 25, 37, 30, 31, 26, 48, 29, 27, 34, 41"
)]
pub campaign_bidding_strategy: ::core::option::Option<campaign::CampaignBiddingStrategy>,
}
/// Nested message and enum types in `Campaign`.
pub mod campaign {
/// The network settings for the campaign.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkSettings {
/// Whether ads will be served with google.com search results.
#[prost(bool, optional, tag = "5")]
pub target_google_search: ::core::option::Option<bool>,
/// Whether ads will be served on partner sites in the Google Search Network
/// (requires `target_google_search` to also be `true`).
#[prost(bool, optional, tag = "6")]
pub target_search_network: ::core::option::Option<bool>,
/// Whether ads will be served on specified placements in the Google Display
/// Network. Placements are specified using the Placement criterion.
#[prost(bool, optional, tag = "7")]
pub target_content_network: ::core::option::Option<bool>,
/// Whether ads will be served on the Google Partner Network.
/// This is available only to some select Google partner accounts.
#[prost(bool, optional, tag = "8")]
pub target_partner_search_network: ::core::option::Option<bool>,
}
/// Campaign-level settings for hotel ads.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HotelSettingInfo {
/// Immutable. The linked Hotel Center account.
#[prost(int64, optional, tag = "2")]
pub hotel_center_id: ::core::option::Option<i64>,
}
/// Campaign-level settings for tracking information.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TrackingSetting {
/// Output only. The url used for dynamic tracking.
#[prost(string, optional, tag = "2")]
pub tracking_url: ::core::option::Option<::prost::alloc::string::String>,
}
/// Selective optimization setting for this campaign, which includes a set of
/// conversion actions to optimize this campaign towards.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SelectiveOptimization {
/// The selected set of conversion actions for optimizing this campaign.
#[prost(string, repeated, tag = "2")]
pub conversion_actions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// The setting for controlling Dynamic Search Ads (DSA).
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DynamicSearchAdsSetting {
/// Required. The Internet domain name that this setting represents, e.g., "google.com"
/// or "www.google.com".
#[prost(string, tag = "6")]
pub domain_name: ::prost::alloc::string::String,
/// Required. The language code specifying the language of the domain, e.g., "en".
#[prost(string, tag = "7")]
pub language_code: ::prost::alloc::string::String,
/// Whether the campaign uses advertiser supplied URLs exclusively.
#[prost(bool, optional, tag = "8")]
pub use_supplied_urls_only: ::core::option::Option<bool>,
/// The list of page feeds associated with the campaign.
#[prost(string, repeated, tag = "9")]
pub feeds: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// The setting for Shopping campaigns. Defines the universe of products that
/// can be advertised by the campaign, and how this campaign interacts with
/// other Shopping campaigns.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ShoppingSetting {
/// Immutable. ID of the Merchant Center account.
/// This field is required for create operations. This field is immutable for
/// Shopping campaigns.
#[prost(int64, optional, tag = "5")]
pub merchant_id: ::core::option::Option<i64>,
/// Immutable. Sales country of products to include in the campaign.
/// This field is required for Shopping campaigns. This field is immutable.
/// This field is optional for non-Shopping campaigns, but it must be equal
/// to 'ZZ' if set.
#[prost(string, optional, tag = "6")]
pub sales_country: ::core::option::Option<::prost::alloc::string::String>,
/// Priority of the campaign. Campaigns with numerically higher priorities
/// take precedence over those with lower priorities.
/// This field is required for Shopping campaigns, with values between 0 and
/// 2, inclusive.
/// This field is optional for Smart Shopping campaigns, but must be equal to
/// 3 if set.
#[prost(int32, optional, tag = "7")]
pub campaign_priority: ::core::option::Option<i32>,
/// Whether to include local products.
#[prost(bool, optional, tag = "8")]
pub enable_local: ::core::option::Option<bool>,
}
/// Describes how unbranded pharma ads will be displayed.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VanityPharma {
/// The display mode for vanity pharma URLs.
#[prost(
enumeration = "super::super::enums::vanity_pharma_display_url_mode_enum::VanityPharmaDisplayUrlMode",
tag = "1"
)]
pub vanity_pharma_display_url_mode: i32,
/// The text that will be displayed in display URL of the text ad when
/// website description is the selected display mode for vanity pharma URLs.
#[prost(
enumeration = "super::super::enums::vanity_pharma_text_enum::VanityPharmaText",
tag = "2"
)]
pub vanity_pharma_text: i32,
}
/// Represents a collection of settings related to ads geotargeting.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GeoTargetTypeSetting {
/// The setting used for positive geotargeting in this particular campaign.
#[prost(
enumeration = "super::super::enums::positive_geo_target_type_enum::PositiveGeoTargetType",
tag = "1"
)]
pub positive_geo_target_type: i32,
/// The setting used for negative geotargeting in this particular campaign.
#[prost(
enumeration = "super::super::enums::negative_geo_target_type_enum::NegativeGeoTargetType",
tag = "2"
)]
pub negative_geo_target_type: i32,
}
/// Campaign setting for local campaigns.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocalCampaignSetting {
/// The location source type for this local campaign.
#[prost(
enumeration = "super::super::enums::location_source_type_enum::LocationSourceType",
tag = "1"
)]
pub location_source_type: i32,
}
/// Campaign-level settings for App Campaigns.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AppCampaignSetting {
/// Represents the goal which the bidding strategy of this app campaign
/// should optimize towards.
#[prost(
enumeration = "super::super::enums::app_campaign_bidding_strategy_goal_type_enum::AppCampaignBiddingStrategyGoalType",
tag = "1"
)]
pub bidding_strategy_goal_type: i32,
/// Immutable. A string that uniquely identifies a mobile application.
#[prost(string, optional, tag = "4")]
pub app_id: ::core::option::Option<::prost::alloc::string::String>,
/// Immutable. The application store that distributes this specific app.
#[prost(
enumeration = "super::super::enums::app_campaign_app_store_enum::AppCampaignAppStore",
tag = "3"
)]
pub app_store: i32,
}
/// Optimization goal setting for this campaign, which includes a set of
/// optimization goal types.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OptimizationGoalSetting {
/// The list of optimization goal types.
#[prost(
enumeration = "super::super::enums::optimization_goal_type_enum::OptimizationGoalType",
repeated,
tag = "1"
)]
pub optimization_goal_types: ::prost::alloc::vec::Vec<i32>,
}
/// The bidding strategy for the campaign.
///
/// Must be either portfolio (created via BiddingStrategy service) or
/// standard, that is embedded into the campaign.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum CampaignBiddingStrategy {
/// Portfolio bidding strategy used by campaign.
#[prost(string, tag = "67")]
BiddingStrategy(::prost::alloc::string::String),
/// Commission is an automatic bidding strategy in which the advertiser pays
/// a certain portion of the conversion value.
#[prost(message, tag = "49")]
Commission(super::super::common::Commission),
/// Standard Manual CPC bidding strategy.
/// Manual click-based bidding where user pays per click.
#[prost(message, tag = "24")]
ManualCpc(super::super::common::ManualCpc),
/// Standard Manual CPM bidding strategy.
/// Manual impression-based bidding where user pays per thousand
/// impressions.
#[prost(message, tag = "25")]
ManualCpm(super::super::common::ManualCpm),
/// Output only. A bidding strategy that pays a configurable amount per video view.
#[prost(message, tag = "37")]
ManualCpv(super::super::common::ManualCpv),
/// Standard Maximize Conversions bidding strategy that automatically
/// maximizes number of conversions while spending your budget.
#[prost(message, tag = "30")]
MaximizeConversions(super::super::common::MaximizeConversions),
/// Standard Maximize Conversion Value bidding strategy that automatically
/// sets bids to maximize revenue while spending your budget.
#[prost(message, tag = "31")]
MaximizeConversionValue(super::super::common::MaximizeConversionValue),
/// Standard Target CPA bidding strategy that automatically sets bids to
/// help get as many conversions as possible at the target
/// cost-per-acquisition (CPA) you set.
#[prost(message, tag = "26")]
TargetCpa(super::super::common::TargetCpa),
/// Target Impression Share bidding strategy. An automated bidding strategy
/// that sets bids to achieve a desired percentage of impressions.
#[prost(message, tag = "48")]
TargetImpressionShare(super::super::common::TargetImpressionShare),
/// Standard Target ROAS bidding strategy that automatically maximizes
/// revenue while averaging a specific target return on ad spend (ROAS).
#[prost(message, tag = "29")]
TargetRoas(super::super::common::TargetRoas),
/// Standard Target Spend bidding strategy that automatically sets your bids
/// to help get as many clicks as possible within your budget.
#[prost(message, tag = "27")]
TargetSpend(super::super::common::TargetSpend),
/// Standard Percent Cpc bidding strategy where bids are a fraction of the
/// advertised price for some good or service.
#[prost(message, tag = "34")]
PercentCpc(super::super::common::PercentCpc),
/// A bidding strategy that automatically optimizes cost per thousand
/// impressions.
#[prost(message, tag = "41")]
TargetCpm(super::super::common::TargetCpm),
}
}
// Proto file describing the CampaignAsset resource.
/// A link between a Campaign and an Asset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CampaignAsset {
/// Immutable. The resource name of the campaign asset.
/// CampaignAsset resource names have the form:
///
/// `customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Immutable. The campaign to which the asset is linked.
#[prost(string, optional, tag = "6")]
pub campaign: ::core::option::Option<::prost::alloc::string::String>,
/// Immutable. The asset which is linked to the campaign.
#[prost(string, optional, tag = "7")]
pub asset: ::core::option::Option<::prost::alloc::string::String>,
/// Immutable. Role that the asset takes under the linked campaign.
/// Required.
#[prost(
enumeration = "super::enums::asset_field_type_enum::AssetFieldType",
tag = "4"
)]
pub field_type: i32,
/// Status of the campaign asset.
#[prost(
enumeration = "super::enums::asset_link_status_enum::AssetLinkStatus",
tag = "5"
)]
pub status: i32,
}
// Proto file describing the campaign audience view resource.
/// A campaign audience view.
/// Includes performance data from interests and remarketing lists for Display
/// Network and YouTube Network ads, and remarketing lists for search ads (RLSA),
/// aggregated by campaign and audience criterion. This view only includes
/// audiences attached at the campaign level.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CampaignAudienceView {
/// Output only. The resource name of the campaign audience view.
/// Campaign audience view resource names have the form:
///
/// `customers/{customer_id}/campaignAudienceViews/{campaign_id}~{criterion_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
}
// Proto file describing the Campaign Bid Modifier resource.
/// Represents a bid-modifiable only criterion at the campaign level.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CampaignBidModifier {
/// Immutable. The resource name of the campaign bid modifier.
/// Campaign bid modifier resource names have the form:
///
/// `customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The campaign to which this criterion belongs.
#[prost(string, optional, tag = "6")]
pub campaign: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The ID of the criterion to bid modify.
///
/// This field is ignored for mutates.
#[prost(int64, optional, tag = "7")]
pub criterion_id: ::core::option::Option<i64>,
/// The modifier for the bid when the criterion matches.
#[prost(double, optional, tag = "8")]
pub bid_modifier: ::core::option::Option<f64>,
/// The criterion of this campaign bid modifier.
///
/// Required in create operations starting in V5.
#[prost(oneof = "campaign_bid_modifier::Criterion", tags = "5")]
pub criterion: ::core::option::Option<campaign_bid_modifier::Criterion>,
}
/// Nested message and enum types in `CampaignBidModifier`.
pub mod campaign_bid_modifier {
/// The criterion of this campaign bid modifier.
///
/// Required in create operations starting in V5.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Criterion {
/// Immutable. Criterion for interaction type. Only supported for search campaigns.
#[prost(message, tag = "5")]
InteractionType(super::super::common::InteractionTypeInfo),
}
}
// Proto file describing the Budget resource.
/// A campaign budget.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CampaignBudget {
/// Immutable. The resource name of the campaign budget.
/// Campaign budget resource names have the form:
///
/// `customers/{customer_id}/campaignBudgets/{campaign_budget_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the campaign budget.
///
/// A campaign budget is created using the CampaignBudgetService create
/// operation and is assigned a budget ID. A budget ID can be shared across
/// different campaigns; the system will then allocate the campaign budget
/// among different campaigns to get optimum results.
#[prost(int64, optional, tag = "19")]
pub id: ::core::option::Option<i64>,
/// The name of the campaign budget.
///
/// When creating a campaign budget through CampaignBudgetService, every
/// explicitly shared campaign budget must have a non-null, non-empty name.
/// Campaign budgets that are not explicitly shared derive their name from the
/// attached campaign's name.
///
/// The length of this string must be between 1 and 255, inclusive,
/// in UTF-8 bytes, (trimmed).
#[prost(string, optional, tag = "20")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The amount of the budget, in the local currency for the account.
/// Amount is specified in micros, where one million is equivalent to one
/// currency unit. Monthly spend is capped at 30.4 times this amount.
#[prost(int64, optional, tag = "21")]
pub amount_micros: ::core::option::Option<i64>,
/// The lifetime amount of the budget, in the local currency for the account.
/// Amount is specified in micros, where one million is equivalent to one
/// currency unit.
#[prost(int64, optional, tag = "22")]
pub total_amount_micros: ::core::option::Option<i64>,
/// Output only. The status of this campaign budget. This field is read-only.
#[prost(
enumeration = "super::enums::budget_status_enum::BudgetStatus",
tag = "6"
)]
pub status: i32,
/// The delivery method that determines the rate at which the campaign budget
/// is spent.
///
/// Defaults to STANDARD if unspecified in a create operation.
#[prost(
enumeration = "super::enums::budget_delivery_method_enum::BudgetDeliveryMethod",
tag = "7"
)]
pub delivery_method: i32,
/// Specifies whether the budget is explicitly shared. Defaults to true if
/// unspecified in a create operation.
///
/// If true, the budget was created with the purpose of sharing
/// across one or more campaigns.
///
/// If false, the budget was created with the intention of only being used
/// with a single campaign. The budget's name and status will stay in sync
/// with the campaign's name and status. Attempting to share the budget with a
/// second campaign will result in an error.
///
/// A non-shared budget can become an explicitly shared. The same operation
/// must also assign the budget a name.
///
/// A shared campaign budget can never become non-shared.
#[prost(bool, optional, tag = "23")]
pub explicitly_shared: ::core::option::Option<bool>,
/// Output only. The number of campaigns actively using the budget.
///
/// This field is read-only.
#[prost(int64, optional, tag = "24")]
pub reference_count: ::core::option::Option<i64>,
/// Output only. Indicates whether there is a recommended budget for this campaign budget.
///
/// This field is read-only.
#[prost(bool, optional, tag = "25")]
pub has_recommended_budget: ::core::option::Option<bool>,
/// Output only. The recommended budget amount. If no recommendation is available, this will
/// be set to the budget amount.
/// Amount is specified in micros, where one million is equivalent to one
/// currency unit.
///
/// This field is read-only.
#[prost(int64, optional, tag = "26")]
pub recommended_budget_amount_micros: ::core::option::Option<i64>,
/// Immutable. Period over which to spend the budget. Defaults to DAILY if not specified.
#[prost(
enumeration = "super::enums::budget_period_enum::BudgetPeriod",
tag = "13"
)]
pub period: i32,
/// Output only. The estimated change in weekly clicks if the recommended budget is applied.
///
/// This field is read-only.
#[prost(int64, optional, tag = "27")]
pub recommended_budget_estimated_change_weekly_clicks: ::core::option::Option<i64>,
/// Output only. The estimated change in weekly cost in micros if the recommended budget is
/// applied. One million is equivalent to one currency unit.
///
/// This field is read-only.
#[prost(int64, optional, tag = "28")]
pub recommended_budget_estimated_change_weekly_cost_micros: ::core::option::Option<i64>,
/// Output only. The estimated change in weekly interactions if the recommended budget is
/// applied.
///
/// This field is read-only.
#[prost(int64, optional, tag = "29")]
pub recommended_budget_estimated_change_weekly_interactions: ::core::option::Option<i64>,
/// Output only. The estimated change in weekly views if the recommended budget is applied.
///
/// This field is read-only.
#[prost(int64, optional, tag = "30")]
pub recommended_budget_estimated_change_weekly_views: ::core::option::Option<i64>,
/// Immutable. The type of the campaign budget.
#[prost(enumeration = "super::enums::budget_type_enum::BudgetType", tag = "18")]
pub r#type: i32,
}
// Proto file describing the Campaign Criterion resource.
/// A campaign criterion.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CampaignCriterion {
/// Immutable. The resource name of the campaign criterion.
/// Campaign criterion resource names have the form:
///
/// `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Immutable. The campaign to which the criterion belongs.
#[prost(string, optional, tag = "37")]
pub campaign: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The ID of the criterion.
///
/// This field is ignored during mutate.
#[prost(int64, optional, tag = "38")]
pub criterion_id: ::core::option::Option<i64>,
/// Output only. The display name of the criterion.
///
/// This field is ignored for mutates.
#[prost(string, tag = "43")]
pub display_name: ::prost::alloc::string::String,
/// The modifier for the bids when the criterion matches. The modifier must be
/// in the range: 0.1 - 10.0. Most targetable criteria types support modifiers.
/// Use 0 to opt out of a Device type.
#[prost(float, optional, tag = "39")]
pub bid_modifier: ::core::option::Option<f32>,
/// Immutable. Whether to target (`false`) or exclude (`true`) the criterion.
#[prost(bool, optional, tag = "40")]
pub negative: ::core::option::Option<bool>,
/// Output only. The type of the criterion.
#[prost(
enumeration = "super::enums::criterion_type_enum::CriterionType",
tag = "6"
)]
pub r#type: i32,
/// The status of the criterion.
#[prost(
enumeration = "super::enums::campaign_criterion_status_enum::CampaignCriterionStatus",
tag = "35"
)]
pub status: i32,
/// The campaign criterion.
///
/// Exactly one must be set.
#[prost(
oneof = "campaign_criterion::Criterion",
tags = "8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 22, 20, 21, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 36, 41, 42, 45"
)]
pub criterion: ::core::option::Option<campaign_criterion::Criterion>,
}
/// Nested message and enum types in `CampaignCriterion`.
pub mod campaign_criterion {
/// The campaign criterion.
///
/// Exactly one must be set.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Criterion {
/// Immutable. Keyword.
#[prost(message, tag = "8")]
Keyword(super::super::common::KeywordInfo),
/// Immutable. Placement.
#[prost(message, tag = "9")]
Placement(super::super::common::PlacementInfo),
/// Immutable. Mobile app category.
#[prost(message, tag = "10")]
MobileAppCategory(super::super::common::MobileAppCategoryInfo),
/// Immutable. Mobile application.
#[prost(message, tag = "11")]
MobileApplication(super::super::common::MobileApplicationInfo),
/// Immutable. Location.
#[prost(message, tag = "12")]
Location(super::super::common::LocationInfo),
/// Immutable. Device.
#[prost(message, tag = "13")]
Device(super::super::common::DeviceInfo),
/// Immutable. Ad Schedule.
#[prost(message, tag = "15")]
AdSchedule(super::super::common::AdScheduleInfo),
/// Immutable. Age range.
#[prost(message, tag = "16")]
AgeRange(super::super::common::AgeRangeInfo),
/// Immutable. Gender.
#[prost(message, tag = "17")]
Gender(super::super::common::GenderInfo),
/// Immutable. Income range.
#[prost(message, tag = "18")]
IncomeRange(super::super::common::IncomeRangeInfo),
/// Immutable. Parental status.
#[prost(message, tag = "19")]
ParentalStatus(super::super::common::ParentalStatusInfo),
/// Immutable. User List.
#[prost(message, tag = "22")]
UserList(super::super::common::UserListInfo),
/// Immutable. YouTube Video.
#[prost(message, tag = "20")]
YoutubeVideo(super::super::common::YouTubeVideoInfo),
/// Immutable. YouTube Channel.
#[prost(message, tag = "21")]
YoutubeChannel(super::super::common::YouTubeChannelInfo),
/// Immutable. Proximity.
#[prost(message, tag = "23")]
Proximity(super::super::common::ProximityInfo),
/// Immutable. Topic.
#[prost(message, tag = "24")]
Topic(super::super::common::TopicInfo),
/// Immutable. Listing scope.
#[prost(message, tag = "25")]
ListingScope(super::super::common::ListingScopeInfo),
/// Immutable. Language.
#[prost(message, tag = "26")]
Language(super::super::common::LanguageInfo),
/// Immutable. IpBlock.
#[prost(message, tag = "27")]
IpBlock(super::super::common::IpBlockInfo),
/// Immutable. ContentLabel.
#[prost(message, tag = "28")]
ContentLabel(super::super::common::ContentLabelInfo),
/// Immutable. Carrier.
#[prost(message, tag = "29")]
Carrier(super::super::common::CarrierInfo),
/// Immutable. User Interest.
#[prost(message, tag = "30")]
UserInterest(super::super::common::UserInterestInfo),
/// Immutable. Webpage.
#[prost(message, tag = "31")]
Webpage(super::super::common::WebpageInfo),
/// Immutable. Operating system version.
#[prost(message, tag = "32")]
OperatingSystemVersion(super::super::common::OperatingSystemVersionInfo),
/// Immutable. Mobile Device.
#[prost(message, tag = "33")]
MobileDevice(super::super::common::MobileDeviceInfo),
/// Immutable. Location Group
#[prost(message, tag = "34")]
LocationGroup(super::super::common::LocationGroupInfo),
/// Immutable. Custom Affinity.
#[prost(message, tag = "36")]
CustomAffinity(super::super::common::CustomAffinityInfo),
/// Immutable. Custom Audience
#[prost(message, tag = "41")]
CustomAudience(super::super::common::CustomAudienceInfo),
/// Immutable. Combined Audience.
#[prost(message, tag = "42")]
CombinedAudience(super::super::common::CombinedAudienceInfo),
/// Immutable. Smart Campaign Keyword Theme.
#[prost(message, tag = "45")]
KeywordTheme(super::super::common::KeywordThemeInfo),
}
}
// Proto file describing the campaign criterion simulation resource.
/// A campaign criterion simulation. Supported combinations of advertising
/// channel type, criterion ids, simulation type and simulation modification
/// method is detailed below respectively.
///
/// 1. SEARCH - 30000,30001,30002 - BID_MODIFIER - UNIFORM
/// 2. SHOPPING - 30000,30001,30002 - BID_MODIFIER - UNIFORM
/// 3. DISPLAY - 30001 - BID_MODIFIER - UNIFORM
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CampaignCriterionSimulation {
/// Output only. The resource name of the campaign criterion simulation.
/// Campaign criterion simulation resource names have the form:
///
/// `customers/{customer_id}/campaignCriterionSimulations/{campaign_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. Campaign ID of the simulation.
#[prost(int64, optional, tag = "9")]
pub campaign_id: ::core::option::Option<i64>,
/// Output only. Criterion ID of the simulation.
#[prost(int64, optional, tag = "10")]
pub criterion_id: ::core::option::Option<i64>,
/// Output only. The field that the simulation modifies.
#[prost(
enumeration = "super::enums::simulation_type_enum::SimulationType",
tag = "4"
)]
pub r#type: i32,
/// Output only. How the simulation modifies the field.
#[prost(
enumeration = "super::enums::simulation_modification_method_enum::SimulationModificationMethod",
tag = "5"
)]
pub modification_method: i32,
/// Output only. First day on which the simulation is based, in YYYY-MM-DD format.
#[prost(string, optional, tag = "11")]
pub start_date: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Last day on which the simulation is based, in YYYY-MM-DD format.
#[prost(string, optional, tag = "12")]
pub end_date: ::core::option::Option<::prost::alloc::string::String>,
/// List of simulation points.
#[prost(oneof = "campaign_criterion_simulation::PointList", tags = "8")]
pub point_list: ::core::option::Option<campaign_criterion_simulation::PointList>,
}
/// Nested message and enum types in `CampaignCriterionSimulation`.
pub mod campaign_criterion_simulation {
/// List of simulation points.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum PointList {
/// Output only. Simulation points if the simulation type is BID_MODIFIER.
#[prost(message, tag = "8")]
BidModifierPointList(super::super::common::BidModifierSimulationPointList),
}
}
// Proto file describing the Campaign Draft resource.
/// A campaign draft.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CampaignDraft {
/// Immutable. The resource name of the campaign draft.
/// Campaign draft resource names have the form:
///
/// `customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the draft.
///
/// This field is read-only.
#[prost(int64, optional, tag = "9")]
pub draft_id: ::core::option::Option<i64>,
/// Immutable. The base campaign to which the draft belongs.
#[prost(string, optional, tag = "10")]
pub base_campaign: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the campaign draft.
///
/// This field is required and should not be empty when creating new
/// campaign drafts.
///
/// It must not contain any null (code point 0x0), NL line feed
/// (code point 0xA) or carriage return (code point 0xD) characters.
#[prost(string, optional, tag = "11")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Resource name of the Campaign that results from overlaying the draft
/// changes onto the base campaign.
///
/// This field is read-only.
#[prost(string, optional, tag = "12")]
pub draft_campaign: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The status of the campaign draft. This field is read-only.
///
/// When a new campaign draft is added, the status defaults to PROPOSED.
#[prost(
enumeration = "super::enums::campaign_draft_status_enum::CampaignDraftStatus",
tag = "6"
)]
pub status: i32,
/// Output only. Whether there is an experiment based on this draft currently serving.
#[prost(bool, optional, tag = "13")]
pub has_experiment_running: ::core::option::Option<bool>,
/// Output only. The resource name of the long-running operation that can be used to poll
/// for completion of draft promotion. This is only set if the draft promotion
/// is in progress or finished.
#[prost(string, optional, tag = "14")]
pub long_running_operation: ::core::option::Option<::prost::alloc::string::String>,
}
// Proto file describing the Campaign Experiment resource.
/// An A/B experiment that compares the performance of the base campaign
/// (the control) and a variation of that campaign (the experiment).
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CampaignExperiment {
/// Immutable. The resource name of the campaign experiment.
/// Campaign experiment resource names have the form:
///
/// `customers/{customer_id}/campaignExperiments/{campaign_experiment_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the campaign experiment.
///
/// This field is read-only.
#[prost(int64, optional, tag = "13")]
pub id: ::core::option::Option<i64>,
/// Immutable. The campaign draft with staged changes to the base campaign.
#[prost(string, optional, tag = "14")]
pub campaign_draft: ::core::option::Option<::prost::alloc::string::String>,
/// The name of the campaign experiment.
///
/// This field is required when creating new campaign experiments
/// and must not conflict with the name of another non-removed
/// campaign experiment or campaign.
///
/// It must not contain any null (code point 0x0), NL line feed
/// (code point 0xA) or carriage return (code point 0xD) characters.
#[prost(string, optional, tag = "15")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The description of the experiment.
#[prost(string, optional, tag = "16")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Immutable. Share of traffic directed to experiment as a percent (must be between 1 and
/// 99 inclusive. Base campaign receives the remainder of the traffic
/// (100 - traffic_split_percent). Required for create.
#[prost(int64, optional, tag = "17")]
pub traffic_split_percent: ::core::option::Option<i64>,
/// Immutable. Determines the behavior of the traffic split.
#[prost(
enumeration = "super::enums::campaign_experiment_traffic_split_type_enum::CampaignExperimentTrafficSplitType",
tag = "7"
)]
pub traffic_split_type: i32,
/// Output only. The experiment campaign, as opposed to the base campaign.
#[prost(string, optional, tag = "18")]
pub experiment_campaign: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The status of the campaign experiment. This field is read-only.
#[prost(
enumeration = "super::enums::campaign_experiment_status_enum::CampaignExperimentStatus",
tag = "9"
)]
pub status: i32,
/// Output only. The resource name of the long-running operation that can be used to poll
/// for completion of experiment create or promote. The most recent long
/// running operation is returned.
#[prost(string, optional, tag = "19")]
pub long_running_operation: ::core::option::Option<::prost::alloc::string::String>,
/// Date when the campaign experiment starts. By default, the experiment starts
/// now or on the campaign's start date, whichever is later. If this field is
/// set, then the experiment starts at the beginning of the specified date in
/// the customer's time zone. Cannot be changed once the experiment starts.
///
/// Format: YYYY-MM-DD
/// Example: 2019-03-14
#[prost(string, optional, tag = "20")]
pub start_date: ::core::option::Option<::prost::alloc::string::String>,
/// The last day of the campaign experiment. By default, the experiment ends on
/// the campaign's end date. If this field is set, then the experiment ends at
/// the end of the specified date in the customer's time zone.
///
/// Format: YYYY-MM-DD
/// Example: 2019-04-18
#[prost(string, optional, tag = "21")]
pub end_date: ::core::option::Option<::prost::alloc::string::String>,
}
// Proto file describing the CampaignExtensionSetting resource.
/// A campaign extension setting.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CampaignExtensionSetting {
/// Immutable. The resource name of the campaign extension setting.
/// CampaignExtensionSetting resource names have the form:
///
/// `customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Immutable. The extension type of the customer extension setting.
#[prost(
enumeration = "super::enums::extension_type_enum::ExtensionType",
tag = "2"
)]
pub extension_type: i32,
/// Immutable. The resource name of the campaign. The linked extension feed items will
/// serve under this campaign.
/// Campaign resource names have the form:
///
/// `customers/{customer_id}/campaigns/{campaign_id}`
#[prost(string, optional, tag = "6")]
pub campaign: ::core::option::Option<::prost::alloc::string::String>,
/// The resource names of the extension feed items to serve under the campaign.
/// ExtensionFeedItem resource names have the form:
///
/// `customers/{customer_id}/extensionFeedItems/{feed_item_id}`
#[prost(string, repeated, tag = "7")]
pub extension_feed_items: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The device for which the extensions will serve. Optional.
#[prost(
enumeration = "super::enums::extension_setting_device_enum::ExtensionSettingDevice",
tag = "5"
)]
pub device: i32,
}
// Proto file describing the CampaignFeed resource.
/// A campaign feed.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CampaignFeed {
/// Immutable. The resource name of the campaign feed.
/// Campaign feed resource names have the form:
///
/// `customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Immutable. The feed to which the CampaignFeed belongs.
#[prost(string, optional, tag = "7")]
pub feed: ::core::option::Option<::prost::alloc::string::String>,
/// Immutable. The campaign to which the CampaignFeed belongs.
#[prost(string, optional, tag = "8")]
pub campaign: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates which placeholder types the feed may populate under the connected
/// campaign. Required.
#[prost(
enumeration = "super::enums::placeholder_type_enum::PlaceholderType",
repeated,
tag = "4"
)]
pub placeholder_types: ::prost::alloc::vec::Vec<i32>,
/// Matching function associated with the CampaignFeed.
/// The matching function is used to filter the set of feed items selected.
/// Required.
#[prost(message, optional, tag = "5")]
pub matching_function: ::core::option::Option<super::common::MatchingFunction>,
/// Output only. Status of the campaign feed.
/// This field is read-only.
#[prost(
enumeration = "super::enums::feed_link_status_enum::FeedLinkStatus",
tag = "6"
)]
pub status: i32,
}
// Proto file describing the campaign label resource.
/// Represents a relationship between a campaign and a label.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CampaignLabel {
/// Immutable. Name of the resource.
/// Campaign label resource names have the form:
/// `customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Immutable. The campaign to which the label is attached.
#[prost(string, optional, tag = "4")]
pub campaign: ::core::option::Option<::prost::alloc::string::String>,
/// Immutable. The label assigned to the campaign.
#[prost(string, optional, tag = "5")]
pub label: ::core::option::Option<::prost::alloc::string::String>,
}
// Proto file describing the CampaignSharedSet resource.
/// CampaignSharedSets are used for managing the shared sets associated with a
/// campaign.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CampaignSharedSet {
/// Immutable. The resource name of the campaign shared set.
/// Campaign shared set resource names have the form:
///
/// `customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Immutable. The campaign to which the campaign shared set belongs.
#[prost(string, optional, tag = "5")]
pub campaign: ::core::option::Option<::prost::alloc::string::String>,
/// Immutable. The shared set associated with the campaign. This may be a negative keyword
/// shared set of another customer. This customer should be a manager of the
/// other customer, otherwise the campaign shared set will exist but have no
/// serving effect. Only negative keyword shared sets can be associated with
/// Shopping campaigns. Only negative placement shared sets can be associated
/// with Display mobile app campaigns.
#[prost(string, optional, tag = "6")]
pub shared_set: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The status of this campaign shared set. Read only.
#[prost(
enumeration = "super::enums::campaign_shared_set_status_enum::CampaignSharedSetStatus",
tag = "2"
)]
pub status: i32,
}
// Proto file describing the campaign simulation resource.
/// A campaign simulation. Supported combinations of advertising
/// channel type, simulation type and simulation modification
/// method is detailed below respectively.
///
/// SEARCH - CPC_BID - UNIFORM
/// SEARCH - CPC_BID - SCALING
/// SEARCH - TARGET_CPA - UNIFORM
/// SEARCH - TARGET_CPA - SCALING
/// SEARCH - TARGET_ROAS - UNIFORM
/// SEARCH - TARGET_IMPRESSION_SHARE - UNIFORM
/// SEARCH - BUDGET - UNIFORM
/// SHOPPING - BUDGET - UNIFORM
/// SHOPPING - TARGET_ROAS - UNIFORM
/// MULTIPLE - TARGET_CPA - UNIFORM
/// OWNED_AND_OPERATED - TARGET_CPA - DEFAULT
/// DISPLAY - TARGET_CPA - UNIFORM
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CampaignSimulation {
/// Output only. The resource name of the campaign simulation.
/// Campaign simulation resource names have the form:
///
/// `customers/{customer_id}/campaignSimulations/{campaign_id}~{type}~{modification_method}~{start_date}~{end_date}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. Campaign id of the simulation.
#[prost(int64, tag = "2")]
pub campaign_id: i64,
/// Output only. The field that the simulation modifies.
#[prost(
enumeration = "super::enums::simulation_type_enum::SimulationType",
tag = "3"
)]
pub r#type: i32,
/// Output only. How the simulation modifies the field.
#[prost(
enumeration = "super::enums::simulation_modification_method_enum::SimulationModificationMethod",
tag = "4"
)]
pub modification_method: i32,
/// Output only. First day on which the simulation is based, in YYYY-MM-DD format.
#[prost(string, tag = "5")]
pub start_date: ::prost::alloc::string::String,
/// Output only. Last day on which the simulation is based, in YYYY-MM-DD format
#[prost(string, tag = "6")]
pub end_date: ::prost::alloc::string::String,
/// List of simulation points.
#[prost(oneof = "campaign_simulation::PointList", tags = "7, 8, 9, 10, 11")]
pub point_list: ::core::option::Option<campaign_simulation::PointList>,
}
/// Nested message and enum types in `CampaignSimulation`.
pub mod campaign_simulation {
/// List of simulation points.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum PointList {
/// Output only. Simulation points if the simulation type is CPC_BID.
#[prost(message, tag = "7")]
CpcBidPointList(super::super::common::CpcBidSimulationPointList),
/// Output only. Simulation points if the simulation type is TARGET_CPA.
#[prost(message, tag = "8")]
TargetCpaPointList(super::super::common::TargetCpaSimulationPointList),
/// Output only. Simulation points if the simulation type is TARGET_ROAS.
#[prost(message, tag = "9")]
TargetRoasPointList(super::super::common::TargetRoasSimulationPointList),
/// Output only. Simulation points if the simulation type is TARGET_IMPRESSION_SHARE.
#[prost(message, tag = "10")]
TargetImpressionSharePointList(
super::super::common::TargetImpressionShareSimulationPointList,
),
/// Output only. Simulation points if the simulation type is BUDGET.
#[prost(message, tag = "11")]
BudgetPointList(super::super::common::BudgetSimulationPointList),
}
}
// Proto file describing the Carrier constant resource.
/// A carrier criterion that can be used in campaign targeting.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CarrierConstant {
/// Output only. The resource name of the carrier criterion.
/// Carrier criterion resource names have the form:
///
/// `carrierConstants/{criterion_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the carrier criterion.
#[prost(int64, optional, tag = "5")]
pub id: ::core::option::Option<i64>,
/// Output only. The full name of the carrier in English.
#[prost(string, optional, tag = "6")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The country code of the country where the carrier is located, e.g., "AR",
/// "FR", etc.
#[prost(string, optional, tag = "7")]
pub country_code: ::core::option::Option<::prost::alloc::string::String>,
}
// Proto file describing the CustomerAsset resource.
/// A link between a customer and an asset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomerAsset {
/// Immutable. The resource name of the customer asset.
/// CustomerAsset resource names have the form:
///
/// `customers/{customer_id}/customerAssets/{asset_id}~{field_type}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Required. Immutable. The asset which is linked to the customer.
#[prost(string, tag = "2")]
pub asset: ::prost::alloc::string::String,
/// Required. Immutable. Role that the asset takes for the customer link.
#[prost(
enumeration = "super::enums::asset_field_type_enum::AssetFieldType",
tag = "3"
)]
pub field_type: i32,
/// Status of the customer asset.
#[prost(
enumeration = "super::enums::asset_link_status_enum::AssetLinkStatus",
tag = "4"
)]
pub status: i32,
}
// Proto file describing the Feed resource.
/// A feed.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Feed {
/// Immutable. The resource name of the feed.
/// Feed resource names have the form:
///
/// `customers/{customer_id}/feeds/{feed_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the feed.
/// This field is read-only.
#[prost(int64, optional, tag = "11")]
pub id: ::core::option::Option<i64>,
/// Immutable. Name of the feed. Required.
#[prost(string, optional, tag = "12")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The Feed's attributes. Required on CREATE, unless
/// system_feed_generation_data is provided, in which case Google Ads will
/// update the feed with the correct attributes.
/// Disallowed on UPDATE. Use attribute_operations to add new attributes.
#[prost(message, repeated, tag = "4")]
pub attributes: ::prost::alloc::vec::Vec<FeedAttribute>,
/// The list of operations changing the feed attributes. Attributes can only
/// be added, not removed.
#[prost(message, repeated, tag = "9")]
pub attribute_operations: ::prost::alloc::vec::Vec<FeedAttributeOperation>,
/// Immutable. Specifies who manages the FeedAttributes for the Feed.
#[prost(enumeration = "super::enums::feed_origin_enum::FeedOrigin", tag = "5")]
pub origin: i32,
/// Output only. Status of the feed.
/// This field is read-only.
#[prost(enumeration = "super::enums::feed_status_enum::FeedStatus", tag = "8")]
pub status: i32,
/// The system data for the Feed. This data specifies information for
/// generating the feed items of the system generated feed.
#[prost(oneof = "feed::SystemFeedGenerationData", tags = "6, 7")]
pub system_feed_generation_data: ::core::option::Option<feed::SystemFeedGenerationData>,
}
/// Nested message and enum types in `Feed`.
pub mod feed {
/// Data used to configure a location feed populated from Google My Business
/// Locations.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PlacesLocationFeedData {
/// Immutable. Required authentication token (from OAuth API) for the email.
/// This field can only be specified in a create request. All its subfields
/// are not selectable.
#[prost(message, optional, tag = "1")]
pub oauth_info: ::core::option::Option<places_location_feed_data::OAuthInfo>,
/// Email address of a Google My Business account or email address of a
/// manager of the Google My Business account. Required.
#[prost(string, optional, tag = "7")]
pub email_address: ::core::option::Option<::prost::alloc::string::String>,
/// Plus page ID of the managed business whose locations should be used. If
/// this field is not set, then all businesses accessible by the user
/// (specified by email_address) are used.
/// This field is mutate-only and is not selectable.
#[prost(string, tag = "8")]
pub business_account_id: ::prost::alloc::string::String,
/// Used to filter Google My Business listings by business name. If
/// business_name_filter is set, only listings with a matching business name
/// are candidates to be sync'd into FeedItems.
#[prost(string, optional, tag = "9")]
pub business_name_filter: ::core::option::Option<::prost::alloc::string::String>,
/// Used to filter Google My Business listings by categories. If entries
/// exist in category_filters, only listings that belong to any of the
/// categories are candidates to be sync'd into FeedItems. If no entries
/// exist in category_filters, then all listings are candidates for syncing.
#[prost(string, repeated, tag = "11")]
pub category_filters: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Used to filter Google My Business listings by labels. If entries exist in
/// label_filters, only listings that has any of the labels set are
/// candidates to be synchronized into FeedItems. If no entries exist in
/// label_filters, then all listings are candidates for syncing.
#[prost(string, repeated, tag = "12")]
pub label_filters: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Nested message and enum types in `PlacesLocationFeedData`.
pub mod places_location_feed_data {
/// Data used for authorization using OAuth.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OAuthInfo {
/// The HTTP method used to obtain authorization.
#[prost(string, optional, tag = "4")]
pub http_method: ::core::option::Option<::prost::alloc::string::String>,
/// The HTTP request URL used to obtain authorization.
#[prost(string, optional, tag = "5")]
pub http_request_url: ::core::option::Option<::prost::alloc::string::String>,
/// The HTTP authorization header used to obtain authorization.
#[prost(string, optional, tag = "6")]
pub http_authorization_header: ::core::option::Option<::prost::alloc::string::String>,
}
}
/// Data used to configure an affiliate location feed populated with the
/// specified chains.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AffiliateLocationFeedData {
/// The list of chains that the affiliate location feed will sync the
/// locations from.
#[prost(int64, repeated, tag = "3")]
pub chain_ids: ::prost::alloc::vec::Vec<i64>,
/// The relationship the chains have with the advertiser.
#[prost(
enumeration = "super::super::enums::affiliate_location_feed_relationship_type_enum::AffiliateLocationFeedRelationshipType",
tag = "2"
)]
pub relationship_type: i32,
}
/// The system data for the Feed. This data specifies information for
/// generating the feed items of the system generated feed.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum SystemFeedGenerationData {
/// Data used to configure a location feed populated from Google My Business
/// Locations.
#[prost(message, tag = "6")]
PlacesLocationFeedData(PlacesLocationFeedData),
/// Data used to configure an affiliate location feed populated with
/// the specified chains.
#[prost(message, tag = "7")]
AffiliateLocationFeedData(AffiliateLocationFeedData),
}
}
/// FeedAttributes define the types of data expected to be present in a Feed. A
/// single FeedAttribute specifies the expected type of the FeedItemAttributes
/// with the same FeedAttributeId. Optionally, a FeedAttribute can be marked as
/// being part of a FeedItem's unique key.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FeedAttribute {
/// ID of the attribute.
#[prost(int64, optional, tag = "5")]
pub id: ::core::option::Option<i64>,
/// The name of the attribute. Required.
#[prost(string, optional, tag = "6")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Data type for feed attribute. Required.
#[prost(
enumeration = "super::enums::feed_attribute_type_enum::FeedAttributeType",
tag = "3"
)]
pub r#type: i32,
/// Indicates that data corresponding to this attribute is part of a
/// FeedItem's unique key. It defaults to false if it is unspecified. Note
/// that a unique key is not required in a Feed's schema, in which case the
/// FeedItems must be referenced by their feed_item_id.
#[prost(bool, optional, tag = "7")]
pub is_part_of_key: ::core::option::Option<bool>,
}
/// Operation to be performed on a feed attribute list in a mutate.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FeedAttributeOperation {
/// Output only. Type of list operation to perform.
#[prost(enumeration = "feed_attribute_operation::Operator", tag = "1")]
pub operator: i32,
/// Output only. The feed attribute being added to the list.
#[prost(message, optional, tag = "2")]
pub value: ::core::option::Option<FeedAttribute>,
}
/// Nested message and enum types in `FeedAttributeOperation`.
pub mod feed_attribute_operation {
/// The operator.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Operator {
/// Unspecified.
Unspecified = 0,
/// Used for return value only. Represents value unknown in this version.
Unknown = 1,
/// Add the attribute to the existing attributes.
Add = 2,
}
}
// Proto file describing the FeedItem resource.
/// A feed item.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FeedItem {
/// Immutable. The resource name of the feed item.
/// Feed item resource names have the form:
///
/// `customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Immutable. The feed to which this feed item belongs.
#[prost(string, optional, tag = "11")]
pub feed: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The ID of this feed item.
#[prost(int64, optional, tag = "12")]
pub id: ::core::option::Option<i64>,
/// Start time in which this feed item is effective and can begin serving. The
/// time is in the customer's time zone.
/// The format is "YYYY-MM-DD HH:MM:SS".
/// Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
#[prost(string, optional, tag = "13")]
pub start_date_time: ::core::option::Option<::prost::alloc::string::String>,
/// End time in which this feed item is no longer effective and will stop
/// serving. The time is in the customer's time zone.
/// The format is "YYYY-MM-DD HH:MM:SS".
/// Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
#[prost(string, optional, tag = "14")]
pub end_date_time: ::core::option::Option<::prost::alloc::string::String>,
/// The feed item's attribute values.
#[prost(message, repeated, tag = "6")]
pub attribute_values: ::prost::alloc::vec::Vec<FeedItemAttributeValue>,
/// Geo targeting restriction specifies the type of location that can be used
/// for targeting.
#[prost(
enumeration = "super::enums::geo_targeting_restriction_enum::GeoTargetingRestriction",
tag = "7"
)]
pub geo_targeting_restriction: i32,
/// The list of mappings used to substitute custom parameter tags in a
/// `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
#[prost(message, repeated, tag = "8")]
pub url_custom_parameters: ::prost::alloc::vec::Vec<super::common::CustomParameter>,
/// Output only. Status of the feed item.
/// This field is read-only.
#[prost(
enumeration = "super::enums::feed_item_status_enum::FeedItemStatus",
tag = "9"
)]
pub status: i32,
/// Output only. List of info about a feed item's validation and approval state for active
/// feed mappings. There will be an entry in the list for each type of feed
/// mapping associated with the feed, e.g. a feed with a sitelink and a call
/// feed mapping would cause every feed item associated with that feed to have
/// an entry in this list for both sitelink and call.
/// This field is read-only.
#[prost(message, repeated, tag = "10")]
pub policy_infos: ::prost::alloc::vec::Vec<FeedItemPlaceholderPolicyInfo>,
}
/// A feed item attribute value.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FeedItemAttributeValue {
/// Id of the feed attribute for which the value is associated with.
#[prost(int64, optional, tag = "11")]
pub feed_attribute_id: ::core::option::Option<i64>,
/// Int64 value. Should be set if feed_attribute_id refers to a feed attribute
/// of type INT64.
#[prost(int64, optional, tag = "12")]
pub integer_value: ::core::option::Option<i64>,
/// Bool value. Should be set if feed_attribute_id refers to a feed attribute
/// of type BOOLEAN.
#[prost(bool, optional, tag = "13")]
pub boolean_value: ::core::option::Option<bool>,
/// String value. Should be set if feed_attribute_id refers to a feed attribute
/// of type STRING, URL or DATE_TIME.
/// For STRING the maximum length is 1500 characters. For URL the maximum
/// length is 2076 characters. For DATE_TIME the string must be in the format
/// "YYYYMMDD HHMMSS".
#[prost(string, optional, tag = "14")]
pub string_value: ::core::option::Option<::prost::alloc::string::String>,
/// Double value. Should be set if feed_attribute_id refers to a feed attribute
/// of type DOUBLE.
#[prost(double, optional, tag = "15")]
pub double_value: ::core::option::Option<f64>,
/// Price value. Should be set if feed_attribute_id refers to a feed attribute
/// of type PRICE.
#[prost(message, optional, tag = "6")]
pub price_value: ::core::option::Option<super::common::Money>,
/// Repeated int64 value. Should be set if feed_attribute_id refers to a feed
/// attribute of type INT64_LIST.
#[prost(int64, repeated, tag = "16")]
pub integer_values: ::prost::alloc::vec::Vec<i64>,
/// Repeated bool value. Should be set if feed_attribute_id refers to a feed
/// attribute of type BOOLEAN_LIST.
#[prost(bool, repeated, tag = "17")]
pub boolean_values: ::prost::alloc::vec::Vec<bool>,
/// Repeated string value. Should be set if feed_attribute_id refers to a feed
/// attribute of type STRING_LIST, URL_LIST or DATE_TIME_LIST.
/// For STRING_LIST and URL_LIST the total size of the list in bytes may not
/// exceed 3000. For DATE_TIME_LIST the number of elements may not exceed 200.
///
/// For STRING_LIST the maximum length of each string element is 1500
/// characters. For URL_LIST the maximum length is 2076 characters. For
/// DATE_TIME the format of the string must be the same as start and end time
/// for the feed item.
#[prost(string, repeated, tag = "18")]
pub string_values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Repeated double value. Should be set if feed_attribute_id refers to a feed
/// attribute of type DOUBLE_LIST.
#[prost(double, repeated, tag = "19")]
pub double_values: ::prost::alloc::vec::Vec<f64>,
}
/// Policy, validation, and quality approval info for a feed item for the
/// specified placeholder type.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FeedItemPlaceholderPolicyInfo {
/// Output only. The placeholder type.
#[prost(
enumeration = "super::enums::placeholder_type_enum::PlaceholderType",
tag = "10"
)]
pub placeholder_type_enum: i32,
/// Output only. The FeedMapping that contains the placeholder type.
#[prost(string, optional, tag = "11")]
pub feed_mapping_resource_name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Where the placeholder type is in the review process.
#[prost(
enumeration = "super::enums::policy_review_status_enum::PolicyReviewStatus",
tag = "3"
)]
pub review_status: i32,
/// Output only. The overall approval status of the placeholder type, calculated based on
/// the status of its individual policy topic entries.
#[prost(
enumeration = "super::enums::policy_approval_status_enum::PolicyApprovalStatus",
tag = "4"
)]
pub approval_status: i32,
/// Output only. The list of policy findings for the placeholder type.
#[prost(message, repeated, tag = "5")]
pub policy_topic_entries: ::prost::alloc::vec::Vec<super::common::PolicyTopicEntry>,
/// Output only. The validation status of the palceholder type.
#[prost(
enumeration = "super::enums::feed_item_validation_status_enum::FeedItemValidationStatus",
tag = "6"
)]
pub validation_status: i32,
/// Output only. List of placeholder type validation errors.
#[prost(message, repeated, tag = "7")]
pub validation_errors: ::prost::alloc::vec::Vec<FeedItemValidationError>,
/// Output only. Placeholder type quality evaluation approval status.
#[prost(
enumeration = "super::enums::feed_item_quality_approval_status_enum::FeedItemQualityApprovalStatus",
tag = "8"
)]
pub quality_approval_status: i32,
/// Output only. List of placeholder type quality evaluation disapproval reasons.
#[prost(
enumeration = "super::enums::feed_item_quality_disapproval_reason_enum::FeedItemQualityDisapprovalReason",
repeated,
packed = "false",
tag = "9"
)]
pub quality_disapproval_reasons: ::prost::alloc::vec::Vec<i32>,
}
/// Stores a validation error and the set of offending feed attributes which
/// together are responsible for causing a feed item validation error.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FeedItemValidationError {
/// Output only. Error code indicating what validation error was triggered. The description
/// of the error can be found in the 'description' field.
#[prost(
enumeration = "super::errors::feed_item_validation_error_enum::FeedItemValidationError",
tag = "1"
)]
pub validation_error: i32,
/// Output only. The description of the validation error.
#[prost(string, optional, tag = "6")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Set of feed attributes in the feed item flagged during validation. If
/// empty, no specific feed attributes can be associated with the error
/// (e.g. error across the entire feed item).
#[prost(int64, repeated, packed = "false", tag = "7")]
pub feed_attribute_ids: ::prost::alloc::vec::Vec<i64>,
/// Output only. Any extra information related to this error which is not captured by
/// validation_error and feed_attribute_id (e.g. placeholder field IDs when
/// feed_attribute_id is not mapped). Note that extra_info is not localized.
#[prost(string, optional, tag = "8")]
pub extra_info: ::core::option::Option<::prost::alloc::string::String>,
}
// Proto file describing the Change Event resource.
/// Describes the granular change of returned resource of certain resource types.
/// Changes made through UI, API and new versions of Editor
/// by external users (including external users, and internal users that can be
/// shown externally) in the past 30 days will be shown. The change shows the old
/// values of the changed fields before the change and the new values right after
/// the change. ChangeEvent could have up to 3 minutes delay to reflect a new
/// change.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChangeEvent {
/// Output only. The resource name of the change event.
/// Change event resource names have the form:
///
/// `customers/{customer_id}/changeEvents/{timestamp_micros}~{command_index}~{mutate_index}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. Time at which the change was committed on this resource.
#[prost(string, tag = "2")]
pub change_date_time: ::prost::alloc::string::String,
/// Output only. The type of the changed resource. This dictates what resource
/// will be set in old_resource and new_resource.
#[prost(
enumeration = "super::enums::change_event_resource_type_enum::ChangeEventResourceType",
tag = "3"
)]
pub change_resource_type: i32,
/// Output only. The Simply resource this change occurred on.
#[prost(string, tag = "4")]
pub change_resource_name: ::prost::alloc::string::String,
/// Output only. Where the change was made through.
#[prost(
enumeration = "super::enums::change_client_type_enum::ChangeClientType",
tag = "5"
)]
pub client_type: i32,
/// Output only. The email of the user who made this change.
#[prost(string, tag = "6")]
pub user_email: ::prost::alloc::string::String,
/// Output only. The old resource before the change. Only changed fields will be populated.
#[prost(message, optional, tag = "7")]
pub old_resource: ::core::option::Option<change_event::ChangedResource>,
/// Output only. The new resource after the change. Only changed fields will be populated.
#[prost(message, optional, tag = "8")]
pub new_resource: ::core::option::Option<change_event::ChangedResource>,
/// Output only. The operation on the changed resource.
#[prost(
enumeration = "super::enums::resource_change_operation_enum::ResourceChangeOperation",
tag = "9"
)]
pub resource_change_operation: i32,
/// Output only. A list of fields that are changed in the returned resource.
#[prost(message, optional, tag = "10")]
pub changed_fields: ::core::option::Option<::prost_types::FieldMask>,
/// Output only. The Campaign affected by this change.
#[prost(string, tag = "11")]
pub campaign: ::prost::alloc::string::String,
/// Output only. The AdGroup affected by this change.
#[prost(string, tag = "12")]
pub ad_group: ::prost::alloc::string::String,
/// Output only. The Feed affected by this change.
#[prost(string, tag = "13")]
pub feed: ::prost::alloc::string::String,
/// Output only. The FeedItem affected by this change.
#[prost(string, tag = "14")]
pub feed_item: ::prost::alloc::string::String,
/// Output only. The Asset affected by this change.
#[prost(string, tag = "20")]
pub asset: ::prost::alloc::string::String,
}
/// Nested message and enum types in `ChangeEvent`.
pub mod change_event {
/// A wrapper proto presenting all supported resources.
/// Only the resource of the change_resource_type will be set.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChangedResource {
/// Output only. Set if change_resource_type == AD.
#[prost(message, optional, tag = "1")]
pub ad: ::core::option::Option<super::Ad>,
/// Output only. Set if change_resource_type == AD_GROUP.
#[prost(message, optional, tag = "2")]
pub ad_group: ::core::option::Option<super::AdGroup>,
/// Output only. Set if change_resource_type == AD_GROUP_CRITERION.
#[prost(message, optional, tag = "3")]
pub ad_group_criterion: ::core::option::Option<super::AdGroupCriterion>,
/// Output only. Set if change_resource_type == CAMPAIGN.
#[prost(message, optional, tag = "4")]
pub campaign: ::core::option::Option<super::Campaign>,
/// Output only. Set if change_resource_type == CAMPAIGN_BUDGET.
#[prost(message, optional, tag = "5")]
pub campaign_budget: ::core::option::Option<super::CampaignBudget>,
/// Output only. Set if change_resource_type == AD_GROUP_BID_MODIFIER.
#[prost(message, optional, tag = "6")]
pub ad_group_bid_modifier: ::core::option::Option<super::AdGroupBidModifier>,
/// Output only. Set if change_resource_type == CAMPAIGN_CRITERION.
#[prost(message, optional, tag = "7")]
pub campaign_criterion: ::core::option::Option<super::CampaignCriterion>,
/// Output only. Set if change_resource_type == FEED.
#[prost(message, optional, tag = "8")]
pub feed: ::core::option::Option<super::Feed>,
/// Output only. Set if change_resource_type == FEED_ITEM.
#[prost(message, optional, tag = "9")]
pub feed_item: ::core::option::Option<super::FeedItem>,
/// Output only. Set if change_resource_type == CAMPAIGN_FEED.
#[prost(message, optional, tag = "10")]
pub campaign_feed: ::core::option::Option<super::CampaignFeed>,
/// Output only. Set if change_resource_type == AD_GROUP_FEED.
#[prost(message, optional, tag = "11")]
pub ad_group_feed: ::core::option::Option<super::AdGroupFeed>,
/// Output only. Set if change_resource_type == AD_GROUP_AD.
#[prost(message, optional, tag = "12")]
pub ad_group_ad: ::core::option::Option<super::AdGroupAd>,
/// Output only. Set if change_resource_type == ASSET.
#[prost(message, optional, tag = "13")]
pub asset: ::core::option::Option<super::Asset>,
/// Output only. Set if change_resource_type == CUSTOMER_ASSET.
#[prost(message, optional, tag = "14")]
pub customer_asset: ::core::option::Option<super::CustomerAsset>,
/// Output only. Set if change_resource_type == CAMPAIGN_ASSET.
#[prost(message, optional, tag = "15")]
pub campaign_asset: ::core::option::Option<super::CampaignAsset>,
/// Output only. Set if change_resource_type == AD_GROUP_ASSET.
#[prost(message, optional, tag = "16")]
pub ad_group_asset: ::core::option::Option<super::AdGroupAsset>,
}
}
// Proto file describing the Change Status resource.
/// Describes the status of returned resource. ChangeStatus could have up to 3
/// minutes delay to reflect a new change.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChangeStatus {
/// Output only. The resource name of the change status.
/// Change status resource names have the form:
///
/// `customers/{customer_id}/changeStatus/{change_status_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. Time at which the most recent change has occurred on this resource.
#[prost(string, optional, tag = "24")]
pub last_change_date_time: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Represents the type of the changed resource. This dictates what fields
/// will be set. For example, for AD_GROUP, campaign and ad_group fields will
/// be set.
#[prost(
enumeration = "super::enums::change_status_resource_type_enum::ChangeStatusResourceType",
tag = "4"
)]
pub resource_type: i32,
/// Output only. The Campaign affected by this change.
#[prost(string, optional, tag = "17")]
pub campaign: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The AdGroup affected by this change.
#[prost(string, optional, tag = "18")]
pub ad_group: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Represents the status of the changed resource.
#[prost(
enumeration = "super::enums::change_status_operation_enum::ChangeStatusOperation",
tag = "8"
)]
pub resource_status: i32,
/// Output only. The AdGroupAd affected by this change.
#[prost(string, optional, tag = "25")]
pub ad_group_ad: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The AdGroupCriterion affected by this change.
#[prost(string, optional, tag = "26")]
pub ad_group_criterion: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The CampaignCriterion affected by this change.
#[prost(string, optional, tag = "27")]
pub campaign_criterion: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The Feed affected by this change.
#[prost(string, optional, tag = "28")]
pub feed: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The FeedItem affected by this change.
#[prost(string, optional, tag = "29")]
pub feed_item: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The AdGroupFeed affected by this change.
#[prost(string, optional, tag = "30")]
pub ad_group_feed: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The CampaignFeed affected by this change.
#[prost(string, optional, tag = "31")]
pub campaign_feed: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The AdGroupBidModifier affected by this change.
#[prost(string, optional, tag = "32")]
pub ad_group_bid_modifier: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The SharedSet affected by this change.
#[prost(string, tag = "33")]
pub shared_set: ::prost::alloc::string::String,
/// Output only. The CampaignSharedSet affected by this change.
#[prost(string, tag = "34")]
pub campaign_shared_set: ::prost::alloc::string::String,
/// Output only. The Asset affected by this change.
#[prost(string, tag = "35")]
pub asset: ::prost::alloc::string::String,
/// Output only. The CustomerAsset affected by this change.
#[prost(string, tag = "36")]
pub customer_asset: ::prost::alloc::string::String,
/// Output only. The CampaignAsset affected by this change.
#[prost(string, tag = "37")]
pub campaign_asset: ::prost::alloc::string::String,
/// Output only. The AdGroupAsset affected by this change.
#[prost(string, tag = "38")]
pub ad_group_asset: ::prost::alloc::string::String,
}
// Proto file describing the ClickView resource.
/// A click view with metrics aggregated at each click level, including both
/// valid and invalid clicks. For non-Search campaigns, metrics.clicks
/// represents the number of valid and invalid interactions.
/// Queries including ClickView must have a filter limiting the results to one
/// day and can be requested for dates back to 90 days before the time of the
/// request.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClickView {
/// Output only. The resource name of the click view.
/// Click view resource names have the form:
///
/// `customers/{customer_id}/clickViews/{date (yyyy-MM-dd)}~{gclid}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The Google Click ID.
#[prost(string, optional, tag = "8")]
pub gclid: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The location criteria matching the area of interest associated with the
/// impression.
#[prost(message, optional, tag = "3")]
pub area_of_interest: ::core::option::Option<super::common::ClickLocation>,
/// Output only. The location criteria matching the location of presence associated with the
/// impression.
#[prost(message, optional, tag = "4")]
pub location_of_presence: ::core::option::Option<super::common::ClickLocation>,
/// Output only. Page number in search results where the ad was shown.
#[prost(int64, optional, tag = "9")]
pub page_number: ::core::option::Option<i64>,
/// Output only. The associated ad.
#[prost(string, optional, tag = "10")]
pub ad_group_ad: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The associated campaign location target, if one exists.
#[prost(string, optional, tag = "11")]
pub campaign_location_target: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The associated user list, if one exists.
#[prost(string, optional, tag = "12")]
pub user_list: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The associated keyword, if one exists and the click corresponds to the
/// SEARCH channel.
#[prost(string, tag = "13")]
pub keyword: ::prost::alloc::string::String,
/// Output only. Basic information about the associated keyword, if it exists.
#[prost(message, optional, tag = "14")]
pub keyword_info: ::core::option::Option<super::common::KeywordInfo>,
}
// Proto file describing the Combined Audience resource.
/// Describe a resource for combined audiences which includes different
/// audiences.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CombinedAudience {
/// Immutable. The resource name of the combined audience.
/// Combined audience names have the form:
///
/// `customers/{customer_id}/combinedAudience/{combined_audience_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. ID of the combined audience.
#[prost(int64, tag = "2")]
pub id: i64,
/// Output only. Status of this combined audience. Indicates whether the combined audience
/// is enabled or removed.
#[prost(
enumeration = "super::enums::combined_audience_status_enum::CombinedAudienceStatus",
tag = "3"
)]
pub status: i32,
/// Output only. Name of the combined audience. It should be unique across all combined
/// audiences.
#[prost(string, tag = "4")]
pub name: ::prost::alloc::string::String,
/// Output only. Description of this combined audience.
#[prost(string, tag = "5")]
pub description: ::prost::alloc::string::String,
}
// Proto file describing the Conversion Action resource.
/// A conversion action.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConversionAction {
/// Immutable. The resource name of the conversion action.
/// Conversion action resource names have the form:
///
/// `customers/{customer_id}/conversionActions/{conversion_action_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the conversion action.
#[prost(int64, optional, tag = "21")]
pub id: ::core::option::Option<i64>,
/// The name of the conversion action.
///
/// This field is required and should not be empty when creating new
/// conversion actions.
#[prost(string, optional, tag = "22")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The status of this conversion action for conversion event accrual.
#[prost(
enumeration = "super::enums::conversion_action_status_enum::ConversionActionStatus",
tag = "4"
)]
pub status: i32,
/// Immutable. The type of this conversion action.
#[prost(
enumeration = "super::enums::conversion_action_type_enum::ConversionActionType",
tag = "5"
)]
pub r#type: i32,
/// The category of conversions reported for this conversion action.
#[prost(
enumeration = "super::enums::conversion_action_category_enum::ConversionActionCategory",
tag = "6"
)]
pub category: i32,
/// Output only. The resource name of the conversion action owner customer, or null if this
/// is a system-defined conversion action.
#[prost(string, optional, tag = "23")]
pub owner_customer: ::core::option::Option<::prost::alloc::string::String>,
/// Whether this conversion action should be included in the "conversions"
/// metric.
#[prost(bool, optional, tag = "24")]
pub include_in_conversions_metric: ::core::option::Option<bool>,
/// The maximum number of days that may elapse between an interaction
/// (e.g., a click) and a conversion event.
#[prost(int64, optional, tag = "25")]
pub click_through_lookback_window_days: ::core::option::Option<i64>,
/// The maximum number of days which may elapse between an impression and a
/// conversion without an interaction.
#[prost(int64, optional, tag = "26")]
pub view_through_lookback_window_days: ::core::option::Option<i64>,
/// Settings related to the value for conversion events associated with this
/// conversion action.
#[prost(message, optional, tag = "11")]
pub value_settings: ::core::option::Option<conversion_action::ValueSettings>,
/// How to count conversion events for the conversion action.
#[prost(
enumeration = "super::enums::conversion_action_counting_type_enum::ConversionActionCountingType",
tag = "12"
)]
pub counting_type: i32,
/// Settings related to this conversion action's attribution model.
#[prost(message, optional, tag = "13")]
pub attribution_model_settings:
::core::option::Option<conversion_action::AttributionModelSettings>,
/// Output only. The snippets used for tracking conversions.
#[prost(message, repeated, tag = "14")]
pub tag_snippets: ::prost::alloc::vec::Vec<super::common::TagSnippet>,
/// The phone call duration in seconds after which a conversion should be
/// reported for this conversion action.
///
/// The value must be between 0 and 10000, inclusive.
#[prost(int64, optional, tag = "27")]
pub phone_call_duration_seconds: ::core::option::Option<i64>,
/// App ID for an app conversion action.
#[prost(string, optional, tag = "28")]
pub app_id: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Mobile app vendor for an app conversion action.
#[prost(
enumeration = "super::enums::mobile_app_vendor_enum::MobileAppVendor",
tag = "17"
)]
pub mobile_app_vendor: i32,
/// Output only. Firebase settings for Firebase conversion types.
#[prost(message, optional, tag = "18")]
pub firebase_settings: ::core::option::Option<conversion_action::FirebaseSettings>,
/// Output only. Third Party App Analytics settings for third party conversion types.
#[prost(message, optional, tag = "19")]
pub third_party_app_analytics_settings:
::core::option::Option<conversion_action::ThirdPartyAppAnalyticsSettings>,
}
/// Nested message and enum types in `ConversionAction`.
pub mod conversion_action {
/// Settings related to this conversion action's attribution model.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AttributionModelSettings {
/// The attribution model type of this conversion action.
#[prost(
enumeration = "super::super::enums::attribution_model_enum::AttributionModel",
tag = "1"
)]
pub attribution_model: i32,
/// Output only. The status of the data-driven attribution model for the conversion
/// action.
#[prost(
enumeration = "super::super::enums::data_driven_model_status_enum::DataDrivenModelStatus",
tag = "2"
)]
pub data_driven_model_status: i32,
}
/// Settings related to the value for conversion events associated with this
/// conversion action.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValueSettings {
/// The value to use when conversion events for this conversion action are
/// sent with an invalid, disallowed or missing value, or when
/// this conversion action is configured to always use the default value.
#[prost(double, optional, tag = "4")]
pub default_value: ::core::option::Option<f64>,
/// The currency code to use when conversion events for this conversion
/// action are sent with an invalid or missing currency code, or when this
/// conversion action is configured to always use the default value.
#[prost(string, optional, tag = "5")]
pub default_currency_code: ::core::option::Option<::prost::alloc::string::String>,
/// Controls whether the default value and default currency code are used in
/// place of the value and currency code specified in conversion events for
/// this conversion action.
#[prost(bool, optional, tag = "6")]
pub always_use_default_value: ::core::option::Option<bool>,
}
/// Settings related to a Firebase conversion action.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FirebaseSettings {
/// Output only. The event name of a Firebase conversion.
#[prost(string, optional, tag = "3")]
pub event_name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The Firebase project ID of the conversion.
#[prost(string, optional, tag = "4")]
pub project_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// Settings related to a third party app analytics conversion action.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ThirdPartyAppAnalyticsSettings {
/// Output only. The event name of a third-party app analytics conversion.
#[prost(string, optional, tag = "2")]
pub event_name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Name of the third-party app analytics provider.
#[prost(string, tag = "3")]
pub provider_name: ::prost::alloc::string::String,
}
}
// Proto file describing the Conversion Custom Variable resource.
/// A conversion custom variable
/// See "About custom variables for conversions" at
/// <https://support.google.com/google-ads/answer/9964350>
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConversionCustomVariable {
/// Immutable. The resource name of the conversion custom variable.
/// Conversion custom variable resource names have the form:
///
/// `customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the conversion custom variable.
#[prost(int64, tag = "2")]
pub id: i64,
/// Required. The name of the conversion custom variable.
/// Name should be unique. The maximum length of name is 100 characters.
/// There should not be any extra spaces before and after.
#[prost(string, tag = "3")]
pub name: ::prost::alloc::string::String,
/// Required. Immutable. The tag of the conversion custom variable. It is used in the event snippet
/// and sent to Google Ads along with conversion pings. For conversion uploads
/// in Google Ads API, the resource name of the conversion custom variable is
/// used.
/// Tag should be unique. The maximum size of tag is 100 bytes.
/// There should not be any extra spaces before and after.
/// Currently only lowercase letters, numbers and underscores are allowed in
/// the tag.
#[prost(string, tag = "4")]
pub tag: ::prost::alloc::string::String,
/// The status of the conversion custom variable for conversion event accrual.
#[prost(
enumeration = "super::enums::conversion_custom_variable_status_enum::ConversionCustomVariableStatus",
tag = "5"
)]
pub status: i32,
/// Output only. The resource name of the customer that owns the conversion custom variable.
#[prost(string, tag = "6")]
pub owner_customer: ::prost::alloc::string::String,
}
// Proto file describing the Conversion Value Rule resource.
/// A conversion value rule
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConversionValueRule {
/// Immutable. The resource name of the conversion value rule.
/// Conversion value rule resource names have the form:
///
/// `customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the conversion value rule.
#[prost(int64, tag = "2")]
pub id: i64,
/// Action applied when the rule is triggered.
#[prost(message, optional, tag = "3")]
pub action: ::core::option::Option<conversion_value_rule::ValueRuleAction>,
/// Condition for Geo location that must be satisfied for the value rule to
/// apply.
#[prost(message, optional, tag = "4")]
pub geo_location_condition:
::core::option::Option<conversion_value_rule::ValueRuleGeoLocationCondition>,
/// Condition for device type that must be satisfied for the value rule to
/// apply.
#[prost(message, optional, tag = "5")]
pub device_condition: ::core::option::Option<conversion_value_rule::ValueRuleDeviceCondition>,
/// Condition for audience that must be satisfied for the value rule to apply.
#[prost(message, optional, tag = "6")]
pub audience_condition:
::core::option::Option<conversion_value_rule::ValueRuleAudienceCondition>,
/// Output only. The resource name of the conversion value rule's owner customer.
/// When the value rule is inherited from a manager
/// customer, owner_customer will be the resource name of the manager whereas
/// the customer in the resource_name will be of the requesting serving
/// customer.
/// ** Read-only **
#[prost(string, tag = "7")]
pub owner_customer: ::prost::alloc::string::String,
/// The status of the conversion value rule.
#[prost(
enumeration = "super::enums::conversion_value_rule_status_enum::ConversionValueRuleStatus",
tag = "8"
)]
pub status: i32,
}
/// Nested message and enum types in `ConversionValueRule`.
pub mod conversion_value_rule {
/// Action applied when rule is applied.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValueRuleAction {
/// Specifies applied operation.
#[prost(
enumeration = "super::super::enums::value_rule_operation_enum::ValueRuleOperation",
tag = "1"
)]
pub operation: i32,
/// Specifies applied value.
#[prost(double, tag = "2")]
pub value: f64,
}
/// Condition on Geo dimension.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValueRuleGeoLocationCondition {
/// Geo locations that advertisers want to exclude.
#[prost(string, repeated, tag = "1")]
pub excluded_geo_target_constants: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Excluded Geo location match type.
#[prost(
enumeration = "super::super::enums::value_rule_geo_location_match_type_enum::ValueRuleGeoLocationMatchType",
tag = "2"
)]
pub excluded_geo_match_type: i32,
/// Geo locations that advertisers want to include.
#[prost(string, repeated, tag = "3")]
pub geo_target_constants: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Included Geo location match type.
#[prost(
enumeration = "super::super::enums::value_rule_geo_location_match_type_enum::ValueRuleGeoLocationMatchType",
tag = "4"
)]
pub geo_match_type: i32,
}
/// Condition on Device dimension.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValueRuleDeviceCondition {
/// Value for device type condition.
#[prost(
enumeration = "super::super::enums::value_rule_device_type_enum::ValueRuleDeviceType",
repeated,
tag = "1"
)]
pub device_types: ::prost::alloc::vec::Vec<i32>,
}
/// Condition on Audience dimension.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValueRuleAudienceCondition {
/// User Lists.
#[prost(string, repeated, tag = "1")]
pub user_lists: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// User Interests.
#[prost(string, repeated, tag = "2")]
pub user_interests: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
}
// Proto file describing the Conversion Value Rule Set resource.
/// A conversion value rule set
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConversionValueRuleSet {
/// Immutable. The resource name of the conversion value rule set.
/// Conversion value rule set resource names have the form:
///
/// `customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the conversion value rule set.
#[prost(int64, tag = "2")]
pub id: i64,
/// Resource names of rules within the rule set.
#[prost(string, repeated, tag = "3")]
pub conversion_value_rules: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Defines dimensions for Value Rule conditions. The condition types of value
/// rules within this value rule set must be of these dimensions. The first
/// entry in this list is the primary dimension of the included value rules.
/// When using value rule primary dimension segmentation, conversion values
/// will be segmented into the values adjusted by value rules and the original
/// values, if some value rules apply.
#[prost(
enumeration = "super::enums::value_rule_set_dimension_enum::ValueRuleSetDimension",
repeated,
tag = "4"
)]
pub dimensions: ::prost::alloc::vec::Vec<i32>,
/// Output only. The resource name of the conversion value rule set's owner customer.
/// When the value rule set is inherited from a manager
/// customer, owner_customer will be the resource name of the manager whereas
/// the customer in the resource_name will be of the requesting serving
/// customer.
/// ** Read-only **
#[prost(string, tag = "5")]
pub owner_customer: ::prost::alloc::string::String,
/// Defines the scope where the conversion value rule set is attached.
#[prost(
enumeration = "super::enums::value_rule_set_attachment_type_enum::ValueRuleSetAttachmentType",
tag = "6"
)]
pub attachment_type: i32,
/// The resource name of the campaign when the conversion value rule
/// set is attached to a campaign.
#[prost(string, tag = "7")]
pub campaign: ::prost::alloc::string::String,
/// Output only. The status of the conversion value rule set.
/// ** Read-only **
#[prost(
enumeration = "super::enums::conversion_value_rule_set_status_enum::ConversionValueRuleSetStatus",
tag = "8"
)]
pub status: i32,
}
// Proto file describing the Currency Constant resource.
/// A currency constant.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CurrencyConstant {
/// Output only. The resource name of the currency constant.
/// Currency constant resource names have the form:
///
/// `currencyConstants/{code}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. ISO 4217 three-letter currency code, e.g. "USD"
#[prost(string, optional, tag = "6")]
pub code: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Full English name of the currency.
#[prost(string, optional, tag = "7")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Standard symbol for describing this currency, e.g. '$' for US Dollars.
#[prost(string, optional, tag = "8")]
pub symbol: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The billable unit for this currency. Billed amounts should be multiples of
/// this value.
#[prost(int64, optional, tag = "9")]
pub billable_unit_micros: ::core::option::Option<i64>,
}
// Proto file describing the Custom Audience resource.
/// A custom audience. This is a list of users by interest.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomAudience {
/// Immutable. The resource name of the custom audience.
/// Custom audience resource names have the form:
///
/// `customers/{customer_id}/customAudiences/{custom_audience_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. ID of the custom audience.
#[prost(int64, tag = "2")]
pub id: i64,
/// Output only. Status of this custom audience. Indicates whether the custom audience is
/// enabled or removed.
#[prost(
enumeration = "super::enums::custom_audience_status_enum::CustomAudienceStatus",
tag = "3"
)]
pub status: i32,
/// Name of the custom audience. It should be unique for all custom audiences
/// created by a customer.
/// This field is required for creating operations.
#[prost(string, tag = "4")]
pub name: ::prost::alloc::string::String,
/// Type of the custom audience.
/// ("INTEREST" OR "PURCHASE_INTENT" is not allowed for newly created custom
/// audience but kept for existing audiences)
#[prost(
enumeration = "super::enums::custom_audience_type_enum::CustomAudienceType",
tag = "5"
)]
pub r#type: i32,
/// Description of this custom audience.
#[prost(string, tag = "6")]
pub description: ::prost::alloc::string::String,
/// List of custom audience members that this custom audience is composed of.
/// Members can be added during CustomAudience creation. If members are
/// presented in UPDATE operation, existing members will be overridden.
#[prost(message, repeated, tag = "7")]
pub members: ::prost::alloc::vec::Vec<CustomAudienceMember>,
}
/// A member of custom audience. A member can be a KEYWORD, URL,
/// PLACE_CATEGORY or APP. It can only be created or removed but not changed.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomAudienceMember {
/// The type of custom audience member, KEYWORD, URL, PLACE_CATEGORY or APP.
#[prost(
enumeration = "super::enums::custom_audience_member_type_enum::CustomAudienceMemberType",
tag = "1"
)]
pub member_type: i32,
/// The CustomAudienceMember value. One field is populated depending on the
/// member type.
#[prost(oneof = "custom_audience_member::Value", tags = "2, 3, 4, 5")]
pub value: ::core::option::Option<custom_audience_member::Value>,
}
/// Nested message and enum types in `CustomAudienceMember`.
pub mod custom_audience_member {
/// The CustomAudienceMember value. One field is populated depending on the
/// member type.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Value {
/// A keyword or keyword phrase — at most 10 words and 80 characters.
/// Languages with double-width characters such as Chinese, Japanese,
/// or Korean, are allowed 40 characters, which describes the user's
/// interests or actions.
#[prost(string, tag = "2")]
Keyword(::prost::alloc::string::String),
/// An HTTP URL, protocol-included — at most 2048 characters, which includes
/// contents users have interests in.
#[prost(string, tag = "3")]
Url(::prost::alloc::string::String),
/// A place type described by a place category users visit.
#[prost(int64, tag = "4")]
PlaceCategory(i64),
/// A package name of Android apps which users installed such as
/// com.google.example.
#[prost(string, tag = "5")]
App(::prost::alloc::string::String),
}
}
// Proto file describing the Custom Interest resource.
/// A custom interest. This is a list of users by interest.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomInterest {
/// Immutable. The resource name of the custom interest.
/// Custom interest resource names have the form:
///
/// `customers/{customer_id}/customInterests/{custom_interest_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. Id of the custom interest.
#[prost(int64, optional, tag = "8")]
pub id: ::core::option::Option<i64>,
/// Status of this custom interest. Indicates whether the custom interest is
/// enabled or removed.
#[prost(
enumeration = "super::enums::custom_interest_status_enum::CustomInterestStatus",
tag = "3"
)]
pub status: i32,
/// Name of the custom interest. It should be unique across the same custom
/// affinity audience.
/// This field is required for create operations.
#[prost(string, optional, tag = "9")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Type of the custom interest, CUSTOM_AFFINITY or CUSTOM_INTENT.
/// By default the type is set to CUSTOM_AFFINITY.
#[prost(
enumeration = "super::enums::custom_interest_type_enum::CustomInterestType",
tag = "5"
)]
pub r#type: i32,
/// Description of this custom interest audience.
#[prost(string, optional, tag = "10")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// List of custom interest members that this custom interest is composed of.
/// Members can be added during CustomInterest creation. If members are
/// presented in UPDATE operation, existing members will be overridden.
#[prost(message, repeated, tag = "7")]
pub members: ::prost::alloc::vec::Vec<CustomInterestMember>,
}
/// A member of custom interest audience. A member can be a keyword or url.
/// It is immutable, that is, it can only be created or removed but not changed.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomInterestMember {
/// The type of custom interest member, KEYWORD or URL.
#[prost(
enumeration = "super::enums::custom_interest_member_type_enum::CustomInterestMemberType",
tag = "1"
)]
pub member_type: i32,
/// Keyword text when member_type is KEYWORD or URL string when
/// member_type is URL.
#[prost(string, optional, tag = "3")]
pub parameter: ::core::option::Option<::prost::alloc::string::String>,
}
// Proto file describing the Customer resource.
/// A customer.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Customer {
/// Immutable. The resource name of the customer.
/// Customer resource names have the form:
///
/// `customers/{customer_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the customer.
#[prost(int64, optional, tag = "19")]
pub id: ::core::option::Option<i64>,
/// Optional, non-unique descriptive name of the customer.
#[prost(string, optional, tag = "20")]
pub descriptive_name: ::core::option::Option<::prost::alloc::string::String>,
/// Immutable. The currency in which the account operates.
/// A subset of the currency codes from the ISO 4217 standard is
/// supported.
#[prost(string, optional, tag = "21")]
pub currency_code: ::core::option::Option<::prost::alloc::string::String>,
/// Immutable. The local timezone ID of the customer.
#[prost(string, optional, tag = "22")]
pub time_zone: ::core::option::Option<::prost::alloc::string::String>,
/// The URL template for constructing a tracking URL out of parameters.
#[prost(string, optional, tag = "23")]
pub tracking_url_template: ::core::option::Option<::prost::alloc::string::String>,
/// The URL template for appending params to the final URL
#[prost(string, optional, tag = "24")]
pub final_url_suffix: ::core::option::Option<::prost::alloc::string::String>,
/// Whether auto-tagging is enabled for the customer.
#[prost(bool, optional, tag = "25")]
pub auto_tagging_enabled: ::core::option::Option<bool>,
/// Output only. Whether the Customer has a Partners program badge. If the Customer is not
/// associated with the Partners program, this will be false. For more
/// information, see <https://support.google.com/partners/answer/3125774.>
#[prost(bool, optional, tag = "26")]
pub has_partners_badge: ::core::option::Option<bool>,
/// Output only. Whether the customer is a manager.
#[prost(bool, optional, tag = "27")]
pub manager: ::core::option::Option<bool>,
/// Output only. Whether the customer is a test account.
#[prost(bool, optional, tag = "28")]
pub test_account: ::core::option::Option<bool>,
/// Call reporting setting for a customer.
#[prost(message, optional, tag = "10")]
pub call_reporting_setting: ::core::option::Option<CallReportingSetting>,
/// Output only. Conversion tracking setting for a customer.
#[prost(message, optional, tag = "14")]
pub conversion_tracking_setting: ::core::option::Option<ConversionTrackingSetting>,
/// Output only. Remarketing setting for a customer.
#[prost(message, optional, tag = "15")]
pub remarketing_setting: ::core::option::Option<RemarketingSetting>,
/// Output only. Reasons why the customer is not eligible to use PaymentMode.CONVERSIONS. If
/// the list is empty, the customer is eligible. This field is read-only.
#[prost(
enumeration = "super::enums::customer_pay_per_conversion_eligibility_failure_reason_enum::CustomerPayPerConversionEligibilityFailureReason",
repeated,
packed = "false",
tag = "16"
)]
pub pay_per_conversion_eligibility_failure_reasons: ::prost::alloc::vec::Vec<i32>,
/// Output only. Optimization score of the customer.
///
/// Optimization score is an estimate of how well a customer's campaigns are
/// set to perform. It ranges from 0% (0.0) to 100% (1.0). This field is null
/// for all manager customers, and for unscored non-manager customers.
///
/// See "About optimization score" at
/// <https://support.google.com/google-ads/answer/9061546.>
///
/// This field is read-only.
#[prost(double, optional, tag = "29")]
pub optimization_score: ::core::option::Option<f64>,
/// Output only. Optimization score weight of the customer.
///
/// Optimization score weight can be used to compare/aggregate optimization
/// scores across multiple non-manager customers. The aggregate optimization
/// score of a manager is computed as the sum over all of their customers of
/// `Customer.optimization_score * Customer.optimization_score_weight`. This
/// field is 0 for all manager customers, and for unscored non-manager
/// customers.
///
/// This field is read-only.
#[prost(double, tag = "30")]
pub optimization_score_weight: f64,
}
/// Call reporting setting for a customer.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CallReportingSetting {
/// Enable reporting of phone call events by redirecting them via Google
/// System.
#[prost(bool, optional, tag = "10")]
pub call_reporting_enabled: ::core::option::Option<bool>,
/// Whether to enable call conversion reporting.
#[prost(bool, optional, tag = "11")]
pub call_conversion_reporting_enabled: ::core::option::Option<bool>,
/// Customer-level call conversion action to attribute a call conversion to.
/// If not set a default conversion action is used. Only in effect when
/// call_conversion_reporting_enabled is set to true.
#[prost(string, optional, tag = "12")]
pub call_conversion_action: ::core::option::Option<::prost::alloc::string::String>,
}
/// A collection of customer-wide settings related to Google Ads Conversion
/// Tracking.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConversionTrackingSetting {
/// Output only. The conversion tracking id used for this account. This id is automatically
/// assigned after any conversion tracking feature is used. If the customer
/// doesn't use conversion tracking, this is 0. This field is read-only.
#[prost(int64, optional, tag = "3")]
pub conversion_tracking_id: ::core::option::Option<i64>,
/// Output only. The conversion tracking id of the customer's manager. This is set when the
/// customer is opted into cross account conversion tracking, and it overrides
/// conversion_tracking_id. This field can only be managed through the Google
/// Ads UI. This field is read-only.
#[prost(int64, optional, tag = "4")]
pub cross_account_conversion_tracking_id: ::core::option::Option<i64>,
}
/// Remarketing setting for a customer.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemarketingSetting {
/// Output only. The Google global site tag.
#[prost(string, optional, tag = "2")]
pub google_global_site_tag: ::core::option::Option<::prost::alloc::string::String>,
}
// Proto file describing the CustomerClient resource.
/// A link between the given customer and a client customer. CustomerClients only
/// exist for manager customers. All direct and indirect client customers are
/// included, as well as the manager itself.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomerClient {
/// Output only. The resource name of the customer client.
/// CustomerClient resource names have the form:
/// `customers/{customer_id}/customerClients/{client_customer_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The resource name of the client-customer which is linked to
/// the given customer. Read only.
#[prost(string, optional, tag = "12")]
pub client_customer: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Specifies whether this is a
/// [hidden account](<https://support.google.com/google-ads/answer/7519830>).
/// Read only.
#[prost(bool, optional, tag = "13")]
pub hidden: ::core::option::Option<bool>,
/// Output only. Distance between given customer and client. For self link, the level value
/// will be 0. Read only.
#[prost(int64, optional, tag = "14")]
pub level: ::core::option::Option<i64>,
/// Output only. Common Locale Data Repository (CLDR) string representation of the
/// time zone of the client, e.g. America/Los_Angeles. Read only.
#[prost(string, optional, tag = "15")]
pub time_zone: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Identifies if the client is a test account. Read only.
#[prost(bool, optional, tag = "16")]
pub test_account: ::core::option::Option<bool>,
/// Output only. Identifies if the client is a manager. Read only.
#[prost(bool, optional, tag = "17")]
pub manager: ::core::option::Option<bool>,
/// Output only. Descriptive name for the client. Read only.
#[prost(string, optional, tag = "18")]
pub descriptive_name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Currency code (e.g. 'USD', 'EUR') for the client. Read only.
#[prost(string, optional, tag = "19")]
pub currency_code: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The ID of the client customer. Read only.
#[prost(int64, optional, tag = "20")]
pub id: ::core::option::Option<i64>,
/// Output only. The resource names of the labels owned by the requesting customer that are
/// applied to the client customer.
/// Label resource names have the form:
///
/// `customers/{customer_id}/labels/{label_id}`
#[prost(string, repeated, tag = "21")]
pub applied_labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
// Proto file describing the CustomerClientLink resource.
/// Represents customer client link relationship.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomerClientLink {
/// Immutable. Name of the resource.
/// CustomerClientLink resource names have the form:
/// `customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Immutable. The client customer linked to this customer.
#[prost(string, optional, tag = "7")]
pub client_customer: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. This is uniquely identifies a customer client link. Read only.
#[prost(int64, optional, tag = "8")]
pub manager_link_id: ::core::option::Option<i64>,
/// This is the status of the link between client and manager.
#[prost(
enumeration = "super::enums::manager_link_status_enum::ManagerLinkStatus",
tag = "5"
)]
pub status: i32,
/// The visibility of the link. Users can choose whether or not to see hidden
/// links in the Google Ads UI.
/// Default value is false
#[prost(bool, optional, tag = "9")]
pub hidden: ::core::option::Option<bool>,
}
// Proto file describing the CustomerExtensionSetting resource.
/// A customer extension setting.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomerExtensionSetting {
/// Immutable. The resource name of the customer extension setting.
/// CustomerExtensionSetting resource names have the form:
///
/// `customers/{customer_id}/customerExtensionSettings/{extension_type}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Immutable. The extension type of the customer extension setting.
#[prost(
enumeration = "super::enums::extension_type_enum::ExtensionType",
tag = "2"
)]
pub extension_type: i32,
/// The resource names of the extension feed items to serve under the customer.
/// ExtensionFeedItem resource names have the form:
///
/// `customers/{customer_id}/extensionFeedItems/{feed_item_id}`
#[prost(string, repeated, tag = "5")]
pub extension_feed_items: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The device for which the extensions will serve. Optional.
#[prost(
enumeration = "super::enums::extension_setting_device_enum::ExtensionSettingDevice",
tag = "4"
)]
pub device: i32,
}
// Proto file describing the CustomerFeed resource.
/// A customer feed.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomerFeed {
/// Immutable. The resource name of the customer feed.
/// Customer feed resource names have the form:
///
/// `customers/{customer_id}/customerFeeds/{feed_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Immutable. The feed being linked to the customer.
#[prost(string, optional, tag = "6")]
pub feed: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates which placeholder types the feed may populate under the connected
/// customer. Required.
#[prost(
enumeration = "super::enums::placeholder_type_enum::PlaceholderType",
repeated,
tag = "3"
)]
pub placeholder_types: ::prost::alloc::vec::Vec<i32>,
/// Matching function associated with the CustomerFeed.
/// The matching function is used to filter the set of feed items selected.
/// Required.
#[prost(message, optional, tag = "4")]
pub matching_function: ::core::option::Option<super::common::MatchingFunction>,
/// Output only. Status of the customer feed.
/// This field is read-only.
#[prost(
enumeration = "super::enums::feed_link_status_enum::FeedLinkStatus",
tag = "5"
)]
pub status: i32,
}
// Proto file describing the customer label resource.
/// Represents a relationship between a customer and a label. This customer may
/// not have access to all the labels attached to it. Additional CustomerLabels
/// may be returned by increasing permissions with login-customer-id.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomerLabel {
/// Immutable. Name of the resource.
/// Customer label resource names have the form:
/// `customers/{customer_id}/customerLabels/{label_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The resource name of the customer to which the label is attached.
/// Read only.
#[prost(string, optional, tag = "4")]
pub customer: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The resource name of the label assigned to the customer.
///
/// Note: the Customer ID portion of the label resource name is not
/// validated when creating a new CustomerLabel.
#[prost(string, optional, tag = "5")]
pub label: ::core::option::Option<::prost::alloc::string::String>,
}
// Proto file describing the CustomerManagerLink resource.
/// Represents customer-manager link relationship.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomerManagerLink {
/// Immutable. Name of the resource.
/// CustomerManagerLink resource names have the form:
/// `customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The manager customer linked to the customer.
#[prost(string, optional, tag = "6")]
pub manager_customer: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. ID of the customer-manager link. This field is read only.
#[prost(int64, optional, tag = "7")]
pub manager_link_id: ::core::option::Option<i64>,
/// Status of the link between the customer and the manager.
#[prost(
enumeration = "super::enums::manager_link_status_enum::ManagerLinkStatus",
tag = "5"
)]
pub status: i32,
}
// Proto file describing the Customer Negative Criterion resource.
/// A negative criterion for exclusions at the customer level.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomerNegativeCriterion {
/// Immutable. The resource name of the customer negative criterion.
/// Customer negative criterion resource names have the form:
///
/// `customers/{customer_id}/customerNegativeCriteria/{criterion_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the criterion.
#[prost(int64, optional, tag = "10")]
pub id: ::core::option::Option<i64>,
/// Output only. The type of the criterion.
#[prost(
enumeration = "super::enums::criterion_type_enum::CriterionType",
tag = "3"
)]
pub r#type: i32,
/// The customer negative criterion.
///
/// Exactly one must be set.
#[prost(
oneof = "customer_negative_criterion::Criterion",
tags = "4, 5, 6, 7, 8, 9"
)]
pub criterion: ::core::option::Option<customer_negative_criterion::Criterion>,
}
/// Nested message and enum types in `CustomerNegativeCriterion`.
pub mod customer_negative_criterion {
/// The customer negative criterion.
///
/// Exactly one must be set.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Criterion {
/// Immutable. ContentLabel.
#[prost(message, tag = "4")]
ContentLabel(super::super::common::ContentLabelInfo),
/// Immutable. MobileApplication.
#[prost(message, tag = "5")]
MobileApplication(super::super::common::MobileApplicationInfo),
/// Immutable. MobileAppCategory.
#[prost(message, tag = "6")]
MobileAppCategory(super::super::common::MobileAppCategoryInfo),
/// Immutable. Placement.
#[prost(message, tag = "7")]
Placement(super::super::common::PlacementInfo),
/// Immutable. YouTube Video.
#[prost(message, tag = "8")]
YoutubeVideo(super::super::common::YouTubeVideoInfo),
/// Immutable. YouTube Channel.
#[prost(message, tag = "9")]
YoutubeChannel(super::super::common::YouTubeChannelInfo),
}
}
// Proto file describing the CustomerUserAccess resource.
/// Represents the permission of a single user onto a single customer.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomerUserAccess {
/// Immutable. Name of the resource.
/// Resource names have the form:
/// `customers/{customer_id}/customerUserAccesses/{user_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. User id of the user with the customer access.
/// Read only field
#[prost(int64, tag = "2")]
pub user_id: i64,
/// Output only. Email address of the user.
/// Read only field
#[prost(string, optional, tag = "3")]
pub email_address: ::core::option::Option<::prost::alloc::string::String>,
/// Access role of the user.
#[prost(enumeration = "super::enums::access_role_enum::AccessRole", tag = "4")]
pub access_role: i32,
/// Output only. The customer user access creation time.
/// Read only field
/// The format is "YYYY-MM-DD HH:MM:SS".
/// Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
#[prost(string, optional, tag = "6")]
pub access_creation_date_time: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The email address of the inviter user.
/// Read only field
#[prost(string, optional, tag = "7")]
pub inviter_user_email_address: ::core::option::Option<::prost::alloc::string::String>,
}
// Proto file describing the CustomerUserAccessInvitation resource.
/// Represent an invitation to a new user on this customer account.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomerUserAccessInvitation {
/// Immutable. Name of the resource.
/// Resource names have the form:
/// `customers/{customer_id}/customerUserAccessInvitations/{invitation_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the invitation.
/// This field is read-only.
#[prost(int64, tag = "2")]
pub invitation_id: i64,
/// Immutable. Access role of the user.
#[prost(enumeration = "super::enums::access_role_enum::AccessRole", tag = "3")]
pub access_role: i32,
/// Immutable. Email address the invitation was sent to.
/// This can differ from the email address of the account
/// that accepts the invite.
#[prost(string, tag = "4")]
pub email_address: ::prost::alloc::string::String,
/// Output only. Time invitation was created.
/// This field is read-only.
/// The format is "YYYY-MM-DD HH:MM:SS".
/// Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
#[prost(string, tag = "5")]
pub creation_date_time: ::prost::alloc::string::String,
/// Output only. Invitation status of the user.
#[prost(
enumeration = "super::enums::access_invitation_status_enum::AccessInvitationStatus",
tag = "6"
)]
pub invitation_status: i32,
}
// Proto file describing the detail placement view resource.
/// A view with metrics aggregated by ad group and URL or YouTube video.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DetailPlacementView {
/// Output only. The resource name of the detail placement view.
/// Detail placement view resource names have the form:
///
/// `customers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The automatic placement string at detail level, e. g. website URL, mobile
/// application ID, or a YouTube video ID.
#[prost(string, optional, tag = "7")]
pub placement: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The display name is URL name for websites, YouTube video name for YouTube
/// videos, and translated mobile app name for mobile apps.
#[prost(string, optional, tag = "8")]
pub display_name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. URL of the group placement, e.g. domain, link to the mobile application in
/// app store, or a YouTube channel URL.
#[prost(string, optional, tag = "9")]
pub group_placement_target_url: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. URL of the placement, e.g. website, link to the mobile application in app
/// store, or a YouTube video URL.
#[prost(string, optional, tag = "10")]
pub target_url: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Type of the placement, e.g. Website, YouTube Video, and Mobile Application.
#[prost(
enumeration = "super::enums::placement_type_enum::PlacementType",
tag = "6"
)]
pub placement_type: i32,
}
// Proto file describing the Detailed Demographic resource.
/// A detailed demographic: a particular interest-based vertical to be targeted
/// to reach users based on long-term life facts.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DetailedDemographic {
/// Output only. The resource name of the detailed demographic.
/// Detailed demographic resource names have the form:
///
/// `customers/{customer_id}/detailedDemographics/{detailed_demographic_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the detailed demographic.
#[prost(int64, tag = "2")]
pub id: i64,
/// Output only. The name of the detailed demographic. E.g."Highest Level of Educational
/// Attainment"
#[prost(string, tag = "3")]
pub name: ::prost::alloc::string::String,
/// Output only. The parent of the detailed_demographic.
#[prost(string, tag = "4")]
pub parent: ::prost::alloc::string::String,
/// Output only. True if the detailed demographic is launched to all channels and locales.
#[prost(bool, tag = "5")]
pub launched_to_all: bool,
/// Output only. Availability information of the detailed demographic.
#[prost(message, repeated, tag = "6")]
pub availabilities: ::prost::alloc::vec::Vec<super::common::CriterionCategoryAvailability>,
}
// Proto file describing the display keyword view resource.
/// A display keyword view.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DisplayKeywordView {
/// Output only. The resource name of the display keyword view.
/// Display Keyword view resource names have the form:
///
/// `customers/{customer_id}/displayKeywordViews/{ad_group_id}~{criterion_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
}
// Proto file describing the DistanceView resource.
/// A distance view with metrics aggregated by the user's distance from an
/// advertiser's location extensions. Each DistanceBucket includes all
/// impressions that fall within its distance and a single impression will
/// contribute to the metrics for all DistanceBuckets that include the user's
/// distance.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DistanceView {
/// Output only. The resource name of the distance view.
/// Distance view resource names have the form:
///
/// `customers/{customer_id}/distanceViews/1~{distance_bucket}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. Grouping of user distance from location extensions.
#[prost(
enumeration = "super::enums::distance_bucket_enum::DistanceBucket",
tag = "2"
)]
pub distance_bucket: i32,
/// Output only. True if the DistanceBucket is using the metric system, false otherwise.
#[prost(bool, optional, tag = "4")]
pub metric_system: ::core::option::Option<bool>,
}
// Proto file describing the Domain Category resource.
/// A category generated automatically by crawling a domain. If a campaign uses
/// the DynamicSearchAdsSetting, then domain categories will be generated for
/// the domain. The categories can be targeted using WebpageConditionInfo.
/// See: <https://support.google.com/google-ads/answer/2471185>
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DomainCategory {
/// Output only. The resource name of the domain category.
/// Domain category resource names have the form:
///
/// `customers/{customer_id}/domainCategories/{campaign_id}~{category_base64}~{language_code}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The campaign this category is recommended for.
#[prost(string, optional, tag = "10")]
pub campaign: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Recommended category for the website domain. e.g. if you have a website
/// about electronics, the categories could be "cameras", "televisions", etc.
#[prost(string, optional, tag = "11")]
pub category: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The language code specifying the language of the website. e.g. "en" for
/// English. The language can be specified in the DynamicSearchAdsSetting
/// required for dynamic search ads. This is the language of the pages from
/// your website that you want Google Ads to find, create ads for,
/// and match searches with.
#[prost(string, optional, tag = "12")]
pub language_code: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The domain for the website. The domain can be specified in the
/// DynamicSearchAdsSetting required for dynamic search ads.
#[prost(string, optional, tag = "13")]
pub domain: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Fraction of pages on your site that this category matches.
#[prost(double, optional, tag = "14")]
pub coverage_fraction: ::core::option::Option<f64>,
/// Output only. The position of this category in the set of categories. Lower numbers
/// indicate a better match for the domain. null indicates not recommended.
#[prost(int64, optional, tag = "15")]
pub category_rank: ::core::option::Option<i64>,
/// Output only. Indicates whether this category has sub-categories.
#[prost(bool, optional, tag = "16")]
pub has_children: ::core::option::Option<bool>,
/// Output only. The recommended cost per click for the category.
#[prost(int64, optional, tag = "17")]
pub recommended_cpc_bid_micros: ::core::option::Option<i64>,
}
// Proto file describing the Dynamic Search Ads Search Term View resource.
/// A dynamic search ads search term view.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DynamicSearchAdsSearchTermView {
/// Output only. The resource name of the dynamic search ads search term view.
/// Dynamic search ads search term view resource names have the form:
///
/// `customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fingerprint}~{headline_fingerprint}~{landing_page_fingerprint}~{page_url_fingerprint}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. Search term
///
/// This field is read-only.
#[prost(string, optional, tag = "9")]
pub search_term: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The dynamically generated headline of the Dynamic Search Ad.
///
/// This field is read-only.
#[prost(string, optional, tag = "10")]
pub headline: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The dynamically selected landing page URL of the impression.
///
/// This field is read-only.
#[prost(string, optional, tag = "11")]
pub landing_page: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The URL of page feed item served for the impression.
///
/// This field is read-only.
#[prost(string, optional, tag = "12")]
pub page_url: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. True if query matches a negative keyword.
///
/// This field is read-only.
#[prost(bool, optional, tag = "13")]
pub has_negative_keyword: ::core::option::Option<bool>,
/// Output only. True if query is added to targeted keywords.
///
/// This field is read-only.
#[prost(bool, optional, tag = "14")]
pub has_matching_keyword: ::core::option::Option<bool>,
/// Output only. True if query matches a negative url.
///
/// This field is read-only.
#[prost(bool, optional, tag = "15")]
pub has_negative_url: ::core::option::Option<bool>,
}
// Proto file describing the expanded landing page view resource.
/// A landing page view with metrics aggregated at the expanded final URL
/// level.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExpandedLandingPageView {
/// Output only. The resource name of the expanded landing page view.
/// Expanded landing page view resource names have the form:
///
/// `customers/{customer_id}/expandedLandingPageViews/{expanded_final_url_fingerprint}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The final URL that clicks are directed to.
#[prost(string, optional, tag = "3")]
pub expanded_final_url: ::core::option::Option<::prost::alloc::string::String>,
}
// Proto file describing the ExtensionFeedItem resource.
/// An extension feed item.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExtensionFeedItem {
/// Immutable. The resource name of the extension feed item.
/// Extension feed item resource names have the form:
///
/// `customers/{customer_id}/extensionFeedItems/{feed_item_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of this feed item. Read-only.
#[prost(int64, optional, tag = "25")]
pub id: ::core::option::Option<i64>,
/// Output only. The extension type of the extension feed item.
/// This field is read-only.
#[prost(
enumeration = "super::enums::extension_type_enum::ExtensionType",
tag = "13"
)]
pub extension_type: i32,
/// Start time in which this feed item is effective and can begin serving. The
/// time is in the customer's time zone.
/// The format is "YYYY-MM-DD HH:MM:SS".
/// Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
#[prost(string, optional, tag = "26")]
pub start_date_time: ::core::option::Option<::prost::alloc::string::String>,
/// End time in which this feed item is no longer effective and will stop
/// serving. The time is in the customer's time zone.
/// The format is "YYYY-MM-DD HH:MM:SS".
/// Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
#[prost(string, optional, tag = "27")]
pub end_date_time: ::core::option::Option<::prost::alloc::string::String>,
/// List of non-overlapping schedules specifying all time intervals
/// for which the feed item may serve. There can be a maximum of 6 schedules
/// per day.
#[prost(message, repeated, tag = "16")]
pub ad_schedules: ::prost::alloc::vec::Vec<super::common::AdScheduleInfo>,
/// The targeted device.
#[prost(
enumeration = "super::enums::feed_item_target_device_enum::FeedItemTargetDevice",
tag = "17"
)]
pub device: i32,
/// The targeted geo target constant.
#[prost(string, optional, tag = "30")]
pub targeted_geo_target_constant: ::core::option::Option<::prost::alloc::string::String>,
/// The targeted keyword.
#[prost(message, optional, tag = "22")]
pub targeted_keyword: ::core::option::Option<super::common::KeywordInfo>,
/// Output only. Status of the feed item.
/// This field is read-only.
#[prost(
enumeration = "super::enums::feed_item_status_enum::FeedItemStatus",
tag = "4"
)]
pub status: i32,
/// Extension type.
#[prost(
oneof = "extension_feed_item::Extension",
tags = "2, 3, 7, 8, 9, 10, 11, 12, 14, 15, 23, 31"
)]
pub extension: ::core::option::Option<extension_feed_item::Extension>,
/// Targeting at either the campaign or ad group level. Feed items that target
/// a campaign or ad group will only serve with that resource.
#[prost(
oneof = "extension_feed_item::ServingResourceTargeting",
tags = "28, 29"
)]
pub serving_resource_targeting:
::core::option::Option<extension_feed_item::ServingResourceTargeting>,
}
/// Nested message and enum types in `ExtensionFeedItem`.
pub mod extension_feed_item {
/// Extension type.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Extension {
/// Sitelink extension.
#[prost(message, tag = "2")]
SitelinkFeedItem(super::super::common::SitelinkFeedItem),
/// Structured snippet extension.
#[prost(message, tag = "3")]
StructuredSnippetFeedItem(super::super::common::StructuredSnippetFeedItem),
/// App extension.
#[prost(message, tag = "7")]
AppFeedItem(super::super::common::AppFeedItem),
/// Call extension.
#[prost(message, tag = "8")]
CallFeedItem(super::super::common::CallFeedItem),
/// Callout extension.
#[prost(message, tag = "9")]
CalloutFeedItem(super::super::common::CalloutFeedItem),
/// Text message extension.
#[prost(message, tag = "10")]
TextMessageFeedItem(super::super::common::TextMessageFeedItem),
/// Price extension.
#[prost(message, tag = "11")]
PriceFeedItem(super::super::common::PriceFeedItem),
/// Promotion extension.
#[prost(message, tag = "12")]
PromotionFeedItem(super::super::common::PromotionFeedItem),
/// Output only. Location extension. Locations are synced from a GMB account into a feed.
/// This field is read-only.
#[prost(message, tag = "14")]
LocationFeedItem(super::super::common::LocationFeedItem),
/// Output only. Affiliate location extension. Feed locations are populated by Google Ads
/// based on a chain ID.
/// This field is read-only.
#[prost(message, tag = "15")]
AffiliateLocationFeedItem(super::super::common::AffiliateLocationFeedItem),
/// Hotel Callout extension.
#[prost(message, tag = "23")]
HotelCalloutFeedItem(super::super::common::HotelCalloutFeedItem),
/// Immutable. Advertiser provided image extension.
#[prost(message, tag = "31")]
ImageFeedItem(super::super::common::ImageFeedItem),
}
/// Targeting at either the campaign or ad group level. Feed items that target
/// a campaign or ad group will only serve with that resource.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum ServingResourceTargeting {
/// The targeted campaign.
#[prost(string, tag = "28")]
TargetedCampaign(::prost::alloc::string::String),
/// The targeted ad group.
#[prost(string, tag = "29")]
TargetedAdGroup(::prost::alloc::string::String),
}
}
/// Represents a set of feed items. The set can be used and shared among certain
/// feed item features. For instance, the set can be referenced within the
/// matching functions of CustomerFeed, CampaignFeed, and AdGroupFeed.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FeedItemSet {
/// Immutable. The resource name of the feed item set.
/// Feed item set resource names have the form:
/// `customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Immutable. The resource name of the feed containing the feed items in the set.
/// Immutable. Required.
#[prost(string, tag = "2")]
pub feed: ::prost::alloc::string::String,
/// Output only. ID of the set.
#[prost(int64, tag = "3")]
pub feed_item_set_id: i64,
/// Name of the set. Must be unique within the account.
#[prost(string, tag = "4")]
pub display_name: ::prost::alloc::string::String,
/// Output only. Status of the feed item set.
/// This field is read-only.
#[prost(
enumeration = "super::enums::feed_item_set_status_enum::FeedItemSetStatus",
tag = "8"
)]
pub status: i32,
/// Represents a filter on locations in a feed item set.
/// Only applicable if the parent Feed of the FeedItemSet is a LOCATION feed.
#[prost(oneof = "feed_item_set::DynamicSetFilter", tags = "5, 6")]
pub dynamic_set_filter: ::core::option::Option<feed_item_set::DynamicSetFilter>,
}
/// Nested message and enum types in `FeedItemSet`.
pub mod feed_item_set {
/// Represents a filter on locations in a feed item set.
/// Only applicable if the parent Feed of the FeedItemSet is a LOCATION feed.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum DynamicSetFilter {
/// Filter for dynamic location set.
/// It is only used for sets of locations.
#[prost(message, tag = "5")]
DynamicLocationSetFilter(super::super::common::DynamicLocationSetFilter),
/// Filter for dynamic affiliate location set.
/// This field doesn't apply generally to feed item sets. It is only used for
/// sets of affiliate locations.
#[prost(message, tag = "6")]
DynamicAffiliateLocationSetFilter(super::super::common::DynamicAffiliateLocationSetFilter),
}
}
// Proto file describing the FeedItemSetLink resource.
/// Represents a link between a FeedItem and a FeedItemSet.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FeedItemSetLink {
/// Immutable. The resource name of the feed item set link.
/// Feed item set link resource names have the form:
/// `customers/{customer_id}/feedItemSetLinks/{feed_id}~{feed_item_set_id}~{feed_item_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Immutable. The linked FeedItem.
#[prost(string, tag = "2")]
pub feed_item: ::prost::alloc::string::String,
/// Immutable. The linked FeedItemSet.
#[prost(string, tag = "3")]
pub feed_item_set: ::prost::alloc::string::String,
}
// Proto file describing the FeedItemTarget resource.
/// A feed item target.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FeedItemTarget {
/// Immutable. The resource name of the feed item target.
/// Feed item target resource names have the form:
/// `customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Immutable. The feed item to which this feed item target belongs.
#[prost(string, optional, tag = "12")]
pub feed_item: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The target type of this feed item target. This field is read-only.
#[prost(
enumeration = "super::enums::feed_item_target_type_enum::FeedItemTargetType",
tag = "3"
)]
pub feed_item_target_type: i32,
/// Output only. The ID of the targeted resource. This field is read-only.
#[prost(int64, optional, tag = "13")]
pub feed_item_target_id: ::core::option::Option<i64>,
/// Output only. Status of the feed item target.
/// This field is read-only.
#[prost(
enumeration = "super::enums::feed_item_target_status_enum::FeedItemTargetStatus",
tag = "11"
)]
pub status: i32,
/// The targeted resource.
#[prost(oneof = "feed_item_target::Target", tags = "14, 15, 7, 16, 9, 10")]
pub target: ::core::option::Option<feed_item_target::Target>,
}
/// Nested message and enum types in `FeedItemTarget`.
pub mod feed_item_target {
/// The targeted resource.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Target {
/// Immutable. The targeted campaign.
#[prost(string, tag = "14")]
Campaign(::prost::alloc::string::String),
/// Immutable. The targeted ad group.
#[prost(string, tag = "15")]
AdGroup(::prost::alloc::string::String),
/// Immutable. The targeted keyword.
#[prost(message, tag = "7")]
Keyword(super::super::common::KeywordInfo),
/// Immutable. The targeted geo target constant resource name.
#[prost(string, tag = "16")]
GeoTargetConstant(::prost::alloc::string::String),
/// Immutable. The targeted device.
#[prost(
enumeration = "super::super::enums::feed_item_target_device_enum::FeedItemTargetDevice",
tag = "9"
)]
Device(i32),
/// Immutable. The targeted schedule.
#[prost(message, tag = "10")]
AdSchedule(super::super::common::AdScheduleInfo),
}
}
// Proto file describing the FeedMapping resource.
/// A feed mapping.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FeedMapping {
/// Immutable. The resource name of the feed mapping.
/// Feed mapping resource names have the form:
///
/// `customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Immutable. The feed of this feed mapping.
#[prost(string, optional, tag = "7")]
pub feed: ::core::option::Option<::prost::alloc::string::String>,
/// Immutable. Feed attributes to field mappings. These mappings are a one-to-many
/// relationship meaning that 1 feed attribute can be used to populate
/// multiple placeholder fields, but 1 placeholder field can only draw
/// data from 1 feed attribute. Ad Customizer is an exception, 1 placeholder
/// field can be mapped to multiple feed attributes. Required.
#[prost(message, repeated, tag = "5")]
pub attribute_field_mappings: ::prost::alloc::vec::Vec<AttributeFieldMapping>,
/// Output only. Status of the feed mapping.
/// This field is read-only.
#[prost(
enumeration = "super::enums::feed_mapping_status_enum::FeedMappingStatus",
tag = "6"
)]
pub status: i32,
/// Feed mapping target. Can be either a placeholder or a criterion. For a
/// given feed, the active FeedMappings must have unique targets. Required.
#[prost(oneof = "feed_mapping::Target", tags = "3, 4")]
pub target: ::core::option::Option<feed_mapping::Target>,
}
/// Nested message and enum types in `FeedMapping`.
pub mod feed_mapping {
/// Feed mapping target. Can be either a placeholder or a criterion. For a
/// given feed, the active FeedMappings must have unique targets. Required.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Target {
/// Immutable. The placeholder type of this mapping (i.e., if the mapping maps feed
/// attributes to placeholder fields).
#[prost(
enumeration = "super::super::enums::placeholder_type_enum::PlaceholderType",
tag = "3"
)]
PlaceholderType(i32),
/// Immutable. The criterion type of this mapping (i.e., if the mapping maps feed
/// attributes to criterion fields).
#[prost(
enumeration = "super::super::enums::feed_mapping_criterion_type_enum::FeedMappingCriterionType",
tag = "4"
)]
CriterionType(i32),
}
}
/// Maps from feed attribute id to a placeholder or criterion field id.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AttributeFieldMapping {
/// Immutable. Feed attribute from which to map.
#[prost(int64, optional, tag = "24")]
pub feed_attribute_id: ::core::option::Option<i64>,
/// Output only. The placeholder field ID. If a placeholder field enum is not published in
/// the current API version, then this field will be populated and the field
/// oneof will be empty.
/// This field is read-only.
#[prost(int64, optional, tag = "25")]
pub field_id: ::core::option::Option<i64>,
/// Placeholder or criterion field to be populated using data from
/// the above feed attribute. Required.
#[prost(
oneof = "attribute_field_mapping::Field",
tags = "3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 26"
)]
pub field: ::core::option::Option<attribute_field_mapping::Field>,
}
/// Nested message and enum types in `AttributeFieldMapping`.
pub mod attribute_field_mapping {
/// Placeholder or criterion field to be populated using data from
/// the above feed attribute. Required.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Field {
/// Immutable. Sitelink Placeholder Fields.
#[prost(
enumeration = "super::super::enums::sitelink_placeholder_field_enum::SitelinkPlaceholderField",
tag = "3"
)]
SitelinkField(i32),
/// Immutable. Call Placeholder Fields.
#[prost(
enumeration = "super::super::enums::call_placeholder_field_enum::CallPlaceholderField",
tag = "4"
)]
CallField(i32),
/// Immutable. App Placeholder Fields.
#[prost(
enumeration = "super::super::enums::app_placeholder_field_enum::AppPlaceholderField",
tag = "5"
)]
AppField(i32),
/// Output only. Location Placeholder Fields. This field is read-only.
#[prost(
enumeration = "super::super::enums::location_placeholder_field_enum::LocationPlaceholderField",
tag = "6"
)]
LocationField(i32),
/// Output only. Affiliate Location Placeholder Fields. This field is read-only.
#[prost(
enumeration = "super::super::enums::affiliate_location_placeholder_field_enum::AffiliateLocationPlaceholderField",
tag = "7"
)]
AffiliateLocationField(i32),
/// Immutable. Callout Placeholder Fields.
#[prost(
enumeration = "super::super::enums::callout_placeholder_field_enum::CalloutPlaceholderField",
tag = "8"
)]
CalloutField(i32),
/// Immutable. Structured Snippet Placeholder Fields.
#[prost(
enumeration = "super::super::enums::structured_snippet_placeholder_field_enum::StructuredSnippetPlaceholderField",
tag = "9"
)]
StructuredSnippetField(i32),
/// Immutable. Message Placeholder Fields.
#[prost(
enumeration = "super::super::enums::message_placeholder_field_enum::MessagePlaceholderField",
tag = "10"
)]
MessageField(i32),
/// Immutable. Price Placeholder Fields.
#[prost(
enumeration = "super::super::enums::price_placeholder_field_enum::PricePlaceholderField",
tag = "11"
)]
PriceField(i32),
/// Immutable. Promotion Placeholder Fields.
#[prost(
enumeration = "super::super::enums::promotion_placeholder_field_enum::PromotionPlaceholderField",
tag = "12"
)]
PromotionField(i32),
/// Immutable. Ad Customizer Placeholder Fields
#[prost(
enumeration = "super::super::enums::ad_customizer_placeholder_field_enum::AdCustomizerPlaceholderField",
tag = "13"
)]
AdCustomizerField(i32),
/// Immutable. Dynamic Search Ad Page Feed Fields.
#[prost(
enumeration = "super::super::enums::dsa_page_feed_criterion_field_enum::DsaPageFeedCriterionField",
tag = "14"
)]
DsaPageFeedField(i32),
/// Immutable. Location Target Fields.
#[prost(
enumeration = "super::super::enums::location_extension_targeting_criterion_field_enum::LocationExtensionTargetingCriterionField",
tag = "15"
)]
LocationExtensionTargetingField(i32),
/// Immutable. Education Placeholder Fields
#[prost(
enumeration = "super::super::enums::education_placeholder_field_enum::EducationPlaceholderField",
tag = "16"
)]
EducationField(i32),
/// Immutable. Flight Placeholder Fields
#[prost(
enumeration = "super::super::enums::flight_placeholder_field_enum::FlightPlaceholderField",
tag = "17"
)]
FlightField(i32),
/// Immutable. Custom Placeholder Fields
#[prost(
enumeration = "super::super::enums::custom_placeholder_field_enum::CustomPlaceholderField",
tag = "18"
)]
CustomField(i32),
/// Immutable. Hotel Placeholder Fields
#[prost(
enumeration = "super::super::enums::hotel_placeholder_field_enum::HotelPlaceholderField",
tag = "19"
)]
HotelField(i32),
/// Immutable. Real Estate Placeholder Fields
#[prost(
enumeration = "super::super::enums::real_estate_placeholder_field_enum::RealEstatePlaceholderField",
tag = "20"
)]
RealEstateField(i32),
/// Immutable. Travel Placeholder Fields
#[prost(
enumeration = "super::super::enums::travel_placeholder_field_enum::TravelPlaceholderField",
tag = "21"
)]
TravelField(i32),
/// Immutable. Local Placeholder Fields
#[prost(
enumeration = "super::super::enums::local_placeholder_field_enum::LocalPlaceholderField",
tag = "22"
)]
LocalField(i32),
/// Immutable. Job Placeholder Fields
#[prost(
enumeration = "super::super::enums::job_placeholder_field_enum::JobPlaceholderField",
tag = "23"
)]
JobField(i32),
/// Immutable. Image Placeholder Fields
#[prost(
enumeration = "super::super::enums::image_placeholder_field_enum::ImagePlaceholderField",
tag = "26"
)]
ImageField(i32),
}
}
// Proto file describing the FeedPlaceholderView resource.
/// A feed placeholder view.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FeedPlaceholderView {
/// Output only. The resource name of the feed placeholder view.
/// Feed placeholder view resource names have the form:
///
/// `customers/{customer_id}/feedPlaceholderViews/{placeholder_type}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The placeholder type of the feed placeholder view.
#[prost(
enumeration = "super::enums::placeholder_type_enum::PlaceholderType",
tag = "2"
)]
pub placeholder_type: i32,
}
// Proto file describing the gender view resource.
/// A gender view.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GenderView {
/// Output only. The resource name of the gender view.
/// Gender view resource names have the form:
///
/// `customers/{customer_id}/genderViews/{ad_group_id}~{criterion_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
}
// Proto file describing the geo target constant resource.
/// A geo target constant.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GeoTargetConstant {
/// Output only. The resource name of the geo target constant.
/// Geo target constant resource names have the form:
///
/// `geoTargetConstants/{geo_target_constant_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the geo target constant.
#[prost(int64, optional, tag = "10")]
pub id: ::core::option::Option<i64>,
/// Output only. Geo target constant English name.
#[prost(string, optional, tag = "11")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The ISO-3166-1 alpha-2 country code that is associated with the target.
#[prost(string, optional, tag = "12")]
pub country_code: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Geo target constant target type.
#[prost(string, optional, tag = "13")]
pub target_type: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Geo target constant status.
#[prost(
enumeration = "super::enums::geo_target_constant_status_enum::GeoTargetConstantStatus",
tag = "7"
)]
pub status: i32,
/// Output only. The fully qualified English name, consisting of the target's name and that
/// of its parent and country.
#[prost(string, optional, tag = "14")]
pub canonical_name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The resource name of the parent geo target constant.
/// Geo target constant resource names have the form:
///
/// `geoTargetConstants/{parent_geo_target_constant_id}`
#[prost(string, optional, tag = "9")]
pub parent_geo_target: ::core::option::Option<::prost::alloc::string::String>,
}
// Proto file describing the geographic view resource.
/// A geographic view.
///
/// Geographic View includes all metrics aggregated at the country level,
/// one row per country. It reports metrics at either actual physical location of
/// the user or an area of interest. If other segment fields are used, you may
/// get more than one row per country.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GeographicView {
/// Output only. The resource name of the geographic view.
/// Geographic view resource names have the form:
///
/// `customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. Type of the geo targeting of the campaign.
#[prost(
enumeration = "super::enums::geo_targeting_type_enum::GeoTargetingType",
tag = "3"
)]
pub location_type: i32,
/// Output only. Criterion Id for the country.
#[prost(int64, optional, tag = "5")]
pub country_criterion_id: ::core::option::Option<i64>,
}
// Proto file describing the Google Ads Field resource.
/// A field or resource (artifact) used by GoogleAdsService.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GoogleAdsField {
/// Output only. The resource name of the artifact.
/// Artifact resource names have the form:
///
/// `googleAdsFields/{name}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The name of the artifact.
#[prost(string, optional, tag = "21")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The category of the artifact.
#[prost(
enumeration = "super::enums::google_ads_field_category_enum::GoogleAdsFieldCategory",
tag = "3"
)]
pub category: i32,
/// Output only. Whether the artifact can be used in a SELECT clause in search
/// queries.
#[prost(bool, optional, tag = "22")]
pub selectable: ::core::option::Option<bool>,
/// Output only. Whether the artifact can be used in a WHERE clause in search
/// queries.
#[prost(bool, optional, tag = "23")]
pub filterable: ::core::option::Option<bool>,
/// Output only. Whether the artifact can be used in a ORDER BY clause in search
/// queries.
#[prost(bool, optional, tag = "24")]
pub sortable: ::core::option::Option<bool>,
/// Output only. The names of all resources, segments, and metrics that are selectable with
/// the described artifact.
#[prost(string, repeated, tag = "25")]
pub selectable_with: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Output only. The names of all resources that are selectable with the described
/// artifact. Fields from these resources do not segment metrics when included
/// in search queries.
///
/// This field is only set for artifacts whose category is RESOURCE.
#[prost(string, repeated, tag = "26")]
pub attribute_resources: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Output only. At and beyond version V1 this field lists the names of all metrics that are
/// selectable with the described artifact when it is used in the FROM clause.
/// It is only set for artifacts whose category is RESOURCE.
///
/// Before version V1 this field lists the names of all metrics that are
/// selectable with the described artifact. It is only set for artifacts whose
/// category is either RESOURCE or SEGMENT
#[prost(string, repeated, tag = "27")]
pub metrics: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Output only. At and beyond version V1 this field lists the names of all artifacts,
/// whether a segment or another resource, that segment metrics when included
/// in search queries and when the described artifact is used in the FROM
/// clause. It is only set for artifacts whose category is RESOURCE.
///
/// Before version V1 this field lists the names of all artifacts, whether a
/// segment or another resource, that segment metrics when included in search
/// queries. It is only set for artifacts of category RESOURCE, SEGMENT or
/// METRIC.
#[prost(string, repeated, tag = "28")]
pub segments: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Output only. Values the artifact can assume if it is a field of type ENUM.
///
/// This field is only set for artifacts of category SEGMENT or ATTRIBUTE.
#[prost(string, repeated, tag = "29")]
pub enum_values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Output only. This field determines the operators that can be used with the artifact
/// in WHERE clauses.
#[prost(
enumeration = "super::enums::google_ads_field_data_type_enum::GoogleAdsFieldDataType",
tag = "12"
)]
pub data_type: i32,
/// Output only. The URL of proto describing the artifact's data type.
#[prost(string, optional, tag = "30")]
pub type_url: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Whether the field artifact is repeated.
#[prost(bool, optional, tag = "31")]
pub is_repeated: ::core::option::Option<bool>,
}
// Proto file describing the group placement view resource.
/// A group placement view.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GroupPlacementView {
/// Output only. The resource name of the group placement view.
/// Group placement view resource names have the form:
///
/// `customers/{customer_id}/groupPlacementViews/{ad_group_id}~{base64_placement}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The automatic placement string at group level, e. g. web domain, mobile
/// app ID, or a YouTube channel ID.
#[prost(string, optional, tag = "6")]
pub placement: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Domain name for websites and YouTube channel name for YouTube channels.
#[prost(string, optional, tag = "7")]
pub display_name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. URL of the group placement, e.g. domain, link to the mobile application in
/// app store, or a YouTube channel URL.
#[prost(string, optional, tag = "8")]
pub target_url: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Type of the placement, e.g. Website, YouTube Channel, Mobile Application.
#[prost(
enumeration = "super::enums::placement_type_enum::PlacementType",
tag = "5"
)]
pub placement_type: i32,
}
// Proto file describing the hotel group view resource.
/// A hotel group view.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HotelGroupView {
/// Output only. The resource name of the hotel group view.
/// Hotel Group view resource names have the form:
///
/// `customers/{customer_id}/hotelGroupViews/{ad_group_id}~{criterion_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
}
// Proto file describing the hotel performance view resource.
/// A hotel performance view.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HotelPerformanceView {
/// Output only. The resource name of the hotel performance view.
/// Hotel performance view resource names have the form:
///
/// `customers/{customer_id}/hotelPerformanceView`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
}
// Proto file describing the income range view resource.
/// An income range view.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IncomeRangeView {
/// Output only. The resource name of the income range view.
/// Income range view resource names have the form:
///
/// `customers/{customer_id}/incomeRangeViews/{ad_group_id}~{criterion_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
}
// Proto file describing the Invoice resource.
/// An invoice. All invoice information is snapshotted to match the PDF invoice.
/// For invoices older than the launch of InvoiceService, the snapshotted
/// information may not match the PDF invoice.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Invoice {
/// Output only. The resource name of the invoice. Multiple customers can share a given
/// invoice, so multiple resource names may point to the same invoice.
/// Invoice resource names have the form:
///
/// `customers/{customer_id}/invoices/{invoice_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the invoice. It appears on the invoice PDF as "Invoice number".
#[prost(string, optional, tag = "25")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The type of invoice.
#[prost(
enumeration = "super::enums::invoice_type_enum::InvoiceType",
tag = "3"
)]
pub r#type: i32,
/// Output only. The resource name of this invoice’s billing setup.
///
/// `customers/{customer_id}/billingSetups/{billing_setup_id}`
#[prost(string, optional, tag = "26")]
pub billing_setup: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. A 16 digit ID used to identify the payments account associated with the
/// billing setup, e.g. "1234-5678-9012-3456". It appears on the invoice PDF as
/// "Billing Account Number".
#[prost(string, optional, tag = "27")]
pub payments_account_id: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. A 12 digit ID used to identify the payments profile associated with the
/// billing setup, e.g. "1234-5678-9012". It appears on the invoice PDF as
/// "Billing ID".
#[prost(string, optional, tag = "28")]
pub payments_profile_id: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The issue date in yyyy-mm-dd format. It appears on the invoice PDF as
/// either "Issue date" or "Invoice date".
#[prost(string, optional, tag = "29")]
pub issue_date: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The due date in yyyy-mm-dd format.
#[prost(string, optional, tag = "30")]
pub due_date: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The service period date range of this invoice. The end date is inclusive.
#[prost(message, optional, tag = "9")]
pub service_date_range: ::core::option::Option<super::common::DateRange>,
/// Output only. The currency code. All costs are returned in this currency. A subset of the
/// currency codes derived from the ISO 4217 standard is supported.
#[prost(string, optional, tag = "31")]
pub currency_code: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The pretax subtotal amount of invoice level adjustments, in micros.
#[prost(int64, tag = "19")]
pub adjustments_subtotal_amount_micros: i64,
/// Output only. The sum of taxes on the invoice level adjustments, in micros.
#[prost(int64, tag = "20")]
pub adjustments_tax_amount_micros: i64,
/// Output only. The total amount of invoice level adjustments, in micros.
#[prost(int64, tag = "21")]
pub adjustments_total_amount_micros: i64,
/// Output only. The pretax subtotal amount of invoice level regulatory costs, in micros.
#[prost(int64, tag = "22")]
pub regulatory_costs_subtotal_amount_micros: i64,
/// Output only. The sum of taxes on the invoice level regulatory costs, in micros.
#[prost(int64, tag = "23")]
pub regulatory_costs_tax_amount_micros: i64,
/// Output only. The total amount of invoice level regulatory costs, in micros.
#[prost(int64, tag = "24")]
pub regulatory_costs_total_amount_micros: i64,
/// Output only. The pretax subtotal amount, in micros. This equals the
/// sum of the AccountBudgetSummary subtotal amounts,
/// Invoice.adjustments_subtotal_amount_micros, and
/// Invoice.regulatory_costs_subtotal_amount_micros.
/// Starting with v6, the Invoice.regulatory_costs_subtotal_amount_micros is no
/// longer included.
#[prost(int64, optional, tag = "33")]
pub subtotal_amount_micros: ::core::option::Option<i64>,
/// Output only. The sum of all taxes on the invoice, in micros. This equals the sum of the
/// AccountBudgetSummary tax amounts, plus taxes not associated with a specific
/// account budget.
#[prost(int64, optional, tag = "34")]
pub tax_amount_micros: ::core::option::Option<i64>,
/// Output only. The total amount, in micros. This equals the sum of
/// Invoice.subtotal_amount_micros and Invoice.tax_amount_micros.
/// Starting with v6, Invoice.regulatory_costs_subtotal_amount_micros is
/// also added as it is no longer already included in
/// Invoice.tax_amount_micros.
#[prost(int64, optional, tag = "35")]
pub total_amount_micros: ::core::option::Option<i64>,
/// Output only. The resource name of the original invoice corrected, wrote off, or canceled
/// by this invoice, if applicable. If `corrected_invoice` is set,
/// `replaced_invoices` will not be set.
/// Invoice resource names have the form:
///
/// `customers/{customer_id}/invoices/{invoice_id}`
#[prost(string, optional, tag = "36")]
pub corrected_invoice: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The resource name of the original invoice(s) being rebilled or replaced by
/// this invoice, if applicable. There might be multiple replaced invoices due
/// to invoice consolidation. The replaced invoices may not belong to the same
/// payments account. If `replaced_invoices` is set, `corrected_invoice` will
/// not be set.
/// Invoice resource names have the form:
///
/// `customers/{customer_id}/invoices/{invoice_id}`
#[prost(string, repeated, tag = "37")]
pub replaced_invoices: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Output only. The URL to a PDF copy of the invoice. Users need to pass in their OAuth
/// token to request the PDF with this URL.
#[prost(string, optional, tag = "38")]
pub pdf_url: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The list of summarized account budget information associated with this
/// invoice.
#[prost(message, repeated, tag = "18")]
pub account_budget_summaries: ::prost::alloc::vec::Vec<invoice::AccountBudgetSummary>,
}
/// Nested message and enum types in `Invoice`.
pub mod invoice {
/// Represents a summarized account budget billable cost.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccountBudgetSummary {
/// Output only. The resource name of the customer associated with this account budget.
/// This contains the customer ID, which appears on the invoice PDF as
/// "Account ID".
/// Customer resource names have the form:
///
/// `customers/{customer_id}`
#[prost(string, optional, tag = "10")]
pub customer: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The descriptive name of the account budget’s customer. It appears on the
/// invoice PDF as "Account".
#[prost(string, optional, tag = "11")]
pub customer_descriptive_name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The resource name of the account budget associated with this summarized
/// billable cost.
/// AccountBudget resource names have the form:
///
/// `customers/{customer_id}/accountBudgets/{account_budget_id}`
#[prost(string, optional, tag = "12")]
pub account_budget: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The name of the account budget. It appears on the invoice PDF as "Account
/// budget".
#[prost(string, optional, tag = "13")]
pub account_budget_name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The purchase order number of the account budget. It appears on the
/// invoice PDF as "Purchase order".
#[prost(string, optional, tag = "14")]
pub purchase_order_number: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The pretax subtotal amount attributable to this budget during the service
/// period, in micros.
#[prost(int64, optional, tag = "15")]
pub subtotal_amount_micros: ::core::option::Option<i64>,
/// Output only. The tax amount attributable to this budget during the service period, in
/// micros.
#[prost(int64, optional, tag = "16")]
pub tax_amount_micros: ::core::option::Option<i64>,
/// Output only. The total amount attributable to this budget during the service period,
/// in micros. This equals the sum of the account budget subtotal amount and
/// the account budget tax amount.
#[prost(int64, optional, tag = "17")]
pub total_amount_micros: ::core::option::Option<i64>,
/// Output only. The billable activity date range of the account budget, within the
/// service date range of this invoice. The end date is inclusive. This can
/// be different from the account budget's start and end time.
#[prost(message, optional, tag = "9")]
pub billable_activity_date_range: ::core::option::Option<super::super::common::DateRange>,
}
}
// Proto file describing the keyword plan resource.
/// A Keyword Planner plan.
/// Max number of saved keyword plans: 10000.
/// It's possible to remove plans if limit is reached.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KeywordPlan {
/// Immutable. The resource name of the Keyword Planner plan.
/// KeywordPlan resource names have the form:
///
/// `customers/{customer_id}/keywordPlans/{kp_plan_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the keyword plan.
#[prost(int64, optional, tag = "5")]
pub id: ::core::option::Option<i64>,
/// The name of the keyword plan.
///
/// This field is required and should not be empty when creating new keyword
/// plans.
#[prost(string, optional, tag = "6")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The date period used for forecasting the plan.
#[prost(message, optional, tag = "4")]
pub forecast_period: ::core::option::Option<KeywordPlanForecastPeriod>,
}
/// The forecasting period associated with the keyword plan.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KeywordPlanForecastPeriod {
/// Required. The date used for forecasting the Plan.
#[prost(oneof = "keyword_plan_forecast_period::Interval", tags = "1, 2")]
pub interval: ::core::option::Option<keyword_plan_forecast_period::Interval>,
}
/// Nested message and enum types in `KeywordPlanForecastPeriod`.
pub mod keyword_plan_forecast_period {
/// Required. The date used for forecasting the Plan.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Interval {
/// A future date range relative to the current date used for forecasting.
#[prost(
enumeration = "super::super::enums::keyword_plan_forecast_interval_enum::KeywordPlanForecastInterval",
tag = "1"
)]
DateInterval(i32),
/// The custom date range used for forecasting.
/// The start and end dates must be in the future. Otherwise, an error will
/// be returned when the forecasting action is performed.
/// The start and end dates are inclusive.
#[prost(message, tag = "2")]
DateRange(super::super::common::DateRange),
}
}
// Proto file describing the keyword plan ad group resource.
/// A Keyword Planner ad group.
/// Max number of keyword plan ad groups per plan: 200.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KeywordPlanAdGroup {
/// Immutable. The resource name of the Keyword Planner ad group.
/// KeywordPlanAdGroup resource names have the form:
///
/// `customers/{customer_id}/keywordPlanAdGroups/{kp_ad_group_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// The keyword plan campaign to which this ad group belongs.
#[prost(string, optional, tag = "6")]
pub keyword_plan_campaign: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The ID of the keyword plan ad group.
#[prost(int64, optional, tag = "7")]
pub id: ::core::option::Option<i64>,
/// The name of the keyword plan ad group.
///
/// This field is required and should not be empty when creating keyword plan
/// ad group.
#[prost(string, optional, tag = "8")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// A default ad group max cpc bid in micros in account currency for all
/// biddable keywords under the keyword plan ad group.
/// If not set, will inherit from parent campaign.
#[prost(int64, optional, tag = "9")]
pub cpc_bid_micros: ::core::option::Option<i64>,
}
// Proto file describing the keyword plan ad group keyword resource.
/// A Keyword Plan ad group keyword.
/// Max number of keyword plan keywords per plan: 10000.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KeywordPlanAdGroupKeyword {
/// Immutable. The resource name of the Keyword Plan ad group keyword.
/// KeywordPlanAdGroupKeyword resource names have the form:
///
/// `customers/{customer_id}/keywordPlanAdGroupKeywords/{kp_ad_group_keyword_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// The Keyword Plan ad group to which this keyword belongs.
#[prost(string, optional, tag = "8")]
pub keyword_plan_ad_group: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The ID of the Keyword Plan keyword.
#[prost(int64, optional, tag = "9")]
pub id: ::core::option::Option<i64>,
/// The keyword text.
#[prost(string, optional, tag = "10")]
pub text: ::core::option::Option<::prost::alloc::string::String>,
/// The keyword match type.
#[prost(
enumeration = "super::enums::keyword_match_type_enum::KeywordMatchType",
tag = "5"
)]
pub match_type: i32,
/// A keyword level max cpc bid in micros (e.g. $1 = 1mm). The currency is the
/// same as the account currency code. This will override any CPC bid set at
/// the keyword plan ad group level.
/// Not applicable for negative keywords. (negative = true)
/// This field is Optional.
#[prost(int64, optional, tag = "11")]
pub cpc_bid_micros: ::core::option::Option<i64>,
/// Immutable. If true, the keyword is negative.
#[prost(bool, optional, tag = "12")]
pub negative: ::core::option::Option<bool>,
}
// Proto file describing the keyword plan campaign resource.
/// A Keyword Plan campaign.
/// Max number of keyword plan campaigns per plan allowed: 1.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KeywordPlanCampaign {
/// Immutable. The resource name of the Keyword Plan campaign.
/// KeywordPlanCampaign resource names have the form:
///
/// `customers/{customer_id}/keywordPlanCampaigns/{kp_campaign_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// The keyword plan this campaign belongs to.
#[prost(string, optional, tag = "9")]
pub keyword_plan: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The ID of the Keyword Plan campaign.
#[prost(int64, optional, tag = "10")]
pub id: ::core::option::Option<i64>,
/// The name of the Keyword Plan campaign.
///
/// This field is required and should not be empty when creating Keyword Plan
/// campaigns.
#[prost(string, optional, tag = "11")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The languages targeted for the Keyword Plan campaign.
/// Max allowed: 1.
#[prost(string, repeated, tag = "12")]
pub language_constants: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Targeting network.
///
/// This field is required and should not be empty when creating Keyword Plan
/// campaigns.
#[prost(
enumeration = "super::enums::keyword_plan_network_enum::KeywordPlanNetwork",
tag = "6"
)]
pub keyword_plan_network: i32,
/// A default max cpc bid in micros, and in the account currency, for all ad
/// groups under the campaign.
///
/// This field is required and should not be empty when creating Keyword Plan
/// campaigns.
#[prost(int64, optional, tag = "13")]
pub cpc_bid_micros: ::core::option::Option<i64>,
/// The geo targets.
/// Max number allowed: 20.
#[prost(message, repeated, tag = "8")]
pub geo_targets: ::prost::alloc::vec::Vec<KeywordPlanGeoTarget>,
}
/// A geo target.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KeywordPlanGeoTarget {
/// Required. The resource name of the geo target.
#[prost(string, optional, tag = "2")]
pub geo_target_constant: ::core::option::Option<::prost::alloc::string::String>,
}
// Proto file describing the keyword plan negative keyword resource.
/// A Keyword Plan Campaign keyword.
/// Only negative keywords are supported for Campaign Keyword.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KeywordPlanCampaignKeyword {
/// Immutable. The resource name of the Keyword Plan Campaign keyword.
/// KeywordPlanCampaignKeyword resource names have the form:
///
/// `customers/{customer_id}/keywordPlanCampaignKeywords/{kp_campaign_keyword_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// The Keyword Plan campaign to which this negative keyword belongs.
#[prost(string, optional, tag = "8")]
pub keyword_plan_campaign: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The ID of the Keyword Plan negative keyword.
#[prost(int64, optional, tag = "9")]
pub id: ::core::option::Option<i64>,
/// The keyword text.
#[prost(string, optional, tag = "10")]
pub text: ::core::option::Option<::prost::alloc::string::String>,
/// The keyword match type.
#[prost(
enumeration = "super::enums::keyword_match_type_enum::KeywordMatchType",
tag = "5"
)]
pub match_type: i32,
/// Immutable. If true, the keyword is negative.
/// Must be set to true. Only negative campaign keywords are supported.
#[prost(bool, optional, tag = "11")]
pub negative: ::core::option::Option<bool>,
}
// Proto file describing the Smart Campaign keyword theme constant resource.
/// A Smart Campaign keyword theme constant.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KeywordThemeConstant {
/// Output only. The resource name of the keyword theme constant.
/// Keyword theme constant resource names have the form:
///
/// `keywordThemeConstants/{keyword_theme_id}~{sub_keyword_theme_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ISO-3166 Alpha-2 country code of the constant, eg. "US".
/// To display and query matching purpose, the keyword theme needs to be
/// localized.
#[prost(string, optional, tag = "2")]
pub country_code: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The ISO-639-1 language code with 2 letters of the constant, eg. "en".
/// To display and query matching purpose, the keyword theme needs to be
/// localized.
#[prost(string, optional, tag = "3")]
pub language_code: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The display name of the keyword theme or sub keyword theme.
#[prost(string, optional, tag = "4")]
pub display_name: ::core::option::Option<::prost::alloc::string::String>,
}
// Proto file describing the keyword view resource.
/// A keyword view.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KeywordView {
/// Output only. The resource name of the keyword view.
/// Keyword view resource names have the form:
///
/// `customers/{customer_id}/keywordViews/{ad_group_id}~{criterion_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
}
/// A label.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Label {
/// Immutable. Name of the resource.
/// Label resource names have the form:
/// `customers/{customer_id}/labels/{label_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. Id of the label. Read only.
#[prost(int64, optional, tag = "6")]
pub id: ::core::option::Option<i64>,
/// The name of the label.
///
/// This field is required and should not be empty when creating a new label.
///
/// The length of this string should be between 1 and 80, inclusive.
#[prost(string, optional, tag = "7")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Status of the label. Read only.
#[prost(
enumeration = "super::enums::label_status_enum::LabelStatus",
tag = "4"
)]
pub status: i32,
/// A type of label displaying text on a colored background.
#[prost(message, optional, tag = "5")]
pub text_label: ::core::option::Option<super::common::TextLabel>,
}
// Proto file describing the landing page view resource.
/// A landing page view with metrics aggregated at the unexpanded final URL
/// level.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LandingPageView {
/// Output only. The resource name of the landing page view.
/// Landing page view resource names have the form:
///
/// `customers/{customer_id}/landingPageViews/{unexpanded_final_url_fingerprint}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The advertiser-specified final URL.
#[prost(string, optional, tag = "3")]
pub unexpanded_final_url: ::core::option::Option<::prost::alloc::string::String>,
}
// Proto file describing the language constant resource.
/// A language.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LanguageConstant {
/// Output only. The resource name of the language constant.
/// Language constant resource names have the form:
///
/// `languageConstants/{criterion_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the language constant.
#[prost(int64, optional, tag = "6")]
pub id: ::core::option::Option<i64>,
/// Output only. The language code, e.g. "en_US", "en_AU", "es", "fr", etc.
#[prost(string, optional, tag = "7")]
pub code: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The full name of the language in English, e.g., "English (US)", "Spanish",
/// etc.
#[prost(string, optional, tag = "8")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Whether the language is targetable.
#[prost(bool, optional, tag = "9")]
pub targetable: ::core::option::Option<bool>,
}
// Proto file describing the Life Event resource.
/// A life event: a particular interest-based vertical to be targeted to reach
/// users when they are in the midst of important life milestones.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LifeEvent {
/// Output only. The resource name of the life event.
/// Life event resource names have the form:
///
/// `customers/{customer_id}/lifeEvents/{life_event_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the life event.
#[prost(int64, tag = "2")]
pub id: i64,
/// Output only. The name of the life event. E.g.,"Recently Moved"
#[prost(string, tag = "3")]
pub name: ::prost::alloc::string::String,
/// Output only. The parent of the life_event.
#[prost(string, tag = "4")]
pub parent: ::prost::alloc::string::String,
/// Output only. True if the life event is launched to all channels and locales.
#[prost(bool, tag = "5")]
pub launched_to_all: bool,
/// Output only. Availability information of the life event.
#[prost(message, repeated, tag = "6")]
pub availabilities: ::prost::alloc::vec::Vec<super::common::CriterionCategoryAvailability>,
}
// Proto file describing the location view resource.
/// A location view summarizes the performance of campaigns by
/// Location criteria.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocationView {
/// Output only. The resource name of the location view.
/// Location view resource names have the form:
///
/// `customers/{customer_id}/locationViews/{campaign_id}~{criterion_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
}
// Proto file describing the Managed Placement view resource.
/// A managed placement view.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ManagedPlacementView {
/// Output only. The resource name of the Managed Placement view.
/// Managed placement view resource names have the form:
///
/// `customers/{customer_id}/managedPlacementViews/{ad_group_id}~{criterion_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
}
// Proto file describing the media file resource.
/// A media file.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MediaFile {
/// Immutable. The resource name of the media file.
/// Media file resource names have the form:
///
/// `customers/{customer_id}/mediaFiles/{media_file_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the media file.
#[prost(int64, optional, tag = "12")]
pub id: ::core::option::Option<i64>,
/// Immutable. Type of the media file.
#[prost(enumeration = "super::enums::media_type_enum::MediaType", tag = "5")]
pub r#type: i32,
/// Output only. The mime type of the media file.
#[prost(enumeration = "super::enums::mime_type_enum::MimeType", tag = "6")]
pub mime_type: i32,
/// Immutable. The URL of where the original media file was downloaded from (or a file
/// name). Only used for media of type AUDIO and IMAGE.
#[prost(string, optional, tag = "13")]
pub source_url: ::core::option::Option<::prost::alloc::string::String>,
/// Immutable. The name of the media file. The name can be used by clients to help
/// identify previously uploaded media.
#[prost(string, optional, tag = "14")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The size of the media file in bytes.
#[prost(int64, optional, tag = "15")]
pub file_size: ::core::option::Option<i64>,
/// The specific type of the media file.
#[prost(oneof = "media_file::Mediatype", tags = "3, 4, 10, 11")]
pub mediatype: ::core::option::Option<media_file::Mediatype>,
}
/// Nested message and enum types in `MediaFile`.
pub mod media_file {
/// The specific type of the media file.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Mediatype {
/// Immutable. Encapsulates an Image.
#[prost(message, tag = "3")]
Image(super::MediaImage),
/// Immutable. A ZIP archive media the content of which contains HTML5 assets.
#[prost(message, tag = "4")]
MediaBundle(super::MediaBundle),
/// Output only. Encapsulates an Audio.
#[prost(message, tag = "10")]
Audio(super::MediaAudio),
/// Immutable. Encapsulates a Video.
#[prost(message, tag = "11")]
Video(super::MediaVideo),
}
}
/// Encapsulates an Image.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MediaImage {
/// Immutable. Raw image data.
#[prost(bytes = "vec", optional, tag = "4")]
pub data: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
/// Output only. The url to the full size version of the image.
#[prost(string, optional, tag = "2")]
pub full_size_image_url: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The url to the preview size version of the image.
#[prost(string, optional, tag = "3")]
pub preview_size_image_url: ::core::option::Option<::prost::alloc::string::String>,
}
/// Represents a ZIP archive media the content of which contains HTML5 assets.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MediaBundle {
/// Immutable. Raw zipped data.
#[prost(bytes = "vec", optional, tag = "3")]
pub data: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
/// Output only. The url to access the uploaded zipped data.
/// E.g. <https://tpc.googlesyndication.com/simgad/123>
/// This field is read-only.
#[prost(string, optional, tag = "2")]
pub url: ::core::option::Option<::prost::alloc::string::String>,
}
/// Encapsulates an Audio.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MediaAudio {
/// Output only. The duration of the Audio in milliseconds.
#[prost(int64, optional, tag = "2")]
pub ad_duration_millis: ::core::option::Option<i64>,
}
/// Encapsulates a Video.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MediaVideo {
/// Output only. The duration of the Video in milliseconds.
#[prost(int64, optional, tag = "5")]
pub ad_duration_millis: ::core::option::Option<i64>,
/// Immutable. The YouTube video ID (as seen in YouTube URLs). Adding prefix
/// "<https://www.youtube.com/watch?v="> to this ID will get the YouTube
/// streaming URL for this video.
#[prost(string, optional, tag = "6")]
pub youtube_video_id: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The Advertising Digital Identification code for this video, as defined by
/// the American Association of Advertising Agencies, used mainly for
/// television commercials.
#[prost(string, optional, tag = "7")]
pub advertising_id_code: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The Industry Standard Commercial Identifier code for this video, used
/// mainly for television commercials.
#[prost(string, optional, tag = "8")]
pub isci_code: ::core::option::Option<::prost::alloc::string::String>,
}
// Proto file describing the Merchant Center link resource.
/// A data sharing connection, proposed or in use,
/// between a Google Ads Customer and a Merchant Center account.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MerchantCenterLink {
/// Immutable. The resource name of the merchant center link.
/// Merchant center link resource names have the form:
///
/// `customers/{customer_id}/merchantCenterLinks/{merchant_center_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the Merchant Center account.
/// This field is readonly.
#[prost(int64, optional, tag = "6")]
pub id: ::core::option::Option<i64>,
/// Output only. The name of the Merchant Center account.
/// This field is readonly.
#[prost(string, optional, tag = "7")]
pub merchant_center_account_name: ::core::option::Option<::prost::alloc::string::String>,
/// The status of the link.
#[prost(
enumeration = "super::enums::merchant_center_link_status_enum::MerchantCenterLinkStatus",
tag = "5"
)]
pub status: i32,
}
// Proto file describing the Mobile App Category Constant resource.
/// A mobile application category constant.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MobileAppCategoryConstant {
/// Output only. The resource name of the mobile app category constant.
/// Mobile app category constant resource names have the form:
///
/// `mobileAppCategoryConstants/{mobile_app_category_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the mobile app category constant.
#[prost(int32, optional, tag = "4")]
pub id: ::core::option::Option<i32>,
/// Output only. Mobile app category name.
#[prost(string, optional, tag = "5")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
}
// Proto file describing the mobile device constant resource.
/// A mobile device constant.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MobileDeviceConstant {
/// Output only. The resource name of the mobile device constant.
/// Mobile device constant resource names have the form:
///
/// `mobileDeviceConstants/{criterion_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the mobile device constant.
#[prost(int64, optional, tag = "7")]
pub id: ::core::option::Option<i64>,
/// Output only. The name of the mobile device.
#[prost(string, optional, tag = "8")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The manufacturer of the mobile device.
#[prost(string, optional, tag = "9")]
pub manufacturer_name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The operating system of the mobile device.
#[prost(string, optional, tag = "10")]
pub operating_system_name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The type of mobile device.
#[prost(
enumeration = "super::enums::mobile_device_type_enum::MobileDeviceType",
tag = "6"
)]
pub r#type: i32,
}
// Proto file describing the offline user data job resource.
/// A job containing offline user data of store visitors, or user list members
/// that will be processed asynchronously. The uploaded data isn't readable and
/// the processing results of the job can only be read using
/// OfflineUserDataJobService.GetOfflineUserDataJob.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OfflineUserDataJob {
/// Immutable. The resource name of the offline user data job.
/// Offline user data job resource names have the form:
///
/// `customers/{customer_id}/offlineUserDataJobs/{offline_user_data_job_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. ID of this offline user data job.
#[prost(int64, optional, tag = "9")]
pub id: ::core::option::Option<i64>,
/// Immutable. User specified job ID.
#[prost(int64, optional, tag = "10")]
pub external_id: ::core::option::Option<i64>,
/// Immutable. Type of the job.
#[prost(
enumeration = "super::enums::offline_user_data_job_type_enum::OfflineUserDataJobType",
tag = "4"
)]
pub r#type: i32,
/// Output only. Status of the job.
#[prost(
enumeration = "super::enums::offline_user_data_job_status_enum::OfflineUserDataJobStatus",
tag = "5"
)]
pub status: i32,
/// Output only. Reason for the processing failure, if status is FAILED.
#[prost(
enumeration = "super::enums::offline_user_data_job_failure_reason_enum::OfflineUserDataJobFailureReason",
tag = "6"
)]
pub failure_reason: i32,
/// Metadata of the job.
#[prost(oneof = "offline_user_data_job::Metadata", tags = "7, 8")]
pub metadata: ::core::option::Option<offline_user_data_job::Metadata>,
}
/// Nested message and enum types in `OfflineUserDataJob`.
pub mod offline_user_data_job {
/// Metadata of the job.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Metadata {
/// Immutable. Metadata for data updates to a CRM-based user list.
#[prost(message, tag = "7")]
CustomerMatchUserListMetadata(super::super::common::CustomerMatchUserListMetadata),
/// Immutable. Metadata for store sales data update.
#[prost(message, tag = "8")]
StoreSalesMetadata(super::super::common::StoreSalesMetadata),
}
}
// Proto file describing the operating system version constant resource.
/// A mobile operating system version or a range of versions, depending on
/// `operator_type`. List of available mobile platforms at
/// <https://developers.google.com/google-ads/api/reference/data/codes-formats#mobile-platforms>
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OperatingSystemVersionConstant {
/// Output only. The resource name of the operating system version constant.
/// Operating system version constant resource names have the form:
///
/// `operatingSystemVersionConstants/{criterion_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the operating system version.
#[prost(int64, optional, tag = "7")]
pub id: ::core::option::Option<i64>,
/// Output only. Name of the operating system.
#[prost(string, optional, tag = "8")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The OS Major Version number.
#[prost(int32, optional, tag = "9")]
pub os_major_version: ::core::option::Option<i32>,
/// Output only. The OS Minor Version number.
#[prost(int32, optional, tag = "10")]
pub os_minor_version: ::core::option::Option<i32>,
/// Output only. Determines whether this constant represents a single version or a range of
/// versions.
#[prost(
enumeration = "super::enums::operating_system_version_operator_type_enum::OperatingSystemVersionOperatorType",
tag = "6"
)]
pub operator_type: i32,
}
// Proto file describing the PaidOrganicSearchTermView resource.
/// A paid organic search term view providing a view of search stats across
/// ads and organic listings aggregated by search term at the ad group level.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PaidOrganicSearchTermView {
/// Output only. The resource name of the search term view.
/// Search term view resource names have the form:
///
/// `customers/{customer_id}/paidOrganicSearchTermViews/{campaign_id}~
/// {ad_group_id}~{URL-base64 search term}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The search term.
#[prost(string, optional, tag = "3")]
pub search_term: ::core::option::Option<::prost::alloc::string::String>,
}
// Proto file describing the parental status view resource.
/// A parental status view.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ParentalStatusView {
/// Output only. The resource name of the parental status view.
/// Parental Status view resource names have the form:
///
/// `customers/{customer_id}/parentalStatusViews/{ad_group_id}~{criterion_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
}
// Proto file describing the PaymentsAccount resource.
/// A payments account, which can be used to set up billing for an Ads customer.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PaymentsAccount {
/// Output only. The resource name of the payments account.
/// PaymentsAccount resource names have the form:
///
/// `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. A 16 digit ID used to identify a payments account.
#[prost(string, optional, tag = "8")]
pub payments_account_id: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The name of the payments account.
#[prost(string, optional, tag = "9")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The currency code of the payments account.
/// A subset of the currency codes derived from the ISO 4217 standard is
/// supported.
#[prost(string, optional, tag = "10")]
pub currency_code: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. A 12 digit ID used to identify the payments profile associated with the
/// payments account.
#[prost(string, optional, tag = "11")]
pub payments_profile_id: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. A secondary payments profile ID present in uncommon situations, e.g.
/// when a sequential liability agreement has been arranged.
#[prost(string, optional, tag = "12")]
pub secondary_payments_profile_id: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Paying manager of this payment account.
#[prost(string, optional, tag = "13")]
pub paying_manager_customer: ::core::option::Option<::prost::alloc::string::String>,
}
// Proto file describing the ProductBiddingCategoryConstant resource.
/// A Product Bidding Category.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProductBiddingCategoryConstant {
/// Output only. The resource name of the product bidding category.
/// Product bidding category resource names have the form:
///
/// `productBiddingCategoryConstants/{country_code}~{level}~{id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. ID of the product bidding category.
///
/// This ID is equivalent to the google_product_category ID as described in
/// this article: <https://support.google.com/merchants/answer/6324436.>
#[prost(int64, optional, tag = "10")]
pub id: ::core::option::Option<i64>,
/// Output only. Two-letter upper-case country code of the product bidding category.
#[prost(string, optional, tag = "11")]
pub country_code: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Resource name of the parent product bidding category.
#[prost(string, optional, tag = "12")]
pub product_bidding_category_constant_parent:
::core::option::Option<::prost::alloc::string::String>,
/// Output only. Level of the product bidding category.
#[prost(
enumeration = "super::enums::product_bidding_category_level_enum::ProductBiddingCategoryLevel",
tag = "5"
)]
pub level: i32,
/// Output only. Status of the product bidding category.
#[prost(
enumeration = "super::enums::product_bidding_category_status_enum::ProductBiddingCategoryStatus",
tag = "6"
)]
pub status: i32,
/// Output only. Language code of the product bidding category.
#[prost(string, optional, tag = "13")]
pub language_code: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Display value of the product bidding category localized according to
/// language_code.
#[prost(string, optional, tag = "14")]
pub localized_name: ::core::option::Option<::prost::alloc::string::String>,
}
// Proto file describing the ProductGroup View resource.
/// A product group view.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProductGroupView {
/// Output only. The resource name of the product group view.
/// Product group view resource names have the form:
///
/// `customers/{customer_id}/productGroupViews/{ad_group_id}~{criterion_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
}
// Proto file describing the Recommendation resource.
/// A recommendation.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Recommendation {
/// Immutable. The resource name of the recommendation.
///
/// `customers/{customer_id}/recommendations/{recommendation_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The type of recommendation.
#[prost(
enumeration = "super::enums::recommendation_type_enum::RecommendationType",
tag = "2"
)]
pub r#type: i32,
/// Output only. The impact on account performance as a result of applying the
/// recommendation.
#[prost(message, optional, tag = "3")]
pub impact: ::core::option::Option<recommendation::RecommendationImpact>,
/// Output only. The budget targeted by this recommendation. This will be set only when
/// the recommendation affects a single campaign budget.
///
/// This field will be set for the following recommendation types:
/// CAMPAIGN_BUDGET, FORECASTING_CAMPAIGN_BUDGET, MARGINAL_ROI_CAMPAIGN_BUDGET,
/// MOVE_UNUSED_BUDGET
#[prost(string, optional, tag = "24")]
pub campaign_budget: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The campaign targeted by this recommendation. This will be set only when
/// the recommendation affects a single campaign.
///
/// This field will be set for the following recommendation types:
/// CALL_EXTENSION, CALLOUT_EXTENSION, ENHANCED_CPC_OPT_IN, KEYWORD,
/// KEYWORD_MATCH_TYPE, MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN,
/// OPTIMIZE_AD_ROTATION, RESPONSIVE_SEARCH_AD, SEARCH_PARTNERS_OPT_IN,
/// SITELINK_EXTENSION, TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN, TEXT_AD
#[prost(string, optional, tag = "25")]
pub campaign: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The ad group targeted by this recommendation. This will be set only when
/// the recommendation affects a single ad group.
///
/// This field will be set for the following recommendation types:
/// KEYWORD, OPTIMIZE_AD_ROTATION, RESPONSIVE_SEARCH_AD, TEXT_AD
#[prost(string, optional, tag = "26")]
pub ad_group: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Whether the recommendation is dismissed or not.
#[prost(bool, optional, tag = "27")]
pub dismissed: ::core::option::Option<bool>,
/// The details of recommendation.
#[prost(
oneof = "recommendation::Recommendation",
tags = "4, 22, 8, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 21, 23, 28, 29"
)]
pub recommendation: ::core::option::Option<recommendation::Recommendation>,
}
/// Nested message and enum types in `Recommendation`.
pub mod recommendation {
/// The impact of making the change as described in the recommendation.
/// Some types of recommendations may not have impact information.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RecommendationImpact {
/// Output only. Base metrics at the time the recommendation was generated.
#[prost(message, optional, tag = "1")]
pub base_metrics: ::core::option::Option<RecommendationMetrics>,
/// Output only. Estimated metrics if the recommendation is applied.
#[prost(message, optional, tag = "2")]
pub potential_metrics: ::core::option::Option<RecommendationMetrics>,
}
/// Weekly account performance metrics. For some recommendation types, these
/// are averaged over the past 90-day period and hence can be fractional.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RecommendationMetrics {
/// Output only. Number of ad impressions.
#[prost(double, optional, tag = "6")]
pub impressions: ::core::option::Option<f64>,
/// Output only. Number of ad clicks.
#[prost(double, optional, tag = "7")]
pub clicks: ::core::option::Option<f64>,
/// Output only. Cost (in micros) for advertising, in the local currency for the account.
#[prost(int64, optional, tag = "8")]
pub cost_micros: ::core::option::Option<i64>,
/// Output only. Number of conversions.
#[prost(double, optional, tag = "9")]
pub conversions: ::core::option::Option<f64>,
/// Output only. Number of video views for a video ad campaign.
#[prost(double, optional, tag = "10")]
pub video_views: ::core::option::Option<f64>,
}
/// The budget recommendation for budget constrained campaigns.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CampaignBudgetRecommendation {
/// Output only. The current budget amount in micros.
#[prost(int64, optional, tag = "7")]
pub current_budget_amount_micros: ::core::option::Option<i64>,
/// Output only. The recommended budget amount in micros.
#[prost(int64, optional, tag = "8")]
pub recommended_budget_amount_micros: ::core::option::Option<i64>,
/// Output only. The budget amounts and associated impact estimates for some values of
/// possible budget amounts.
#[prost(message, repeated, tag = "3")]
pub budget_options: ::prost::alloc::vec::Vec<
campaign_budget_recommendation::CampaignBudgetRecommendationOption,
>,
}
/// Nested message and enum types in `CampaignBudgetRecommendation`.
pub mod campaign_budget_recommendation {
/// The impact estimates for a given budget amount.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CampaignBudgetRecommendationOption {
/// Output only. The budget amount for this option.
#[prost(int64, optional, tag = "3")]
pub budget_amount_micros: ::core::option::Option<i64>,
/// Output only. The impact estimate if budget is changed to amount specified in this
/// option.
#[prost(message, optional, tag = "2")]
pub impact: ::core::option::Option<super::RecommendationImpact>,
}
}
/// The keyword recommendation.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KeywordRecommendation {
/// Output only. The recommended keyword.
#[prost(message, optional, tag = "1")]
pub keyword: ::core::option::Option<super::super::common::KeywordInfo>,
/// Output only. The recommended CPC (cost-per-click) bid.
#[prost(int64, optional, tag = "3")]
pub recommended_cpc_bid_micros: ::core::option::Option<i64>,
}
/// The keyword match type recommendation.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KeywordMatchTypeRecommendation {
/// Output only. The existing keyword where the match type should be more broad.
#[prost(message, optional, tag = "1")]
pub keyword: ::core::option::Option<super::super::common::KeywordInfo>,
/// Output only. The recommended new match type.
#[prost(
enumeration = "super::super::enums::keyword_match_type_enum::KeywordMatchType",
tag = "2"
)]
pub recommended_match_type: i32,
}
/// The text ad recommendation.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TextAdRecommendation {
/// Output only. Recommended ad.
#[prost(message, optional, tag = "1")]
pub ad: ::core::option::Option<super::Ad>,
/// Output only. Creation date of the recommended ad.
/// YYYY-MM-DD format, e.g., 2018-04-17.
#[prost(string, optional, tag = "4")]
pub creation_date: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Date, if present, is the earliest when the recommendation will be auto
/// applied.
/// YYYY-MM-DD format, e.g., 2018-04-17.
#[prost(string, optional, tag = "5")]
pub auto_apply_date: ::core::option::Option<::prost::alloc::string::String>,
}
/// The move unused budget recommendation.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MoveUnusedBudgetRecommendation {
/// Output only. The excess budget's resource_name.
#[prost(string, optional, tag = "3")]
pub excess_campaign_budget: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The recommendation for the constrained budget to increase.
#[prost(message, optional, tag = "2")]
pub budget_recommendation: ::core::option::Option<CampaignBudgetRecommendation>,
}
/// The Target CPA opt-in recommendation.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetCpaOptInRecommendation {
/// Output only. The available goals and corresponding options for Target CPA strategy.
#[prost(message, repeated, tag = "1")]
pub options: ::prost::alloc::vec::Vec<
target_cpa_opt_in_recommendation::TargetCpaOptInRecommendationOption,
>,
/// Output only. The recommended average CPA target. See required budget amount and impact
/// of using this recommendation in options list.
#[prost(int64, optional, tag = "3")]
pub recommended_target_cpa_micros: ::core::option::Option<i64>,
}
/// Nested message and enum types in `TargetCpaOptInRecommendation`.
pub mod target_cpa_opt_in_recommendation {
/// The Target CPA opt-in option with impact estimate.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetCpaOptInRecommendationOption {
/// Output only. The goal achieved by this option.
#[prost(
enumeration = "super::super::super::enums::target_cpa_opt_in_recommendation_goal_enum::TargetCpaOptInRecommendationGoal",
tag = "1"
)]
pub goal: i32,
/// Output only. Average CPA target.
#[prost(int64, optional, tag = "5")]
pub target_cpa_micros: ::core::option::Option<i64>,
/// Output only. The minimum campaign budget, in local currency for the account,
/// required to achieve the target CPA.
/// Amount is specified in micros, where one million is equivalent to one
/// currency unit.
#[prost(int64, optional, tag = "6")]
pub required_campaign_budget_amount_micros: ::core::option::Option<i64>,
/// Output only. The impact estimate if this option is selected.
#[prost(message, optional, tag = "4")]
pub impact: ::core::option::Option<super::RecommendationImpact>,
}
}
/// The add responsive search ad recommendation.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResponsiveSearchAdRecommendation {
/// Output only. Recommended ad.
#[prost(message, optional, tag = "1")]
pub ad: ::core::option::Option<super::Ad>,
}
/// The Maximize Conversions Opt-In recommendation.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MaximizeConversionsOptInRecommendation {
/// Output only. The recommended new budget amount.
#[prost(int64, optional, tag = "2")]
pub recommended_budget_amount_micros: ::core::option::Option<i64>,
}
/// The Callout extension recommendation.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CalloutExtensionRecommendation {
/// Output only. Callout extensions recommended to be added.
#[prost(message, repeated, tag = "1")]
pub recommended_extensions: ::prost::alloc::vec::Vec<super::super::common::CalloutFeedItem>,
}
/// The Enhanced Cost-Per-Click Opt-In recommendation.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EnhancedCpcOptInRecommendation {}
/// The Search Partners Opt-In recommendation.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchPartnersOptInRecommendation {}
/// The Optimize Ad Rotation recommendation.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OptimizeAdRotationRecommendation {}
/// The Maximize Clicks opt-in recommendation.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MaximizeClicksOptInRecommendation {
/// Output only. The recommended new budget amount.
/// Only set if the current budget is too high.
#[prost(int64, optional, tag = "2")]
pub recommended_budget_amount_micros: ::core::option::Option<i64>,
}
/// The Sitelink extension recommendation.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SitelinkExtensionRecommendation {
/// Output only. Sitelink extensions recommended to be added.
#[prost(message, repeated, tag = "1")]
pub recommended_extensions:
::prost::alloc::vec::Vec<super::super::common::SitelinkFeedItem>,
}
/// The Target ROAS opt-in recommendation.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetRoasOptInRecommendation {
/// Output only. The recommended target ROAS (revenue per unit of spend).
/// The value is between 0.01 and 1000.0, inclusive.
#[prost(double, optional, tag = "1")]
pub recommended_target_roas: ::core::option::Option<f64>,
/// Output only. The minimum campaign budget, in local currency for the account,
/// required to achieve the target ROAS.
/// Amount is specified in micros, where one million is equivalent to one
/// currency unit.
#[prost(int64, optional, tag = "2")]
pub required_campaign_budget_amount_micros: ::core::option::Option<i64>,
}
/// The Call extension recommendation.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CallExtensionRecommendation {
/// Output only. Call extensions recommended to be added.
#[prost(message, repeated, tag = "1")]
pub recommended_extensions: ::prost::alloc::vec::Vec<super::super::common::CallFeedItem>,
}
/// The details of recommendation.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Recommendation {
/// Output only. The campaign budget recommendation.
#[prost(message, tag = "4")]
CampaignBudgetRecommendation(CampaignBudgetRecommendation),
/// Output only. The forecasting campaign budget recommendation.
#[prost(message, tag = "22")]
ForecastingCampaignBudgetRecommendation(CampaignBudgetRecommendation),
/// Output only. The keyword recommendation.
#[prost(message, tag = "8")]
KeywordRecommendation(KeywordRecommendation),
/// Output only. Add expanded text ad recommendation.
#[prost(message, tag = "9")]
TextAdRecommendation(TextAdRecommendation),
/// Output only. The TargetCPA opt-in recommendation.
#[prost(message, tag = "10")]
TargetCpaOptInRecommendation(TargetCpaOptInRecommendation),
/// Output only. The MaximizeConversions Opt-In recommendation.
#[prost(message, tag = "11")]
MaximizeConversionsOptInRecommendation(MaximizeConversionsOptInRecommendation),
/// Output only. The Enhanced Cost-Per-Click Opt-In recommendation.
#[prost(message, tag = "12")]
EnhancedCpcOptInRecommendation(EnhancedCpcOptInRecommendation),
/// Output only. The Search Partners Opt-In recommendation.
#[prost(message, tag = "14")]
SearchPartnersOptInRecommendation(SearchPartnersOptInRecommendation),
/// Output only. The MaximizeClicks Opt-In recommendation.
#[prost(message, tag = "15")]
MaximizeClicksOptInRecommendation(MaximizeClicksOptInRecommendation),
/// Output only. The Optimize Ad Rotation recommendation.
#[prost(message, tag = "16")]
OptimizeAdRotationRecommendation(OptimizeAdRotationRecommendation),
/// Output only. The Callout extension recommendation.
#[prost(message, tag = "17")]
CalloutExtensionRecommendation(CalloutExtensionRecommendation),
/// Output only. The Sitelink extension recommendation.
#[prost(message, tag = "18")]
SitelinkExtensionRecommendation(SitelinkExtensionRecommendation),
/// Output only. The Call extension recommendation.
#[prost(message, tag = "19")]
CallExtensionRecommendation(CallExtensionRecommendation),
/// Output only. The keyword match type recommendation.
#[prost(message, tag = "20")]
KeywordMatchTypeRecommendation(KeywordMatchTypeRecommendation),
/// Output only. The move unused budget recommendation.
#[prost(message, tag = "21")]
MoveUnusedBudgetRecommendation(MoveUnusedBudgetRecommendation),
/// Output only. The Target ROAS opt-in recommendation.
#[prost(message, tag = "23")]
TargetRoasOptInRecommendation(TargetRoasOptInRecommendation),
/// Output only. The add responsive search ad recommendation.
#[prost(message, tag = "28")]
ResponsiveSearchAdRecommendation(ResponsiveSearchAdRecommendation),
/// Output only. The marginal ROI campaign budget recommendation.
#[prost(message, tag = "29")]
MarginalRoiCampaignBudgetRecommendation(CampaignBudgetRecommendation),
}
}
// Proto file describing the Remarketing Action resource.
/// A remarketing action. A snippet of JavaScript code that will collect the
/// product id and the type of page people visited (product page, shopping cart
/// page, purchase page, general site visit) on an advertiser's website.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemarketingAction {
/// Immutable. The resource name of the remarketing action.
/// Remarketing action resource names have the form:
///
/// `customers/{customer_id}/remarketingActions/{remarketing_action_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. Id of the remarketing action.
#[prost(int64, optional, tag = "5")]
pub id: ::core::option::Option<i64>,
/// The name of the remarketing action.
///
/// This field is required and should not be empty when creating new
/// remarketing actions.
#[prost(string, optional, tag = "6")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The snippets used for tracking remarketing actions.
#[prost(message, repeated, tag = "4")]
pub tag_snippets: ::prost::alloc::vec::Vec<super::common::TagSnippet>,
}
// Proto file describing the SearchTermView resource.
/// A search term view with metrics aggregated by search term at the ad group
/// level.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchTermView {
/// Output only. The resource name of the search term view.
/// Search term view resource names have the form:
///
/// `customers/{customer_id}/searchTermViews/{campaign_id}~{ad_group_id}~{URL-base64_search_term}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The search term.
#[prost(string, optional, tag = "5")]
pub search_term: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The ad group the search term served in.
#[prost(string, optional, tag = "6")]
pub ad_group: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. Indicates whether the search term is currently one of your
/// targeted or excluded keywords.
#[prost(
enumeration = "super::enums::search_term_targeting_status_enum::SearchTermTargetingStatus",
tag = "4"
)]
pub status: i32,
}
// Proto file describing the SharedCriterion resource.
/// A criterion belonging to a shared set.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SharedCriterion {
/// Immutable. The resource name of the shared criterion.
/// Shared set resource names have the form:
///
/// `customers/{customer_id}/sharedCriteria/{shared_set_id}~{criterion_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Immutable. The shared set to which the shared criterion belongs.
#[prost(string, optional, tag = "10")]
pub shared_set: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The ID of the criterion.
///
/// This field is ignored for mutates.
#[prost(int64, optional, tag = "11")]
pub criterion_id: ::core::option::Option<i64>,
/// Output only. The type of the criterion.
#[prost(
enumeration = "super::enums::criterion_type_enum::CriterionType",
tag = "4"
)]
pub r#type: i32,
/// The criterion.
///
/// Exactly one must be set.
#[prost(oneof = "shared_criterion::Criterion", tags = "3, 5, 6, 7, 8, 9")]
pub criterion: ::core::option::Option<shared_criterion::Criterion>,
}
/// Nested message and enum types in `SharedCriterion`.
pub mod shared_criterion {
/// The criterion.
///
/// Exactly one must be set.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Criterion {
/// Immutable. Keyword.
#[prost(message, tag = "3")]
Keyword(super::super::common::KeywordInfo),
/// Immutable. YouTube Video.
#[prost(message, tag = "5")]
YoutubeVideo(super::super::common::YouTubeVideoInfo),
/// Immutable. YouTube Channel.
#[prost(message, tag = "6")]
YoutubeChannel(super::super::common::YouTubeChannelInfo),
/// Immutable. Placement.
#[prost(message, tag = "7")]
Placement(super::super::common::PlacementInfo),
/// Immutable. Mobile App Category.
#[prost(message, tag = "8")]
MobileAppCategory(super::super::common::MobileAppCategoryInfo),
/// Immutable. Mobile application.
#[prost(message, tag = "9")]
MobileApplication(super::super::common::MobileApplicationInfo),
}
}
// Proto file describing the SharedSet resource.
/// SharedSets are used for sharing criterion exclusions across multiple
/// campaigns.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SharedSet {
/// Immutable. The resource name of the shared set.
/// Shared set resource names have the form:
///
/// `customers/{customer_id}/sharedSets/{shared_set_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of this shared set. Read only.
#[prost(int64, optional, tag = "8")]
pub id: ::core::option::Option<i64>,
/// Immutable. The type of this shared set: each shared set holds only a single kind
/// of resource. Required. Immutable.
#[prost(
enumeration = "super::enums::shared_set_type_enum::SharedSetType",
tag = "3"
)]
pub r#type: i32,
/// The name of this shared set. Required.
/// Shared Sets must have names that are unique among active shared sets of
/// the same type.
/// The length of this string should be between 1 and 255 UTF-8 bytes,
/// inclusive.
#[prost(string, optional, tag = "9")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The status of this shared set. Read only.
#[prost(
enumeration = "super::enums::shared_set_status_enum::SharedSetStatus",
tag = "5"
)]
pub status: i32,
/// Output only. The number of shared criteria within this shared set. Read only.
#[prost(int64, optional, tag = "10")]
pub member_count: ::core::option::Option<i64>,
/// Output only. The number of campaigns associated with this shared set. Read only.
#[prost(int64, optional, tag = "11")]
pub reference_count: ::core::option::Option<i64>,
}
// Proto file describing the ShoppingPerformanceView resource.
/// Shopping performance view.
/// Provides Shopping campaign statistics aggregated at several product dimension
/// levels. Product dimension values from Merchant Center such as brand,
/// category, custom attributes, product condition and product type will reflect
/// the state of each dimension as of the date and time when the corresponding
/// event was recorded.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ShoppingPerformanceView {
/// Output only. The resource name of the Shopping performance view.
/// Shopping performance view resource names have the form:
/// `customers/{customer_id}/shoppingPerformanceView`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
}
// Proto file describing the SmartCampaignSearchTermView resource.
/// A Smart campaign search term view.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SmartCampaignSearchTermView {
/// Output only. The resource name of the Smart campaign search term view.
/// Smart campaign search term view resource names have the form:
///
/// `customers/{customer_id}/smartCampaignSearchTermViews/{campaign_id}~{URL-base64_search_term}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The search term.
#[prost(string, tag = "2")]
pub search_term: ::prost::alloc::string::String,
/// Output only. The Smart campaign the search term served in.
#[prost(string, tag = "3")]
pub campaign: ::prost::alloc::string::String,
}
// Proto file describing the Smart campaign setting resource.
/// Settings for configuring Smart campaigns.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SmartCampaignSetting {
/// Immutable. The resource name of the Smart campaign setting.
/// Smart campaign setting resource names have the form:
///
/// `customers/{customer_id}/smartCampaignSettings/{campaign_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The campaign to which these settings apply.
#[prost(string, tag = "2")]
pub campaign: ::prost::alloc::string::String,
/// Phone number and country code.
#[prost(message, optional, tag = "3")]
pub phone_number: ::core::option::Option<smart_campaign_setting::PhoneNumber>,
/// Landing page url given by user for this Campaign.
#[prost(string, tag = "4")]
pub final_url: ::prost::alloc::string::String,
/// The ISO-639-1 language code to advertise in.
#[prost(string, tag = "7")]
pub advertising_language_code: ::prost::alloc::string::String,
/// The business setting of this campaign.
#[prost(oneof = "smart_campaign_setting::BusinessSetting", tags = "5, 6")]
pub business_setting: ::core::option::Option<smart_campaign_setting::BusinessSetting>,
}
/// Nested message and enum types in `SmartCampaignSetting`.
pub mod smart_campaign_setting {
/// Phone number and country code in smart campaign settings.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PhoneNumber {
/// Phone number of the smart campaign.
#[prost(string, optional, tag = "1")]
pub phone_number: ::core::option::Option<::prost::alloc::string::String>,
/// Upper-case, two-letter country code as defined by ISO-3166.
#[prost(string, optional, tag = "2")]
pub country_code: ::core::option::Option<::prost::alloc::string::String>,
}
/// The business setting of this campaign.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum BusinessSetting {
/// The name of the business.
#[prost(string, tag = "5")]
BusinessName(::prost::alloc::string::String),
/// The ID of the Google My Business (GMB) Location.
/// The location ID can be fetched by GMB API with its form:
/// accounts/{accountId}/locations/{locationId}. The last {locationId}
/// component from the GMB API represents the business_location_id.
/// See the [Google My Business API]
/// (<https://developers.google.com/my-business/reference/rest/v4/accounts.locations>)
#[prost(int64, tag = "6")]
BusinessLocationId(i64),
}
}
/// A data sharing connection, allowing the import of third party app analytics
/// into a Google Ads Customer.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ThirdPartyAppAnalyticsLink {
/// Immutable. The resource name of the third party app analytics link.
/// Third party app analytics link resource names have the form:
///
/// `customers/{customer_id}/thirdPartyAppAnalyticsLinks/{account_link_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The shareable link ID that should be provided to the third party when
/// setting up app analytics. This is able to be regenerated using regenerate
/// method in the ThirdPartyAppAnalyticsLinkService.
#[prost(string, optional, tag = "3")]
pub shareable_link_id: ::core::option::Option<::prost::alloc::string::String>,
}
// Proto file describing the Topic Constant resource.
/// Use topics to target or exclude placements in the Google Display Network
/// based on the category into which the placement falls (for example,
/// "Pets & Animals/Pets/Dogs").
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TopicConstant {
/// Output only. The resource name of the topic constant.
/// topic constant resource names have the form:
///
/// `topicConstants/{topic_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the topic.
#[prost(int64, optional, tag = "5")]
pub id: ::core::option::Option<i64>,
/// Output only. Resource name of parent of the topic constant.
#[prost(string, optional, tag = "6")]
pub topic_constant_parent: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The category to target or exclude. Each subsequent element in the array
/// describes a more specific sub-category. For example,
/// {"Pets & Animals", "Pets", "Dogs"} represents the
/// "Pets & Animals/Pets/Dogs" category. List of available topic categories at
/// <https://developers.google.com/adwords/api/docs/appendix/verticals>
#[prost(string, repeated, tag = "7")]
pub path: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
// Proto file describing the topic view resource.
/// A topic view.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TopicView {
/// Output only. The resource name of the topic view.
/// Topic view resource names have the form:
///
/// `customers/{customer_id}/topicViews/{ad_group_id}~{criterion_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
}
// Proto file describing the User Interest resource.
/// A user interest: a particular interest-based vertical to be targeted.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UserInterest {
/// Output only. The resource name of the user interest.
/// User interest resource names have the form:
///
/// `customers/{customer_id}/userInterests/{user_interest_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. Taxonomy type of the user interest.
#[prost(
enumeration = "super::enums::user_interest_taxonomy_type_enum::UserInterestTaxonomyType",
tag = "2"
)]
pub taxonomy_type: i32,
/// Output only. The ID of the user interest.
#[prost(int64, optional, tag = "8")]
pub user_interest_id: ::core::option::Option<i64>,
/// Output only. The name of the user interest.
#[prost(string, optional, tag = "9")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The parent of the user interest.
#[prost(string, optional, tag = "10")]
pub user_interest_parent: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. True if the user interest is launched to all channels and locales.
#[prost(bool, optional, tag = "11")]
pub launched_to_all: ::core::option::Option<bool>,
/// Output only. Availability information of the user interest.
#[prost(message, repeated, tag = "7")]
pub availabilities: ::prost::alloc::vec::Vec<super::common::CriterionCategoryAvailability>,
}
// Proto file describing the User List resource.
/// A user list. This is a list of users a customer may target.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UserList {
/// Immutable. The resource name of the user list.
/// User list resource names have the form:
///
/// `customers/{customer_id}/userLists/{user_list_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. Id of the user list.
#[prost(int64, optional, tag = "25")]
pub id: ::core::option::Option<i64>,
/// Output only. A flag that indicates if a user may edit a list. Depends on the list
/// ownership and list type. For example, external remarketing user lists are
/// not editable.
///
/// This field is read-only.
#[prost(bool, optional, tag = "26")]
pub read_only: ::core::option::Option<bool>,
/// Name of this user list. Depending on its access_reason, the user list name
/// may not be unique (e.g. if access_reason=SHARED)
#[prost(string, optional, tag = "27")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// Description of this user list.
#[prost(string, optional, tag = "28")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Membership status of this user list. Indicates whether a user list is open
/// or active. Only open user lists can accumulate more users and can be
/// targeted to.
#[prost(
enumeration = "super::enums::user_list_membership_status_enum::UserListMembershipStatus",
tag = "6"
)]
pub membership_status: i32,
/// An ID from external system. It is used by user list sellers to correlate
/// IDs on their systems.
#[prost(string, optional, tag = "29")]
pub integration_code: ::core::option::Option<::prost::alloc::string::String>,
/// Number of days a user's cookie stays on your list since its most recent
/// addition to the list. This field must be between 0 and 540 inclusive.
/// However, for CRM based userlists, this field can be set to 10000 which
/// means no expiration.
///
/// It'll be ignored for logical_user_list.
#[prost(int64, optional, tag = "30")]
pub membership_life_span: ::core::option::Option<i64>,
/// Output only. Estimated number of users in this user list, on the Google Display Network.
/// This value is null if the number of users has not yet been determined.
///
/// This field is read-only.
#[prost(int64, optional, tag = "31")]
pub size_for_display: ::core::option::Option<i64>,
/// Output only. Size range in terms of number of users of the UserList, on the Google
/// Display Network.
///
/// This field is read-only.
#[prost(
enumeration = "super::enums::user_list_size_range_enum::UserListSizeRange",
tag = "10"
)]
pub size_range_for_display: i32,
/// Output only. Estimated number of users in this user list in the google.com domain.
/// These are the users available for targeting in Search campaigns.
/// This value is null if the number of users has not yet been determined.
///
/// This field is read-only.
#[prost(int64, optional, tag = "32")]
pub size_for_search: ::core::option::Option<i64>,
/// Output only. Size range in terms of number of users of the UserList, for Search ads.
///
/// This field is read-only.
#[prost(
enumeration = "super::enums::user_list_size_range_enum::UserListSizeRange",
tag = "12"
)]
pub size_range_for_search: i32,
/// Output only. Type of this list.
///
/// This field is read-only.
#[prost(
enumeration = "super::enums::user_list_type_enum::UserListType",
tag = "13"
)]
pub r#type: i32,
/// Indicating the reason why this user list membership status is closed. It is
/// only populated on lists that were automatically closed due to inactivity,
/// and will be cleared once the list membership status becomes open.
#[prost(
enumeration = "super::enums::user_list_closing_reason_enum::UserListClosingReason",
tag = "14"
)]
pub closing_reason: i32,
/// Output only. Indicates the reason this account has been granted access to the list.
/// The reason can be SHARED, OWNED, LICENSED or SUBSCRIBED.
///
/// This field is read-only.
#[prost(
enumeration = "super::enums::access_reason_enum::AccessReason",
tag = "15"
)]
pub access_reason: i32,
/// Indicates if this share is still enabled. When a UserList is shared with
/// the user this field is set to ENABLED. Later the userList owner can decide
/// to revoke the share and make it DISABLED.
/// The default value of this field is set to ENABLED.
#[prost(
enumeration = "super::enums::user_list_access_status_enum::UserListAccessStatus",
tag = "16"
)]
pub account_user_list_status: i32,
/// Indicates if this user list is eligible for Google Search Network.
#[prost(bool, optional, tag = "33")]
pub eligible_for_search: ::core::option::Option<bool>,
/// Output only. Indicates this user list is eligible for Google Display Network.
///
/// This field is read-only.
#[prost(bool, optional, tag = "34")]
pub eligible_for_display: ::core::option::Option<bool>,
/// Output only. Indicates match rate for Customer Match lists. The range of this field is
/// \[0-100\]. This will be null for other list types or when it's not possible
/// to calculate the match rate.
///
/// This field is read-only.
#[prost(int32, optional, tag = "24")]
pub match_rate_percentage: ::core::option::Option<i32>,
/// The user list.
///
/// Exactly one must be set.
#[prost(oneof = "user_list::UserList", tags = "19, 20, 21, 22, 23")]
pub user_list: ::core::option::Option<user_list::UserList>,
}
/// Nested message and enum types in `UserList`.
pub mod user_list {
/// The user list.
///
/// Exactly one must be set.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum UserList {
/// User list of CRM users provided by the advertiser.
#[prost(message, tag = "19")]
CrmBasedUserList(super::super::common::CrmBasedUserListInfo),
/// Output only. User list which are similar to users from another UserList.
/// These lists are readonly and automatically created by google.
#[prost(message, tag = "20")]
SimilarUserList(super::super::common::SimilarUserListInfo),
/// User list generated by a rule.
#[prost(message, tag = "21")]
RuleBasedUserList(super::super::common::RuleBasedUserListInfo),
/// User list that is a custom combination of user lists and user interests.
#[prost(message, tag = "22")]
LogicalUserList(super::super::common::LogicalUserListInfo),
/// User list targeting as a collection of conversion or remarketing actions.
#[prost(message, tag = "23")]
BasicUserList(super::super::common::BasicUserListInfo),
}
}
// Proto file describing the user location view resource.
/// A user location view.
///
/// User Location View includes all metrics aggregated at the country level,
/// one row per country. It reports metrics at the actual physical location of
/// the user by targeted or not targeted location. If other segment fields are
/// used, you may get more than one row per country.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UserLocationView {
/// Output only. The resource name of the user location view.
/// UserLocation view resource names have the form:
///
/// `customers/{customer_id}/userLocationViews/{country_criterion_id}~{targeting_location}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. Criterion Id for the country.
#[prost(int64, optional, tag = "4")]
pub country_criterion_id: ::core::option::Option<i64>,
/// Output only. Indicates whether location was targeted or not.
#[prost(bool, optional, tag = "5")]
pub targeting_location: ::core::option::Option<bool>,
}
// Proto file describing the video resource.
/// A video.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Video {
/// Output only. The resource name of the video.
/// Video resource names have the form:
///
/// `customers/{customer_id}/videos/{video_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Output only. The ID of the video.
#[prost(string, optional, tag = "6")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The owner channel id of the video.
#[prost(string, optional, tag = "7")]
pub channel_id: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The duration of the video in milliseconds.
#[prost(int64, optional, tag = "8")]
pub duration_millis: ::core::option::Option<i64>,
/// Output only. The title of the video.
#[prost(string, optional, tag = "9")]
pub title: ::core::option::Option<::prost::alloc::string::String>,
}
// Proto file describing the webpage view resource.
/// A webpage view.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WebpageView {
/// Output only. The resource name of the webpage view.
/// Webpage view resource names have the form:
///
/// `customers/{customer_id}/webpageViews/{ad_group_id}~{criterion_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
}