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
// This file is @generated by prost-build.
/// Key of the violation. The key is used for referring to a violation
/// when filing an exemption request.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PolicyViolationKey {
/// Unique ID of the violated policy.
#[prost(string, optional, tag = "3")]
pub policy_name: ::core::option::Option<::prost::alloc::string::String>,
/// The text that violates the policy if specified.
/// Otherwise, refers to the policy in general
/// (for example, when requesting to be exempt from the whole policy).
/// If not specified for criterion exemptions, the whole policy is implied.
/// Must be specified for ad exemptions.
#[prost(string, optional, tag = "4")]
pub violating_text: ::core::option::Option<::prost::alloc::string::String>,
}
/// Parameter for controlling how policy exemption is done.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PolicyValidationParameter {
/// The list of policy topics that should not cause a PolicyFindingError to
/// be reported. This field is currently only compatible with Enhanced Text Ad.
/// It corresponds to the PolicyTopicEntry.topic field.
///
/// Resources violating these policies will be saved, but will not be eligible
/// to serve. They may begin serving at a later time due to a change in
/// policies, re-review of the resource, or a change in advertiser
/// certificates.
#[prost(string, repeated, tag = "3")]
pub ignorable_policy_topics: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// The list of policy violation keys that should not cause a
/// PolicyViolationError to be reported. Not all policy violations are
/// exemptable, refer to the is_exemptible field in the returned
/// PolicyViolationError.
///
/// Resources violating these polices will be saved, but will not be eligible
/// to serve. They may begin serving at a later time due to a change in
/// policies, re-review of the resource, or a change in advertiser
/// certificates.
#[prost(message, repeated, tag = "2")]
pub exempt_policy_violation_keys: ::prost::alloc::vec::Vec<PolicyViolationKey>,
}
/// Policy finding attached to a resource (for example, alcohol policy associated
/// with a site that sells alcohol).
///
/// Each PolicyTopicEntry has a topic that indicates the specific ads policy
/// the entry is about and a type to indicate the effect that the entry will have
/// on serving. It may optionally have one or more evidences that indicate the
/// reason for the finding. It may also optionally have one or more constraints
/// that provide details about how serving may be restricted.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PolicyTopicEntry {
/// Policy topic this finding refers to. For example, "ALCOHOL",
/// "TRADEMARKS_IN_AD_TEXT", or "DESTINATION_NOT_WORKING". The set of possible
/// policy topics is not fixed for a particular API version and may change
/// at any time.
#[prost(string, optional, tag = "5")]
pub topic: ::core::option::Option<::prost::alloc::string::String>,
/// Describes the negative or positive effect this policy will have on serving.
#[prost(
enumeration = "super::enums::policy_topic_entry_type_enum::PolicyTopicEntryType",
tag = "2"
)]
pub r#type: i32,
/// Additional information that explains policy finding
/// (for example, the brand name for a trademark finding).
#[prost(message, repeated, tag = "3")]
pub evidences: ::prost::alloc::vec::Vec<PolicyTopicEvidence>,
/// Indicates how serving of this resource may be affected (for example, not
/// serving in a country).
#[prost(message, repeated, tag = "4")]
pub constraints: ::prost::alloc::vec::Vec<PolicyTopicConstraint>,
}
/// Additional information that explains a policy finding.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PolicyTopicEvidence {
/// Specific evidence information depending on the evidence type.
#[prost(oneof = "policy_topic_evidence::Value", tags = "3, 4, 9, 6, 7, 8")]
pub value: ::core::option::Option<policy_topic_evidence::Value>,
}
/// Nested message and enum types in `PolicyTopicEvidence`.
pub mod policy_topic_evidence {
/// A list of fragments of text that violated a policy.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TextList {
/// The fragments of text from the resource that caused the policy finding.
#[prost(string, repeated, tag = "2")]
pub texts: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// A list of websites that caused a policy finding. Used for
/// ONE_WEBSITE_PER_AD_GROUP policy topic, for example. In case there are more
/// than five websites, only the top five (those that appear in resources the
/// most) will be listed here.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WebsiteList {
/// Websites that caused the policy finding.
#[prost(string, repeated, tag = "2")]
pub websites: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// A list of strings found in a destination page that caused a policy
/// finding.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DestinationTextList {
/// List of text found in the resource's destination page.
#[prost(string, repeated, tag = "2")]
pub destination_texts: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Evidence of mismatches between the URLs of a resource.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DestinationMismatch {
/// The set of URLs that did not match each other.
#[prost(
enumeration = "super::super::enums::policy_topic_evidence_destination_mismatch_url_type_enum::PolicyTopicEvidenceDestinationMismatchUrlType",
repeated,
tag = "1"
)]
pub url_types: ::prost::alloc::vec::Vec<i32>,
}
/// Evidence details when the destination is returning an HTTP error
/// code or isn't functional in all locations for commonly used devices.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DestinationNotWorking {
/// The full URL that didn't work.
#[prost(string, optional, tag = "7")]
pub expanded_url: ::core::option::Option<::prost::alloc::string::String>,
/// The type of device that failed to load the URL.
#[prost(
enumeration = "super::super::enums::policy_topic_evidence_destination_not_working_device_enum::PolicyTopicEvidenceDestinationNotWorkingDevice",
tag = "4"
)]
pub device: i32,
/// The time the URL was last checked.
/// 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 = "8")]
pub last_checked_date_time: ::core::option::Option<
::prost::alloc::string::String,
>,
/// Indicates the reason of the DESTINATION_NOT_WORKING policy finding.
#[prost(oneof = "destination_not_working::Reason", tags = "1, 6")]
pub reason: ::core::option::Option<destination_not_working::Reason>,
}
/// Nested message and enum types in `DestinationNotWorking`.
pub mod destination_not_working {
/// Indicates the reason of the DESTINATION_NOT_WORKING policy finding.
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Reason {
/// The type of DNS error.
#[prost(
enumeration = "super::super::super::enums::policy_topic_evidence_destination_not_working_dns_error_type_enum::PolicyTopicEvidenceDestinationNotWorkingDnsErrorType",
tag = "1"
)]
DnsErrorType(i32),
/// The HTTP error code.
#[prost(int64, tag = "6")]
HttpErrorCode(i64),
}
}
/// Specific evidence information depending on the evidence type.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Value {
/// List of websites linked with this resource.
#[prost(message, tag = "3")]
WebsiteList(WebsiteList),
/// List of evidence found in the text of a resource.
#[prost(message, tag = "4")]
TextList(TextList),
/// The language the resource was detected to be written in.
/// This is an IETF language tag such as "en-US".
#[prost(string, tag = "9")]
LanguageCode(::prost::alloc::string::String),
/// The text in the destination of the resource that is causing a policy
/// finding.
#[prost(message, tag = "6")]
DestinationTextList(DestinationTextList),
/// Mismatch between the destinations of a resource's URLs.
#[prost(message, tag = "7")]
DestinationMismatch(DestinationMismatch),
/// Details when the destination is returning an HTTP error code or isn't
/// functional in all locations for commonly used devices.
#[prost(message, tag = "8")]
DestinationNotWorking(DestinationNotWorking),
}
}
/// Describes the effect on serving that a policy topic entry will have.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PolicyTopicConstraint {
/// Specific information about the constraint.
#[prost(oneof = "policy_topic_constraint::Value", tags = "1, 2, 3, 4")]
pub value: ::core::option::Option<policy_topic_constraint::Value>,
}
/// Nested message and enum types in `PolicyTopicConstraint`.
pub mod policy_topic_constraint {
/// A list of countries where a resource's serving is constrained.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CountryConstraintList {
/// Total number of countries targeted by the resource.
#[prost(int32, optional, tag = "3")]
pub total_targeted_countries: ::core::option::Option<i32>,
/// Countries in which serving is restricted.
#[prost(message, repeated, tag = "2")]
pub countries: ::prost::alloc::vec::Vec<CountryConstraint>,
}
/// Indicates that a policy topic was constrained due to disapproval of the
/// website for reseller purposes.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ResellerConstraint {}
/// Indicates that a resource's ability to serve in a particular country is
/// constrained.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CountryConstraint {
/// Geo target constant resource name of the country in which serving is
/// constrained.
#[prost(string, optional, tag = "2")]
pub country_criterion: ::core::option::Option<::prost::alloc::string::String>,
}
/// Specific information about the constraint.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Value {
/// Countries where the resource cannot serve.
#[prost(message, tag = "1")]
CountryConstraintList(CountryConstraintList),
/// Reseller constraint.
#[prost(message, tag = "2")]
ResellerConstraint(ResellerConstraint),
/// Countries where a certificate is required for serving.
#[prost(message, tag = "3")]
CertificateMissingInCountryList(CountryConstraintList),
/// Countries where the resource's domain is not covered by the
/// certificates associated with it.
#[prost(message, tag = "4")]
CertificateDomainMismatchInCountryList(CountryConstraintList),
}
}
/// A generic data container.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Value {
/// A value.
#[prost(oneof = "value::Value", tags = "1, 2, 3, 4, 5")]
pub value: ::core::option::Option<value::Value>,
}
/// Nested message and enum types in `Value`.
pub mod value {
/// A value.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Value {
/// A boolean.
#[prost(bool, tag = "1")]
BooleanValue(bool),
/// An int64.
#[prost(int64, tag = "2")]
Int64Value(i64),
/// A float.
#[prost(float, tag = "3")]
FloatValue(f32),
/// A double.
#[prost(double, tag = "4")]
DoubleValue(f64),
/// A string.
#[prost(string, tag = "5")]
StringValue(::prost::alloc::string::String),
}
}
/// Information of category availability, per advertising channel.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CriterionCategoryAvailability {
/// Channel types and subtypes that are available to the category.
#[prost(message, optional, tag = "1")]
pub channel: ::core::option::Option<CriterionCategoryChannelAvailability>,
/// Locales that are available to the category for the channel.
#[prost(message, repeated, tag = "2")]
pub locale: ::prost::alloc::vec::Vec<CriterionCategoryLocaleAvailability>,
}
/// Information of advertising channel type and subtypes a category is available
/// in.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CriterionCategoryChannelAvailability {
/// Format of the channel availability. Can be ALL_CHANNELS (the rest of the
/// fields will not be set), CHANNEL_TYPE (only advertising_channel_type type
/// will be set, the category is available to all sub types under it) or
/// CHANNEL_TYPE_AND_SUBTYPES (advertising_channel_type,
/// advertising_channel_sub_type, and include_default_channel_sub_type will all
/// be set).
#[prost(
enumeration = "super::enums::criterion_category_channel_availability_mode_enum::CriterionCategoryChannelAvailabilityMode",
tag = "1"
)]
pub availability_mode: i32,
/// Channel type the category is available to.
#[prost(
enumeration = "super::enums::advertising_channel_type_enum::AdvertisingChannelType",
tag = "2"
)]
pub advertising_channel_type: i32,
/// Channel subtypes under the channel type the category is available to.
#[prost(
enumeration = "super::enums::advertising_channel_sub_type_enum::AdvertisingChannelSubType",
repeated,
tag = "3"
)]
pub advertising_channel_sub_type: ::prost::alloc::vec::Vec<i32>,
/// Whether default channel sub type is included. For example,
/// advertising_channel_type being DISPLAY and include_default_channel_sub_type
/// being false means that the default display campaign where channel sub type
/// is not set is not included in this availability configuration.
#[prost(bool, optional, tag = "5")]
pub include_default_channel_sub_type: ::core::option::Option<bool>,
}
/// Information about which locales a category is available in.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CriterionCategoryLocaleAvailability {
/// Format of the locale availability. Can be LAUNCHED_TO_ALL (both country and
/// language will be empty), COUNTRY (only country will be set), LANGUAGE (only
/// language wil be set), COUNTRY_AND_LANGUAGE (both country and language will
/// be set).
#[prost(
enumeration = "super::enums::criterion_category_locale_availability_mode_enum::CriterionCategoryLocaleAvailabilityMode",
tag = "1"
)]
pub availability_mode: i32,
/// The ISO-3166-1 alpha-2 country code associated with the category.
#[prost(string, optional, tag = "4")]
pub country_code: ::core::option::Option<::prost::alloc::string::String>,
/// ISO 639-1 code of the language associated with the category.
#[prost(string, optional, tag = "5")]
pub language_code: ::core::option::Option<::prost::alloc::string::String>,
}
/// Contains policy information for an asset inside an ad.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdAssetPolicySummary {
/// The list of policy findings for this asset.
#[prost(message, repeated, tag = "1")]
pub policy_topic_entries: ::prost::alloc::vec::Vec<PolicyTopicEntry>,
/// Where in the review process this asset.
#[prost(
enumeration = "super::enums::policy_review_status_enum::PolicyReviewStatus",
tag = "2"
)]
pub review_status: i32,
/// The overall approval status of this asset, which is 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,
}
/// Provides the detail of a PrimaryStatus.
/// Each asset link has a PrimaryStatus value (e.g. NOT_ELIGIBLE, meaning not
/// serving), and list of corroborating PrimaryStatusReasons (e.g.
/// \[ASSET_DISAPPROVED\]). Each reason may have some additional details
/// annotated with it. For instance, when the reason is ASSET_DISAPPROVED, the
/// details field will contain additional information about the offline
/// evaluation errors which led to the asset being disapproved.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AssetLinkPrimaryStatusDetails {
/// Provides the reason of this PrimaryStatus.
#[prost(
enumeration = "super::enums::asset_link_primary_status_reason_enum::AssetLinkPrimaryStatusReason",
optional,
tag = "1"
)]
pub reason: ::core::option::Option<i32>,
/// Provides the PrimaryStatus of this status detail.
#[prost(
enumeration = "super::enums::asset_link_primary_status_enum::AssetLinkPrimaryStatus",
optional,
tag = "2"
)]
pub status: ::core::option::Option<i32>,
/// Provides the details associated with the asset link primary status.
#[prost(oneof = "asset_link_primary_status_details::Details", tags = "3")]
pub details: ::core::option::Option<asset_link_primary_status_details::Details>,
}
/// Nested message and enum types in `AssetLinkPrimaryStatusDetails`.
pub mod asset_link_primary_status_details {
/// Provides the details associated with the asset link primary status.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Details {
/// Provides the details for AssetLinkPrimaryStatusReason.ASSET_DISAPPROVED
#[prost(message, tag = "3")]
AssetDisapproved(super::AssetDisapproved),
}
}
/// Details related to AssetLinkPrimaryStatusReasonPB.ASSET_DISAPPROVED
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AssetDisapproved {
/// Provides the quality evaluation disapproval reason of an asset.
#[prost(
enumeration = "super::enums::asset_offline_evaluation_error_reasons_enum::AssetOfflineEvaluationErrorReasons",
repeated,
tag = "1"
)]
pub offline_evaluation_error_reasons: ::prost::alloc::vec::Vec<i32>,
}
/// Contains policy summary information.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PolicySummary {
/// The list of policy findings.
#[prost(message, repeated, tag = "1")]
pub policy_topic_entries: ::prost::alloc::vec::Vec<PolicyTopicEntry>,
/// Where in the review process the resource is.
#[prost(
enumeration = "super::enums::policy_review_status_enum::PolicyReviewStatus",
tag = "2"
)]
pub review_status: i32,
/// The overall approval status, which is 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,
}
/// A mapping that can be used by custom parameter tags in a
/// `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomParameter {
/// The key matching the parameter tag name.
#[prost(string, optional, tag = "3")]
pub key: ::core::option::Option<::prost::alloc::string::String>,
/// The value to be substituted.
#[prost(string, optional, tag = "4")]
pub value: ::core::option::Option<::prost::alloc::string::String>,
}
/// Settings for the targeting-related features, at the campaign and ad group
/// levels. For more details about the targeting setting, visit
/// <https://support.google.com/google-ads/answer/7365594>
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetingSetting {
/// The per-targeting-dimension setting to restrict the reach of your campaign
/// or ad group.
#[prost(message, repeated, tag = "1")]
pub target_restrictions: ::prost::alloc::vec::Vec<TargetRestriction>,
/// The list of operations changing the target restrictions.
///
/// Adding a target restriction with a targeting dimension that already exists
/// causes the existing target restriction to be replaced with the new value.
#[prost(message, repeated, tag = "2")]
pub target_restriction_operations: ::prost::alloc::vec::Vec<
TargetRestrictionOperation,
>,
}
/// The list of per-targeting-dimension targeting settings.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct TargetRestriction {
/// The targeting dimension that these settings apply to.
#[prost(
enumeration = "super::enums::targeting_dimension_enum::TargetingDimension",
tag = "1"
)]
pub targeting_dimension: i32,
/// Indicates whether to restrict your ads to show only for the criteria you
/// have selected for this targeting_dimension, or to target all values for
/// this targeting_dimension and show ads based on your targeting in other
/// TargetingDimensions. A value of `true` means that these criteria will only
/// apply bid modifiers, and not affect targeting. A value of `false` means
/// that these criteria will restrict targeting as well as applying bid
/// modifiers.
#[prost(bool, optional, tag = "3")]
pub bid_only: ::core::option::Option<bool>,
}
/// Operation to be performed on a target restriction list in a mutate.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct TargetRestrictionOperation {
/// Type of list operation to perform.
#[prost(enumeration = "target_restriction_operation::Operator", tag = "1")]
pub operator: i32,
/// The target restriction being added to or removed from the list.
#[prost(message, optional, tag = "2")]
pub value: ::core::option::Option<TargetRestriction>,
}
/// Nested message and enum types in `TargetRestrictionOperation`.
pub mod target_restriction_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 restriction to the existing restrictions.
Add = 2,
/// Remove the restriction from the existing restrictions.
Remove = 3,
}
impl Operator {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Operator::Unspecified => "UNSPECIFIED",
Operator::Unknown => "UNKNOWN",
Operator::Add => "ADD",
Operator::Remove => "REMOVE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNSPECIFIED" => Some(Self::Unspecified),
"UNKNOWN" => Some(Self::Unknown),
"ADD" => Some(Self::Add),
"REMOVE" => Some(Self::Remove),
_ => None,
}
}
}
}
/// A keyword criterion.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KeywordInfo {
/// The text of the keyword (at most 80 characters and 10 words).
#[prost(string, optional, tag = "3")]
pub text: ::core::option::Option<::prost::alloc::string::String>,
/// The match type of the keyword.
#[prost(
enumeration = "super::enums::keyword_match_type_enum::KeywordMatchType",
tag = "2"
)]
pub match_type: i32,
}
/// A placement criterion. This can be used to modify bids for sites when
/// targeting the content network.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PlacementInfo {
/// URL of the placement.
///
/// For example, "<http://www.domain.com".>
#[prost(string, optional, tag = "2")]
pub url: ::core::option::Option<::prost::alloc::string::String>,
}
/// A Negative Keyword List criterion. Represents a shared set
/// of negative keywords that can be excluded at the account-level.
/// Only one negative keyword list criterion can be attached per account.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NegativeKeywordListInfo {
/// The NegativeKeywordListInfo shared set resource name.
#[prost(string, optional, tag = "1")]
pub shared_set: ::core::option::Option<::prost::alloc::string::String>,
}
/// A mobile app category criterion.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MobileAppCategoryInfo {
/// The mobile app category constant resource name.
#[prost(string, optional, tag = "2")]
pub mobile_app_category_constant: ::core::option::Option<
::prost::alloc::string::String,
>,
}
/// A mobile application criterion.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MobileApplicationInfo {
/// A string that uniquely identifies a mobile application to Google Ads API.
/// The format of this string is "{platform}-{platform_native_id}", where
/// platform is "1" for iOS apps and "2" for Android apps, and where
/// platform_native_id is the mobile application identifier native to the
/// corresponding platform.
/// For iOS, this native identifier is the 9 digit string that appears at the
/// end of an App Store URL (for example, "476943146" for "Flood-It! 2" whose
/// App Store link is
/// "<http://itunes.apple.com/us/app/flood-it!-2/id476943146">). For Android,
/// this native identifier is the application's package name (for example,
/// "com.labpixies.colordrips" for "Color Drips" given Google Play link
/// "<https://play.google.com/store/apps/details?id=com.labpixies.colordrips">).
/// A well formed app id for Google Ads API would thus be "1-476943146" for iOS
/// and "2-com.labpixies.colordrips" for Android.
/// This field is required and must be set in CREATE operations.
#[prost(string, optional, tag = "4")]
pub app_id: ::core::option::Option<::prost::alloc::string::String>,
/// Name of this mobile application.
#[prost(string, optional, tag = "5")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
}
/// A location criterion.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocationInfo {
/// The geo target constant resource name.
#[prost(string, optional, tag = "2")]
pub geo_target_constant: ::core::option::Option<::prost::alloc::string::String>,
}
/// A device criterion.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct DeviceInfo {
/// Type of the device.
#[prost(enumeration = "super::enums::device_enum::Device", tag = "1")]
pub r#type: i32,
}
/// A listing group criterion.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListingGroupInfo {
/// Type of the listing group.
#[prost(
enumeration = "super::enums::listing_group_type_enum::ListingGroupType",
tag = "1"
)]
pub r#type: i32,
/// Dimension value with which this listing group is refining its parent.
/// Undefined for the root group.
#[prost(message, optional, tag = "2")]
pub case_value: ::core::option::Option<ListingDimensionInfo>,
/// Resource name of ad group criterion which is the parent listing group
/// subdivision. Null for the root group.
#[prost(string, optional, tag = "4")]
pub parent_ad_group_criterion: ::core::option::Option<
::prost::alloc::string::String,
>,
/// The path of dimensions defining this listing group.
#[prost(message, optional, tag = "5")]
pub path: ::core::option::Option<ListingDimensionPath>,
}
/// The path of dimensions defining a listing group.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListingDimensionPath {
/// The complete path of dimensions through the listing group hierarchy, from
/// the root (excluding the root itself) to this listing group.
#[prost(message, repeated, tag = "1")]
pub dimensions: ::prost::alloc::vec::Vec<ListingDimensionInfo>,
}
/// A listing scope criterion.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListingScopeInfo {
/// Scope of the campaign criterion.
#[prost(message, repeated, tag = "2")]
pub dimensions: ::prost::alloc::vec::Vec<ListingDimensionInfo>,
}
/// Listing dimensions for listing group criterion.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListingDimensionInfo {
/// Dimension of one of the types below is always present.
#[prost(
oneof = "listing_dimension_info::Dimension",
tags = "2, 3, 4, 5, 6, 24, 15, 8, 9, 10, 16, 11, 12, 17, 18, 19, 20, 21, 22, 23, 25, 26, 14"
)]
pub dimension: ::core::option::Option<listing_dimension_info::Dimension>,
}
/// Nested message and enum types in `ListingDimensionInfo`.
pub mod listing_dimension_info {
/// Dimension of one of the types below is always present.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Dimension {
/// Advertiser-specific hotel ID.
#[prost(message, tag = "2")]
HotelId(super::HotelIdInfo),
/// Class of the hotel as a number of stars 1 to 5.
#[prost(message, tag = "3")]
HotelClass(super::HotelClassInfo),
/// Country or Region the hotel is located in.
#[prost(message, tag = "4")]
HotelCountryRegion(super::HotelCountryRegionInfo),
/// State the hotel is located in.
#[prost(message, tag = "5")]
HotelState(super::HotelStateInfo),
/// City the hotel is located in.
#[prost(message, tag = "6")]
HotelCity(super::HotelCityInfo),
/// Category of a product offer.
#[prost(message, tag = "24")]
ProductCategory(super::ProductCategoryInfo),
/// Brand of a product offer.
#[prost(message, tag = "15")]
ProductBrand(super::ProductBrandInfo),
/// Locality of a product offer.
#[prost(message, tag = "8")]
ProductChannel(super::ProductChannelInfo),
/// Availability of a product offer.
#[prost(message, tag = "9")]
ProductChannelExclusivity(super::ProductChannelExclusivityInfo),
/// Condition of a product offer.
#[prost(message, tag = "10")]
ProductCondition(super::ProductConditionInfo),
/// Custom attribute of a product offer.
#[prost(message, tag = "16")]
ProductCustomAttribute(super::ProductCustomAttributeInfo),
/// Item id of a product offer.
#[prost(message, tag = "11")]
ProductItemId(super::ProductItemIdInfo),
/// Type of a product offer.
#[prost(message, tag = "12")]
ProductType(super::ProductTypeInfo),
/// Grouping of a product offer. This listing dimension is deprecated and it
/// is supported only in Display campaigns.
#[prost(message, tag = "17")]
ProductGrouping(super::ProductGroupingInfo),
/// Labels of a product offer. This listing dimension is deprecated and it is
/// supported only in Display campaigns.
#[prost(message, tag = "18")]
ProductLabels(super::ProductLabelsInfo),
/// Legacy condition of a product offer. This listing dimension is deprecated
/// and it is supported only in Display campaigns.
#[prost(message, tag = "19")]
ProductLegacyCondition(super::ProductLegacyConditionInfo),
/// Full type of a product offer. This listing dimension is deprecated and it
/// is supported only in Display campaigns.
#[prost(message, tag = "20")]
ProductTypeFull(super::ProductTypeFullInfo),
/// Advertiser-specific activity ID.
#[prost(message, tag = "21")]
ActivityId(super::ActivityIdInfo),
/// Rating of the activity as a number 1 to 5, where 5 is the best.
#[prost(message, tag = "22")]
ActivityRating(super::ActivityRatingInfo),
/// The country where the travel activity is available.
#[prost(message, tag = "23")]
ActivityCountry(super::ActivityCountryInfo),
/// The state where the travel activity is available.
#[prost(message, tag = "25")]
ActivityState(super::ActivityStateInfo),
/// The city where the travel activity is available.
#[prost(message, tag = "26")]
ActivityCity(super::ActivityCityInfo),
/// Unknown dimension. Set when no other listing dimension is set.
#[prost(message, tag = "14")]
UnknownListingDimension(super::UnknownListingDimensionInfo),
}
}
/// Advertiser-specific hotel ID.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HotelIdInfo {
/// String value of the hotel ID.
#[prost(string, optional, tag = "2")]
pub value: ::core::option::Option<::prost::alloc::string::String>,
}
/// Class of the hotel as a number of stars 1 to 5.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct HotelClassInfo {
/// Long value of the hotel class.
#[prost(int64, optional, tag = "2")]
pub value: ::core::option::Option<i64>,
}
/// Country or Region the hotel is located in.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HotelCountryRegionInfo {
/// The Geo Target Constant resource name.
#[prost(string, optional, tag = "2")]
pub country_region_criterion: ::core::option::Option<::prost::alloc::string::String>,
}
/// State the hotel is located in.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HotelStateInfo {
/// The Geo Target Constant resource name.
#[prost(string, optional, tag = "2")]
pub state_criterion: ::core::option::Option<::prost::alloc::string::String>,
}
/// City the hotel is located in.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HotelCityInfo {
/// The Geo Target Constant resource name.
#[prost(string, optional, tag = "2")]
pub city_criterion: ::core::option::Option<::prost::alloc::string::String>,
}
/// Category of a product offer.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ProductCategoryInfo {
/// ID of the product 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 = "1")]
pub category_id: ::core::option::Option<i64>,
/// Level of the product category.
#[prost(
enumeration = "super::enums::product_category_level_enum::ProductCategoryLevel",
tag = "2"
)]
pub level: i32,
}
/// Brand of the product.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProductBrandInfo {
/// String value of the product brand.
#[prost(string, optional, tag = "2")]
pub value: ::core::option::Option<::prost::alloc::string::String>,
}
/// Locality of a product offer.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ProductChannelInfo {
/// Value of the locality.
#[prost(
enumeration = "super::enums::product_channel_enum::ProductChannel",
tag = "1"
)]
pub channel: i32,
}
/// Availability of a product offer.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ProductChannelExclusivityInfo {
/// Value of the availability.
#[prost(
enumeration = "super::enums::product_channel_exclusivity_enum::ProductChannelExclusivity",
tag = "1"
)]
pub channel_exclusivity: i32,
}
/// Condition of a product offer.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ProductConditionInfo {
/// Value of the condition.
#[prost(
enumeration = "super::enums::product_condition_enum::ProductCondition",
tag = "1"
)]
pub condition: i32,
}
/// Custom attribute of a product offer.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProductCustomAttributeInfo {
/// String value of the product custom attribute.
#[prost(string, optional, tag = "3")]
pub value: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates the index of the custom attribute.
#[prost(
enumeration = "super::enums::product_custom_attribute_index_enum::ProductCustomAttributeIndex",
tag = "2"
)]
pub index: i32,
}
/// Item id of a product offer.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProductItemIdInfo {
/// Value of the id.
#[prost(string, optional, tag = "2")]
pub value: ::core::option::Option<::prost::alloc::string::String>,
}
/// Type of a product offer.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProductTypeInfo {
/// Value of the type.
#[prost(string, optional, tag = "3")]
pub value: ::core::option::Option<::prost::alloc::string::String>,
/// Level of the type.
#[prost(
enumeration = "super::enums::product_type_level_enum::ProductTypeLevel",
tag = "2"
)]
pub level: i32,
}
/// Grouping of a product offer. This listing dimension is deprecated and it is
/// supported only in Display campaigns.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProductGroupingInfo {
/// String value of the product grouping.
#[prost(string, optional, tag = "1")]
pub value: ::core::option::Option<::prost::alloc::string::String>,
}
/// Labels of a product offer. This listing dimension is deprecated and it is
/// supported only in Display campaigns.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProductLabelsInfo {
/// String value of the product labels.
#[prost(string, optional, tag = "1")]
pub value: ::core::option::Option<::prost::alloc::string::String>,
}
/// Legacy condition of a product offer. This listing dimension is deprecated and
/// it is supported only in Display campaigns.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProductLegacyConditionInfo {
/// String value of the product legacy condition.
#[prost(string, optional, tag = "1")]
pub value: ::core::option::Option<::prost::alloc::string::String>,
}
/// Full type of a product offer. This listing dimension is deprecated and it is
/// supported only in Display campaigns.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProductTypeFullInfo {
/// String value of the product full type.
#[prost(string, optional, tag = "1")]
pub value: ::core::option::Option<::prost::alloc::string::String>,
}
/// Unknown listing dimension.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UnknownListingDimensionInfo {}
/// Criterion for hotel date selection (default dates versus user selected).
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct HotelDateSelectionTypeInfo {
/// Type of the hotel date selection
#[prost(
enumeration = "super::enums::hotel_date_selection_type_enum::HotelDateSelectionType",
tag = "1"
)]
pub r#type: i32,
}
/// Criterion for number of days prior to the stay the booking is being made.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct HotelAdvanceBookingWindowInfo {
/// Low end of the number of days prior to the stay.
#[prost(int64, optional, tag = "3")]
pub min_days: ::core::option::Option<i64>,
/// High end of the number of days prior to the stay.
#[prost(int64, optional, tag = "4")]
pub max_days: ::core::option::Option<i64>,
}
/// Criterion for length of hotel stay in nights.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct HotelLengthOfStayInfo {
/// Low end of the number of nights in the stay.
#[prost(int64, optional, tag = "3")]
pub min_nights: ::core::option::Option<i64>,
/// High end of the number of nights in the stay.
#[prost(int64, optional, tag = "4")]
pub max_nights: ::core::option::Option<i64>,
}
/// Criterion for a check-in date range.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HotelCheckInDateRangeInfo {
/// Start date in the YYYY-MM-DD format.
#[prost(string, tag = "1")]
pub start_date: ::prost::alloc::string::String,
/// End date in the YYYY-MM-DD format.
#[prost(string, tag = "2")]
pub end_date: ::prost::alloc::string::String,
}
/// Criterion for day of the week the booking is for.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct HotelCheckInDayInfo {
/// The day of the week.
#[prost(enumeration = "super::enums::day_of_week_enum::DayOfWeek", tag = "1")]
pub day_of_week: i32,
}
/// Advertiser-specific activity ID.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ActivityIdInfo {
/// String value of the activity ID.
#[prost(string, optional, tag = "1")]
pub value: ::core::option::Option<::prost::alloc::string::String>,
}
/// Rating of the activity as a number 1 to 5, where 5 is the best.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ActivityRatingInfo {
/// Long value of the activity rating.
#[prost(int64, optional, tag = "1")]
pub value: ::core::option::Option<i64>,
}
/// The country where the travel activity is available.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ActivityCountryInfo {
/// String value of the activity country. The Geo Target Constant resource
/// name.
#[prost(string, optional, tag = "1")]
pub value: ::core::option::Option<::prost::alloc::string::String>,
}
/// The state where the travel activity is available.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ActivityStateInfo {
/// String value of the activity state. The Geo Target Constant resource
/// name.
#[prost(string, optional, tag = "1")]
pub value: ::core::option::Option<::prost::alloc::string::String>,
}
/// The city where the travel activity is available.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ActivityCityInfo {
/// String value of the activity city. The Geo Target Constant resource
/// name.
#[prost(string, optional, tag = "1")]
pub value: ::core::option::Option<::prost::alloc::string::String>,
}
/// Criterion for Interaction Type.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct InteractionTypeInfo {
/// The interaction type.
#[prost(
enumeration = "super::enums::interaction_type_enum::InteractionType",
tag = "1"
)]
pub r#type: i32,
}
/// Represents an AdSchedule criterion.
///
/// AdSchedule is specified as the day of the week and a time interval
/// within which ads will be shown.
///
/// No more than six AdSchedules can be added for the same day.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct AdScheduleInfo {
/// Minutes after the start hour at which this schedule starts.
///
/// This field is required for CREATE operations and is prohibited on UPDATE
/// operations.
#[prost(enumeration = "super::enums::minute_of_hour_enum::MinuteOfHour", tag = "1")]
pub start_minute: i32,
/// Minutes after the end hour at which this schedule ends. The schedule is
/// exclusive of the end minute.
///
/// This field is required for CREATE operations and is prohibited on UPDATE
/// operations.
#[prost(enumeration = "super::enums::minute_of_hour_enum::MinuteOfHour", tag = "2")]
pub end_minute: i32,
/// Starting hour in 24 hour time.
/// This field must be between 0 and 23, inclusive.
///
/// This field is required for CREATE operations and is prohibited on UPDATE
/// operations.
#[prost(int32, optional, tag = "6")]
pub start_hour: ::core::option::Option<i32>,
/// Ending hour in 24 hour time; 24 signifies end of the day.
/// This field must be between 0 and 24, inclusive.
///
/// This field is required for CREATE operations and is prohibited on UPDATE
/// operations.
#[prost(int32, optional, tag = "7")]
pub end_hour: ::core::option::Option<i32>,
/// Day of the week the schedule applies to.
///
/// This field is required for CREATE operations and is prohibited on UPDATE
/// operations.
#[prost(enumeration = "super::enums::day_of_week_enum::DayOfWeek", tag = "5")]
pub day_of_week: i32,
}
/// An age range criterion.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct AgeRangeInfo {
/// Type of the age range.
#[prost(enumeration = "super::enums::age_range_type_enum::AgeRangeType", tag = "1")]
pub r#type: i32,
}
/// A gender criterion.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct GenderInfo {
/// Type of the gender.
#[prost(enumeration = "super::enums::gender_type_enum::GenderType", tag = "1")]
pub r#type: i32,
}
/// An income range criterion.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct IncomeRangeInfo {
/// Type of the income range.
#[prost(
enumeration = "super::enums::income_range_type_enum::IncomeRangeType",
tag = "1"
)]
pub r#type: i32,
}
/// A parental status criterion.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ParentalStatusInfo {
/// Type of the parental status.
#[prost(
enumeration = "super::enums::parental_status_type_enum::ParentalStatusType",
tag = "1"
)]
pub r#type: i32,
}
/// A YouTube Video criterion.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct YouTubeVideoInfo {
/// YouTube video id as it appears on the YouTube watch page.
#[prost(string, optional, tag = "2")]
pub video_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A YouTube Channel criterion.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct YouTubeChannelInfo {
/// The YouTube uploader channel id or the channel code of a YouTube channel.
#[prost(string, optional, tag = "2")]
pub channel_id: ::core::option::Option<::prost::alloc::string::String>,
}
/// A User List criterion. Represents a user list that is defined by the
/// advertiser to be targeted.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UserListInfo {
/// The User List resource name.
#[prost(string, optional, tag = "2")]
pub user_list: ::core::option::Option<::prost::alloc::string::String>,
}
/// A Proximity criterion. The geo point and radius determine what geographical
/// area is included. The address is a description of the geo point that does
/// not affect ad serving.
///
/// There are two ways to create a proximity. First, by setting an address
/// and radius. The geo point will be automatically computed. Second, by
/// setting a geo point and radius. The address is an optional label that won't
/// be validated.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProximityInfo {
/// Latitude and longitude.
#[prost(message, optional, tag = "1")]
pub geo_point: ::core::option::Option<GeoPointInfo>,
/// The radius of the proximity.
#[prost(double, optional, tag = "5")]
pub radius: ::core::option::Option<f64>,
/// The unit of measurement of the radius. Default is KILOMETERS.
#[prost(
enumeration = "super::enums::proximity_radius_units_enum::ProximityRadiusUnits",
tag = "3"
)]
pub radius_units: i32,
/// Full address.
#[prost(message, optional, tag = "4")]
pub address: ::core::option::Option<AddressInfo>,
}
/// Geo point for proximity criterion.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct GeoPointInfo {
/// Micro degrees for the longitude.
#[prost(int32, optional, tag = "3")]
pub longitude_in_micro_degrees: ::core::option::Option<i32>,
/// Micro degrees for the latitude.
#[prost(int32, optional, tag = "4")]
pub latitude_in_micro_degrees: ::core::option::Option<i32>,
}
/// Address for proximity criterion.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddressInfo {
/// Postal code.
#[prost(string, optional, tag = "8")]
pub postal_code: ::core::option::Option<::prost::alloc::string::String>,
/// Province or state code.
#[prost(string, optional, tag = "9")]
pub province_code: ::core::option::Option<::prost::alloc::string::String>,
/// Country code.
#[prost(string, optional, tag = "10")]
pub country_code: ::core::option::Option<::prost::alloc::string::String>,
/// Province or state name.
#[prost(string, optional, tag = "11")]
pub province_name: ::core::option::Option<::prost::alloc::string::String>,
/// Street address line 1.
#[prost(string, optional, tag = "12")]
pub street_address: ::core::option::Option<::prost::alloc::string::String>,
/// Street address line 2. This field is write-only. It is only used for
/// calculating the longitude and latitude of an address when geo_point is
/// empty.
#[prost(string, optional, tag = "13")]
pub street_address2: ::core::option::Option<::prost::alloc::string::String>,
/// Name of the city.
#[prost(string, optional, tag = "14")]
pub city_name: ::core::option::Option<::prost::alloc::string::String>,
}
/// A topic criterion. 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 TopicInfo {
/// The Topic Constant resource name.
#[prost(string, optional, tag = "3")]
pub topic_constant: ::core::option::Option<::prost::alloc::string::String>,
/// 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.
#[prost(string, repeated, tag = "4")]
pub path: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// A language criterion.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LanguageInfo {
/// The language constant resource name.
#[prost(string, optional, tag = "2")]
pub language_constant: ::core::option::Option<::prost::alloc::string::String>,
}
/// An IpBlock criterion used for IP exclusions. We allow:
/// - IPv4 and IPv6 addresses
/// - individual addresses (192.168.0.1)
/// - masks for individual addresses (192.168.0.1/32)
/// - masks for Class C networks (192.168.0.1/24)
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IpBlockInfo {
/// The IP address of this IP block.
#[prost(string, optional, tag = "2")]
pub ip_address: ::core::option::Option<::prost::alloc::string::String>,
}
/// Content Label for category exclusion.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ContentLabelInfo {
/// Content label type, required for CREATE operations.
#[prost(
enumeration = "super::enums::content_label_type_enum::ContentLabelType",
tag = "1"
)]
pub r#type: i32,
}
/// Represents a Carrier Criterion.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CarrierInfo {
/// The Carrier constant resource name.
#[prost(string, optional, tag = "2")]
pub carrier_constant: ::core::option::Option<::prost::alloc::string::String>,
}
/// Represents a particular interest-based topic to be targeted.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UserInterestInfo {
/// The UserInterest resource name.
#[prost(string, optional, tag = "2")]
pub user_interest_category: ::core::option::Option<::prost::alloc::string::String>,
}
/// Represents a criterion for targeting webpages of an advertiser's website.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WebpageInfo {
/// The name of the criterion that is defined by this parameter. The name value
/// will be used for identifying, sorting and filtering criteria with this type
/// of parameters.
///
/// This field is required for CREATE operations and is prohibited on UPDATE
/// operations.
#[prost(string, optional, tag = "3")]
pub criterion_name: ::core::option::Option<::prost::alloc::string::String>,
/// Conditions, or logical expressions, for webpage targeting. The list of
/// webpage targeting conditions are and-ed together when evaluated
/// for targeting. An empty list of conditions indicates all pages of the
/// campaign's website are targeted.
///
/// This field is required for CREATE operations and is prohibited on UPDATE
/// operations.
#[prost(message, repeated, tag = "2")]
pub conditions: ::prost::alloc::vec::Vec<WebpageConditionInfo>,
/// Website criteria coverage percentage. This is the computed percentage
/// of website coverage based on the website target, negative website target
/// and negative keywords in the ad group and campaign. For instance, when
/// coverage returns as 1, it indicates it has 100% coverage. This field is
/// read-only.
#[prost(double, tag = "4")]
pub coverage_percentage: f64,
/// List of sample urls that match the website target. This field is read-only.
#[prost(message, optional, tag = "5")]
pub sample: ::core::option::Option<WebpageSampleInfo>,
}
/// Logical expression for targeting webpages of an advertiser's website.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WebpageConditionInfo {
/// Operand of webpage targeting condition.
#[prost(
enumeration = "super::enums::webpage_condition_operand_enum::WebpageConditionOperand",
tag = "1"
)]
pub operand: i32,
/// Operator of webpage targeting condition.
#[prost(
enumeration = "super::enums::webpage_condition_operator_enum::WebpageConditionOperator",
tag = "2"
)]
pub operator: i32,
/// Argument of webpage targeting condition.
#[prost(string, optional, tag = "4")]
pub argument: ::core::option::Option<::prost::alloc::string::String>,
}
/// List of sample urls that match the website target
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WebpageSampleInfo {
/// Webpage sample urls
#[prost(string, repeated, tag = "1")]
pub sample_urls: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Represents an operating system version to be targeted.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OperatingSystemVersionInfo {
/// The operating system version constant resource name.
#[prost(string, optional, tag = "2")]
pub operating_system_version_constant: ::core::option::Option<
::prost::alloc::string::String,
>,
}
/// An app payment model criterion.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct AppPaymentModelInfo {
/// Type of the app payment model.
#[prost(
enumeration = "super::enums::app_payment_model_type_enum::AppPaymentModelType",
tag = "1"
)]
pub r#type: i32,
}
/// A mobile device criterion.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MobileDeviceInfo {
/// The mobile device constant resource name.
#[prost(string, optional, tag = "2")]
pub mobile_device_constant: ::core::option::Option<::prost::alloc::string::String>,
}
/// A custom affinity criterion.
/// A criterion of this type is only targetable.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomAffinityInfo {
/// The CustomInterest resource name.
#[prost(string, optional, tag = "2")]
pub custom_affinity: ::core::option::Option<::prost::alloc::string::String>,
}
/// A custom intent criterion.
/// A criterion of this type is only targetable.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomIntentInfo {
/// The CustomInterest resource name.
#[prost(string, optional, tag = "2")]
pub custom_intent: ::core::option::Option<::prost::alloc::string::String>,
}
/// A radius around a list of locations specified through a feed or assetSet.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocationGroupInfo {
/// Feed specifying locations for targeting. Cannot be set with AssetSet
/// fields. This is required and must be set in CREATE operations.
#[prost(string, optional, tag = "5")]
pub feed: ::core::option::Option<::prost::alloc::string::String>,
/// Geo target constant(s) restricting the scope of the geographic area within
/// the feed. Currently only one geo target constant is allowed. Cannot be set
/// with AssetSet fields.
#[prost(string, repeated, tag = "6")]
pub geo_target_constants: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Distance in units specifying the radius around targeted locations.
/// This is required and must be set in CREATE operations.
#[prost(int64, optional, tag = "7")]
pub radius: ::core::option::Option<i64>,
/// Unit of the radius. Miles and meters are supported for geo target
/// constants. Milli miles and meters are supported for feed item sets and
/// asset sets. This is required and must be set in CREATE operations.
#[prost(
enumeration = "super::enums::location_group_radius_units_enum::LocationGroupRadiusUnits",
tag = "4"
)]
pub radius_units: i32,
/// FeedItemSets whose FeedItems are targeted. If multiple IDs are specified,
/// then all items that appear in at least one set are targeted. This field
/// cannot be used with geo_target_constants. This is optional and can only be
/// set in CREATE operations. Cannot be set with AssetSet fields.
#[prost(string, repeated, tag = "8")]
pub feed_item_sets: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Denotes that the latest customer level asset set is used for targeting.
/// Used with radius and radius_units. Cannot be used with
/// feed, geo target constants or feed item sets. When using asset sets, either
/// this field or location_group_asset_sets should be specified. Both cannot be
/// used at the same time. This can only be set in CREATE operations.
#[prost(bool, optional, tag = "9")]
pub enable_customer_level_location_asset_set: ::core::option::Option<bool>,
/// AssetSets whose Assets are targeted. If multiple IDs are specified, then
/// all items that appear in at least one set are targeted. This field cannot
/// be used with feed, geo target constants or feed item sets. When using asset
/// sets, either this field or enable_customer_level_location_asset_set should
/// be specified. Both cannot be used at the same time. This can only be set
/// in CREATE operations.
#[prost(string, repeated, tag = "10")]
pub location_group_asset_sets: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
}
/// A custom audience criterion.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomAudienceInfo {
/// The CustomAudience resource name.
#[prost(string, tag = "1")]
pub custom_audience: ::prost::alloc::string::String,
}
/// A combined audience criterion.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CombinedAudienceInfo {
/// The CombinedAudience resource name.
#[prost(string, tag = "1")]
pub combined_audience: ::prost::alloc::string::String,
}
/// An audience criterion.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AudienceInfo {
/// The Audience resource name.
#[prost(string, tag = "1")]
pub audience: ::prost::alloc::string::String,
}
/// A Smart Campaign keyword theme.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KeywordThemeInfo {
/// Either a predefined keyword theme constant or free-form text may be
/// specified.
#[prost(oneof = "keyword_theme_info::KeywordTheme", tags = "1, 2")]
pub keyword_theme: ::core::option::Option<keyword_theme_info::KeywordTheme>,
}
/// Nested message and enum types in `KeywordThemeInfo`.
pub mod keyword_theme_info {
/// Either a predefined keyword theme constant or free-form text may be
/// specified.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum KeywordTheme {
/// The resource name of a Smart Campaign keyword theme constant.
/// `keywordThemeConstants/{keyword_theme_id}~{sub_keyword_theme_id}`
#[prost(string, tag = "1")]
KeywordThemeConstant(::prost::alloc::string::String),
/// Free-form text to be matched to a Smart Campaign keyword theme constant
/// on a best-effort basis.
#[prost(string, tag = "2")]
FreeFormKeywordTheme(::prost::alloc::string::String),
}
}
/// A Local Services Ads service ID. Represents a service type
/// (such as install_faucet) that a Local Services Campaign can target.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocalServiceIdInfo {
/// The criterion resource name.
#[prost(string, tag = "1")]
pub service_id: ::prost::alloc::string::String,
}
/// A Search Theme criterion only on Performance Max campaign. Represents a
/// keyword-like advertiser input.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchThemeInfo {
/// Each Search Theme has a value of a simple string, like keywords.
/// There are limits on overall length, allowed characters, and number
/// of words.
#[prost(string, tag = "1")]
pub text: ::prost::alloc::string::String,
}
/// Represents a Brand Criterion used for targeting based on commercial knowledge
/// graph.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BrandInfo {
/// Output only. A text representation of a brand.
#[prost(string, optional, tag = "2")]
pub display_name: ::core::option::Option<::prost::alloc::string::String>,
/// The Commercial KG MID for the brand.
#[prost(string, optional, tag = "1")]
pub entity_id: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The primary url of a brand.
#[prost(string, optional, tag = "3")]
pub primary_url: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The rejection reason when a brand status is REJECTED.
#[prost(
enumeration = "super::enums::brand_request_rejection_reason_enum::BrandRequestRejectionReason",
optional,
tag = "4"
)]
pub rejection_reason: ::core::option::Option<i32>,
/// Output only. The status of a brand.
#[prost(
enumeration = "super::enums::brand_state_enum::BrandState",
optional,
tag = "5"
)]
pub status: ::core::option::Option<i32>,
}
/// A Brand List Criterion is used to specify a list of brands. The list is
/// represented as a SharedSet id type BRAND_HINT. A criterion of this type can
/// be either targeted or excluded.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BrandListInfo {
/// Shared set resource name of the brand list.
#[prost(string, optional, tag = "1")]
pub shared_set: ::core::option::Option<::prost::alloc::string::String>,
}
/// Represents a price in a particular currency.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Money {
/// Three-character ISO 4217 currency code.
#[prost(string, optional, tag = "3")]
pub currency_code: ::core::option::Option<::prost::alloc::string::String>,
/// Amount in micros. One million is equivalent to one unit.
#[prost(int64, optional, tag = "4")]
pub amount_micros: ::core::option::Option<i64>,
}
/// A YouTube asset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct YoutubeVideoAsset {
/// YouTube video id. This is the 11 character string value used in the
/// YouTube video URL.
#[prost(string, optional, tag = "2")]
pub youtube_video_id: ::core::option::Option<::prost::alloc::string::String>,
/// YouTube video title.
#[prost(string, tag = "3")]
pub youtube_video_title: ::prost::alloc::string::String,
}
/// A MediaBundle asset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MediaBundleAsset {
/// Media bundle (ZIP file) asset data. The format of the uploaded ZIP file
/// depends on the ad field where it will be used. For more information on the
/// format, see the documentation of the ad field where you plan on using the
/// MediaBundleAsset. This field is mutate only.
#[prost(bytes = "bytes", optional, tag = "2")]
pub data: ::core::option::Option<::prost::bytes::Bytes>,
}
/// An Image asset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ImageAsset {
/// The raw bytes data of an image. This field is mutate only.
#[prost(bytes = "bytes", optional, tag = "5")]
pub data: ::core::option::Option<::prost::bytes::Bytes>,
/// File size of the image asset in bytes.
#[prost(int64, optional, tag = "6")]
pub file_size: ::core::option::Option<i64>,
/// MIME type of the image asset.
#[prost(enumeration = "super::enums::mime_type_enum::MimeType", tag = "3")]
pub mime_type: i32,
/// Metadata for this image at its original size.
#[prost(message, optional, tag = "4")]
pub full_size: ::core::option::Option<ImageDimension>,
}
/// Metadata for an image at a certain size, either original or resized.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ImageDimension {
/// Height of the image.
#[prost(int64, optional, tag = "4")]
pub height_pixels: ::core::option::Option<i64>,
/// Width of the image.
#[prost(int64, optional, tag = "5")]
pub width_pixels: ::core::option::Option<i64>,
/// A URL that returns the image with this height and width.
#[prost(string, optional, tag = "6")]
pub url: ::core::option::Option<::prost::alloc::string::String>,
}
/// A Text asset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TextAsset {
/// Text content of the text asset.
#[prost(string, optional, tag = "2")]
pub text: ::core::option::Option<::prost::alloc::string::String>,
}
/// A Lead Form asset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LeadFormAsset {
/// Required. The name of the business being advertised.
#[prost(string, tag = "10")]
pub business_name: ::prost::alloc::string::String,
/// Required. Pre-defined display text that encourages user to expand the form.
#[prost(
enumeration = "super::enums::lead_form_call_to_action_type_enum::LeadFormCallToActionType",
tag = "17"
)]
pub call_to_action_type: i32,
/// Required. Text giving a clear value proposition of what users expect once
/// they expand the form.
#[prost(string, tag = "18")]
pub call_to_action_description: ::prost::alloc::string::String,
/// Required. Headline of the expanded form to describe what the form is asking
/// for or facilitating.
#[prost(string, tag = "12")]
pub headline: ::prost::alloc::string::String,
/// Required. Detailed description of the expanded form to describe what the
/// form is asking for or facilitating.
#[prost(string, tag = "13")]
pub description: ::prost::alloc::string::String,
/// Required. Link to a page describing the policy on how the collected data is
/// handled by the advertiser/business.
#[prost(string, tag = "14")]
pub privacy_policy_url: ::prost::alloc::string::String,
/// Headline of text shown after form submission that describes how the
/// advertiser will follow up with the user.
#[prost(string, optional, tag = "15")]
pub post_submit_headline: ::core::option::Option<::prost::alloc::string::String>,
/// Detailed description shown after form submission that describes how the
/// advertiser will follow up with the user.
#[prost(string, optional, tag = "16")]
pub post_submit_description: ::core::option::Option<::prost::alloc::string::String>,
/// Ordered list of input fields. This field can be updated by reordering
/// questions, but not by adding or removing questions.
#[prost(message, repeated, tag = "8")]
pub fields: ::prost::alloc::vec::Vec<LeadFormField>,
/// Ordered list of custom question fields. This field is subject to a limit of
/// 5 qualifying questions per form.
#[prost(message, repeated, tag = "23")]
pub custom_question_fields: ::prost::alloc::vec::Vec<LeadFormCustomQuestionField>,
/// Configured methods for collected lead data to be delivered to advertiser.
/// Only one method typed as WebhookDelivery can be configured.
#[prost(message, repeated, tag = "9")]
pub delivery_methods: ::prost::alloc::vec::Vec<LeadFormDeliveryMethod>,
/// Pre-defined display text that encourages user action after the form is
/// submitted.
#[prost(
enumeration = "super::enums::lead_form_post_submit_call_to_action_type_enum::LeadFormPostSubmitCallToActionType",
tag = "19"
)]
pub post_submit_call_to_action_type: i32,
/// Asset resource name of the background image.
/// The image dimensions must be exactly 1200x628.
#[prost(string, optional, tag = "20")]
pub background_image_asset: ::core::option::Option<::prost::alloc::string::String>,
/// Chosen intent for the lead form, for example, more volume or more
/// qualified.
#[prost(
enumeration = "super::enums::lead_form_desired_intent_enum::LeadFormDesiredIntent",
tag = "21"
)]
pub desired_intent: i32,
/// Custom disclosure shown along with Google disclaimer on the lead form.
/// Accessible to allowed customers only.
#[prost(string, optional, tag = "22")]
pub custom_disclosure: ::core::option::Option<::prost::alloc::string::String>,
}
/// One input field instance within a form.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LeadFormField {
/// Describes the input type, which may be a predefined type such as "full
/// name" or a pre-vetted question like "What kind of vehicle do you have?".
#[prost(
enumeration = "super::enums::lead_form_field_user_input_type_enum::LeadFormFieldUserInputType",
tag = "1"
)]
pub input_type: i32,
/// Defines answer configuration that this form field accepts. If oneof is not
/// set, this is a free-text answer.
#[prost(oneof = "lead_form_field::Answers", tags = "2, 3")]
pub answers: ::core::option::Option<lead_form_field::Answers>,
}
/// Nested message and enum types in `LeadFormField`.
pub mod lead_form_field {
/// Defines answer configuration that this form field accepts. If oneof is not
/// set, this is a free-text answer.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Answers {
/// Answer configuration for a single choice question. Can be set only for
/// pre-vetted question fields. Minimum of 2 answers required and maximum of
/// 12 allowed.
#[prost(message, tag = "2")]
SingleChoiceAnswers(super::LeadFormSingleChoiceAnswers),
/// Answer configuration for location question. If true, campaign/account
/// level location data (state, city, business name etc) will be rendered on
/// the Lead Form.
/// Starting V13.1, has_location_answer can only be set for "What is your
/// preferred dealership?" question, for advertisers with Location Assets
/// setup at campaign/account level.
#[prost(bool, tag = "3")]
HasLocationAnswer(bool),
}
}
/// One custom question input field instance within a form.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LeadFormCustomQuestionField {
/// The exact custom question field text (for example, "What kind of vehicle
/// do you have?").
#[prost(string, tag = "1")]
pub custom_question_text: ::prost::alloc::string::String,
/// Defines answer configuration that this form field accepts. If
/// oneof is not set, this is a free-text answer.
#[prost(oneof = "lead_form_custom_question_field::Answers", tags = "2, 3")]
pub answers: ::core::option::Option<lead_form_custom_question_field::Answers>,
}
/// Nested message and enum types in `LeadFormCustomQuestionField`.
pub mod lead_form_custom_question_field {
/// Defines answer configuration that this form field accepts. If
/// oneof is not set, this is a free-text answer.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Answers {
/// Answer configuration for a single choice question.
/// Minimum of 2 answers and maximum of 12 allowed.
#[prost(message, tag = "2")]
SingleChoiceAnswers(super::LeadFormSingleChoiceAnswers),
/// Answer configuration for location question. If true, campaign/account
/// level location data (state, city, business name etc) will be rendered on
/// the Lead Form.
/// Starting V13.1, has_location_answer can only be set for "What is your
/// preferred dealership?" question, for advertisers with Location Assets
/// setup at campaign/account level.
#[prost(bool, tag = "3")]
HasLocationAnswer(bool),
}
}
/// Defines possible answers for a single choice question, usually presented as
/// a single-choice drop-down list.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LeadFormSingleChoiceAnswers {
/// List of choices for a single question field. The order of entries defines
/// UI order. Minimum of 2 answers required and maximum of 12 allowed.
#[prost(string, repeated, tag = "1")]
pub answers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// A configuration of how leads are delivered to the advertiser.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LeadFormDeliveryMethod {
/// Various subtypes of delivery.
#[prost(oneof = "lead_form_delivery_method::DeliveryDetails", tags = "1")]
pub delivery_details: ::core::option::Option<
lead_form_delivery_method::DeliveryDetails,
>,
}
/// Nested message and enum types in `LeadFormDeliveryMethod`.
pub mod lead_form_delivery_method {
/// Various subtypes of delivery.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum DeliveryDetails {
/// Webhook method of delivery.
#[prost(message, tag = "1")]
Webhook(super::WebhookDelivery),
}
}
/// Google notifies the advertiser of leads by making HTTP calls to an
/// endpoint they specify. The requests contain JSON matching a schema that
/// Google publishes as part of form ads documentation.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WebhookDelivery {
/// Webhook url specified by advertiser to send the lead.
#[prost(string, optional, tag = "4")]
pub advertiser_webhook_url: ::core::option::Option<::prost::alloc::string::String>,
/// Anti-spoofing secret set by the advertiser as part of the webhook payload.
#[prost(string, optional, tag = "5")]
pub google_secret: ::core::option::Option<::prost::alloc::string::String>,
/// The schema version that this delivery instance will use.
#[prost(int64, optional, tag = "6")]
pub payload_schema_version: ::core::option::Option<i64>,
}
/// A Book on Google asset. Used to redirect user to book through Google.
/// Book on Google will change the redirect url to book directly through
/// Google.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct BookOnGoogleAsset {}
/// A Promotion asset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PromotionAsset {
/// Required. A freeform description of what the promotion is targeting.
#[prost(string, tag = "1")]
pub promotion_target: ::prost::alloc::string::String,
/// A modifier for qualification of the discount.
#[prost(
enumeration = "super::enums::promotion_extension_discount_modifier_enum::PromotionExtensionDiscountModifier",
tag = "2"
)]
pub discount_modifier: i32,
/// Start date of when the promotion is eligible to be redeemed, in yyyy-MM-dd
/// format.
#[prost(string, tag = "7")]
pub redemption_start_date: ::prost::alloc::string::String,
/// Last date of when the promotion is eligible to be redeemed, in yyyy-MM-dd
/// format.
#[prost(string, tag = "8")]
pub redemption_end_date: ::prost::alloc::string::String,
/// The occasion the promotion was intended for.
/// If an occasion is set, the redemption window will need to fall within the
/// date range associated with the occasion.
#[prost(
enumeration = "super::enums::promotion_extension_occasion_enum::PromotionExtensionOccasion",
tag = "9"
)]
pub occasion: i32,
/// The language of the promotion.
/// Represented as BCP 47 language tag.
#[prost(string, tag = "10")]
pub language_code: ::prost::alloc::string::String,
/// Start date of when this asset is effective and can begin serving, in
/// yyyy-MM-dd format.
#[prost(string, tag = "11")]
pub start_date: ::prost::alloc::string::String,
/// Last date of when this asset is effective and still serving, in yyyy-MM-dd
/// format.
#[prost(string, tag = "12")]
pub end_date: ::prost::alloc::string::String,
/// List of non-overlapping schedules specifying all time intervals for which
/// the asset may serve. There can be a maximum of 6 schedules per day, 42 in
/// total.
#[prost(message, repeated, tag = "13")]
pub ad_schedule_targets: ::prost::alloc::vec::Vec<AdScheduleInfo>,
/// Discount type, can be percentage off or amount off.
#[prost(oneof = "promotion_asset::DiscountType", tags = "3, 4")]
pub discount_type: ::core::option::Option<promotion_asset::DiscountType>,
/// Promotion trigger. Can be by promotion code or promo by eligible order
/// amount.
#[prost(oneof = "promotion_asset::PromotionTrigger", tags = "5, 6")]
pub promotion_trigger: ::core::option::Option<promotion_asset::PromotionTrigger>,
}
/// Nested message and enum types in `PromotionAsset`.
pub mod promotion_asset {
/// Discount type, can be percentage off or amount off.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum DiscountType {
/// Percentage off discount in the promotion. 1,000,000 = 100%.
/// Either this or money_amount_off is required.
#[prost(int64, tag = "3")]
PercentOff(i64),
/// Money amount off for discount in the promotion.
/// Either this or percent_off is required.
#[prost(message, tag = "4")]
MoneyAmountOff(super::Money),
}
/// Promotion trigger. Can be by promotion code or promo by eligible order
/// amount.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum PromotionTrigger {
/// A code the user should use in order to be eligible for the promotion.
#[prost(string, tag = "5")]
PromotionCode(::prost::alloc::string::String),
/// The amount the total order needs to be for the user to be eligible for
/// the promotion.
#[prost(message, tag = "6")]
OrdersOverAmount(super::Money),
}
}
/// A Callout asset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CalloutAsset {
/// Required. The callout text.
/// The length of this string should be between 1 and 25, inclusive.
#[prost(string, tag = "1")]
pub callout_text: ::prost::alloc::string::String,
/// Start date of when this asset is effective and can begin serving, in
/// yyyy-MM-dd format.
#[prost(string, tag = "2")]
pub start_date: ::prost::alloc::string::String,
/// Last date of when this asset is effective and still serving, in yyyy-MM-dd
/// format.
#[prost(string, tag = "3")]
pub end_date: ::prost::alloc::string::String,
/// List of non-overlapping schedules specifying all time intervals for which
/// the asset may serve. There can be a maximum of 6 schedules per day, 42 in
/// total.
#[prost(message, repeated, tag = "4")]
pub ad_schedule_targets: ::prost::alloc::vec::Vec<AdScheduleInfo>,
}
/// A Structured Snippet asset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StructuredSnippetAsset {
/// Required. The header of the snippet.
/// This string should be one of the predefined values at
/// <https://developers.google.com/google-ads/api/reference/data/structured-snippet-headers>
#[prost(string, tag = "1")]
pub header: ::prost::alloc::string::String,
/// Required. The values in the snippet.
/// The size of this collection should be between 3 and 10, inclusive.
/// The length of each value should be between 1 and 25 characters, inclusive.
#[prost(string, repeated, tag = "2")]
pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// A Sitelink asset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SitelinkAsset {
/// Required. URL display text for the sitelink.
/// The length of this string should be between 1 and 25, inclusive.
#[prost(string, tag = "1")]
pub link_text: ::prost::alloc::string::String,
/// First line of the description for the sitelink.
/// If set, the length should be between 1 and 35, inclusive, and description2
/// must also be set.
#[prost(string, tag = "2")]
pub description1: ::prost::alloc::string::String,
/// Second line of the description for the sitelink.
/// If set, the length should be between 1 and 35, inclusive, and description1
/// must also be set.
#[prost(string, tag = "3")]
pub description2: ::prost::alloc::string::String,
/// Start date of when this asset is effective and can begin serving, in
/// yyyy-MM-dd format.
#[prost(string, tag = "4")]
pub start_date: ::prost::alloc::string::String,
/// Last date of when this asset is effective and still serving, in yyyy-MM-dd
/// format.
#[prost(string, tag = "5")]
pub end_date: ::prost::alloc::string::String,
/// List of non-overlapping schedules specifying all time intervals for which
/// the asset may serve. There can be a maximum of 6 schedules per day, 42 in
/// total.
#[prost(message, repeated, tag = "6")]
pub ad_schedule_targets: ::prost::alloc::vec::Vec<AdScheduleInfo>,
}
/// A Page Feed asset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PageFeedAsset {
/// Required. The webpage that advertisers want to target.
#[prost(string, tag = "1")]
pub page_url: ::prost::alloc::string::String,
/// Labels used to group the page urls.
#[prost(string, repeated, tag = "2")]
pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// A Dynamic Education asset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DynamicEducationAsset {
/// Required. Program ID which can be any sequence of letters and digits, and
/// must be unique and match the values of remarketing tag. Required.
#[prost(string, tag = "1")]
pub program_id: ::prost::alloc::string::String,
/// Location ID which can be any sequence of letters and digits and must be
/// unique.
#[prost(string, tag = "2")]
pub location_id: ::prost::alloc::string::String,
/// Required. Program name, for example, Nursing. Required.
#[prost(string, tag = "3")]
pub program_name: ::prost::alloc::string::String,
/// Subject of study, for example, Health.
#[prost(string, tag = "4")]
pub subject: ::prost::alloc::string::String,
/// Program description, for example, Nursing Certification.
#[prost(string, tag = "5")]
pub program_description: ::prost::alloc::string::String,
/// School name, for example, Mountain View School of Nursing.
#[prost(string, tag = "6")]
pub school_name: ::prost::alloc::string::String,
/// School address which can be specified in one of the following formats.
/// (1) City, state, code, country, for example, Mountain View, CA, USA.
/// (2) Full address, for example, 123 Boulevard St, Mountain View, CA 94043.
/// (3) Latitude-longitude in the DDD format, for example, 41.40338, 2.17403
#[prost(string, tag = "7")]
pub address: ::prost::alloc::string::String,
/// Contextual keywords, for example, Nursing certification, Health, Mountain
/// View.
#[prost(string, repeated, tag = "8")]
pub contextual_keywords: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Android deep link, for example,
/// android-app://com.example.android/http/example.com/gizmos?1234.
#[prost(string, tag = "9")]
pub android_app_link: ::prost::alloc::string::String,
/// Similar program IDs.
#[prost(string, repeated, tag = "10")]
pub similar_program_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// iOS deep link, for example, exampleApp://content/page.
#[prost(string, tag = "11")]
pub ios_app_link: ::prost::alloc::string::String,
/// iOS app store ID. This is used to check if the user has the app installed
/// on their device before deep linking. If this field is set, then the
/// ios_app_link field must also be present.
#[prost(int64, tag = "12")]
pub ios_app_store_id: i64,
/// Thumbnail image url, for example, <http://www.example.com/thumbnail.png.> The
/// thumbnail image will not be uploaded as image asset.
#[prost(string, tag = "13")]
pub thumbnail_image_url: ::prost::alloc::string::String,
/// Image url, for example, <http://www.example.com/image.png.> The image will
/// not be uploaded as image asset.
#[prost(string, tag = "14")]
pub image_url: ::prost::alloc::string::String,
}
/// An asset representing a mobile app.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MobileAppAsset {
/// Required. A string that uniquely identifies a mobile application. It should
/// just contain the platform native id, like "com.android.ebay" for Android or
/// "12345689" for iOS.
#[prost(string, tag = "1")]
pub app_id: ::prost::alloc::string::String,
/// Required. The application store that distributes this specific app.
#[prost(
enumeration = "super::enums::mobile_app_vendor_enum::MobileAppVendor",
tag = "2"
)]
pub app_store: i32,
/// Required. The visible text displayed when the link is rendered in an ad.
/// The length of this string should be between 1 and 25, inclusive.
#[prost(string, tag = "3")]
pub link_text: ::prost::alloc::string::String,
/// Start date of when this asset is effective and can begin serving, in
/// yyyy-MM-dd format.
#[prost(string, tag = "4")]
pub start_date: ::prost::alloc::string::String,
/// Last date of when this asset is effective and still serving, in yyyy-MM-dd
/// format.
#[prost(string, tag = "5")]
pub end_date: ::prost::alloc::string::String,
}
/// An asset representing a hotel callout.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HotelCalloutAsset {
/// Required. The text of the hotel callout asset.
/// The length of this string should be between 1 and 25, inclusive.
#[prost(string, tag = "1")]
pub text: ::prost::alloc::string::String,
/// Required. The language of the hotel callout.
/// Represented as BCP 47 language tag.
#[prost(string, tag = "2")]
pub language_code: ::prost::alloc::string::String,
}
/// A Call asset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CallAsset {
/// Required. Two-letter country code of the phone number. Examples: 'US',
/// 'us'.
#[prost(string, tag = "1")]
pub country_code: ::prost::alloc::string::String,
/// Required. The advertiser's raw phone number. Examples: '1234567890',
/// '(123)456-7890'
#[prost(string, tag = "2")]
pub phone_number: ::prost::alloc::string::String,
/// Indicates whether this CallAsset should use its own call conversion
/// setting, follow the account level setting, or disable call conversion.
#[prost(
enumeration = "super::enums::call_conversion_reporting_state_enum::CallConversionReportingState",
tag = "3"
)]
pub call_conversion_reporting_state: i32,
/// The conversion action to attribute a call conversion to. If not set, the
/// default conversion action is used. This field only has effect if
/// call_conversion_reporting_state is set to
/// USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION.
#[prost(string, tag = "4")]
pub call_conversion_action: ::prost::alloc::string::String,
/// List of non-overlapping schedules specifying all time intervals for which
/// the asset may serve. There can be a maximum of 6 schedules per day, 42 in
/// total.
#[prost(message, repeated, tag = "5")]
pub ad_schedule_targets: ::prost::alloc::vec::Vec<AdScheduleInfo>,
}
/// An asset representing a list of price offers.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PriceAsset {
/// Required. The type of the price asset.
#[prost(
enumeration = "super::enums::price_extension_type_enum::PriceExtensionType",
tag = "1"
)]
pub r#type: i32,
/// The price qualifier of the price asset.
#[prost(
enumeration = "super::enums::price_extension_price_qualifier_enum::PriceExtensionPriceQualifier",
tag = "2"
)]
pub price_qualifier: i32,
/// Required. The language of the price asset.
/// Represented as BCP 47 language tag.
#[prost(string, tag = "3")]
pub language_code: ::prost::alloc::string::String,
/// The price offerings of the price asset.
/// The size of this collection should be between 3 and 8, inclusive.
#[prost(message, repeated, tag = "4")]
pub price_offerings: ::prost::alloc::vec::Vec<PriceOffering>,
}
/// A single price offering within a PriceAsset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PriceOffering {
/// Required. The header of the price offering.
/// The length of this string should be between 1 and 25, inclusive.
#[prost(string, tag = "1")]
pub header: ::prost::alloc::string::String,
/// Required. The description of the price offering.
/// The length of this string should be between 1 and 25, inclusive.
#[prost(string, tag = "2")]
pub description: ::prost::alloc::string::String,
/// Required. The price value of the price offering.
#[prost(message, optional, tag = "3")]
pub price: ::core::option::Option<Money>,
/// The price unit of the price offering.
#[prost(
enumeration = "super::enums::price_extension_price_unit_enum::PriceExtensionPriceUnit",
tag = "4"
)]
pub unit: i32,
/// Required. The final URL after all cross domain redirects.
#[prost(string, tag = "5")]
pub final_url: ::prost::alloc::string::String,
/// The final mobile URL after all cross domain redirects.
#[prost(string, tag = "6")]
pub final_mobile_url: ::prost::alloc::string::String,
}
/// A call to action asset.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct CallToActionAsset {
/// Call to action.
#[prost(
enumeration = "super::enums::call_to_action_type_enum::CallToActionType",
tag = "1"
)]
pub call_to_action: i32,
}
/// A dynamic real estate asset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DynamicRealEstateAsset {
/// Required. Listing ID which can be any sequence of letters and digits, and
/// must be unique and match the values of remarketing tag. Required.
#[prost(string, tag = "1")]
pub listing_id: ::prost::alloc::string::String,
/// Required. Listing name, for example, Boulevard Bungalow. Required.
#[prost(string, tag = "2")]
pub listing_name: ::prost::alloc::string::String,
/// City name, for example, Mountain View, California.
#[prost(string, tag = "3")]
pub city_name: ::prost::alloc::string::String,
/// Description, for example, 3 beds, 2 baths, 1568 sq. ft.
#[prost(string, tag = "4")]
pub description: ::prost::alloc::string::String,
/// Address which can be specified in one of the following formats.
/// (1) City, state, code, country, for example, Mountain View, CA, USA.
/// (2) Full address, for example, 123 Boulevard St, Mountain View, CA 94043.
/// (3) Latitude-longitude in the DDD format, for example, 41.40338, 2.17403
#[prost(string, tag = "5")]
pub address: ::prost::alloc::string::String,
/// Price which can be number followed by the alphabetic currency code,
/// ISO 4217 standard. Use '.' as the decimal mark, for example, 200,000.00
/// USD.
#[prost(string, tag = "6")]
pub price: ::prost::alloc::string::String,
/// Image URL, for example, <http://www.example.com/image.png.> The image will
/// not be uploaded as image asset.
#[prost(string, tag = "7")]
pub image_url: ::prost::alloc::string::String,
/// Property type, for example, House.
#[prost(string, tag = "8")]
pub property_type: ::prost::alloc::string::String,
/// Listing type, for example, For sale.
#[prost(string, tag = "9")]
pub listing_type: ::prost::alloc::string::String,
/// Contextual keywords, for example, For sale; Houses for sale.
#[prost(string, repeated, tag = "10")]
pub contextual_keywords: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Formatted price which can be any characters. If set, this attribute will be
/// used instead of 'price', for example, Starting at $200,000.00.
#[prost(string, tag = "11")]
pub formatted_price: ::prost::alloc::string::String,
/// Android deep link, for example,
/// android-app://com.example.android/http/example.com/gizmos?1234.
#[prost(string, tag = "12")]
pub android_app_link: ::prost::alloc::string::String,
/// iOS deep link, for example, exampleApp://content/page.
#[prost(string, tag = "13")]
pub ios_app_link: ::prost::alloc::string::String,
/// iOS app store ID. This is used to check if the user has the app installed
/// on their device before deep linking. If this field is set, then the
/// ios_app_link field must also be present.
#[prost(int64, tag = "14")]
pub ios_app_store_id: i64,
/// Similar listing IDs.
#[prost(string, repeated, tag = "15")]
pub similar_listing_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// A dynamic custom asset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DynamicCustomAsset {
/// Required. ID which can be any sequence of letters and digits, and must be
/// unique and match the values of remarketing tag, for example, sedan.
/// Required.
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
/// ID2 which can be any sequence of letters and digits, for example, red. ID
/// sequence (ID + ID2) must be unique.
#[prost(string, tag = "2")]
pub id2: ::prost::alloc::string::String,
/// Required. Item title, for example, Mid-size sedan. Required.
#[prost(string, tag = "3")]
pub item_title: ::prost::alloc::string::String,
/// Item subtitle, for example, At your Mountain View dealership.
#[prost(string, tag = "4")]
pub item_subtitle: ::prost::alloc::string::String,
/// Item description, for example, Best selling mid-size car.
#[prost(string, tag = "5")]
pub item_description: ::prost::alloc::string::String,
/// Item address which can be specified in one of the following formats.
/// (1) City, state, code, country, for example, Mountain View, CA, USA.
/// (2) Full address, for example, 123 Boulevard St, Mountain View, CA 94043.
/// (3) Latitude-longitude in the DDD format, for example, 41.40338, 2.17403
#[prost(string, tag = "6")]
pub item_address: ::prost::alloc::string::String,
/// Item category, for example, Sedans.
#[prost(string, tag = "7")]
pub item_category: ::prost::alloc::string::String,
/// Price which can be number followed by the alphabetic currency code,
/// ISO 4217 standard. Use '.' as the decimal mark, for example, 20,000.00 USD.
#[prost(string, tag = "8")]
pub price: ::prost::alloc::string::String,
/// Sale price which can be number followed by the alphabetic currency code,
/// ISO 4217 standard. Use '.' as the decimal mark, for example, 15,000.00 USD.
/// Must be less than the 'price' field.
#[prost(string, tag = "9")]
pub sale_price: ::prost::alloc::string::String,
/// Formatted price which can be any characters. If set, this attribute will be
/// used instead of 'price', for example, Starting at $20,000.00.
#[prost(string, tag = "10")]
pub formatted_price: ::prost::alloc::string::String,
/// Formatted sale price which can be any characters. If set, this attribute
/// will be used instead of 'sale price', for example, On sale for $15,000.00.
#[prost(string, tag = "11")]
pub formatted_sale_price: ::prost::alloc::string::String,
/// Image URL, for example, <http://www.example.com/image.png.> The image will
/// not be uploaded as image asset.
#[prost(string, tag = "12")]
pub image_url: ::prost::alloc::string::String,
/// Contextual keywords, for example, Sedans, 4 door sedans.
#[prost(string, repeated, tag = "13")]
pub contextual_keywords: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Android deep link, for example,
/// android-app://com.example.android/http/example.com/gizmos?1234.
#[prost(string, tag = "14")]
pub android_app_link: ::prost::alloc::string::String,
/// iOS deep link, for example, exampleApp://content/page.
#[prost(string, tag = "16")]
pub ios_app_link: ::prost::alloc::string::String,
/// iOS app store ID. This is used to check if the user has the app installed
/// on their device before deep linking. If this field is set, then the
/// ios_app_link field must also be present.
#[prost(int64, tag = "17")]
pub ios_app_store_id: i64,
/// Similar IDs.
#[prost(string, repeated, tag = "15")]
pub similar_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// A dynamic hotels and rentals asset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DynamicHotelsAndRentalsAsset {
/// Required. Property ID which can be any sequence of letters and digits, and
/// must be unique and match the values of remarketing tag. Required.
#[prost(string, tag = "1")]
pub property_id: ::prost::alloc::string::String,
/// Required. Property name, for example, Mountain View Hotel. Required.
#[prost(string, tag = "2")]
pub property_name: ::prost::alloc::string::String,
/// Image URL, for example, <http://www.example.com/image.png.> The image will
/// not be uploaded as image asset.
#[prost(string, tag = "3")]
pub image_url: ::prost::alloc::string::String,
/// Destination name, for example, Downtown Mountain View.
#[prost(string, tag = "4")]
pub destination_name: ::prost::alloc::string::String,
/// Description, for example, Close to SJC Airport.
#[prost(string, tag = "5")]
pub description: ::prost::alloc::string::String,
/// Price which can be number followed by the alphabetic currency code,
/// ISO 4217 standard. Use '.' as the decimal mark, for example, 100.00 USD.
#[prost(string, tag = "6")]
pub price: ::prost::alloc::string::String,
/// ISO 4217 standard. Use '.' as the decimal mark, for example, 80.00 USD.
/// Must be less than the 'price' field.
#[prost(string, tag = "7")]
pub sale_price: ::prost::alloc::string::String,
/// Star rating. Must be a number between 1 to 5, inclusive.
#[prost(int64, tag = "8")]
pub star_rating: i64,
/// Category, for example, Hotel suite.
#[prost(string, tag = "9")]
pub category: ::prost::alloc::string::String,
/// Contextual keywords, for example, Mountain View "Hotels", South Bay hotels.
#[prost(string, repeated, tag = "10")]
pub contextual_keywords: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Address which can be specified in one of the following formats.
/// (1) City, state, code, country, for example, Mountain View, CA, USA.
/// (2) Full address, for example, 123 Boulevard St, Mountain View, CA 94043.
/// (3) Latitude-longitude in the DDD format, for example, 41.40338, 2.17403
#[prost(string, tag = "11")]
pub address: ::prost::alloc::string::String,
/// Android deep link, for example,
/// android-app://com.example.android/http/example.com/gizmos?1234.
#[prost(string, tag = "12")]
pub android_app_link: ::prost::alloc::string::String,
/// iOS deep link, for example, exampleApp://content/page.
#[prost(string, tag = "13")]
pub ios_app_link: ::prost::alloc::string::String,
/// iOS app store ID. This is used to check if the user has the app installed
/// on their device before deep linking. If this field is set, then the
/// ios_app_link field must also be present.
#[prost(int64, tag = "14")]
pub ios_app_store_id: i64,
/// Formatted price which can be any characters. If set, this attribute will be
/// used instead of 'price', for example, Starting at $100.00.
#[prost(string, tag = "15")]
pub formatted_price: ::prost::alloc::string::String,
/// Formatted sale price which can be any characters. If set, this attribute
/// will be used instead of 'sale price', for example, On sale for $80.00.
#[prost(string, tag = "16")]
pub formatted_sale_price: ::prost::alloc::string::String,
/// Similar property IDs.
#[prost(string, repeated, tag = "17")]
pub similar_property_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// A dynamic flights asset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DynamicFlightsAsset {
/// Required. Destination ID which can be any sequence of letters and digits,
/// and must be unique and match the values of remarketing tag. Required.
#[prost(string, tag = "1")]
pub destination_id: ::prost::alloc::string::String,
/// Origin ID which can be any sequence of letters and digits. The ID sequence
/// (destination ID + origin ID) must be unique.
#[prost(string, tag = "2")]
pub origin_id: ::prost::alloc::string::String,
/// Required. Flight description, for example, Book your ticket. Required.
#[prost(string, tag = "3")]
pub flight_description: ::prost::alloc::string::String,
/// Image URL, for example, <http://www.example.com/image.png.> The image will
/// not be uploaded as image asset.
#[prost(string, tag = "4")]
pub image_url: ::prost::alloc::string::String,
/// Destination name, for example, Paris.
#[prost(string, tag = "5")]
pub destination_name: ::prost::alloc::string::String,
/// Origin name, for example, London.
#[prost(string, tag = "6")]
pub origin_name: ::prost::alloc::string::String,
/// Flight price which can be number followed by the alphabetic currency code,
/// ISO 4217 standard. Use '.' as the decimal mark, for example, 100.00 USD.
#[prost(string, tag = "7")]
pub flight_price: ::prost::alloc::string::String,
/// Flight sale price which can be number followed by the alphabetic currency
/// code, ISO 4217 standard. Use '.' as the decimal mark, for example, 80.00
/// USD. Must be less than the 'flight_price' field.
#[prost(string, tag = "8")]
pub flight_sale_price: ::prost::alloc::string::String,
/// Formatted price which can be any characters. If set, this attribute will be
/// used instead of 'price', for example, Starting at $100.00.
#[prost(string, tag = "9")]
pub formatted_price: ::prost::alloc::string::String,
/// Formatted sale price which can be any characters. If set, this attribute
/// will be used instead of 'sale price', for example, On sale for $80.00.
#[prost(string, tag = "10")]
pub formatted_sale_price: ::prost::alloc::string::String,
/// Android deep link, for example,
/// android-app://com.example.android/http/example.com/gizmos?1234.
#[prost(string, tag = "11")]
pub android_app_link: ::prost::alloc::string::String,
/// iOS deep link, for example, exampleApp://content/page.
#[prost(string, tag = "12")]
pub ios_app_link: ::prost::alloc::string::String,
/// iOS app store ID. This is used to check if the user has the app installed
/// on their device before deep linking. If this field is set, then the
/// ios_app_link field must also be present.
#[prost(int64, tag = "13")]
pub ios_app_store_id: i64,
/// Similar destination IDs, for example, PAR,LON.
#[prost(string, repeated, tag = "14")]
pub similar_destination_ids: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// A custom field which can be multiple key to values mapping separated by
/// delimiters (",", "|" and ":"), in the forms of
/// "<KEY_1>: <VALUE_1>, <VALUE_2>, ... ,<VALUE_N> | <KEY_2>: <VALUE_1>, ...
/// ,<VALUE_N> | ... | <KEY_N>: <VALUE_1>, ... ,<VALUE_N>" for example, wifi:
/// most | aircraft: 320, 77W | flights: 42 | legroom: 32".
#[prost(string, tag = "15")]
pub custom_mapping: ::prost::alloc::string::String,
}
/// A Discovery Carousel Card asset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DiscoveryCarouselCardAsset {
/// Asset resource name of the associated 1.91:1 marketing image. This and/or
/// square marketing image asset is required.
#[prost(string, tag = "1")]
pub marketing_image_asset: ::prost::alloc::string::String,
/// Asset resource name of the associated square marketing image. This
/// and/or a marketing image asset is required.
#[prost(string, tag = "2")]
pub square_marketing_image_asset: ::prost::alloc::string::String,
/// Asset resource name of the associated 4:5 portrait marketing image.
#[prost(string, tag = "3")]
pub portrait_marketing_image_asset: ::prost::alloc::string::String,
/// Required. Headline of the carousel card.
#[prost(string, tag = "4")]
pub headline: ::prost::alloc::string::String,
/// Call to action text.
#[prost(string, tag = "5")]
pub call_to_action_text: ::prost::alloc::string::String,
}
/// A dynamic travel asset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DynamicTravelAsset {
/// Required. Destination ID which can be any sequence of letters and digits,
/// and must be unique and match the values of remarketing tag. Required.
#[prost(string, tag = "1")]
pub destination_id: ::prost::alloc::string::String,
/// Origin ID which can be any sequence of letters and digits. The ID sequence
/// (destination ID + origin ID) must be unique.
#[prost(string, tag = "2")]
pub origin_id: ::prost::alloc::string::String,
/// Required. Title, for example, Book your train ticket. Required.
#[prost(string, tag = "3")]
pub title: ::prost::alloc::string::String,
/// Destination name, for example, Paris.
#[prost(string, tag = "4")]
pub destination_name: ::prost::alloc::string::String,
/// Destination address which can be specified in one of the following formats.
/// (1) City, state, code, country, for example, Mountain View, CA, USA.
/// (2) Full address, for example, 123 Boulevard St, Mountain View, CA 94043.
/// (3) Latitude-longitude in the DDD format, for example, 41.40338, 2.17403.
#[prost(string, tag = "5")]
pub destination_address: ::prost::alloc::string::String,
/// Origin name, for example, London.
#[prost(string, tag = "6")]
pub origin_name: ::prost::alloc::string::String,
/// Price which can be a number followed by the alphabetic currency code,
/// ISO 4217 standard. Use '.' as the decimal mark, for example, 100.00 USD.
#[prost(string, tag = "7")]
pub price: ::prost::alloc::string::String,
/// Sale price which can be a number followed by the alphabetic currency
/// code, ISO 4217 standard. Use '.' as the decimal mark, for example, 80.00
/// USD. Must be less than the 'price' field.
#[prost(string, tag = "8")]
pub sale_price: ::prost::alloc::string::String,
/// Formatted price which can be any characters. If set, this attribute will be
/// used instead of 'price', for example, Starting at $100.00.
#[prost(string, tag = "9")]
pub formatted_price: ::prost::alloc::string::String,
/// Formatted sale price which can be any characters. If set, this attribute
/// will be used instead of 'sale price', for example, On sale for $80.00.
#[prost(string, tag = "10")]
pub formatted_sale_price: ::prost::alloc::string::String,
/// Category, for example, Express.
#[prost(string, tag = "11")]
pub category: ::prost::alloc::string::String,
/// Contextual keywords, for example, Paris trains.
#[prost(string, repeated, tag = "12")]
pub contextual_keywords: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Similar destination IDs, for example, NYC.
#[prost(string, repeated, tag = "13")]
pub similar_destination_ids: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// Image URL, for example, <http://www.example.com/image.png.> The image will
/// not be uploaded as image asset.
#[prost(string, tag = "14")]
pub image_url: ::prost::alloc::string::String,
/// Android deep link, for example,
/// android-app://com.example.android/http/example.com/gizmos?1234.
#[prost(string, tag = "15")]
pub android_app_link: ::prost::alloc::string::String,
/// iOS deep link, for example, exampleApp://content/page.
#[prost(string, tag = "16")]
pub ios_app_link: ::prost::alloc::string::String,
/// iOS app store ID. This is used to check if the user has the app installed
/// on their device before deep linking. If this field is set, then the
/// ios_app_link field must also be present.
#[prost(int64, tag = "17")]
pub ios_app_store_id: i64,
}
/// A dynamic local asset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DynamicLocalAsset {
/// Required. Deal ID which can be any sequence of letters and digits, and must
/// be unique and match the values of remarketing tag. Required.
#[prost(string, tag = "1")]
pub deal_id: ::prost::alloc::string::String,
/// Required. Deal name, for example, 50% off at Mountain View Grocers.
/// Required.
#[prost(string, tag = "2")]
pub deal_name: ::prost::alloc::string::String,
/// Subtitle, for example, Groceries.
#[prost(string, tag = "3")]
pub subtitle: ::prost::alloc::string::String,
/// Description, for example, Save on your weekly bill.
#[prost(string, tag = "4")]
pub description: ::prost::alloc::string::String,
/// Price which can be a number followed by the alphabetic currency code,
/// ISO 4217 standard. Use '.' as the decimal mark, for example, 100.00 USD.
#[prost(string, tag = "5")]
pub price: ::prost::alloc::string::String,
/// Sale price which can be number followed by the alphabetic currency code,
/// ISO 4217 standard. Use '.' as the decimal mark, for example, 80.00 USD.
/// Must be less than the 'price' field.
#[prost(string, tag = "6")]
pub sale_price: ::prost::alloc::string::String,
/// Image URL, for example, <http://www.example.com/image.png.> The image will
/// not be uploaded as image asset.
#[prost(string, tag = "7")]
pub image_url: ::prost::alloc::string::String,
/// Address which can be specified in one of the following formats.
/// (1) City, state, code, country, for example, Mountain View, CA, USA.
/// (2) Full address, for example, 123 Boulevard St, Mountain View, CA 94043.
/// (3) Latitude-longitude in the DDD format, for example, 41.40338, 2.17403.
#[prost(string, tag = "8")]
pub address: ::prost::alloc::string::String,
/// Category, for example, Food.
#[prost(string, tag = "9")]
pub category: ::prost::alloc::string::String,
/// Contextual keywords, for example, Save groceries coupons.
#[prost(string, repeated, tag = "10")]
pub contextual_keywords: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Formatted price which can be any characters. If set, this attribute will be
/// used instead of 'price', for example, Starting at $100.00.
#[prost(string, tag = "11")]
pub formatted_price: ::prost::alloc::string::String,
/// Formatted sale price which can be any characters. If set, this attribute
/// will be used instead of 'sale price', for example, On sale for $80.00.
#[prost(string, tag = "12")]
pub formatted_sale_price: ::prost::alloc::string::String,
/// Android deep link, for example,
/// android-app://com.example.android/http/example.com/gizmos?1234.
#[prost(string, tag = "13")]
pub android_app_link: ::prost::alloc::string::String,
/// Similar deal IDs, for example, 1275.
#[prost(string, repeated, tag = "14")]
pub similar_deal_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// iOS deep link, for example, exampleApp://content/page.
#[prost(string, tag = "15")]
pub ios_app_link: ::prost::alloc::string::String,
/// iOS app store ID. This is used to check if the user has the app installed
/// on their device before deep linking. If this field is set, then the
/// ios_app_link field must also be present.
#[prost(int64, tag = "16")]
pub ios_app_store_id: i64,
}
/// A dynamic jobs asset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DynamicJobsAsset {
/// Required. Job ID which can be any sequence of letters and digits, and must
/// be unique and match the values of remarketing tag. Required.
#[prost(string, tag = "1")]
pub job_id: ::prost::alloc::string::String,
/// Location ID which can be any sequence of letters and digits. The ID
/// sequence (job ID + location ID) must be unique.
#[prost(string, tag = "2")]
pub location_id: ::prost::alloc::string::String,
/// Required. Job title, for example, Software engineer. Required.
#[prost(string, tag = "3")]
pub job_title: ::prost::alloc::string::String,
/// Job subtitle, for example, Level II.
#[prost(string, tag = "4")]
pub job_subtitle: ::prost::alloc::string::String,
/// Description, for example, Apply your technical skills.
#[prost(string, tag = "5")]
pub description: ::prost::alloc::string::String,
/// Image URL, for example, <http://www.example.com/image.png.> The image will
/// not be uploaded as image asset.
#[prost(string, tag = "6")]
pub image_url: ::prost::alloc::string::String,
/// Job category, for example, Technical.
#[prost(string, tag = "7")]
pub job_category: ::prost::alloc::string::String,
/// Contextual keywords, for example, Software engineering job.
#[prost(string, repeated, tag = "8")]
pub contextual_keywords: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Address which can be specified in one of the following formats.
/// (1) City, state, code, country, for example, Mountain View, CA, USA.
/// (2) Full address, for example, 123 Boulevard St, Mountain View, CA 94043.
/// (3) Latitude-longitude in the DDD format, for example, 41.40338, 2.17403.
#[prost(string, tag = "9")]
pub address: ::prost::alloc::string::String,
/// Salary, for example, $100,000.
#[prost(string, tag = "10")]
pub salary: ::prost::alloc::string::String,
/// Android deep link, for example,
/// android-app://com.example.android/http/example.com/gizmos?1234.
#[prost(string, tag = "11")]
pub android_app_link: ::prost::alloc::string::String,
/// Similar job IDs, for example, 1275.
#[prost(string, repeated, tag = "12")]
pub similar_job_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// iOS deep link, for example, exampleApp://content/page.
#[prost(string, tag = "13")]
pub ios_app_link: ::prost::alloc::string::String,
/// iOS app store ID. This is used to check if the user has the app installed
/// on their device before deep linking. If this field is set, then the
/// ios_app_link field must also be present.
#[prost(int64, tag = "14")]
pub ios_app_store_id: i64,
}
/// A location asset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocationAsset {
/// Place IDs uniquely identify a place in the Google Places database and on
/// Google Maps.
/// This field is unique for a given customer ID and asset type. See
/// <https://developers.google.com/places/web-service/place-id> to learn more
/// about Place ID.
#[prost(string, tag = "1")]
pub place_id: ::prost::alloc::string::String,
/// The list of business locations for the customer.
/// This will only be returned if the Location Asset is syncing from the
/// Business Profile account. It is possible to have multiple Business Profile
/// listings under the same account that point to the same Place ID.
#[prost(message, repeated, tag = "2")]
pub business_profile_locations: ::prost::alloc::vec::Vec<BusinessProfileLocation>,
/// The type of location ownership.
/// If the type is BUSINESS_OWNER, it will be served as a location extension.
/// If the type is AFFILIATE, it will be served as an affiliate location.
#[prost(
enumeration = "super::enums::location_ownership_type_enum::LocationOwnershipType",
tag = "3"
)]
pub location_ownership_type: i32,
}
/// Business Profile location data synced from the linked Business Profile
/// account.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BusinessProfileLocation {
/// Advertiser specified label for the location on the Business Profile
/// account. This is synced from the Business Profile account.
#[prost(string, repeated, tag = "1")]
pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Business Profile store code of this location. This is synced from the
/// Business Profile account.
#[prost(string, tag = "2")]
pub store_code: ::prost::alloc::string::String,
/// Listing ID of this Business Profile location. This is synced from the
/// linked Business Profile account.
#[prost(int64, tag = "3")]
pub listing_id: i64,
}
/// A hotel property asset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HotelPropertyAsset {
/// Place IDs uniquely identify a place in the Google Places database and on
/// Google Maps. See <https://developers.google.com/places/web-service/place-id>
/// to learn more.
#[prost(string, tag = "1")]
pub place_id: ::prost::alloc::string::String,
/// Address of the hotel. Read-only.
#[prost(string, tag = "2")]
pub hotel_address: ::prost::alloc::string::String,
/// Name of the hotel. Read-only.
#[prost(string, tag = "3")]
pub hotel_name: ::prost::alloc::string::String,
}
/// Matching function associated with a
/// CustomerFeed, CampaignFeed, or AdGroupFeed. The matching function is used
/// to filter the set of feed items selected.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MatchingFunction {
/// String representation of the Function.
///
/// Examples:
///
/// 1. IDENTITY(true) or IDENTITY(false). All or no feed items served.
/// 2. EQUALS(CONTEXT.DEVICE,"Mobile")
/// 3. IN(FEED_ITEM_ID,{1000001,1000002,1000003})
/// 4. CONTAINS_ANY(FeedAttribute\[12345678,0\],{"Mars cruise","Venus cruise"})
/// 5. AND(IN(FEED_ITEM_ID,{10001,10002}),EQUALS(CONTEXT.DEVICE,"Mobile"))
///
/// For more details, visit
/// <https://developers.google.com/google-ads/api/docs/extensions/feeds/matching-functions>
///
/// Note that because multiple strings may represent the same underlying
/// function (whitespace and single versus double quotation marks, for
/// example), the value returned may not be identical to the string sent in a
/// mutate request.
#[prost(string, optional, tag = "5")]
pub function_string: ::core::option::Option<::prost::alloc::string::String>,
/// Operator for a function.
#[prost(
enumeration = "super::enums::matching_function_operator_enum::MatchingFunctionOperator",
tag = "4"
)]
pub operator: i32,
/// The operands on the left hand side of the equation. This is also the
/// operand to be used for single operand expressions such as NOT.
#[prost(message, repeated, tag = "2")]
pub left_operands: ::prost::alloc::vec::Vec<Operand>,
/// The operands on the right hand side of the equation.
#[prost(message, repeated, tag = "3")]
pub right_operands: ::prost::alloc::vec::Vec<Operand>,
}
/// An operand in a matching function.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Operand {
/// Different operands that can be used in a matching function. Required.
#[prost(oneof = "operand::FunctionArgumentOperand", tags = "1, 2, 3, 4")]
pub function_argument_operand: ::core::option::Option<
operand::FunctionArgumentOperand,
>,
}
/// Nested message and enum types in `Operand`.
pub mod operand {
/// A constant operand in a matching function.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConstantOperand {
/// Constant operand values. Required.
#[prost(oneof = "constant_operand::ConstantOperandValue", tags = "5, 6, 7, 8")]
pub constant_operand_value: ::core::option::Option<
constant_operand::ConstantOperandValue,
>,
}
/// Nested message and enum types in `ConstantOperand`.
pub mod constant_operand {
/// Constant operand values. Required.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum ConstantOperandValue {
/// String value of the operand if it is a string type.
#[prost(string, tag = "5")]
StringValue(::prost::alloc::string::String),
/// Int64 value of the operand if it is a int64 type.
#[prost(int64, tag = "6")]
LongValue(i64),
/// Boolean value of the operand if it is a boolean type.
#[prost(bool, tag = "7")]
BooleanValue(bool),
/// Double value of the operand if it is a double type.
#[prost(double, tag = "8")]
DoubleValue(f64),
}
}
/// A feed attribute operand in a matching function.
/// Used to represent a feed attribute in feed.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct FeedAttributeOperand {
/// The associated feed. Required.
#[prost(int64, optional, tag = "3")]
pub feed_id: ::core::option::Option<i64>,
/// Id of the referenced feed attribute. Required.
#[prost(int64, optional, tag = "4")]
pub feed_attribute_id: ::core::option::Option<i64>,
}
/// A function operand in a matching function.
/// Used to represent nested functions.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FunctionOperand {
/// The matching function held in this operand.
#[prost(message, optional, tag = "1")]
pub matching_function: ::core::option::Option<super::MatchingFunction>,
}
/// An operand in a function referring to a value in the request context.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct RequestContextOperand {
/// Type of value to be referred in the request context.
#[prost(
enumeration = "super::super::enums::matching_function_context_type_enum::MatchingFunctionContextType",
tag = "1"
)]
pub context_type: i32,
}
/// Different operands that can be used in a matching function. Required.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum FunctionArgumentOperand {
/// A constant operand in a matching function.
#[prost(message, tag = "1")]
ConstantOperand(ConstantOperand),
/// This operand specifies a feed attribute in feed.
#[prost(message, tag = "2")]
FeedAttributeOperand(FeedAttributeOperand),
/// A function operand in a matching function.
/// Used to represent nested functions.
#[prost(message, tag = "3")]
FunctionOperand(FunctionOperand),
/// An operand in a function referring to a value in the request context.
#[prost(message, tag = "4")]
RequestContextOperand(RequestContextOperand),
}
}
/// A date range.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DateRange {
/// The start date, in yyyy-mm-dd format. This date is inclusive.
#[prost(string, optional, tag = "3")]
pub start_date: ::core::option::Option<::prost::alloc::string::String>,
/// The end date, in yyyy-mm-dd format. This date is inclusive.
#[prost(string, optional, tag = "4")]
pub end_date: ::core::option::Option<::prost::alloc::string::String>,
}
/// The year month range inclusive of the start and end months.
/// Eg: A year month range to represent Jan 2020 would be: (Jan 2020, Jan 2020).
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct YearMonthRange {
/// The inclusive start year month.
#[prost(message, optional, tag = "1")]
pub start: ::core::option::Option<YearMonth>,
/// The inclusive end year month.
#[prost(message, optional, tag = "2")]
pub end: ::core::option::Option<YearMonth>,
}
/// Year month.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct YearMonth {
/// The year (for example, 2020).
#[prost(int64, tag = "1")]
pub year: i64,
/// The month of the year. (for example, FEBRUARY).
#[prost(enumeration = "super::enums::month_of_year_enum::MonthOfYear", tag = "2")]
pub month: i32,
}
/// Contains the usage information of the asset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AssetUsage {
/// Resource name of the asset.
#[prost(string, tag = "1")]
pub asset: ::prost::alloc::string::String,
/// The served field type of the asset.
#[prost(
enumeration = "super::enums::served_asset_field_type_enum::ServedAssetFieldType",
tag = "2"
)]
pub served_asset_field_type: i32,
}
/// A container for simulation points for simulations of type CPC_BID.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CpcBidSimulationPointList {
/// Projected metrics for a series of CPC bid amounts.
#[prost(message, repeated, tag = "1")]
pub points: ::prost::alloc::vec::Vec<CpcBidSimulationPoint>,
}
/// A container for simulation points for simulations of type CPV_BID.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CpvBidSimulationPointList {
/// Projected metrics for a series of CPV bid amounts.
#[prost(message, repeated, tag = "1")]
pub points: ::prost::alloc::vec::Vec<CpvBidSimulationPoint>,
}
/// A container for simulation points for simulations of type TARGET_CPA.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetCpaSimulationPointList {
/// Projected metrics for a series of target CPA amounts.
#[prost(message, repeated, tag = "1")]
pub points: ::prost::alloc::vec::Vec<TargetCpaSimulationPoint>,
}
/// A container for simulation points for simulations of type TARGET_ROAS.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetRoasSimulationPointList {
/// Projected metrics for a series of target ROAS amounts.
#[prost(message, repeated, tag = "1")]
pub points: ::prost::alloc::vec::Vec<TargetRoasSimulationPoint>,
}
/// A container for simulation points for simulations of type PERCENT_CPC_BID.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PercentCpcBidSimulationPointList {
/// Projected metrics for a series of percent CPC bid amounts.
#[prost(message, repeated, tag = "1")]
pub points: ::prost::alloc::vec::Vec<PercentCpcBidSimulationPoint>,
}
/// A container for simulation points for simulations of type BUDGET.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BudgetSimulationPointList {
/// Projected metrics for a series of budget amounts.
#[prost(message, repeated, tag = "1")]
pub points: ::prost::alloc::vec::Vec<BudgetSimulationPoint>,
}
/// A container for simulation points for simulations of type
/// TARGET_IMPRESSION_SHARE.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetImpressionShareSimulationPointList {
/// Projected metrics for a specific target impression share value.
#[prost(message, repeated, tag = "1")]
pub points: ::prost::alloc::vec::Vec<TargetImpressionShareSimulationPoint>,
}
/// Projected metrics for a specific CPC bid amount.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct CpcBidSimulationPoint {
/// Projected required daily budget that the advertiser must set in order to
/// receive the estimated traffic, in micros of advertiser currency.
#[prost(int64, tag = "17")]
pub required_budget_amount_micros: i64,
/// Projected number of biddable conversions.
#[prost(double, optional, tag = "9")]
pub biddable_conversions: ::core::option::Option<f64>,
/// Projected total value of biddable conversions.
#[prost(double, optional, tag = "10")]
pub biddable_conversions_value: ::core::option::Option<f64>,
/// Projected number of clicks.
#[prost(int64, optional, tag = "11")]
pub clicks: ::core::option::Option<i64>,
/// Projected cost in micros.
#[prost(int64, optional, tag = "12")]
pub cost_micros: ::core::option::Option<i64>,
/// Projected number of impressions.
#[prost(int64, optional, tag = "13")]
pub impressions: ::core::option::Option<i64>,
/// Projected number of top slot impressions.
/// Only search advertising channel type supports this field.
#[prost(int64, optional, tag = "14")]
pub top_slot_impressions: ::core::option::Option<i64>,
/// When SimulationModificationMethod = UNIFORM or DEFAULT,
/// cpc_bid_micros is set.
/// When SimulationModificationMethod = SCALING,
/// cpc_bid_scaling_modifier is set.
#[prost(oneof = "cpc_bid_simulation_point::CpcSimulationKeyValue", tags = "15, 16")]
pub cpc_simulation_key_value: ::core::option::Option<
cpc_bid_simulation_point::CpcSimulationKeyValue,
>,
}
/// Nested message and enum types in `CpcBidSimulationPoint`.
pub mod cpc_bid_simulation_point {
/// When SimulationModificationMethod = UNIFORM or DEFAULT,
/// cpc_bid_micros is set.
/// When SimulationModificationMethod = SCALING,
/// cpc_bid_scaling_modifier is set.
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum CpcSimulationKeyValue {
/// The simulated CPC bid upon which projected metrics are based.
#[prost(int64, tag = "15")]
CpcBidMicros(i64),
/// The simulated scaling modifier upon which projected metrics are based.
/// All CPC bids relevant to the simulated entity are scaled by this
/// modifier.
#[prost(double, tag = "16")]
CpcBidScalingModifier(f64),
}
}
/// Projected metrics for a specific CPV bid amount.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct CpvBidSimulationPoint {
/// The simulated CPV bid upon which projected metrics are based.
#[prost(int64, optional, tag = "5")]
pub cpv_bid_micros: ::core::option::Option<i64>,
/// Projected cost in micros.
#[prost(int64, optional, tag = "6")]
pub cost_micros: ::core::option::Option<i64>,
/// Projected number of impressions.
#[prost(int64, optional, tag = "7")]
pub impressions: ::core::option::Option<i64>,
/// Projected number of views.
#[prost(int64, optional, tag = "8")]
pub views: ::core::option::Option<i64>,
}
/// Projected metrics for a specific target CPA amount.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct TargetCpaSimulationPoint {
/// Projected required daily budget that the advertiser must set in order to
/// receive the estimated traffic, in micros of advertiser currency.
#[prost(int64, tag = "19")]
pub required_budget_amount_micros: i64,
/// Projected number of biddable conversions.
#[prost(double, optional, tag = "9")]
pub biddable_conversions: ::core::option::Option<f64>,
/// Projected total value of biddable conversions.
#[prost(double, optional, tag = "10")]
pub biddable_conversions_value: ::core::option::Option<f64>,
/// Projected number of app installs.
#[prost(double, tag = "15")]
pub app_installs: f64,
/// Projected number of in-app actions.
#[prost(double, tag = "16")]
pub in_app_actions: f64,
/// Projected number of clicks.
#[prost(int64, optional, tag = "11")]
pub clicks: ::core::option::Option<i64>,
/// Projected cost in micros.
#[prost(int64, optional, tag = "12")]
pub cost_micros: ::core::option::Option<i64>,
/// Projected number of impressions.
#[prost(int64, optional, tag = "13")]
pub impressions: ::core::option::Option<i64>,
/// Projected number of top slot impressions.
/// Only search advertising channel type supports this field.
#[prost(int64, optional, tag = "14")]
pub top_slot_impressions: ::core::option::Option<i64>,
/// Projected number of interactions.
/// Only discovery advertising channel type supports this field.
#[prost(int64, optional, tag = "20")]
pub interactions: ::core::option::Option<i64>,
/// When SimulationModificationMethod = UNIFORM or DEFAULT,
/// target_cpa_micros is set.
/// When SimulationModificationMethod = SCALING,
/// target_cpa_scaling_modifier is set.
#[prost(
oneof = "target_cpa_simulation_point::TargetCpaSimulationKeyValue",
tags = "17, 18"
)]
pub target_cpa_simulation_key_value: ::core::option::Option<
target_cpa_simulation_point::TargetCpaSimulationKeyValue,
>,
}
/// Nested message and enum types in `TargetCpaSimulationPoint`.
pub mod target_cpa_simulation_point {
/// When SimulationModificationMethod = UNIFORM or DEFAULT,
/// target_cpa_micros is set.
/// When SimulationModificationMethod = SCALING,
/// target_cpa_scaling_modifier is set.
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum TargetCpaSimulationKeyValue {
/// The simulated target CPA upon which projected metrics are based.
#[prost(int64, tag = "17")]
TargetCpaMicros(i64),
/// The simulated scaling modifier upon which projected metrics are based.
/// All CPA targets relevant to the simulated entity are scaled by this
/// modifier.
#[prost(double, tag = "18")]
TargetCpaScalingModifier(f64),
}
}
/// Projected metrics for a specific target ROAS amount.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct TargetRoasSimulationPoint {
/// The simulated target ROAS upon which projected metrics are based.
#[prost(double, optional, tag = "8")]
pub target_roas: ::core::option::Option<f64>,
/// Projected required daily budget that the advertiser must set in order to
/// receive the estimated traffic, in micros of advertiser currency.
#[prost(int64, tag = "15")]
pub required_budget_amount_micros: i64,
/// Projected number of biddable conversions.
#[prost(double, optional, tag = "9")]
pub biddable_conversions: ::core::option::Option<f64>,
/// Projected total value of biddable conversions.
#[prost(double, optional, tag = "10")]
pub biddable_conversions_value: ::core::option::Option<f64>,
/// Projected number of clicks.
#[prost(int64, optional, tag = "11")]
pub clicks: ::core::option::Option<i64>,
/// Projected cost in micros.
#[prost(int64, optional, tag = "12")]
pub cost_micros: ::core::option::Option<i64>,
/// Projected number of impressions.
#[prost(int64, optional, tag = "13")]
pub impressions: ::core::option::Option<i64>,
/// Projected number of top slot impressions.
/// Only Search advertising channel type supports this field.
#[prost(int64, optional, tag = "14")]
pub top_slot_impressions: ::core::option::Option<i64>,
}
/// Projected metrics for a specific percent CPC amount. Only Hotel advertising
/// channel type supports this field.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct PercentCpcBidSimulationPoint {
/// The simulated percent CPC upon which projected metrics are based. Percent
/// CPC expressed as fraction of the advertised price for some good or service.
/// The value stored here is 1,000,000 * \[fraction\].
#[prost(int64, optional, tag = "1")]
pub percent_cpc_bid_micros: ::core::option::Option<i64>,
/// Projected number of biddable conversions.
#[prost(double, optional, tag = "2")]
pub biddable_conversions: ::core::option::Option<f64>,
/// Projected total value of biddable conversions in local currency.
#[prost(double, optional, tag = "3")]
pub biddable_conversions_value: ::core::option::Option<f64>,
/// Projected number of clicks.
#[prost(int64, optional, tag = "4")]
pub clicks: ::core::option::Option<i64>,
/// Projected cost in micros.
#[prost(int64, optional, tag = "5")]
pub cost_micros: ::core::option::Option<i64>,
/// Projected number of impressions.
#[prost(int64, optional, tag = "6")]
pub impressions: ::core::option::Option<i64>,
/// Projected number of top slot impressions.
#[prost(int64, optional, tag = "7")]
pub top_slot_impressions: ::core::option::Option<i64>,
}
/// Projected metrics for a specific budget amount.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct BudgetSimulationPoint {
/// The simulated budget upon which projected metrics are based.
#[prost(int64, tag = "1")]
pub budget_amount_micros: i64,
/// Projected required daily cpc bid ceiling that the advertiser must set to
/// realize this simulation, in micros of the advertiser currency.
/// Only campaigns with the Target Spend bidding strategy support this field.
#[prost(int64, tag = "2")]
pub required_cpc_bid_ceiling_micros: i64,
/// Projected number of biddable conversions.
#[prost(double, tag = "3")]
pub biddable_conversions: f64,
/// Projected total value of biddable conversions.
#[prost(double, tag = "4")]
pub biddable_conversions_value: f64,
/// Projected number of clicks.
#[prost(int64, tag = "5")]
pub clicks: i64,
/// Projected cost in micros.
#[prost(int64, tag = "6")]
pub cost_micros: i64,
/// Projected number of impressions.
#[prost(int64, tag = "7")]
pub impressions: i64,
/// Projected number of top slot impressions.
/// Only search advertising channel type supports this field.
#[prost(int64, tag = "8")]
pub top_slot_impressions: i64,
/// Projected number of interactions.
/// Only discovery advertising channel type supports this field.
#[prost(int64, tag = "9")]
pub interactions: i64,
}
/// Projected metrics for a specific target impression share value.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct TargetImpressionShareSimulationPoint {
/// The simulated target impression share value (in micros) upon which
/// projected metrics are based.
/// For example, 10% impression share, which is equal to 0.1, is stored as
/// 100_000. This value is validated and will not exceed 1M (100%).
#[prost(int64, tag = "1")]
pub target_impression_share_micros: i64,
/// Projected required daily cpc bid ceiling that the advertiser must set to
/// realize this simulation, in micros of the advertiser currency.
#[prost(int64, tag = "2")]
pub required_cpc_bid_ceiling_micros: i64,
/// Projected required daily budget that the advertiser must set in order to
/// receive the estimated traffic, in micros of advertiser currency.
#[prost(int64, tag = "3")]
pub required_budget_amount_micros: i64,
/// Projected number of biddable conversions.
#[prost(double, tag = "4")]
pub biddable_conversions: f64,
/// Projected total value of biddable conversions.
#[prost(double, tag = "5")]
pub biddable_conversions_value: f64,
/// Projected number of clicks.
#[prost(int64, tag = "6")]
pub clicks: i64,
/// Projected cost in micros.
#[prost(int64, tag = "7")]
pub cost_micros: i64,
/// Projected number of impressions.
#[prost(int64, tag = "8")]
pub impressions: i64,
/// Projected number of top slot impressions.
/// Only search advertising channel type supports this field.
#[prost(int64, tag = "9")]
pub top_slot_impressions: i64,
/// Projected number of absolute top impressions.
/// Only search advertising channel type supports this field.
#[prost(int64, tag = "10")]
pub absolute_top_impressions: i64,
}
/// A text asset used inside an ad.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdTextAsset {
/// Asset text.
#[prost(string, optional, tag = "4")]
pub text: ::core::option::Option<::prost::alloc::string::String>,
/// The pinned field of the asset. This restricts the asset to only serve
/// within this field. Multiple assets can be pinned to the same field. An
/// asset that is unpinned or pinned to a different field will not serve in a
/// field where some other asset has been pinned.
#[prost(
enumeration = "super::enums::served_asset_field_type_enum::ServedAssetFieldType",
tag = "2"
)]
pub pinned_field: i32,
/// The performance label of this text asset.
#[prost(
enumeration = "super::enums::asset_performance_label_enum::AssetPerformanceLabel",
tag = "5"
)]
pub asset_performance_label: i32,
/// The policy summary of this text asset.
#[prost(message, optional, tag = "6")]
pub policy_summary_info: ::core::option::Option<AdAssetPolicySummary>,
}
/// An image asset used inside an ad.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdImageAsset {
/// The Asset resource name of this image.
#[prost(string, optional, tag = "2")]
pub asset: ::core::option::Option<::prost::alloc::string::String>,
}
/// A video asset used inside an ad.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdVideoAsset {
/// The Asset resource name of this video.
#[prost(string, optional, tag = "2")]
pub asset: ::core::option::Option<::prost::alloc::string::String>,
}
/// A media bundle asset used inside an ad.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdMediaBundleAsset {
/// The Asset resource name of this media bundle.
#[prost(string, optional, tag = "2")]
pub asset: ::core::option::Option<::prost::alloc::string::String>,
}
/// A discovery carousel card asset used inside an ad.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdDiscoveryCarouselCardAsset {
/// The Asset resource name of this discovery carousel card.
#[prost(string, optional, tag = "1")]
pub asset: ::core::option::Option<::prost::alloc::string::String>,
}
/// A call to action asset used inside an ad.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdCallToActionAsset {
/// The Asset resource name of this call to action asset.
#[prost(string, optional, tag = "1")]
pub asset: ::core::option::Option<::prost::alloc::string::String>,
}
/// A text ad.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TextAdInfo {
/// The headline of the ad.
#[prost(string, optional, tag = "4")]
pub headline: ::core::option::Option<::prost::alloc::string::String>,
/// The first line of the ad's description.
#[prost(string, optional, tag = "5")]
pub description1: ::core::option::Option<::prost::alloc::string::String>,
/// The second line of the ad's description.
#[prost(string, optional, tag = "6")]
pub description2: ::core::option::Option<::prost::alloc::string::String>,
}
/// An expanded text ad.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExpandedTextAdInfo {
/// The first part of the ad's headline.
#[prost(string, optional, tag = "8")]
pub headline_part1: ::core::option::Option<::prost::alloc::string::String>,
/// The second part of the ad's headline.
#[prost(string, optional, tag = "9")]
pub headline_part2: ::core::option::Option<::prost::alloc::string::String>,
/// The third part of the ad's headline.
#[prost(string, optional, tag = "10")]
pub headline_part3: ::core::option::Option<::prost::alloc::string::String>,
/// The description of the ad.
#[prost(string, optional, tag = "11")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// The second description of the ad.
#[prost(string, optional, tag = "12")]
pub description2: ::core::option::Option<::prost::alloc::string::String>,
/// The text that can appear alongside the ad's displayed URL.
#[prost(string, optional, tag = "13")]
pub path1: ::core::option::Option<::prost::alloc::string::String>,
/// Additional text that can appear alongside the ad's displayed URL.
#[prost(string, optional, tag = "14")]
pub path2: ::core::option::Option<::prost::alloc::string::String>,
}
/// An expanded dynamic search ad.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExpandedDynamicSearchAdInfo {
/// The description of the ad.
#[prost(string, optional, tag = "3")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// The second description of the ad.
#[prost(string, optional, tag = "4")]
pub description2: ::core::option::Option<::prost::alloc::string::String>,
}
/// A hotel ad.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct HotelAdInfo {}
/// A travel ad.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct TravelAdInfo {}
/// A Smart Shopping ad.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ShoppingSmartAdInfo {}
/// A standard Shopping ad.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ShoppingProductAdInfo {}
/// A Shopping Comparison Listing ad.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ShoppingComparisonListingAdInfo {
/// Headline of the ad. This field is required. Allowed length is between 25
/// and 45 characters.
#[prost(string, optional, tag = "2")]
pub headline: ::core::option::Option<::prost::alloc::string::String>,
}
/// An image ad.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ImageAdInfo {
/// Width in pixels of the full size image.
#[prost(int64, optional, tag = "15")]
pub pixel_width: ::core::option::Option<i64>,
/// Height in pixels of the full size image.
#[prost(int64, optional, tag = "16")]
pub pixel_height: ::core::option::Option<i64>,
/// URL of the full size image.
#[prost(string, optional, tag = "17")]
pub image_url: ::core::option::Option<::prost::alloc::string::String>,
/// Width in pixels of the preview size image.
#[prost(int64, optional, tag = "18")]
pub preview_pixel_width: ::core::option::Option<i64>,
/// Height in pixels of the preview size image.
#[prost(int64, optional, tag = "19")]
pub preview_pixel_height: ::core::option::Option<i64>,
/// URL of the preview size image.
#[prost(string, optional, tag = "20")]
pub preview_image_url: ::core::option::Option<::prost::alloc::string::String>,
/// The mime type of the image.
#[prost(enumeration = "super::enums::mime_type_enum::MimeType", tag = "10")]
pub mime_type: i32,
/// The name of the image. If the image was created from a MediaFile, this is
/// the MediaFile's name. If the image was created from bytes, this is empty.
#[prost(string, optional, tag = "21")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The image to create the ImageAd from. This can be specified in one of
/// two ways.
/// 1. An existing MediaFile resource.
/// 2. The raw image data as bytes.
#[prost(oneof = "image_ad_info::Image", tags = "22, 13, 14")]
pub image: ::core::option::Option<image_ad_info::Image>,
}
/// Nested message and enum types in `ImageAdInfo`.
pub mod image_ad_info {
/// The image to create the ImageAd from. This can be specified in one of
/// two ways.
/// 1. An existing MediaFile resource.
/// 2. The raw image data as bytes.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Image {
/// The image assets used for the ad.
#[prost(message, tag = "22")]
ImageAsset(super::AdImageAsset),
/// Raw image data as bytes.
#[prost(bytes, tag = "13")]
Data(::prost::bytes::Bytes),
/// An ad ID to copy the image from.
#[prost(int64, tag = "14")]
AdIdToCopyImageFrom(i64),
}
}
/// Representation of video bumper in-stream ad format (very short in-stream
/// non-skippable video ad).
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VideoBumperInStreamAdInfo {
/// The image assets of the companion banner used with the ad.
#[prost(message, optional, tag = "3")]
pub companion_banner: ::core::option::Option<AdImageAsset>,
/// Label on the "Call To Action" button taking the user to the video ad's
/// final URL.
#[prost(string, tag = "4")]
pub action_button_label: ::prost::alloc::string::String,
/// Additional text displayed with the CTA (call-to-action) button to give
/// context and encourage clicking on the button.
#[prost(string, tag = "5")]
pub action_headline: ::prost::alloc::string::String,
}
/// Representation of video non-skippable in-stream ad format (15 second
/// in-stream non-skippable video ad).
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VideoNonSkippableInStreamAdInfo {
/// The image assets of the companion banner used with the ad.
#[prost(message, optional, tag = "5")]
pub companion_banner: ::core::option::Option<AdImageAsset>,
/// Label on the "Call To Action" button taking the user to the video ad's
/// final URL.
#[prost(string, tag = "3")]
pub action_button_label: ::prost::alloc::string::String,
/// Additional text displayed with the "Call To Action" button to give
/// context and encourage clicking on the button.
#[prost(string, tag = "4")]
pub action_headline: ::prost::alloc::string::String,
}
/// Representation of video TrueView in-stream ad format (ad shown during video
/// playback, often at beginning, which displays a skip button a few seconds into
/// the video).
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VideoTrueViewInStreamAdInfo {
/// Label on the CTA (call-to-action) button taking the user to the video ad's
/// final URL.
/// Required for TrueView for action campaigns, optional otherwise.
#[prost(string, tag = "4")]
pub action_button_label: ::prost::alloc::string::String,
/// Additional text displayed with the CTA (call-to-action) button to give
/// context and encourage clicking on the button.
#[prost(string, tag = "5")]
pub action_headline: ::prost::alloc::string::String,
/// The image assets of the companion banner used with the ad.
#[prost(message, optional, tag = "7")]
pub companion_banner: ::core::option::Option<AdImageAsset>,
}
/// Representation of video out-stream ad format (ad shown alongside a feed
/// with automatic playback, without sound).
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VideoOutstreamAdInfo {
/// The headline of the ad.
#[prost(string, tag = "3")]
pub headline: ::prost::alloc::string::String,
/// The description line.
#[prost(string, tag = "4")]
pub description: ::prost::alloc::string::String,
}
/// Representation of In-feed video ad format.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InFeedVideoAdInfo {
/// The headline of the ad.
#[prost(string, tag = "1")]
pub headline: ::prost::alloc::string::String,
/// First text line for the ad.
#[prost(string, tag = "2")]
pub description1: ::prost::alloc::string::String,
/// Second text line for the ad.
#[prost(string, tag = "3")]
pub description2: ::prost::alloc::string::String,
/// Video thumbnail image to use.
#[prost(
enumeration = "super::enums::video_thumbnail_enum::VideoThumbnail",
tag = "4"
)]
pub thumbnail: i32,
}
/// A video ad.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VideoAdInfo {
/// The YouTube video assets used for the ad.
#[prost(message, optional, tag = "8")]
pub video: ::core::option::Option<AdVideoAsset>,
/// Format-specific schema for the different video formats.
#[prost(oneof = "video_ad_info::Format", tags = "2, 3, 4, 5, 9")]
pub format: ::core::option::Option<video_ad_info::Format>,
}
/// Nested message and enum types in `VideoAdInfo`.
pub mod video_ad_info {
/// Format-specific schema for the different video formats.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Format {
/// Video TrueView in-stream ad format.
#[prost(message, tag = "2")]
InStream(super::VideoTrueViewInStreamAdInfo),
/// Video bumper in-stream ad format.
#[prost(message, tag = "3")]
Bumper(super::VideoBumperInStreamAdInfo),
/// Video out-stream ad format.
#[prost(message, tag = "4")]
OutStream(super::VideoOutstreamAdInfo),
/// Video non-skippable in-stream ad format.
#[prost(message, tag = "5")]
NonSkippable(super::VideoNonSkippableInStreamAdInfo),
/// In-feed video ad format.
#[prost(message, tag = "9")]
InFeed(super::InFeedVideoAdInfo),
}
}
/// A video responsive ad.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VideoResponsiveAdInfo {
/// List of text assets used for the short headline. Currently, only a single
/// value for the short headline is supported.
#[prost(message, repeated, tag = "1")]
pub headlines: ::prost::alloc::vec::Vec<AdTextAsset>,
/// List of text assets used for the long headline.
/// Currently, only a single value for the long headline is supported.
#[prost(message, repeated, tag = "2")]
pub long_headlines: ::prost::alloc::vec::Vec<AdTextAsset>,
/// List of text assets used for the description.
/// Currently, only a single value for the description is supported.
#[prost(message, repeated, tag = "3")]
pub descriptions: ::prost::alloc::vec::Vec<AdTextAsset>,
/// List of text assets used for the button, for example, the "Call To Action"
/// button. Currently, only a single value for the button is supported.
#[prost(message, repeated, tag = "4")]
pub call_to_actions: ::prost::alloc::vec::Vec<AdTextAsset>,
/// List of YouTube video assets used for the ad.
/// Currently, only a single value for the YouTube video asset is supported.
#[prost(message, repeated, tag = "5")]
pub videos: ::prost::alloc::vec::Vec<AdVideoAsset>,
/// List of image assets used for the companion banner.
/// Currently, only a single value for the companion banner asset is supported.
#[prost(message, repeated, tag = "6")]
pub companion_banners: ::prost::alloc::vec::Vec<AdImageAsset>,
/// First part of text that appears in the ad with the displayed URL.
#[prost(string, tag = "7")]
pub breadcrumb1: ::prost::alloc::string::String,
/// Second part of text that appears in the ad with the displayed URL.
#[prost(string, tag = "8")]
pub breadcrumb2: ::prost::alloc::string::String,
}
/// A responsive search ad.
///
/// Responsive search ads let you create an ad that adapts to show more text, and
/// more relevant messages, to your customers. Enter multiple headlines and
/// descriptions when creating a responsive search ad, and over time, Google Ads
/// will automatically test different combinations and learn which combinations
/// perform best. By adapting your ad's content to more closely match potential
/// customers' search terms, responsive search ads may improve your campaign's
/// performance.
///
/// More information at <https://support.google.com/google-ads/answer/7684791>
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResponsiveSearchAdInfo {
/// List of text assets for headlines. When the ad serves the headlines will
/// be selected from this list.
#[prost(message, repeated, tag = "1")]
pub headlines: ::prost::alloc::vec::Vec<AdTextAsset>,
/// List of text assets for descriptions. When the ad serves the descriptions
/// will be selected from this list.
#[prost(message, repeated, tag = "2")]
pub descriptions: ::prost::alloc::vec::Vec<AdTextAsset>,
/// First part of text that can be appended to the URL in the ad.
#[prost(string, optional, tag = "5")]
pub path1: ::core::option::Option<::prost::alloc::string::String>,
/// Second part of text that can be appended to the URL in the ad. This field
/// can only be set when `path1` is also set.
#[prost(string, optional, tag = "6")]
pub path2: ::core::option::Option<::prost::alloc::string::String>,
}
/// A legacy responsive display ad. Ads of this type are labeled 'Responsive ads'
/// in the Google Ads UI.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LegacyResponsiveDisplayAdInfo {
/// The short version of the ad's headline.
#[prost(string, optional, tag = "16")]
pub short_headline: ::core::option::Option<::prost::alloc::string::String>,
/// The long version of the ad's headline.
#[prost(string, optional, tag = "17")]
pub long_headline: ::core::option::Option<::prost::alloc::string::String>,
/// The description of the ad.
#[prost(string, optional, tag = "18")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// The business name in the ad.
#[prost(string, optional, tag = "19")]
pub business_name: ::core::option::Option<::prost::alloc::string::String>,
/// Advertiser's consent to allow flexible color. When true, the ad may be
/// served with different color if necessary. When false, the ad will be served
/// with the specified colors or a neutral color.
/// The default value is `true`.
/// Must be true if `main_color` and `accent_color` are not set.
#[prost(bool, optional, tag = "20")]
pub allow_flexible_color: ::core::option::Option<bool>,
/// The accent color of the ad in hexadecimal, for example, #ffffff for white.
/// If one of `main_color` and `accent_color` is set, the other is required as
/// well.
#[prost(string, optional, tag = "21")]
pub accent_color: ::core::option::Option<::prost::alloc::string::String>,
/// The main color of the ad in hexadecimal, for example, #ffffff for white.
/// If one of `main_color` and `accent_color` is set, the other is required as
/// well.
#[prost(string, optional, tag = "22")]
pub main_color: ::core::option::Option<::prost::alloc::string::String>,
/// The call-to-action text for the ad.
#[prost(string, optional, tag = "23")]
pub call_to_action_text: ::core::option::Option<::prost::alloc::string::String>,
/// The MediaFile resource name of the logo image used in the ad.
#[prost(string, optional, tag = "24")]
pub logo_image: ::core::option::Option<::prost::alloc::string::String>,
/// The MediaFile resource name of the square logo image used in the ad.
#[prost(string, optional, tag = "25")]
pub square_logo_image: ::core::option::Option<::prost::alloc::string::String>,
/// The MediaFile resource name of the marketing image used in the ad.
#[prost(string, optional, tag = "26")]
pub marketing_image: ::core::option::Option<::prost::alloc::string::String>,
/// The MediaFile resource name of the square marketing image used in the ad.
#[prost(string, optional, tag = "27")]
pub square_marketing_image: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies which format the ad will be served in. Default is ALL_FORMATS.
#[prost(
enumeration = "super::enums::display_ad_format_setting_enum::DisplayAdFormatSetting",
tag = "13"
)]
pub format_setting: i32,
/// Prefix before price. For example, 'as low as'.
#[prost(string, optional, tag = "28")]
pub price_prefix: ::core::option::Option<::prost::alloc::string::String>,
/// Promotion text used for dynamic formats of responsive ads. For example
/// 'Free two-day shipping'.
#[prost(string, optional, tag = "29")]
pub promo_text: ::core::option::Option<::prost::alloc::string::String>,
}
/// An app ad.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AppAdInfo {
/// Mandatory ad text.
#[prost(message, optional, tag = "1")]
pub mandatory_ad_text: ::core::option::Option<AdTextAsset>,
/// List of text assets for headlines. When the ad serves the headlines will
/// be selected from this list.
#[prost(message, repeated, tag = "2")]
pub headlines: ::prost::alloc::vec::Vec<AdTextAsset>,
/// List of text assets for descriptions. When the ad serves the descriptions
/// will be selected from this list.
#[prost(message, repeated, tag = "3")]
pub descriptions: ::prost::alloc::vec::Vec<AdTextAsset>,
/// List of image assets that may be displayed with the ad.
#[prost(message, repeated, tag = "4")]
pub images: ::prost::alloc::vec::Vec<AdImageAsset>,
/// List of YouTube video assets that may be displayed with the ad.
#[prost(message, repeated, tag = "5")]
pub youtube_videos: ::prost::alloc::vec::Vec<AdVideoAsset>,
/// List of media bundle assets that may be used with the ad.
#[prost(message, repeated, tag = "6")]
pub html5_media_bundles: ::prost::alloc::vec::Vec<AdMediaBundleAsset>,
}
/// App engagement ads allow you to write text encouraging a specific action in
/// the app, like checking in, making a purchase, or booking a flight.
/// They allow you to send users to a specific part of your app where they can
/// find what they're looking for easier and faster.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AppEngagementAdInfo {
/// List of text assets for headlines. When the ad serves the headlines will
/// be selected from this list.
#[prost(message, repeated, tag = "1")]
pub headlines: ::prost::alloc::vec::Vec<AdTextAsset>,
/// List of text assets for descriptions. When the ad serves the descriptions
/// will be selected from this list.
#[prost(message, repeated, tag = "2")]
pub descriptions: ::prost::alloc::vec::Vec<AdTextAsset>,
/// List of image assets that may be displayed with the ad.
#[prost(message, repeated, tag = "3")]
pub images: ::prost::alloc::vec::Vec<AdImageAsset>,
/// List of video assets that may be displayed with the ad.
#[prost(message, repeated, tag = "4")]
pub videos: ::prost::alloc::vec::Vec<AdVideoAsset>,
}
/// App pre-registration ads link to your app or game listing on Google Play, and
/// can run on Google Play, on YouTube (in-stream only), and within other apps
/// and mobile websites on the Display Network. It will help capture people's
/// interest in your app or game and generate an early install base for your app
/// or game before a launch.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AppPreRegistrationAdInfo {
/// List of text assets for headlines. When the ad serves the headlines will
/// be selected from this list.
#[prost(message, repeated, tag = "1")]
pub headlines: ::prost::alloc::vec::Vec<AdTextAsset>,
/// List of text assets for descriptions. When the ad serves the descriptions
/// will be selected from this list.
#[prost(message, repeated, tag = "2")]
pub descriptions: ::prost::alloc::vec::Vec<AdTextAsset>,
/// List of image asset IDs whose images may be displayed with the ad.
#[prost(message, repeated, tag = "3")]
pub images: ::prost::alloc::vec::Vec<AdImageAsset>,
/// List of YouTube video asset IDs whose videos may be displayed with the ad.
#[prost(message, repeated, tag = "4")]
pub youtube_videos: ::prost::alloc::vec::Vec<AdVideoAsset>,
}
/// A legacy app install ad that only can be used by a few select customers.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LegacyAppInstallAdInfo {
/// The ID of the mobile app.
#[prost(string, optional, tag = "6")]
pub app_id: ::core::option::Option<::prost::alloc::string::String>,
/// The app store the mobile app is available in.
#[prost(
enumeration = "super::enums::legacy_app_install_ad_app_store_enum::LegacyAppInstallAdAppStore",
tag = "2"
)]
pub app_store: i32,
/// The headline of the ad.
#[prost(string, optional, tag = "7")]
pub headline: ::core::option::Option<::prost::alloc::string::String>,
/// The first description line of the ad.
#[prost(string, optional, tag = "8")]
pub description1: ::core::option::Option<::prost::alloc::string::String>,
/// The second description line of the ad.
#[prost(string, optional, tag = "9")]
pub description2: ::core::option::Option<::prost::alloc::string::String>,
}
/// A responsive display ad.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResponsiveDisplayAdInfo {
/// Marketing images to be used in the ad. Valid image types are GIF,
/// JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
/// be 1.91:1 (+-1%). At least one `marketing_image` is required. Combined
/// with `square_marketing_images`, the maximum is 15.
#[prost(message, repeated, tag = "1")]
pub marketing_images: ::prost::alloc::vec::Vec<AdImageAsset>,
/// Square marketing images to be used in the ad. Valid image types are GIF,
/// JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
/// be 1:1 (+-1%). At least one square `marketing_image` is required. Combined
/// with `marketing_images`, the maximum is 15.
#[prost(message, repeated, tag = "2")]
pub square_marketing_images: ::prost::alloc::vec::Vec<AdImageAsset>,
/// Logo images to be used in the ad. Valid image types are GIF,
/// JPEG, and PNG. The minimum size is 512x128 and the aspect ratio must
/// be 4:1 (+-1%). Combined with `square_logo_images`, the maximum is 5.
#[prost(message, repeated, tag = "3")]
pub logo_images: ::prost::alloc::vec::Vec<AdImageAsset>,
/// Square logo images to be used in the ad. Valid image types are GIF,
/// JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must
/// be 1:1 (+-1%). Combined with `logo_images`, the maximum is 5.
#[prost(message, repeated, tag = "4")]
pub square_logo_images: ::prost::alloc::vec::Vec<AdImageAsset>,
/// Short format headlines for the ad. The maximum length is 30 characters.
/// At least 1 and max 5 headlines can be specified.
#[prost(message, repeated, tag = "5")]
pub headlines: ::prost::alloc::vec::Vec<AdTextAsset>,
/// A required long format headline. The maximum length is 90 characters.
#[prost(message, optional, tag = "6")]
pub long_headline: ::core::option::Option<AdTextAsset>,
/// Descriptive texts for the ad. The maximum length is 90 characters. At
/// least 1 and max 5 headlines can be specified.
#[prost(message, repeated, tag = "7")]
pub descriptions: ::prost::alloc::vec::Vec<AdTextAsset>,
/// Optional YouTube videos for the ad. A maximum of 5 videos can be specified.
#[prost(message, repeated, tag = "8")]
pub youtube_videos: ::prost::alloc::vec::Vec<AdVideoAsset>,
/// The advertiser/brand name. Maximum display width is 25.
#[prost(string, optional, tag = "17")]
pub business_name: ::core::option::Option<::prost::alloc::string::String>,
/// The main color of the ad in hexadecimal, for example, #ffffff for white.
/// If one of `main_color` and `accent_color` is set, the other is required as
/// well.
#[prost(string, optional, tag = "18")]
pub main_color: ::core::option::Option<::prost::alloc::string::String>,
/// The accent color of the ad in hexadecimal, for example, #ffffff for white.
/// If one of `main_color` and `accent_color` is set, the other is required as
/// well.
#[prost(string, optional, tag = "19")]
pub accent_color: ::core::option::Option<::prost::alloc::string::String>,
/// Advertiser's consent to allow flexible color. When true, the ad may be
/// served with different color if necessary. When false, the ad will be served
/// with the specified colors or a neutral color.
/// The default value is `true`.
/// Must be true if `main_color` and `accent_color` are not set.
#[prost(bool, optional, tag = "20")]
pub allow_flexible_color: ::core::option::Option<bool>,
/// The call-to-action text for the ad. Maximum display width is 30.
#[prost(string, optional, tag = "21")]
pub call_to_action_text: ::core::option::Option<::prost::alloc::string::String>,
/// Prefix before price. For example, 'as low as'.
#[prost(string, optional, tag = "22")]
pub price_prefix: ::core::option::Option<::prost::alloc::string::String>,
/// Promotion text used for dynamic formats of responsive ads. For example
/// 'Free two-day shipping'.
#[prost(string, optional, tag = "23")]
pub promo_text: ::core::option::Option<::prost::alloc::string::String>,
/// Specifies which format the ad will be served in. Default is ALL_FORMATS.
#[prost(
enumeration = "super::enums::display_ad_format_setting_enum::DisplayAdFormatSetting",
tag = "16"
)]
pub format_setting: i32,
/// Specification for various creative controls.
#[prost(message, optional, tag = "24")]
pub control_spec: ::core::option::Option<ResponsiveDisplayAdControlSpec>,
}
/// A local ad.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocalAdInfo {
/// List of text assets for headlines. When the ad serves the headlines will
/// be selected from this list. At least 1 and at most 5 headlines must be
/// specified.
#[prost(message, repeated, tag = "1")]
pub headlines: ::prost::alloc::vec::Vec<AdTextAsset>,
/// List of text assets for descriptions. When the ad serves the descriptions
/// will be selected from this list. At least 1 and at most 5 descriptions must
/// be specified.
#[prost(message, repeated, tag = "2")]
pub descriptions: ::prost::alloc::vec::Vec<AdTextAsset>,
/// List of text assets for call-to-actions. When the ad serves the
/// call-to-actions will be selected from this list. At least 1 and at most
/// 5 call-to-actions must be specified.
#[prost(message, repeated, tag = "3")]
pub call_to_actions: ::prost::alloc::vec::Vec<AdTextAsset>,
/// List of marketing image assets that may be displayed with the ad. The
/// images must be 314x600 pixels or 320x320 pixels. At least 1 and at most
/// 20 image assets must be specified.
#[prost(message, repeated, tag = "4")]
pub marketing_images: ::prost::alloc::vec::Vec<AdImageAsset>,
/// List of logo image assets that may be displayed with the ad. The images
/// must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5
/// image assets must be specified.
#[prost(message, repeated, tag = "5")]
pub logo_images: ::prost::alloc::vec::Vec<AdImageAsset>,
/// List of YouTube video assets that may be displayed with the ad. At least 1
/// and at most 20 video assets must be specified.
#[prost(message, repeated, tag = "6")]
pub videos: ::prost::alloc::vec::Vec<AdVideoAsset>,
/// First part of optional text that can be appended to the URL in the ad.
#[prost(string, optional, tag = "9")]
pub path1: ::core::option::Option<::prost::alloc::string::String>,
/// Second part of optional text that can be appended to the URL in the ad.
/// This field can only be set when `path1` is also set.
#[prost(string, optional, tag = "10")]
pub path2: ::core::option::Option<::prost::alloc::string::String>,
}
/// A generic type of display ad. The exact ad format is controlled by the
/// `display_upload_product_type` field, which determines what kinds of data
/// need to be included with the ad.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DisplayUploadAdInfo {
/// The product type of this ad. See comments on the enum for details.
#[prost(
enumeration = "super::enums::display_upload_product_type_enum::DisplayUploadProductType",
tag = "1"
)]
pub display_upload_product_type: i32,
/// The asset data that makes up the ad.
#[prost(oneof = "display_upload_ad_info::MediaAsset", tags = "2")]
pub media_asset: ::core::option::Option<display_upload_ad_info::MediaAsset>,
}
/// Nested message and enum types in `DisplayUploadAdInfo`.
pub mod display_upload_ad_info {
/// The asset data that makes up the ad.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum MediaAsset {
/// A media bundle asset to be used in the ad. For information about the
/// media bundle for HTML5_UPLOAD_AD, see
/// <https://support.google.com/google-ads/answer/1722096>
/// Media bundles that are part of dynamic product types use a special format
/// that needs to be created through the Google Web Designer. See
/// <https://support.google.com/webdesigner/answer/7543898> for more
/// information.
#[prost(message, tag = "2")]
MediaBundle(super::AdMediaBundleAsset),
}
}
/// Specification for various creative controls for a responsive display ad.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ResponsiveDisplayAdControlSpec {
/// Whether the advertiser has opted into the asset enhancements feature.
#[prost(bool, tag = "1")]
pub enable_asset_enhancements: bool,
/// Whether the advertiser has opted into auto-gen video feature.
#[prost(bool, tag = "2")]
pub enable_autogen_video: bool,
}
/// A Smart campaign ad.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SmartCampaignAdInfo {
/// List of text assets, each of which corresponds to a headline when the ad
/// serves. This list consists of a minimum of 3 and up to 15 text assets.
#[prost(message, repeated, tag = "1")]
pub headlines: ::prost::alloc::vec::Vec<AdTextAsset>,
/// List of text assets, each of which corresponds to a description when the ad
/// serves. This list consists of a minimum of 2 and up to 4 text assets.
#[prost(message, repeated, tag = "2")]
pub descriptions: ::prost::alloc::vec::Vec<AdTextAsset>,
}
/// A call ad.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CallAdInfo {
/// The country code in the ad.
#[prost(string, tag = "1")]
pub country_code: ::prost::alloc::string::String,
/// The phone number in the ad.
#[prost(string, tag = "2")]
pub phone_number: ::prost::alloc::string::String,
/// The business name in the ad.
#[prost(string, tag = "3")]
pub business_name: ::prost::alloc::string::String,
/// First headline in the ad.
#[prost(string, tag = "11")]
pub headline1: ::prost::alloc::string::String,
/// Second headline in the ad.
#[prost(string, tag = "12")]
pub headline2: ::prost::alloc::string::String,
/// The first line of the ad's description.
#[prost(string, tag = "4")]
pub description1: ::prost::alloc::string::String,
/// The second line of the ad's description.
#[prost(string, tag = "5")]
pub description2: ::prost::alloc::string::String,
/// Whether to enable call tracking for the creative. Enabling call
/// tracking also enables call conversions.
#[prost(bool, tag = "6")]
pub call_tracked: bool,
/// Whether to disable call conversion for the creative.
/// If set to `true`, disables call conversions even when `call_tracked` is
/// `true`.
/// If `call_tracked` is `false`, this field is ignored.
#[prost(bool, tag = "7")]
pub disable_call_conversion: bool,
/// The URL to be used for phone number verification.
#[prost(string, tag = "8")]
pub phone_number_verification_url: ::prost::alloc::string::String,
/// The conversion action to attribute a call conversion to. If not set a
/// default conversion action is used. This field only has effect if
/// `call_tracked` is set to `true`. Otherwise this field is ignored.
#[prost(string, tag = "9")]
pub conversion_action: ::prost::alloc::string::String,
/// The call conversion behavior of this call ad. It can use its own call
/// conversion setting, inherit the account level setting, or be disabled.
#[prost(
enumeration = "super::enums::call_conversion_reporting_state_enum::CallConversionReportingState",
tag = "10"
)]
pub conversion_reporting_state: i32,
/// First part of text that can be appended to the URL in the ad. Optional.
#[prost(string, tag = "13")]
pub path1: ::prost::alloc::string::String,
/// Second part of text that can be appended to the URL in the ad. This field
/// can only be set when `path1` is also set. Optional.
#[prost(string, tag = "14")]
pub path2: ::prost::alloc::string::String,
}
/// A discovery multi asset ad.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DiscoveryMultiAssetAdInfo {
/// Marketing image assets to be used in the ad. Valid image types are GIF,
/// JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
/// be 1.91:1 (+-1%). Required if square_marketing_images is
/// not present. Combined with `square_marketing_images` and
/// `portrait_marketing_images` the maximum is 20.
#[prost(message, repeated, tag = "1")]
pub marketing_images: ::prost::alloc::vec::Vec<AdImageAsset>,
/// Square marketing image assets to be used in the ad. Valid image types are
/// GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
/// be 1:1 (+-1%). Required if marketing_images is not present. Combined with
/// `marketing_images` and `portrait_marketing_images` the maximum is 20.
#[prost(message, repeated, tag = "2")]
pub square_marketing_images: ::prost::alloc::vec::Vec<AdImageAsset>,
/// Portrait marketing image assets to be used in the ad. Valid image types are
/// GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
/// be 4:5 (+-1%). Combined with `marketing_images` and
/// `square_marketing_images` the maximum is 20.
#[prost(message, repeated, tag = "3")]
pub portrait_marketing_images: ::prost::alloc::vec::Vec<AdImageAsset>,
/// Logo image assets to be used in the ad. Valid image types are GIF,
/// JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be
/// 1:1 (+-1%). At least 1 and max 5 logo images can be specified.
#[prost(message, repeated, tag = "4")]
pub logo_images: ::prost::alloc::vec::Vec<AdImageAsset>,
/// Headline text asset of the ad. Maximum display width is 30. At least 1 and
/// max 5 headlines can be specified.
#[prost(message, repeated, tag = "5")]
pub headlines: ::prost::alloc::vec::Vec<AdTextAsset>,
/// The descriptive text of the ad. Maximum display width is 90. At least 1 and
/// max 5 descriptions can be specified.
#[prost(message, repeated, tag = "6")]
pub descriptions: ::prost::alloc::vec::Vec<AdTextAsset>,
/// The Advertiser/brand name. Maximum display width is 25. Required.
#[prost(string, optional, tag = "7")]
pub business_name: ::core::option::Option<::prost::alloc::string::String>,
/// Call to action text.
#[prost(string, optional, tag = "8")]
pub call_to_action_text: ::core::option::Option<::prost::alloc::string::String>,
/// Boolean option that indicates if this ad must be served with lead form.
#[prost(bool, optional, tag = "9")]
pub lead_form_only: ::core::option::Option<bool>,
}
/// A discovery carousel ad.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DiscoveryCarouselAdInfo {
/// Required. The Advertiser/brand name.
#[prost(string, tag = "1")]
pub business_name: ::prost::alloc::string::String,
/// Required. Logo image to be used in the ad. The minimum size is 128x128 and
/// the aspect ratio must be 1:1 (+-1%).
#[prost(message, optional, tag = "2")]
pub logo_image: ::core::option::Option<AdImageAsset>,
/// Required. Headline of the ad.
#[prost(message, optional, tag = "3")]
pub headline: ::core::option::Option<AdTextAsset>,
/// Required. The descriptive text of the ad.
#[prost(message, optional, tag = "4")]
pub description: ::core::option::Option<AdTextAsset>,
/// Call to action text.
#[prost(string, tag = "5")]
pub call_to_action_text: ::prost::alloc::string::String,
/// Required. Carousel cards that will display with the ad. Min 2 max 10.
#[prost(message, repeated, tag = "6")]
pub carousel_cards: ::prost::alloc::vec::Vec<AdDiscoveryCarouselCardAsset>,
}
/// A discovery video responsive ad.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DiscoveryVideoResponsiveAdInfo {
/// List of text assets used for the short headline.
#[prost(message, repeated, tag = "1")]
pub headlines: ::prost::alloc::vec::Vec<AdTextAsset>,
/// List of text assets used for the long headline.
#[prost(message, repeated, tag = "2")]
pub long_headlines: ::prost::alloc::vec::Vec<AdTextAsset>,
/// List of text assets used for the description.
#[prost(message, repeated, tag = "3")]
pub descriptions: ::prost::alloc::vec::Vec<AdTextAsset>,
/// List of YouTube video assets used for the ad.
#[prost(message, repeated, tag = "4")]
pub videos: ::prost::alloc::vec::Vec<AdVideoAsset>,
/// Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
/// The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
#[prost(message, repeated, tag = "5")]
pub logo_images: ::prost::alloc::vec::Vec<AdImageAsset>,
/// First part of text that appears in the ad with the displayed URL.
#[prost(string, tag = "6")]
pub breadcrumb1: ::prost::alloc::string::String,
/// Second part of text that appears in the ad with the displayed URL.
#[prost(string, tag = "7")]
pub breadcrumb2: ::prost::alloc::string::String,
/// Required. The advertiser/brand name.
#[prost(message, optional, tag = "8")]
pub business_name: ::core::option::Option<AdTextAsset>,
/// Assets of type CallToActionAsset used for the "Call To Action" button.
#[prost(message, repeated, tag = "9")]
pub call_to_actions: ::prost::alloc::vec::Vec<AdCallToActionAsset>,
}
/// A Demand Gen product ad.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DemandGenProductAdInfo {
/// Required. Text asset used for the short headline.
#[prost(message, optional, tag = "1")]
pub headline: ::core::option::Option<AdTextAsset>,
/// Required. Text asset used for the description.
#[prost(message, optional, tag = "2")]
pub description: ::core::option::Option<AdTextAsset>,
/// Required. Logo image to be used in the ad. Valid image types are GIF, JPEG,
/// and PNG. The minimum size is 128x128 and the aspect ratio must be 1:1
/// (+-1%).
#[prost(message, optional, tag = "3")]
pub logo_image: ::core::option::Option<AdImageAsset>,
/// First part of text that appears in the ad with the displayed URL.
#[prost(string, tag = "4")]
pub breadcrumb1: ::prost::alloc::string::String,
/// Second part of text that appears in the ad with the displayed URL.
#[prost(string, tag = "5")]
pub breadcrumb2: ::prost::alloc::string::String,
/// Required. The advertiser/brand name.
#[prost(message, optional, tag = "6")]
pub business_name: ::core::option::Option<AdTextAsset>,
/// Asset of type CallToActionAsset used for the "Call To Action" button.
#[prost(message, optional, tag = "7")]
pub call_to_action: ::core::option::Option<AdCallToActionAsset>,
}
/// A URL for deep linking into an app for the given operating system.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FinalAppUrl {
/// The operating system targeted by this URL. Required.
#[prost(
enumeration = "super::enums::app_url_operating_system_type_enum::AppUrlOperatingSystemType",
tag = "1"
)]
pub os_type: i32,
/// The app deep link URL. Deep links specify a location in an app that
/// corresponds to the content you'd like to show, and should be of the form
/// {scheme}://{host_path}
/// The scheme identifies which app to open. For your app, you can use a custom
/// scheme that starts with the app's name. The host and path specify the
/// unique location in the app where your content exists.
/// Example: "exampleapp://productid_1234". Required.
#[prost(string, optional, tag = "3")]
pub url: ::core::option::Option<::prost::alloc::string::String>,
}
/// Collection of urls that is tagged with a unique identifier.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UrlCollection {
/// Unique identifier for this UrlCollection instance.
#[prost(string, optional, tag = "5")]
pub url_collection_id: ::core::option::Option<::prost::alloc::string::String>,
/// A list of possible final URLs.
#[prost(string, repeated, tag = "6")]
pub final_urls: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// A list of possible final mobile URLs.
#[prost(string, repeated, tag = "7")]
pub final_mobile_urls: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// URL template for constructing a tracking URL.
#[prost(string, optional, tag = "8")]
pub tracking_url_template: ::core::option::Option<::prost::alloc::string::String>,
}
/// Commission is an automatic bidding strategy in which the advertiser pays a
/// certain portion of the conversion value.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Commission {
/// Commission rate defines the portion of the conversion value that the
/// advertiser will be billed. A commission rate of x should be passed into
/// this field as (x * 1,000,000). For example, 106,000 represents a commission
/// rate of 0.106 (10.6%).
#[prost(int64, optional, tag = "2")]
pub commission_rate_micros: ::core::option::Option<i64>,
}
/// An automated 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.
///
/// This bidding strategy is deprecated and cannot be created anymore. Use
/// ManualCpc with enhanced_cpc_enabled set to true for equivalent functionality.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct EnhancedCpc {}
/// Manual bidding strategy that allows advertiser to set the bid per
/// advertiser-specified action.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ManualCpa {}
/// Manual click-based bidding where user pays per click.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ManualCpc {
/// Whether bids are to be enhanced based on conversion optimizer data.
#[prost(bool, optional, tag = "2")]
pub enhanced_cpc_enabled: ::core::option::Option<bool>,
}
/// Manual impression-based bidding where user pays per thousand impressions.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ManualCpm {}
/// View based bidding where user pays per video view.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ManualCpv {}
/// An automated bidding strategy to help get the most conversions for your
/// campaigns while spending your budget.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MaximizeConversions {
/// Maximum bid limit that can be set by the bid strategy.
/// The limit applies to all keywords managed by the strategy.
/// Mutable for portfolio bidding strategies only.
#[prost(int64, tag = "2")]
pub cpc_bid_ceiling_micros: i64,
/// Minimum bid limit that can be set by the bid strategy.
/// The limit applies to all keywords managed by the strategy.
/// Mutable for portfolio bidding strategies only.
#[prost(int64, tag = "3")]
pub cpc_bid_floor_micros: i64,
/// The target cost-per-action (CPA) option. This is the average amount that
/// you would like to spend per conversion action specified in micro units of
/// the bidding strategy's currency. If set, the bid strategy will get as many
/// conversions as possible at or below the target cost-per-action. If the
/// target CPA is not set, the bid strategy will aim to achieve the lowest
/// possible CPA given the budget.
#[prost(int64, tag = "4")]
pub target_cpa_micros: i64,
}
/// An automated bidding strategy to help get the most conversion value for your
/// campaigns while spending your budget.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MaximizeConversionValue {
/// 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 = "2")]
pub target_roas: f64,
/// Maximum bid limit that can be set by the bid strategy.
/// The limit applies to all keywords managed by the strategy.
/// Mutable for portfolio bidding strategies only.
#[prost(int64, tag = "3")]
pub cpc_bid_ceiling_micros: i64,
/// Minimum bid limit that can be set by the bid strategy.
/// The limit applies to all keywords managed by the strategy.
/// Mutable for portfolio bidding strategies only.
#[prost(int64, tag = "4")]
pub cpc_bid_floor_micros: 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, Copy, PartialEq, ::prost::Message)]
pub struct TargetCpa {
/// 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 = "4")]
pub target_cpa_micros: ::core::option::Option<i64>,
/// Maximum bid limit that can be set by the bid strategy.
/// The limit applies to all keywords managed by the strategy.
/// This should only be set for portfolio bid strategies.
#[prost(int64, optional, tag = "5")]
pub cpc_bid_ceiling_micros: ::core::option::Option<i64>,
/// Minimum bid limit that can be set by the bid strategy.
/// The limit applies to all keywords managed by the strategy.
/// This should only be set for portfolio bid strategies.
#[prost(int64, optional, tag = "6")]
pub cpc_bid_floor_micros: ::core::option::Option<i64>,
}
/// Target CPM (cost per thousand impressions) is an automated bidding strategy
/// that sets bids to optimize performance given the target CPM you set.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct TargetCpm {
/// Additional information related to bidding goal.
#[prost(oneof = "target_cpm::Goal", tags = "1")]
pub goal: ::core::option::Option<target_cpm::Goal>,
}
/// Nested message and enum types in `TargetCpm`.
pub mod target_cpm {
/// Additional information related to bidding goal.
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Goal {
/// Target Frequency bidding goal details.
#[prost(message, tag = "1")]
TargetFrequencyGoal(super::TargetCpmTargetFrequencyGoal),
}
}
/// Target Frequency bidding goal details.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct TargetCpmTargetFrequencyGoal {
/// Target Frequency count representing how many times you want to reach
/// a single user.
#[prost(int64, tag = "1")]
pub target_count: i64,
/// Time window expressing the period over which you want to reach
/// the specified target_count.
#[prost(
enumeration = "super::enums::target_frequency_time_unit_enum::TargetFrequencyTimeUnit",
tag = "2"
)]
pub time_unit: i32,
}
/// 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, Copy, PartialEq, ::prost::Message)]
pub struct TargetImpressionShare {
/// The targeted location on the search results page.
#[prost(
enumeration = "super::enums::target_impression_share_location_enum::TargetImpressionShareLocation",
tag = "1"
)]
pub location: i32,
/// The chosen fraction of ads to be shown in the targeted location in micros.
/// For example, 1% equals 10,000.
#[prost(int64, optional, tag = "4")]
pub location_fraction_micros: ::core::option::Option<i64>,
/// 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 = "5")]
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, Copy, PartialEq, ::prost::Message)]
pub struct TargetRoas {
/// Required. The chosen revenue (based on conversion data) per unit of spend.
/// Value must be between 0.01 and 1000.0, inclusive.
#[prost(double, optional, tag = "4")]
pub target_roas: ::core::option::Option<f64>,
/// Maximum bid limit that can be set by the bid strategy.
/// The limit applies to all keywords managed by the strategy.
/// This should only be set for portfolio bid strategies.
#[prost(int64, optional, tag = "5")]
pub cpc_bid_ceiling_micros: ::core::option::Option<i64>,
/// Minimum bid limit that can be set by the bid strategy.
/// The limit applies to all keywords managed by the strategy.
/// This should only be set for portfolio bid strategies.
#[prost(int64, optional, tag = "6")]
pub cpc_bid_floor_micros: ::core::option::Option<i64>,
}
/// An automated bid strategy that sets your bids to help get as many clicks
/// as possible within your budget.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct TargetSpend {
/// 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 = "3")]
pub target_spend_micros: ::core::option::Option<i64>,
/// 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 = "4")]
pub cpc_bid_ceiling_micros: ::core::option::Option<i64>,
}
/// A bidding strategy where bids are a fraction of the advertised price for
/// some good or service.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct PercentCpc {
/// Maximum bid limit that can be set by the bid strategy. This is
/// an optional field entered by the advertiser and specified in local micros.
/// Note: A zero value is interpreted in the same way as having bid_ceiling
/// undefined.
#[prost(int64, optional, tag = "3")]
pub cpc_bid_ceiling_micros: ::core::option::Option<i64>,
/// Adjusts the bid for each auction upward or downward, depending on the
/// likelihood of a conversion. Individual bids may exceed
/// cpc_bid_ceiling_micros, but the average bid amount for a campaign should
/// not.
#[prost(bool, optional, tag = "4")]
pub enhanced_cpc_enabled: ::core::option::Option<bool>,
}
/// Represents an App extension.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AppFeedItem {
/// The visible text displayed when the link is rendered in an ad.
/// This string must not be empty, and the length of this string should
/// be between 1 and 25, inclusive.
#[prost(string, optional, tag = "9")]
pub link_text: ::core::option::Option<::prost::alloc::string::String>,
/// The store-specific ID for the target application.
/// This string must not be empty.
#[prost(string, optional, tag = "10")]
pub app_id: ::core::option::Option<::prost::alloc::string::String>,
/// The application store that the target application belongs to.
/// This field is required.
#[prost(enumeration = "super::enums::app_store_enum::AppStore", tag = "3")]
pub app_store: i32,
/// A list of possible final URLs after all cross domain redirects.
/// This list must not be empty.
#[prost(string, repeated, tag = "11")]
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 = "12")]
pub final_mobile_urls: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// URL template for constructing a tracking URL. Default value is "{lpurl}".
#[prost(string, optional, tag = "13")]
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 = "7")]
pub url_custom_parameters: ::prost::alloc::vec::Vec<CustomParameter>,
/// URL template for appending params to landing page URLs served with parallel
/// tracking.
#[prost(string, optional, tag = "14")]
pub final_url_suffix: ::core::option::Option<::prost::alloc::string::String>,
}
/// Represents a Call extension.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CallFeedItem {
/// The advertiser's phone number to append to the ad.
/// This string must not be empty.
#[prost(string, optional, tag = "7")]
pub phone_number: ::core::option::Option<::prost::alloc::string::String>,
/// Uppercase two-letter country code of the advertiser's phone number.
/// This string must not be empty.
#[prost(string, optional, tag = "8")]
pub country_code: ::core::option::Option<::prost::alloc::string::String>,
/// Indicates whether call tracking is enabled. By default, call tracking is
/// not enabled.
#[prost(bool, optional, tag = "9")]
pub call_tracking_enabled: ::core::option::Option<bool>,
/// The conversion action to attribute a call conversion to. If not set a
/// default conversion action is used. This field only has effect if
/// call_tracking_enabled is set to true. Otherwise this field is ignored.
#[prost(string, optional, tag = "10")]
pub call_conversion_action: ::core::option::Option<::prost::alloc::string::String>,
/// If true, disable call conversion tracking. call_conversion_action should
/// not be set if this is true. Optional.
#[prost(bool, optional, tag = "11")]
pub call_conversion_tracking_disabled: ::core::option::Option<bool>,
/// Enum value that indicates whether this call extension uses its own call
/// conversion setting (or just have call conversion disabled), or following
/// the account level setting.
#[prost(
enumeration = "super::enums::call_conversion_reporting_state_enum::CallConversionReportingState",
tag = "6"
)]
pub call_conversion_reporting_state: i32,
}
/// Represents a callout extension.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CalloutFeedItem {
/// The callout text.
/// The length of this string should be between 1 and 25, inclusive.
#[prost(string, optional, tag = "2")]
pub callout_text: ::core::option::Option<::prost::alloc::string::String>,
}
/// Represents a location extension.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocationFeedItem {
/// The name of the business.
#[prost(string, optional, tag = "9")]
pub business_name: ::core::option::Option<::prost::alloc::string::String>,
/// Line 1 of the business address.
#[prost(string, optional, tag = "10")]
pub address_line_1: ::core::option::Option<::prost::alloc::string::String>,
/// Line 2 of the business address.
#[prost(string, optional, tag = "11")]
pub address_line_2: ::core::option::Option<::prost::alloc::string::String>,
/// City of the business address.
#[prost(string, optional, tag = "12")]
pub city: ::core::option::Option<::prost::alloc::string::String>,
/// Province of the business address.
#[prost(string, optional, tag = "13")]
pub province: ::core::option::Option<::prost::alloc::string::String>,
/// Postal code of the business address.
#[prost(string, optional, tag = "14")]
pub postal_code: ::core::option::Option<::prost::alloc::string::String>,
/// Country code of the business address.
#[prost(string, optional, tag = "15")]
pub country_code: ::core::option::Option<::prost::alloc::string::String>,
/// Phone number of the business.
#[prost(string, optional, tag = "16")]
pub phone_number: ::core::option::Option<::prost::alloc::string::String>,
}
/// Represents an affiliate location extension.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AffiliateLocationFeedItem {
/// The name of the business.
#[prost(string, optional, tag = "11")]
pub business_name: ::core::option::Option<::prost::alloc::string::String>,
/// Line 1 of the business address.
#[prost(string, optional, tag = "12")]
pub address_line_1: ::core::option::Option<::prost::alloc::string::String>,
/// Line 2 of the business address.
#[prost(string, optional, tag = "13")]
pub address_line_2: ::core::option::Option<::prost::alloc::string::String>,
/// City of the business address.
#[prost(string, optional, tag = "14")]
pub city: ::core::option::Option<::prost::alloc::string::String>,
/// Province of the business address.
#[prost(string, optional, tag = "15")]
pub province: ::core::option::Option<::prost::alloc::string::String>,
/// Postal code of the business address.
#[prost(string, optional, tag = "16")]
pub postal_code: ::core::option::Option<::prost::alloc::string::String>,
/// Country code of the business address.
#[prost(string, optional, tag = "17")]
pub country_code: ::core::option::Option<::prost::alloc::string::String>,
/// Phone number of the business.
#[prost(string, optional, tag = "18")]
pub phone_number: ::core::option::Option<::prost::alloc::string::String>,
/// Id of the retail chain that is advertised as a seller of your product.
#[prost(int64, optional, tag = "19")]
pub chain_id: ::core::option::Option<i64>,
/// Name of chain.
#[prost(string, optional, tag = "20")]
pub chain_name: ::core::option::Option<::prost::alloc::string::String>,
}
/// An extension that users can click on to send a text message to the
/// advertiser.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TextMessageFeedItem {
/// The business name to prepend to the message text.
/// This field is required.
#[prost(string, optional, tag = "6")]
pub business_name: ::core::option::Option<::prost::alloc::string::String>,
/// Uppercase two-letter country code of the advertiser's phone number.
/// This field is required.
#[prost(string, optional, tag = "7")]
pub country_code: ::core::option::Option<::prost::alloc::string::String>,
/// The advertiser's phone number the message will be sent to. Required.
#[prost(string, optional, tag = "8")]
pub phone_number: ::core::option::Option<::prost::alloc::string::String>,
/// The text to show in the ad.
/// This field is required.
#[prost(string, optional, tag = "9")]
pub text: ::core::option::Option<::prost::alloc::string::String>,
/// The message extension_text populated in the messaging app.
#[prost(string, optional, tag = "10")]
pub extension_text: ::core::option::Option<::prost::alloc::string::String>,
}
/// Represents a Price extension.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PriceFeedItem {
/// Price extension type of this extension.
#[prost(
enumeration = "super::enums::price_extension_type_enum::PriceExtensionType",
tag = "1"
)]
pub r#type: i32,
/// Price qualifier for all offers of this price extension.
#[prost(
enumeration = "super::enums::price_extension_price_qualifier_enum::PriceExtensionPriceQualifier",
tag = "2"
)]
pub price_qualifier: i32,
/// Tracking URL template for all offers of this price extension.
#[prost(string, optional, tag = "7")]
pub tracking_url_template: ::core::option::Option<::prost::alloc::string::String>,
/// The code of the language used for this price extension.
#[prost(string, optional, tag = "8")]
pub language_code: ::core::option::Option<::prost::alloc::string::String>,
/// The price offerings in this price extension.
#[prost(message, repeated, tag = "5")]
pub price_offerings: ::prost::alloc::vec::Vec<PriceOffer>,
/// Tracking URL template for all offers of this price extension.
#[prost(string, optional, tag = "9")]
pub final_url_suffix: ::core::option::Option<::prost::alloc::string::String>,
}
/// Represents one price offer in a price extension.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PriceOffer {
/// Header text of this offer.
#[prost(string, optional, tag = "7")]
pub header: ::core::option::Option<::prost::alloc::string::String>,
/// Description text of this offer.
#[prost(string, optional, tag = "8")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
/// Price value of this offer.
#[prost(message, optional, tag = "3")]
pub price: ::core::option::Option<Money>,
/// Price unit for this offer.
#[prost(
enumeration = "super::enums::price_extension_price_unit_enum::PriceExtensionPriceUnit",
tag = "4"
)]
pub unit: i32,
/// A list of possible final URLs after all cross domain redirects.
#[prost(string, repeated, tag = "9")]
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 = "10")]
pub final_mobile_urls: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Represents a Promotion extension.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PromotionFeedItem {
/// A freeform description of what the promotion is targeting.
/// This field is required.
#[prost(string, optional, tag = "16")]
pub promotion_target: ::core::option::Option<::prost::alloc::string::String>,
/// Enum that modifies the qualification of the discount.
#[prost(
enumeration = "super::enums::promotion_extension_discount_modifier_enum::PromotionExtensionDiscountModifier",
tag = "2"
)]
pub discount_modifier: i32,
/// Start date of when the promotion is eligible to be redeemed.
#[prost(string, optional, tag = "19")]
pub promotion_start_date: ::core::option::Option<::prost::alloc::string::String>,
/// Last date when the promotion is eligible to be redeemed.
#[prost(string, optional, tag = "20")]
pub promotion_end_date: ::core::option::Option<::prost::alloc::string::String>,
/// The occasion the promotion was intended for.
/// If an occasion is set, the redemption window will need to fall within
/// the date range associated with the occasion.
#[prost(
enumeration = "super::enums::promotion_extension_occasion_enum::PromotionExtensionOccasion",
tag = "9"
)]
pub occasion: i32,
/// A list of possible final URLs after all cross domain redirects.
/// This field is required.
#[prost(string, repeated, tag = "21")]
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 = "22")]
pub final_mobile_urls: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// URL template for constructing a tracking URL.
#[prost(string, optional, tag = "23")]
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 = "13")]
pub url_custom_parameters: ::prost::alloc::vec::Vec<CustomParameter>,
/// URL template for appending params to landing page URLs served with parallel
/// tracking.
#[prost(string, optional, tag = "24")]
pub final_url_suffix: ::core::option::Option<::prost::alloc::string::String>,
/// The language of the promotion.
/// Represented as BCP 47 language tag.
#[prost(string, optional, tag = "25")]
pub language_code: ::core::option::Option<::prost::alloc::string::String>,
/// Discount type, can be percentage off or amount off.
#[prost(oneof = "promotion_feed_item::DiscountType", tags = "17, 4")]
pub discount_type: ::core::option::Option<promotion_feed_item::DiscountType>,
/// Promotion trigger. Can be by promotion code or promo by eligible order
/// amount.
#[prost(oneof = "promotion_feed_item::PromotionTrigger", tags = "18, 6")]
pub promotion_trigger: ::core::option::Option<promotion_feed_item::PromotionTrigger>,
}
/// Nested message and enum types in `PromotionFeedItem`.
pub mod promotion_feed_item {
/// Discount type, can be percentage off or amount off.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum DiscountType {
/// Percentage off discount in the promotion in micros.
/// One million is equivalent to one percent.
/// Either this or money_off_amount is required.
#[prost(int64, tag = "17")]
PercentOff(i64),
/// Money amount off for discount in the promotion.
/// Either this or percent_off is required.
#[prost(message, tag = "4")]
MoneyAmountOff(super::Money),
}
/// Promotion trigger. Can be by promotion code or promo by eligible order
/// amount.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum PromotionTrigger {
/// A code the user should use in order to be eligible for the promotion.
#[prost(string, tag = "18")]
PromotionCode(::prost::alloc::string::String),
/// The amount the total order needs to be for the user to be eligible for
/// the promotion.
#[prost(message, tag = "6")]
OrdersOverAmount(super::Money),
}
}
/// Represents a structured snippet extension.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StructuredSnippetFeedItem {
/// The header of the snippet.
/// This string must not be empty.
#[prost(string, optional, tag = "3")]
pub header: ::core::option::Option<::prost::alloc::string::String>,
/// The values in the snippet.
/// The maximum size of this collection is 10.
#[prost(string, repeated, tag = "4")]
pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Represents a sitelink.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SitelinkFeedItem {
/// URL display text for the sitelink.
/// The length of this string should be between 1 and 25, inclusive.
#[prost(string, optional, tag = "9")]
pub link_text: ::core::option::Option<::prost::alloc::string::String>,
/// First line of the description for the sitelink.
/// If this value is set, line2 must also be set.
/// The length of this string should be between 0 and 35, inclusive.
#[prost(string, optional, tag = "10")]
pub line1: ::core::option::Option<::prost::alloc::string::String>,
/// Second line of the description for the sitelink.
/// If this value is set, line1 must also be set.
/// The length of this string should be between 0 and 35, inclusive.
#[prost(string, optional, tag = "11")]
pub line2: ::core::option::Option<::prost::alloc::string::String>,
/// A list of possible final URLs after all cross domain redirects.
#[prost(string, repeated, tag = "12")]
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 = "13")]
pub final_mobile_urls: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// URL template for constructing a tracking URL.
#[prost(string, optional, tag = "14")]
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 = "7")]
pub url_custom_parameters: ::prost::alloc::vec::Vec<CustomParameter>,
/// Final URL suffix to be appended to landing page URLs served with
/// parallel tracking.
#[prost(string, optional, tag = "15")]
pub final_url_suffix: ::core::option::Option<::prost::alloc::string::String>,
}
/// Represents a hotel callout extension.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HotelCalloutFeedItem {
/// The callout text.
/// The length of this string should be between 1 and 25, inclusive.
#[prost(string, optional, tag = "3")]
pub text: ::core::option::Option<::prost::alloc::string::String>,
/// The language of the hotel callout text.
/// IETF BCP 47 compliant language code.
#[prost(string, optional, tag = "4")]
pub language_code: ::core::option::Option<::prost::alloc::string::String>,
}
/// Represents an advertiser provided image extension.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ImageFeedItem {
/// Required. Resource name of the image asset.
#[prost(string, tag = "1")]
pub image_asset: ::prost::alloc::string::String,
}
/// A Local Services Document with read only accessible data.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocalServicesDocumentReadOnly {
/// URL to access an already uploaded Local Services document.
#[prost(string, optional, tag = "1")]
pub document_url: ::core::option::Option<::prost::alloc::string::String>,
}
/// Consent
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Consent {
/// This represents consent for ad user data.
#[prost(enumeration = "super::enums::consent_status_enum::ConsentStatus", tag = "1")]
pub ad_user_data: i32,
/// This represents consent for ad personalization.
/// This can only be set for OfflineUserDataJobService and UserDataService.
#[prost(enumeration = "super::enums::consent_status_enum::ConsentStatus", tag = "2")]
pub ad_personalization: i32,
}
/// Address identifier of offline data.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OfflineUserAddressInfo {
/// First name of the user, which is hashed as SHA-256 after normalized
/// (Lowercase all characters; Remove any extra spaces before, after, and in
/// between).
#[prost(string, optional, tag = "7")]
pub hashed_first_name: ::core::option::Option<::prost::alloc::string::String>,
/// Last name of the user, which is hashed as SHA-256 after normalized (lower
/// case only and no punctuation).
#[prost(string, optional, tag = "8")]
pub hashed_last_name: ::core::option::Option<::prost::alloc::string::String>,
/// City of the address. Only accepted for Store Sales and
/// ConversionAdjustmentUploadService.
#[prost(string, optional, tag = "9")]
pub city: ::core::option::Option<::prost::alloc::string::String>,
/// State code of the address. Only accepted for Store Sales and
/// ConversionAdjustmentUploadService.
#[prost(string, optional, tag = "10")]
pub state: ::core::option::Option<::prost::alloc::string::String>,
/// 2-letter country code in ISO-3166-1 alpha-2 of the user's address.
#[prost(string, optional, tag = "11")]
pub country_code: ::core::option::Option<::prost::alloc::string::String>,
/// Postal code of the user's address.
#[prost(string, optional, tag = "12")]
pub postal_code: ::core::option::Option<::prost::alloc::string::String>,
/// The street address of the user hashed using SHA-256 hash function after
/// normalization (lower case only). Only accepted for
/// ConversionAdjustmentUploadService.
#[prost(string, optional, tag = "13")]
pub hashed_street_address: ::core::option::Option<::prost::alloc::string::String>,
}
/// User identifying information.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UserIdentifier {
/// Source of the user identifier when the upload is from Store Sales,
/// ConversionUploadService, or ConversionAdjustmentUploadService.
#[prost(
enumeration = "super::enums::user_identifier_source_enum::UserIdentifierSource",
tag = "6"
)]
pub user_identifier_source: i32,
/// Exactly one must be specified. For OfflineUserDataJobService, Customer
/// Match accepts hashed_email, hashed_phone_number, mobile_id,
/// third_party_user_id, and address_info; Store Sales accepts hashed_email,
/// hashed_phone_number, third_party_user_id, and address_info.
/// ConversionUploadService accepts hashed_email and hashed_phone_number.
/// ConversionAdjustmentUploadService accepts hashed_email,
/// hashed_phone_number, and address_info.
#[prost(oneof = "user_identifier::Identifier", tags = "7, 8, 9, 10, 5")]
pub identifier: ::core::option::Option<user_identifier::Identifier>,
}
/// Nested message and enum types in `UserIdentifier`.
pub mod user_identifier {
/// Exactly one must be specified. For OfflineUserDataJobService, Customer
/// Match accepts hashed_email, hashed_phone_number, mobile_id,
/// third_party_user_id, and address_info; Store Sales accepts hashed_email,
/// hashed_phone_number, third_party_user_id, and address_info.
/// ConversionUploadService accepts hashed_email and hashed_phone_number.
/// ConversionAdjustmentUploadService accepts hashed_email,
/// hashed_phone_number, and address_info.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Identifier {
/// Hashed email address using SHA-256 hash function after normalization.
/// Accepted for Customer Match, Store Sales, ConversionUploadService, and
/// ConversionAdjustmentUploadService.
#[prost(string, tag = "7")]
HashedEmail(::prost::alloc::string::String),
/// Hashed phone number using SHA-256 hash function after normalization
/// (E164 standard). Accepted for Customer Match, Store Sales,
/// ConversionUploadService, and ConversionAdjustmentUploadService.
#[prost(string, tag = "8")]
HashedPhoneNumber(::prost::alloc::string::String),
/// Mobile device ID (advertising ID/IDFA). Accepted only for Customer Match.
#[prost(string, tag = "9")]
MobileId(::prost::alloc::string::String),
/// Advertiser-assigned user ID for Customer Match upload, or
/// third-party-assigned user ID for Store Sales. Accepted only for Customer
/// Match and Store Sales.
#[prost(string, tag = "10")]
ThirdPartyUserId(::prost::alloc::string::String),
/// Address information. Accepted only for Customer Match, Store Sales, and
/// ConversionAdjustmentUploadService.
#[prost(message, tag = "5")]
AddressInfo(super::OfflineUserAddressInfo),
}
}
/// Attribute of the store sales transaction.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TransactionAttribute {
/// Timestamp when transaction occurred. Required.
/// The format is "YYYY-MM-DD HH:MM:SS\[+/-HH:MM\]", where \[+/-HH:MM\] is an
/// optional timezone offset from UTC. If the offset is absent, the API will
/// use the account's timezone as default.
/// Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30+03:00"
#[prost(string, optional, tag = "8")]
pub transaction_date_time: ::core::option::Option<::prost::alloc::string::String>,
/// Transaction amount in micros. Required.
/// Transaction amount in micros needs to be greater than 1000.
/// If item Attributes are provided, it represents the total value of the
/// items, after multiplying the unit price per item by the quantity provided
/// in the ItemAttributes.
#[prost(double, optional, tag = "9")]
pub transaction_amount_micros: ::core::option::Option<f64>,
/// Transaction currency code. ISO 4217 three-letter code is used. Required.
#[prost(string, optional, tag = "10")]
pub currency_code: ::core::option::Option<::prost::alloc::string::String>,
/// The resource name of conversion action to report conversions to.
/// Required.
#[prost(string, optional, tag = "11")]
pub conversion_action: ::core::option::Option<::prost::alloc::string::String>,
/// Transaction order id.
/// Accessible only to customers on the allow-list.
#[prost(string, optional, tag = "12")]
pub order_id: ::core::option::Option<::prost::alloc::string::String>,
/// Store attributes of the transaction.
/// Accessible only to customers on the allow-list.
#[prost(message, optional, tag = "6")]
pub store_attribute: ::core::option::Option<StoreAttribute>,
/// Value of the custom variable for each transaction.
/// Accessible only to customers on the allow-list.
#[prost(string, optional, tag = "13")]
pub custom_value: ::core::option::Option<::prost::alloc::string::String>,
/// Item attributes of the transaction.
#[prost(message, optional, tag = "14")]
pub item_attribute: ::core::option::Option<ItemAttribute>,
}
/// Store attributes of the transaction.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StoreAttribute {
/// Store code from
/// <https://support.google.com/business/answer/3370250#storecode>
#[prost(string, optional, tag = "2")]
pub store_code: ::core::option::Option<::prost::alloc::string::String>,
}
/// Item attributes of the transaction.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ItemAttribute {
/// A unique identifier of a product. It can be either the Merchant Center Item
/// ID or GTIN (Global Trade Item Number).
#[prost(string, tag = "1")]
pub item_id: ::prost::alloc::string::String,
/// ID of the Merchant Center Account.
#[prost(int64, optional, tag = "2")]
pub merchant_id: ::core::option::Option<i64>,
/// Common Locale Data Repository (CLDR) territory code of the country
/// associated with the feed where your items are uploaded. See
/// <https://developers.google.com/google-ads/api/reference/data/codes-formats#country-codes>
/// for more information.
#[prost(string, tag = "3")]
pub country_code: ::prost::alloc::string::String,
/// ISO 639-1 code of the language associated with the feed where your items
/// are uploaded
#[prost(string, tag = "4")]
pub language_code: ::prost::alloc::string::String,
/// The number of items sold. Defaults to 1 if not set.
#[prost(int64, tag = "5")]
pub quantity: i64,
}
/// User data holding user identifiers and attributes.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UserData {
/// User identification info. Required.
#[prost(message, repeated, tag = "1")]
pub user_identifiers: ::prost::alloc::vec::Vec<UserIdentifier>,
/// Additional transactions/attributes associated with the user.
/// Required when updating store sales data.
#[prost(message, optional, tag = "2")]
pub transaction_attribute: ::core::option::Option<TransactionAttribute>,
/// Additional attributes associated with the user. Required when updating
/// customer match attributes. These have an expiration of 540 days.
#[prost(message, optional, tag = "3")]
pub user_attribute: ::core::option::Option<UserAttribute>,
/// The consent setting for the user. Customer match will ignore this field
/// and return a warning.
#[prost(message, optional, tag = "4")]
pub consent: ::core::option::Option<Consent>,
}
/// User attribute, can only be used with CUSTOMER_MATCH_WITH_ATTRIBUTES job
/// type.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UserAttribute {
/// Advertiser defined lifetime value for the user.
#[prost(int64, optional, tag = "1")]
pub lifetime_value_micros: ::core::option::Option<i64>,
/// Advertiser defined lifetime value bucket for the user. The valid range for
/// a lifetime value bucket is from 1 (low) to 10 (high), except for remove
/// operation where 0 will also be accepted.
#[prost(int32, optional, tag = "2")]
pub lifetime_value_bucket: ::core::option::Option<i32>,
/// Timestamp of the last purchase made by the user.
/// The format is YYYY-MM-DD HH:MM:SS\[+/-HH:MM\], where \[+/-HH:MM\] is an
/// optional timezone offset from UTC. If the offset is absent, the API will
/// use the account's timezone as default.
#[prost(string, tag = "3")]
pub last_purchase_date_time: ::prost::alloc::string::String,
/// Advertiser defined average number of purchases that are made by the user in
/// a 30 day period.
#[prost(int32, tag = "4")]
pub average_purchase_count: i32,
/// Advertiser defined average purchase value in micros for the user.
#[prost(int64, tag = "5")]
pub average_purchase_value_micros: i64,
/// Timestamp when the user was acquired.
/// The format is YYYY-MM-DD HH:MM:SS\[+/-HH:MM\], where \[+/-HH:MM\] is an
/// optional timezone offset from UTC. If the offset is absent, the API will
/// use the account's timezone as default.
#[prost(string, tag = "6")]
pub acquisition_date_time: ::prost::alloc::string::String,
/// The shopping loyalty related data. Shopping utilizes this data to provide
/// users with a better experience. Accessible only to merchants on the
/// allow-list with the user's consent.
#[prost(message, optional, tag = "7")]
pub shopping_loyalty: ::core::option::Option<ShoppingLoyalty>,
/// Optional. Advertiser defined lifecycle stage for the user. The accepted
/// values are "Lead", "Active" and "Churned".
#[prost(string, tag = "8")]
pub lifecycle_stage: ::prost::alloc::string::String,
/// Optional. Timestamp of the first purchase made by the user.
/// The format is YYYY-MM-DD HH:MM:SS\[+/-HH:MM\], where \[+/-HH:MM\] is an
/// optional timezone offset from UTC. If the offset is absent, the API will
/// use the account's timezone as default.
#[prost(string, tag = "9")]
pub first_purchase_date_time: ::prost::alloc::string::String,
/// Optional. Advertiser defined events and their attributes. All the values in
/// the nested fields are required. Currently this field is in beta.
#[prost(message, repeated, tag = "10")]
pub event_attribute: ::prost::alloc::vec::Vec<EventAttribute>,
}
/// Advertiser defined events and their attributes. All the values in the
/// nested fields are required.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EventAttribute {
/// Required. Advertiser defined event to be used for remarketing. The accepted
/// values are "Viewed", "Cart", "Purchased" and "Recommended".
#[prost(string, tag = "1")]
pub event: ::prost::alloc::string::String,
/// Required. Timestamp at which the event happened.
/// The format is YYYY-MM-DD HH:MM:SS\[+/-HH:MM\], where \[+/-HH:MM\] is an
/// optional timezone offset from UTC. If the offset is absent, the API will
/// use the account's timezone as default.
#[prost(string, tag = "2")]
pub event_date_time: ::prost::alloc::string::String,
/// Required. Item attributes of the event.
#[prost(message, repeated, tag = "3")]
pub item_attribute: ::prost::alloc::vec::Vec<EventItemAttribute>,
}
/// Event Item attributes of the Customer Match.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EventItemAttribute {
/// Optional. A unique identifier of a product. It can be either the Merchant
/// Center Item ID or GTIN (Global Trade Item Number).
#[prost(string, tag = "1")]
pub item_id: ::prost::alloc::string::String,
}
/// The shopping loyalty related data. Shopping utilizes this data to provide
/// users with a better experience.
/// Accessible only to merchants on the allow-list.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ShoppingLoyalty {
/// The membership tier. It is a free-form string as each merchant may have
/// their own loyalty system. For example, it could be a number from 1 to 10,
/// or a string such as "Golden" or "Silver", or even empty string "".
#[prost(string, optional, tag = "1")]
pub loyalty_tier: ::core::option::Option<::prost::alloc::string::String>,
}
/// Metadata for customer match user list.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomerMatchUserListMetadata {
/// The resource name of remarketing list to update data.
/// Required for job of CUSTOMER_MATCH_USER_LIST type.
#[prost(string, optional, tag = "2")]
pub user_list: ::core::option::Option<::prost::alloc::string::String>,
/// The consent setting for all the users in this job.
#[prost(message, optional, tag = "3")]
pub consent: ::core::option::Option<Consent>,
}
/// Metadata for Store Sales Direct.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StoreSalesMetadata {
/// This is the fraction of all transactions that are identifiable (for
/// example, associated with any form of customer information). Required. The
/// fraction needs to be between 0 and 1 (excluding 0).
#[prost(double, optional, tag = "5")]
pub loyalty_fraction: ::core::option::Option<f64>,
/// This is the ratio of sales being uploaded compared to the overall sales
/// that can be associated with a customer. Required.
/// The fraction needs to be between 0 and 1 (excluding 0). For example, if you
/// upload half the sales that you are able to associate with a customer, this
/// would be 0.5.
#[prost(double, optional, tag = "6")]
pub transaction_upload_fraction: ::core::option::Option<f64>,
/// Name of the store sales custom variable key. A predefined key that
/// can be applied to the transaction and then later used for custom
/// segmentation in reporting.
/// Accessible only to customers on the allow-list.
#[prost(string, optional, tag = "7")]
pub custom_key: ::core::option::Option<::prost::alloc::string::String>,
/// Metadata for a third party Store Sales upload.
#[prost(message, optional, tag = "3")]
pub third_party_metadata: ::core::option::Option<StoreSalesThirdPartyMetadata>,
}
/// Metadata for a third party Store Sales.
/// This product is only for customers on the allow-list. Contact your
/// Google business development representative for details on the upload
/// configuration.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StoreSalesThirdPartyMetadata {
/// Time the advertiser uploaded the data to the partner. Required.
/// 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 = "7")]
pub advertiser_upload_date_time: ::core::option::Option<
::prost::alloc::string::String,
>,
/// The fraction of transactions that are valid. Invalid transactions may
/// include invalid formats or values.
/// Required.
/// The fraction needs to be between 0 and 1 (excluding 0).
#[prost(double, optional, tag = "8")]
pub valid_transaction_fraction: ::core::option::Option<f64>,
/// The fraction of valid transactions that are matched to a third party
/// assigned user ID on the partner side.
/// Required.
/// The fraction needs to be between 0 and 1 (excluding 0).
#[prost(double, optional, tag = "9")]
pub partner_match_fraction: ::core::option::Option<f64>,
/// The fraction of valid transactions that are uploaded by the partner to
/// Google.
/// Required.
/// The fraction needs to be between 0 and 1 (excluding 0).
#[prost(double, optional, tag = "10")]
pub partner_upload_fraction: ::core::option::Option<f64>,
/// Version of partner IDs to be used for uploads. Required.
#[prost(string, optional, tag = "11")]
pub bridge_map_version_id: ::core::option::Option<::prost::alloc::string::String>,
/// ID of the third party partner updating the transaction feed.
#[prost(int64, optional, tag = "12")]
pub partner_id: ::core::option::Option<i64>,
}
/// A customizer value that is referenced in customizer linkage entities
/// like CustomerCustomizer, CampaignCustomizer, etc.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomizerValue {
/// Required. The data type for the customizer value. It must match the
/// attribute type. The string_value content must match the constraints
/// associated with the type.
#[prost(
enumeration = "super::enums::customizer_attribute_type_enum::CustomizerAttributeType",
tag = "1"
)]
pub r#type: i32,
/// Required. Value to insert in creative text. Customizer values of all types
/// are stored as string to make formatting unambiguous.
#[prost(string, tag = "2")]
pub string_value: ::prost::alloc::string::String,
}
/// Lifecycle goal value settings.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct LifecycleGoalValueSettings {
/// Value of the lifecycle goal. For example, for customer acquisition goal,
/// value is the incremental conversion value for new customers who are not of
/// high value.
#[prost(double, optional, tag = "1")]
pub value: ::core::option::Option<f64>,
/// High lifetime value of the lifecycle goal. For example, for customer
/// acquisition goal, high lifetime value is the incremental conversion value
/// for new customers who are of high value. High lifetime value should be
/// greater than value, if set.
/// In current stage, high lifetime value feature is in beta and this field
/// is read-only.
#[prost(double, optional, tag = "2")]
pub high_lifetime_value: ::core::option::Option<f64>,
}
/// The site tag and event snippet pair for a TrackingCodeType.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TagSnippet {
/// The type of the generated tag snippets for tracking conversions.
#[prost(
enumeration = "super::enums::tracking_code_type_enum::TrackingCodeType",
tag = "1"
)]
pub r#type: i32,
/// The format of the web page where the tracking tag and snippet will be
/// installed, for example, HTML.
#[prost(
enumeration = "super::enums::tracking_code_page_format_enum::TrackingCodePageFormat",
tag = "2"
)]
pub page_format: i32,
/// The site tag that adds visitors to your basic remarketing lists and sets
/// new cookies on your domain.
#[prost(string, optional, tag = "5")]
pub global_site_tag: ::core::option::Option<::prost::alloc::string::String>,
/// The event snippet that works with the site tag to track actions that
/// should be counted as conversions.
#[prost(string, optional, tag = "6")]
pub event_snippet: ::core::option::Option<::prost::alloc::string::String>,
}
/// Location criteria associated with a click.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClickLocation {
/// The city location criterion associated with the impression.
#[prost(string, optional, tag = "6")]
pub city: ::core::option::Option<::prost::alloc::string::String>,
/// The country location criterion associated with the impression.
#[prost(string, optional, tag = "7")]
pub country: ::core::option::Option<::prost::alloc::string::String>,
/// The metro location criterion associated with the impression.
#[prost(string, optional, tag = "8")]
pub metro: ::core::option::Option<::prost::alloc::string::String>,
/// The most specific location criterion associated with the impression.
#[prost(string, optional, tag = "9")]
pub most_specific: ::core::option::Option<::prost::alloc::string::String>,
/// The region location criterion associated with the impression.
#[prost(string, optional, tag = "10")]
pub region: ::core::option::Option<::prost::alloc::string::String>,
}
/// Data related to location set. One of the Google Business Profile (previously
/// known as Google My Business) data, Chain data, and map location data need to
/// be specified.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocationSet {
/// Required. Immutable. Location Ownership Type (owned location or affiliate
/// location).
#[prost(
enumeration = "super::enums::location_ownership_type_enum::LocationOwnershipType",
tag = "3"
)]
pub location_ownership_type: i32,
/// Location data specific to each sync source.
#[prost(oneof = "location_set::Source", tags = "1, 2, 5")]
pub source: ::core::option::Option<location_set::Source>,
}
/// Nested message and enum types in `LocationSet`.
pub mod location_set {
/// Location data specific to each sync source.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Source {
/// Data used to configure a location set populated from Google Business
/// Profile locations.
#[prost(message, tag = "1")]
BusinessProfileLocationSet(super::BusinessProfileLocationSet),
/// Data used to configure a location on chain set populated with the
/// specified chains.
#[prost(message, tag = "2")]
ChainLocationSet(super::ChainSet),
/// Only set if locations are synced based on selected maps locations
#[prost(message, tag = "5")]
MapsLocationSet(super::MapsLocationSet),
}
}
/// Data used to configure a location set populated from Google Business Profile
/// locations.
/// Different types of filters are AND'ed together, if they are specified.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BusinessProfileLocationSet {
/// Required. Immutable. The HTTP authorization token used to obtain
/// authorization.
#[prost(string, tag = "1")]
pub http_authorization_token: ::prost::alloc::string::String,
/// Required. Immutable. Email address of a Google Business Profile account or
/// email address of a manager of the Google Business Profile account.
#[prost(string, tag = "2")]
pub email_address: ::prost::alloc::string::String,
/// Used to filter Google Business Profile listings by business name. If
/// businessNameFilter is set, only listings with a matching business name are
/// candidates to be sync'd into Assets.
#[prost(string, tag = "3")]
pub business_name_filter: ::prost::alloc::string::String,
/// Used to filter Google Business Profile listings by labels. If entries exist
/// in labelFilters, only listings that have any of the labels set are
/// candidates to be synchronized into Assets. If no entries exist in
/// labelFilters, then all listings are candidates for syncing.
/// Label filters are OR'ed together.
#[prost(string, repeated, tag = "4")]
pub label_filters: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Used to filter Google Business Profile listings by listing id. If entries
/// exist in listingIdFilters, only listings specified by the filters are
/// candidates to be synchronized into Assets. If no entries exist in
/// listingIdFilters, then all listings are candidates for syncing.
/// Listing ID filters are OR'ed together.
#[prost(int64, repeated, tag = "5")]
pub listing_id_filters: ::prost::alloc::vec::Vec<i64>,
/// Immutable. The account ID of the managed business whose locations are to be
/// used. If this field is not set, then all businesses accessible by the user
/// (specified by the emailAddress) are used.
#[prost(string, tag = "6")]
pub business_account_id: ::prost::alloc::string::String,
}
/// Data used to configure a location set populated with the specified chains.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChainSet {
/// Required. Immutable. Relationship type the specified chains have with this
/// advertiser.
#[prost(
enumeration = "super::enums::chain_relationship_type_enum::ChainRelationshipType",
tag = "1"
)]
pub relationship_type: i32,
/// Required. A list of chain level filters, all filters are OR'ed together.
#[prost(message, repeated, tag = "2")]
pub chains: ::prost::alloc::vec::Vec<ChainFilter>,
}
/// One chain level filter on location in a feed item set.
/// The filtering logic among all the fields is AND.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChainFilter {
/// Required. Used to filter chain locations by chain id. Only chain locations
/// that belong to the specified chain will be in the asset set.
#[prost(int64, tag = "1")]
pub chain_id: i64,
/// Used to filter chain locations by location attributes.
/// Only chain locations that belong to all of the specified attribute(s) will
/// be in the asset set. If this field is empty, it means no filtering on this
/// field.
#[prost(string, repeated, tag = "2")]
pub location_attributes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Wrapper for multiple maps location sync data
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MapsLocationSet {
/// Required. A list of maps location info that user manually synced in.
#[prost(message, repeated, tag = "1")]
pub maps_locations: ::prost::alloc::vec::Vec<MapsLocationInfo>,
}
/// Wrapper for place ids
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MapsLocationInfo {
/// Place ID of the Maps location.
#[prost(string, tag = "1")]
pub place_id: ::prost::alloc::string::String,
}
/// Information about a Business Profile dynamic location group.
/// Only applicable if the sync level AssetSet's type is LOCATION_SYNC and
/// sync source is Business Profile.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BusinessProfileLocationGroup {
/// Filter for dynamic Business Profile location sets.
#[prost(message, optional, tag = "1")]
pub dynamic_business_profile_location_group_filter: ::core::option::Option<
DynamicBusinessProfileLocationGroupFilter,
>,
}
/// Represents a filter on Business Profile locations in an asset set. If
/// multiple filters are provided, they are AND'ed together.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DynamicBusinessProfileLocationGroupFilter {
/// Used to filter Business Profile locations by label. Only locations that
/// have any of the listed labels will be in the asset set.
/// Label filters are OR'ed together.
#[prost(string, repeated, tag = "1")]
pub label_filters: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Used to filter Business Profile locations by business name.
#[prost(message, optional, tag = "2")]
pub business_name_filter: ::core::option::Option<BusinessProfileBusinessNameFilter>,
/// Used to filter Business Profile locations by listing ids.
#[prost(int64, repeated, tag = "3")]
pub listing_id_filters: ::prost::alloc::vec::Vec<i64>,
}
/// Business Profile location group business name filter.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BusinessProfileBusinessNameFilter {
/// Business name string to use for filtering.
#[prost(string, tag = "1")]
pub business_name: ::prost::alloc::string::String,
/// The type of string matching to use when filtering with business_name.
#[prost(
enumeration = "super::enums::location_string_filter_type_enum::LocationStringFilterType",
tag = "2"
)]
pub filter_type: i32,
}
/// Represents information about a Chain dynamic location group.
/// Only applicable if the sync level AssetSet's type is LOCATION_SYNC and
/// sync source is chain.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChainLocationGroup {
/// Used to filter chain locations by chain ids.
/// Only Locations that belong to the specified chain(s) will be in the asset
/// set.
#[prost(message, repeated, tag = "1")]
pub dynamic_chain_location_group_filters: ::prost::alloc::vec::Vec<ChainFilter>,
}
/// A rule specifying the maximum number of times an ad (or some set of ads) can
/// be shown to a user over a particular time period.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct FrequencyCapEntry {
/// The key of a particular frequency cap. There can be no more
/// than one frequency cap with the same key.
#[prost(message, optional, tag = "1")]
pub key: ::core::option::Option<FrequencyCapKey>,
/// Maximum number of events allowed during the time range by this cap.
#[prost(int32, optional, tag = "3")]
pub cap: ::core::option::Option<i32>,
}
/// A group of fields used as keys for a frequency cap.
/// There can be no more than one frequency cap with the same key.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct FrequencyCapKey {
/// The level on which the cap is to be applied (for example, ad group ad, ad
/// group). The cap is applied to all the entities of this level.
#[prost(
enumeration = "super::enums::frequency_cap_level_enum::FrequencyCapLevel",
tag = "1"
)]
pub level: i32,
/// The type of event that the cap applies to (for example, impression).
#[prost(
enumeration = "super::enums::frequency_cap_event_type_enum::FrequencyCapEventType",
tag = "3"
)]
pub event_type: i32,
/// Unit of time the cap is defined at (for example, day, week).
#[prost(
enumeration = "super::enums::frequency_cap_time_unit_enum::FrequencyCapTimeUnit",
tag = "2"
)]
pub time_unit: i32,
/// Number of time units the cap lasts.
#[prost(int32, optional, tag = "5")]
pub time_length: ::core::option::Option<i32>,
}
/// Settings for Real-Time Bidding, a feature only available for campaigns
/// targeting the Ad Exchange network.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct RealTimeBiddingSetting {
/// Whether the campaign is opted in to real-time bidding.
#[prost(bool, optional, tag = "2")]
pub opt_in: ::core::option::Option<bool>,
}
/// 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::Message)]
pub struct DynamicLocationSetFilter {
/// If multiple labels are set, then only feeditems marked with all the labels
/// will be added to the FeedItemSet.
#[prost(string, repeated, tag = "1")]
pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Business name filter.
#[prost(message, optional, tag = "2")]
pub business_name_filter: ::core::option::Option<BusinessNameFilter>,
}
/// Represents a business name filter on locations in a FeedItemSet.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BusinessNameFilter {
/// Business name string to use for filtering.
#[prost(string, tag = "1")]
pub business_name: ::prost::alloc::string::String,
/// The type of string matching to use when filtering with business_name.
#[prost(
enumeration = "super::enums::feed_item_set_string_filter_type_enum::FeedItemSetStringFilterType",
tag = "2"
)]
pub filter_type: i32,
}
/// Represents a filter on affiliate locations in a FeedItemSet.
/// Only applicable if the parent Feed of the FeedItemSet is an
/// AFFILIATE_LOCATION feed.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DynamicAffiliateLocationSetFilter {
/// Used to filter affiliate locations by chain ids. Only affiliate locations
/// that belong to the specified chain(s) will be added to the FeedItemSet.
#[prost(int64, repeated, tag = "1")]
pub chain_ids: ::prost::alloc::vec::Vec<i64>,
}
/// A type of label displaying text on a colored background.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TextLabel {
/// Background color of the label in RGB format. This string must match the
/// regular expression '^\#(\[a-fA-F0-9\]{6}|\[a-fA-F0-9\]{3})$'.
/// Note: The background color may not be visible for manager accounts.
#[prost(string, optional, tag = "3")]
pub background_color: ::core::option::Option<::prost::alloc::string::String>,
/// A short description of the label. The length must be no more than 200
/// characters.
#[prost(string, optional, tag = "4")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
}
/// Positive dimension specifying user's audience.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AudienceDimension {
/// Dimension specifying users who belong to the audience.
#[prost(oneof = "audience_dimension::Dimension", tags = "1, 2, 3, 4, 5")]
pub dimension: ::core::option::Option<audience_dimension::Dimension>,
}
/// Nested message and enum types in `AudienceDimension`.
pub mod audience_dimension {
/// Dimension specifying users who belong to the audience.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Dimension {
/// Dimension specifying users by their age.
#[prost(message, tag = "1")]
Age(super::AgeDimension),
/// Dimension specifying users by their gender.
#[prost(message, tag = "2")]
Gender(super::GenderDimension),
/// Dimension specifying users by their household income.
#[prost(message, tag = "3")]
HouseholdIncome(super::HouseholdIncomeDimension),
/// Dimension specifying users by their parental status.
#[prost(message, tag = "4")]
ParentalStatus(super::ParentalStatusDimension),
/// Dimension specifying users by their membership in other audience
/// segments.
#[prost(message, tag = "5")]
AudienceSegments(super::AudienceSegmentDimension),
}
}
/// Negative dimension specifying users to exclude from the audience.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AudienceExclusionDimension {
/// Audience segment to be excluded.
#[prost(message, repeated, tag = "1")]
pub exclusions: ::prost::alloc::vec::Vec<ExclusionSegment>,
}
/// An audience segment to be excluded from an audience.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExclusionSegment {
/// Segment to be excluded.
#[prost(oneof = "exclusion_segment::Segment", tags = "1")]
pub segment: ::core::option::Option<exclusion_segment::Segment>,
}
/// Nested message and enum types in `ExclusionSegment`.
pub mod exclusion_segment {
/// Segment to be excluded.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Segment {
/// User list segment to be excluded.
#[prost(message, tag = "1")]
UserList(super::UserListSegment),
}
}
/// Dimension specifying users by their age.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AgeDimension {
/// Contiguous age range to be included in the dimension.
#[prost(message, repeated, tag = "1")]
pub age_ranges: ::prost::alloc::vec::Vec<AgeSegment>,
/// Include users whose age is not determined.
#[prost(bool, optional, tag = "2")]
pub include_undetermined: ::core::option::Option<bool>,
}
/// Contiguous age range.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct AgeSegment {
/// Minimum age to include. A minimum age must be specified and must be at
/// least 18. Allowed values are 18, 25, 35, 45, 55, and 65.
#[prost(int32, optional, tag = "1")]
pub min_age: ::core::option::Option<i32>,
/// Maximum age to include. A maximum age need not be specified. If specified,
/// max_age must be greater than min_age, and allowed values are 24, 34, 44,
/// 54, and 64.
#[prost(int32, optional, tag = "2")]
pub max_age: ::core::option::Option<i32>,
}
/// Dimension specifying users by their gender.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GenderDimension {
/// Included gender demographic segments.
#[prost(
enumeration = "super::enums::gender_type_enum::GenderType",
repeated,
tag = "1"
)]
pub genders: ::prost::alloc::vec::Vec<i32>,
/// Include users whose gender is not determined.
#[prost(bool, optional, tag = "2")]
pub include_undetermined: ::core::option::Option<bool>,
}
/// Dimension specifying users by their household income.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HouseholdIncomeDimension {
/// Included household income demographic segments.
#[prost(
enumeration = "super::enums::income_range_type_enum::IncomeRangeType",
repeated,
tag = "1"
)]
pub income_ranges: ::prost::alloc::vec::Vec<i32>,
/// Include users whose household income is not determined.
#[prost(bool, optional, tag = "2")]
pub include_undetermined: ::core::option::Option<bool>,
}
/// Dimension specifying users by their parental status.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ParentalStatusDimension {
/// Included parental status demographic segments.
#[prost(
enumeration = "super::enums::parental_status_type_enum::ParentalStatusType",
repeated,
tag = "1"
)]
pub parental_statuses: ::prost::alloc::vec::Vec<i32>,
/// Include users whose parental status is undetermined.
#[prost(bool, optional, tag = "2")]
pub include_undetermined: ::core::option::Option<bool>,
}
/// Dimension specifying users by their membership in other audience segments.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AudienceSegmentDimension {
/// Included audience segments. Users are included if they belong to at least
/// one segment.
#[prost(message, repeated, tag = "1")]
pub segments: ::prost::alloc::vec::Vec<AudienceSegment>,
}
/// Positive audience segment.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AudienceSegment {
/// Positive segment.
#[prost(oneof = "audience_segment::Segment", tags = "1, 2, 3, 4, 5")]
pub segment: ::core::option::Option<audience_segment::Segment>,
}
/// Nested message and enum types in `AudienceSegment`.
pub mod audience_segment {
/// Positive segment.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Segment {
/// User list segment.
#[prost(message, tag = "1")]
UserList(super::UserListSegment),
/// Affinity or In-market segment.
#[prost(message, tag = "2")]
UserInterest(super::UserInterestSegment),
/// Live-event audience segment.
#[prost(message, tag = "3")]
LifeEvent(super::LifeEventSegment),
/// Detailed demographic segment.
#[prost(message, tag = "4")]
DetailedDemographic(super::DetailedDemographicSegment),
/// Custom audience segment.
#[prost(message, tag = "5")]
CustomAudience(super::CustomAudienceSegment),
}
}
/// User list segment.
/// The Similar Audiences sunset starts May 2023. Refer to
/// <https://ads-developers.googleblog.com/2022/11/announcing-deprecation-and-sunset-of.html>
/// for other options.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UserListSegment {
/// The user list resource.
#[prost(string, optional, tag = "1")]
pub user_list: ::core::option::Option<::prost::alloc::string::String>,
}
/// User interest segment.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UserInterestSegment {
/// The user interest resource.
#[prost(string, optional, tag = "1")]
pub user_interest_category: ::core::option::Option<::prost::alloc::string::String>,
}
/// Live event segment.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LifeEventSegment {
/// The life event resource.
#[prost(string, optional, tag = "1")]
pub life_event: ::core::option::Option<::prost::alloc::string::String>,
}
/// Detailed demographic segment.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DetailedDemographicSegment {
/// The detailed demographic resource.
#[prost(string, optional, tag = "1")]
pub detailed_demographic: ::core::option::Option<::prost::alloc::string::String>,
}
/// Custom audience segment.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomAudienceSegment {
/// The custom audience resource.
#[prost(string, optional, tag = "1")]
pub custom_audience: ::core::option::Option<::prost::alloc::string::String>,
}
/// LookalikeUserlist, composed of users similar to those
/// of a configurable seed (set of UserLists)
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LookalikeUserListInfo {
/// Seed UserList ID from which this list is derived, provided by user.
#[prost(int64, repeated, tag = "1")]
pub seed_user_list_ids: ::prost::alloc::vec::Vec<i64>,
/// Expansion level, reflecting the size of the lookalike audience
#[prost(
enumeration = "super::enums::lookalike_expansion_level_enum::LookalikeExpansionLevel",
tag = "2"
)]
pub expansion_level: i32,
/// Countries targeted by the Lookalike. Two-letter country code as defined by
/// ISO-3166
#[prost(string, repeated, tag = "3")]
pub country_codes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// SimilarUserList is a list of users which are similar to users from another
/// UserList. These lists are read-only and automatically created by Google.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SimilarUserListInfo {
/// Seed UserList from which this list is derived.
#[prost(string, optional, tag = "2")]
pub seed_user_list: ::core::option::Option<::prost::alloc::string::String>,
}
/// UserList of CRM users provided by the advertiser.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CrmBasedUserListInfo {
/// A string that uniquely identifies a mobile application from which the data
/// was collected.
/// For iOS, the ID string is the 9 digit string that appears at the end of an
/// App Store URL (for example, "476943146" for "Flood-It! 2" whose App Store
/// link is <http://itunes.apple.com/us/app/flood-it!-2/id476943146>). For
/// Android, the ID string is the application's package name (for example,
/// "com.labpixies.colordrips" for "Color Drips" given Google Play link
/// <https://play.google.com/store/apps/details?id=com.labpixies.colordrips>).
/// Required when creating CrmBasedUserList for uploading mobile advertising
/// IDs.
#[prost(string, optional, tag = "4")]
pub app_id: ::core::option::Option<::prost::alloc::string::String>,
/// Matching key type of the list.
/// Mixed data types are not allowed on the same list.
/// This field is required for an ADD operation.
#[prost(
enumeration = "super::enums::customer_match_upload_key_type_enum::CustomerMatchUploadKeyType",
tag = "2"
)]
pub upload_key_type: i32,
/// Data source of the list. Default value is FIRST_PARTY.
/// Only customers on the allow-list can create third-party sourced CRM lists.
#[prost(
enumeration = "super::enums::user_list_crm_data_source_type_enum::UserListCrmDataSourceType",
tag = "3"
)]
pub data_source_type: i32,
}
/// A client defined rule based on custom parameters sent by web sites or
/// uploaded by the advertiser.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UserListRuleInfo {
/// Rule type is used to determine how to group rule items.
///
/// The default is OR of ANDs (disjunctive normal form).
/// That is, rule items will be ANDed together within rule item groups and the
/// groups themselves will be ORed together.
///
/// OR of ANDs is the only supported type for FlexibleRuleUserList.
#[prost(
enumeration = "super::enums::user_list_rule_type_enum::UserListRuleType",
tag = "1"
)]
pub rule_type: i32,
/// List of rule item groups that defines this rule.
/// Rule item groups are grouped together based on rule_type.
#[prost(message, repeated, tag = "2")]
pub rule_item_groups: ::prost::alloc::vec::Vec<UserListRuleItemGroupInfo>,
}
/// A group of rule items.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UserListRuleItemGroupInfo {
/// Rule items that will be grouped together based on rule_type.
#[prost(message, repeated, tag = "1")]
pub rule_items: ::prost::alloc::vec::Vec<UserListRuleItemInfo>,
}
/// An atomic rule item.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UserListRuleItemInfo {
/// Rule variable name. It should match the corresponding key name fired
/// by the pixel.
/// A name must begin with US-ascii letters or underscore or UTF8 code that is
/// greater than 127 and consist of US-ascii letters or digits or underscore or
/// UTF8 code that is greater than 127.
/// For websites, there are two built-in variable URL (name = 'url__') and
/// referrer URL (name = 'ref_url__').
/// This field must be populated when creating a new rule item.
#[prost(string, optional, tag = "5")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// An atomic rule item.
#[prost(oneof = "user_list_rule_item_info::RuleItem", tags = "2, 3, 4")]
pub rule_item: ::core::option::Option<user_list_rule_item_info::RuleItem>,
}
/// Nested message and enum types in `UserListRuleItemInfo`.
pub mod user_list_rule_item_info {
/// An atomic rule item.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum RuleItem {
/// An atomic rule item composed of a number operation.
#[prost(message, tag = "2")]
NumberRuleItem(super::UserListNumberRuleItemInfo),
/// An atomic rule item composed of a string operation.
#[prost(message, tag = "3")]
StringRuleItem(super::UserListStringRuleItemInfo),
/// An atomic rule item composed of a date operation.
#[prost(message, tag = "4")]
DateRuleItem(super::UserListDateRuleItemInfo),
}
}
/// A rule item composed of a date operation.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UserListDateRuleItemInfo {
/// Date comparison operator.
/// This field is required and must be populated when creating new date
/// rule item.
#[prost(
enumeration = "super::enums::user_list_date_rule_item_operator_enum::UserListDateRuleItemOperator",
tag = "1"
)]
pub operator: i32,
/// String representing date value to be compared with the rule variable.
/// Supported date format is YYYY-MM-DD.
/// Times are reported in the customer's time zone.
#[prost(string, optional, tag = "4")]
pub value: ::core::option::Option<::prost::alloc::string::String>,
/// The relative date value of the right hand side denoted by number of days
/// offset from now. The value field will override this field when both are
/// present.
#[prost(int64, optional, tag = "5")]
pub offset_in_days: ::core::option::Option<i64>,
}
/// A rule item composed of a number operation.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UserListNumberRuleItemInfo {
/// Number comparison operator.
/// This field is required and must be populated when creating a new number
/// rule item.
#[prost(
enumeration = "super::enums::user_list_number_rule_item_operator_enum::UserListNumberRuleItemOperator",
tag = "1"
)]
pub operator: i32,
/// Number value to be compared with the variable.
/// This field is required and must be populated when creating a new number
/// rule item.
#[prost(double, optional, tag = "3")]
pub value: ::core::option::Option<f64>,
}
/// A rule item composed of a string operation.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UserListStringRuleItemInfo {
/// String comparison operator.
/// This field is required and must be populated when creating a new string
/// rule item.
#[prost(
enumeration = "super::enums::user_list_string_rule_item_operator_enum::UserListStringRuleItemOperator",
tag = "1"
)]
pub operator: i32,
/// The right hand side of the string rule item. For URLs or referrer URLs,
/// the value can not contain illegal URL chars such as newlines, quotes,
/// tabs, or parentheses. This field is required and must be populated when
/// creating a new string rule item.
#[prost(string, optional, tag = "3")]
pub value: ::core::option::Option<::prost::alloc::string::String>,
}
/// Flexible rule that wraps the common rule and a lookback window.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FlexibleRuleOperandInfo {
/// List of rule item groups that defines this rule.
/// Rule item groups are grouped together.
#[prost(message, optional, tag = "1")]
pub rule: ::core::option::Option<UserListRuleInfo>,
/// Lookback window for this rule in days. From now until X days ago.
#[prost(int64, optional, tag = "2")]
pub lookback_window_days: ::core::option::Option<i64>,
}
/// Flexible rule representation of visitors with one or multiple actions. The
/// flexible user list is defined by two lists of operands – inclusive_operands
/// and exclusive_operands; each operand represents a set of users based on
/// actions they took in a given timeframe. These lists of operands are combined
/// with the AND_NOT operator, so that users represented by the inclusive
/// operands are included in the user list, minus the users represented by the
/// exclusive operands.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FlexibleRuleUserListInfo {
/// Operator that defines how the inclusive operands are combined.
#[prost(
enumeration = "super::enums::user_list_flexible_rule_operator_enum::UserListFlexibleRuleOperator",
tag = "1"
)]
pub inclusive_rule_operator: i32,
/// Rules representing users that should be included in the user list. These
/// are located on the left side of the AND_NOT operator, and joined together
/// by either AND/OR as specified by the inclusive_rule_operator.
#[prost(message, repeated, tag = "2")]
pub inclusive_operands: ::prost::alloc::vec::Vec<FlexibleRuleOperandInfo>,
/// Rules representing users that should be excluded from the user list. These
/// are located on the right side of the AND_NOT operator, and joined together
/// by OR.
#[prost(message, repeated, tag = "3")]
pub exclusive_operands: ::prost::alloc::vec::Vec<FlexibleRuleOperandInfo>,
}
/// Representation of a userlist that is generated by a rule.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RuleBasedUserListInfo {
/// The status of pre-population. The field is default to NONE if not set which
/// means the previous users will not be considered. If set to REQUESTED, past
/// site visitors or app users who match the list definition will be included
/// in the list (works on the Display Network only). This will only
/// add past users from within the last 30 days, depending on the
/// list's membership duration and the date when the remarketing tag is added.
/// The status will be updated to FINISHED once request is processed, or FAILED
/// if the request fails.
#[prost(
enumeration = "super::enums::user_list_prepopulation_status_enum::UserListPrepopulationStatus",
tag = "1"
)]
pub prepopulation_status: i32,
/// Flexible rule representation of visitors with one or multiple actions. The
/// flexible user list is defined by two lists of operands – inclusive_operands
/// and exclusive_operands; each operand represents a set of users based on
/// actions they took in a given timeframe. These lists of operands are
/// combined with the AND_NOT operator, so that users represented by the
/// inclusive operands are included in the user list, minus the users
/// represented by the exclusive operands.
#[prost(message, optional, tag = "5")]
pub flexible_rule_user_list: ::core::option::Option<FlexibleRuleUserListInfo>,
}
/// Represents a user list that is a custom combination of user lists.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LogicalUserListInfo {
/// Logical list rules that define this user list. The rules are defined as a
/// logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are
/// ANDed when they are evaluated.
///
/// Required for creating a logical user list.
#[prost(message, repeated, tag = "1")]
pub rules: ::prost::alloc::vec::Vec<UserListLogicalRuleInfo>,
}
/// A user list logical rule. A rule has a logical operator (and/or/not) and a
/// list of user lists as operands.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UserListLogicalRuleInfo {
/// The logical operator of the rule.
#[prost(
enumeration = "super::enums::user_list_logical_rule_operator_enum::UserListLogicalRuleOperator",
tag = "1"
)]
pub operator: i32,
/// The list of operands of the rule.
#[prost(message, repeated, tag = "2")]
pub rule_operands: ::prost::alloc::vec::Vec<LogicalUserListOperandInfo>,
}
/// Operand of logical user list that consists of a user list.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LogicalUserListOperandInfo {
/// Resource name of a user list as an operand.
#[prost(string, optional, tag = "2")]
pub user_list: ::core::option::Option<::prost::alloc::string::String>,
}
/// User list targeting as a collection of conversions or remarketing actions.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BasicUserListInfo {
/// Actions associated with this user list.
#[prost(message, repeated, tag = "1")]
pub actions: ::prost::alloc::vec::Vec<UserListActionInfo>,
}
/// Represents an action type used for building remarketing user lists.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UserListActionInfo {
/// Subtypes of user list action.
#[prost(oneof = "user_list_action_info::UserListAction", tags = "3, 4")]
pub user_list_action: ::core::option::Option<user_list_action_info::UserListAction>,
}
/// Nested message and enum types in `UserListActionInfo`.
pub mod user_list_action_info {
/// Subtypes of user list action.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum UserListAction {
/// A conversion action that's not generated from remarketing.
#[prost(string, tag = "3")]
ConversionAction(::prost::alloc::string::String),
/// A remarketing action.
#[prost(string, tag = "4")]
RemarketingAction(::prost::alloc::string::String),
}
}
/// A metric goal for an experiment.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MetricGoal {
/// The metric of the goal. For example, clicks, impressions, cost,
/// conversions, etc.
#[prost(
enumeration = "super::enums::experiment_metric_enum::ExperimentMetric",
tag = "1"
)]
pub metric: i32,
/// The metric direction of the goal. For example, increase, decrease, no
/// change.
#[prost(
enumeration = "super::enums::experiment_metric_direction_enum::ExperimentMetricDirection",
tag = "2"
)]
pub direction: i32,
}
/// Segment only fields.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Segments {
/// Activity account ID.
#[prost(int64, optional, tag = "148")]
pub activity_account_id: ::core::option::Option<i64>,
/// The city where the travel activity is available.
#[prost(string, optional, tag = "185")]
pub activity_city: ::core::option::Option<::prost::alloc::string::String>,
/// The country where the travel activity is available.
#[prost(string, optional, tag = "186")]
pub activity_country: ::core::option::Option<::prost::alloc::string::String>,
/// Activity rating.
#[prost(int64, optional, tag = "149")]
pub activity_rating: ::core::option::Option<i64>,
/// The state where the travel activity is available.
#[prost(string, optional, tag = "187")]
pub activity_state: ::core::option::Option<::prost::alloc::string::String>,
/// Advertiser supplied activity ID.
#[prost(string, optional, tag = "150")]
pub external_activity_id: ::core::option::Option<::prost::alloc::string::String>,
/// Ad Destination type.
#[prost(
enumeration = "super::enums::ad_destination_type_enum::AdDestinationType",
tag = "136"
)]
pub ad_destination_type: i32,
/// Ad network type.
#[prost(
enumeration = "super::enums::ad_network_type_enum::AdNetworkType",
tag = "3"
)]
pub ad_network_type: i32,
/// Resource name of the ad group.
#[prost(string, optional, tag = "158")]
pub ad_group: ::core::option::Option<::prost::alloc::string::String>,
/// Resource name of the asset group.
#[prost(string, optional, tag = "159")]
pub asset_group: ::core::option::Option<::prost::alloc::string::String>,
/// Domain (visible URL) of a participant in the Auction Insights report.
#[prost(string, optional, tag = "145")]
pub auction_insight_domain: ::core::option::Option<::prost::alloc::string::String>,
/// Budget campaign association status.
#[prost(message, optional, tag = "134")]
pub budget_campaign_association_status: ::core::option::Option<
BudgetCampaignAssociationStatus,
>,
/// Resource name of the campaign.
#[prost(string, optional, tag = "157")]
pub campaign: ::core::option::Option<::prost::alloc::string::String>,
/// Click type.
#[prost(enumeration = "super::enums::click_type_enum::ClickType", tag = "26")]
pub click_type: i32,
/// Resource name of the conversion action.
#[prost(string, optional, tag = "113")]
pub conversion_action: ::core::option::Option<::prost::alloc::string::String>,
/// Conversion action category.
#[prost(
enumeration = "super::enums::conversion_action_category_enum::ConversionActionCategory",
tag = "53"
)]
pub conversion_action_category: i32,
/// Conversion action name.
#[prost(string, optional, tag = "114")]
pub conversion_action_name: ::core::option::Option<::prost::alloc::string::String>,
/// This segments your conversion columns by the original conversion and
/// conversion value versus the delta if conversions were adjusted. False row
/// has the data as originally stated; While true row has the delta between
/// data now and the data as originally stated. Summing the two together
/// results post-adjustment data.
#[prost(bool, optional, tag = "115")]
pub conversion_adjustment: ::core::option::Option<bool>,
/// Conversion attribution event type.
#[prost(
enumeration = "super::enums::conversion_attribution_event_type_enum::ConversionAttributionEventType",
tag = "2"
)]
pub conversion_attribution_event_type: i32,
/// An enum value representing the number of days between the impression and
/// the conversion.
#[prost(
enumeration = "super::enums::conversion_lag_bucket_enum::ConversionLagBucket",
tag = "50"
)]
pub conversion_lag_bucket: i32,
/// An enum value representing the number of days between the impression and
/// the conversion or between the impression and adjustments to the conversion.
#[prost(
enumeration = "super::enums::conversion_or_adjustment_lag_bucket_enum::ConversionOrAdjustmentLagBucket",
tag = "51"
)]
pub conversion_or_adjustment_lag_bucket: i32,
/// Date to which metrics apply.
/// yyyy-MM-dd format, for example, 2018-04-17.
#[prost(string, optional, tag = "79")]
pub date: ::core::option::Option<::prost::alloc::string::String>,
/// Day of the week, for example, MONDAY.
#[prost(enumeration = "super::enums::day_of_week_enum::DayOfWeek", tag = "5")]
pub day_of_week: i32,
/// Device to which metrics apply.
#[prost(enumeration = "super::enums::device_enum::Device", tag = "1")]
pub device: i32,
/// External conversion source.
#[prost(
enumeration = "super::enums::external_conversion_source_enum::ExternalConversionSource",
tag = "55"
)]
pub external_conversion_source: i32,
/// Resource name of the geo target constant that represents an airport.
#[prost(string, optional, tag = "116")]
pub geo_target_airport: ::core::option::Option<::prost::alloc::string::String>,
/// Resource name of the geo target constant that represents a canton.
#[prost(string, optional, tag = "117")]
pub geo_target_canton: ::core::option::Option<::prost::alloc::string::String>,
/// Resource name of the geo target constant that represents a city.
#[prost(string, optional, tag = "118")]
pub geo_target_city: ::core::option::Option<::prost::alloc::string::String>,
/// Resource name of the geo target constant that represents a country.
#[prost(string, optional, tag = "119")]
pub geo_target_country: ::core::option::Option<::prost::alloc::string::String>,
/// Resource name of the geo target constant that represents a county.
#[prost(string, optional, tag = "120")]
pub geo_target_county: ::core::option::Option<::prost::alloc::string::String>,
/// Resource name of the geo target constant that represents a district.
#[prost(string, optional, tag = "121")]
pub geo_target_district: ::core::option::Option<::prost::alloc::string::String>,
/// Resource name of the geo target constant that represents a metro.
#[prost(string, optional, tag = "122")]
pub geo_target_metro: ::core::option::Option<::prost::alloc::string::String>,
/// Resource name of the geo target constant that represents the most
/// specific location.
#[prost(string, optional, tag = "123")]
pub geo_target_most_specific_location: ::core::option::Option<
::prost::alloc::string::String,
>,
/// Resource name of the geo target constant that represents a postal code.
#[prost(string, optional, tag = "124")]
pub geo_target_postal_code: ::core::option::Option<::prost::alloc::string::String>,
/// Resource name of the geo target constant that represents a province.
#[prost(string, optional, tag = "125")]
pub geo_target_province: ::core::option::Option<::prost::alloc::string::String>,
/// Resource name of the geo target constant that represents a region.
#[prost(string, optional, tag = "126")]
pub geo_target_region: ::core::option::Option<::prost::alloc::string::String>,
/// Resource name of the geo target constant that represents a state.
#[prost(string, optional, tag = "127")]
pub geo_target_state: ::core::option::Option<::prost::alloc::string::String>,
/// Hotel booking window in days.
#[prost(int64, optional, tag = "135")]
pub hotel_booking_window_days: ::core::option::Option<i64>,
/// Hotel center ID.
#[prost(int64, optional, tag = "80")]
pub hotel_center_id: ::core::option::Option<i64>,
/// Hotel check-in date. Formatted as yyyy-MM-dd.
#[prost(string, optional, tag = "81")]
pub hotel_check_in_date: ::core::option::Option<::prost::alloc::string::String>,
/// Hotel check-in day of week.
#[prost(enumeration = "super::enums::day_of_week_enum::DayOfWeek", tag = "9")]
pub hotel_check_in_day_of_week: i32,
/// Hotel city.
#[prost(string, optional, tag = "82")]
pub hotel_city: ::core::option::Option<::prost::alloc::string::String>,
/// Hotel class.
#[prost(int32, optional, tag = "83")]
pub hotel_class: ::core::option::Option<i32>,
/// Hotel country.
#[prost(string, optional, tag = "84")]
pub hotel_country: ::core::option::Option<::prost::alloc::string::String>,
/// Hotel date selection type.
#[prost(
enumeration = "super::enums::hotel_date_selection_type_enum::HotelDateSelectionType",
tag = "13"
)]
pub hotel_date_selection_type: i32,
/// Hotel length of stay.
#[prost(int32, optional, tag = "85")]
pub hotel_length_of_stay: ::core::option::Option<i32>,
/// Hotel rate rule ID.
#[prost(string, optional, tag = "86")]
pub hotel_rate_rule_id: ::core::option::Option<::prost::alloc::string::String>,
/// Hotel rate type.
#[prost(
enumeration = "super::enums::hotel_rate_type_enum::HotelRateType",
tag = "74"
)]
pub hotel_rate_type: i32,
/// Hotel price bucket.
#[prost(
enumeration = "super::enums::hotel_price_bucket_enum::HotelPriceBucket",
tag = "78"
)]
pub hotel_price_bucket: i32,
/// Hotel state.
#[prost(string, optional, tag = "87")]
pub hotel_state: ::core::option::Option<::prost::alloc::string::String>,
/// Hour of day as a number between 0 and 23, inclusive.
#[prost(int32, optional, tag = "88")]
pub hour: ::core::option::Option<i32>,
/// Only used with feed item metrics.
/// Indicates whether the interaction metrics occurred on the feed item itself
/// or a different extension or ad unit.
#[prost(bool, optional, tag = "89")]
pub interaction_on_this_extension: ::core::option::Option<bool>,
/// Keyword criterion.
#[prost(message, optional, tag = "61")]
pub keyword: ::core::option::Option<Keyword>,
/// Month as represented by the date of the first day of a month. Formatted as
/// yyyy-MM-dd.
#[prost(string, optional, tag = "90")]
pub month: ::core::option::Option<::prost::alloc::string::String>,
/// Month of the year, for example, January.
#[prost(enumeration = "super::enums::month_of_year_enum::MonthOfYear", tag = "18")]
pub month_of_year: i32,
/// Partner hotel ID.
#[prost(string, optional, tag = "91")]
pub partner_hotel_id: ::core::option::Option<::prost::alloc::string::String>,
/// Placeholder type. This is only used with feed item metrics.
#[prost(
enumeration = "super::enums::placeholder_type_enum::PlaceholderType",
tag = "20"
)]
pub placeholder_type: i32,
/// Aggregator ID of the product.
#[prost(int64, optional, tag = "132")]
pub product_aggregator_id: ::core::option::Option<i64>,
/// Category (level 1) of the product.
#[prost(string, optional, tag = "161")]
pub product_category_level1: ::core::option::Option<::prost::alloc::string::String>,
/// Category (level 2) of the product.
#[prost(string, optional, tag = "162")]
pub product_category_level2: ::core::option::Option<::prost::alloc::string::String>,
/// Category (level 3) of the product.
#[prost(string, optional, tag = "163")]
pub product_category_level3: ::core::option::Option<::prost::alloc::string::String>,
/// Category (level 4) of the product.
#[prost(string, optional, tag = "164")]
pub product_category_level4: ::core::option::Option<::prost::alloc::string::String>,
/// Category (level 5) of the product.
#[prost(string, optional, tag = "165")]
pub product_category_level5: ::core::option::Option<::prost::alloc::string::String>,
/// Brand of the product.
#[prost(string, optional, tag = "97")]
pub product_brand: ::core::option::Option<::prost::alloc::string::String>,
/// Channel of the product.
#[prost(
enumeration = "super::enums::product_channel_enum::ProductChannel",
tag = "30"
)]
pub product_channel: i32,
/// Channel exclusivity of the product.
#[prost(
enumeration = "super::enums::product_channel_exclusivity_enum::ProductChannelExclusivity",
tag = "31"
)]
pub product_channel_exclusivity: i32,
/// Condition of the product.
#[prost(
enumeration = "super::enums::product_condition_enum::ProductCondition",
tag = "32"
)]
pub product_condition: i32,
/// Resource name of the geo target constant for the country of sale of the
/// product.
#[prost(string, optional, tag = "98")]
pub product_country: ::core::option::Option<::prost::alloc::string::String>,
/// Custom attribute 0 of the product.
#[prost(string, optional, tag = "99")]
pub product_custom_attribute0: ::core::option::Option<
::prost::alloc::string::String,
>,
/// Custom attribute 1 of the product.
#[prost(string, optional, tag = "100")]
pub product_custom_attribute1: ::core::option::Option<
::prost::alloc::string::String,
>,
/// Custom attribute 2 of the product.
#[prost(string, optional, tag = "101")]
pub product_custom_attribute2: ::core::option::Option<
::prost::alloc::string::String,
>,
/// Custom attribute 3 of the product.
#[prost(string, optional, tag = "102")]
pub product_custom_attribute3: ::core::option::Option<
::prost::alloc::string::String,
>,
/// Custom attribute 4 of the product.
#[prost(string, optional, tag = "103")]
pub product_custom_attribute4: ::core::option::Option<
::prost::alloc::string::String,
>,
/// Feed label of the product.
#[prost(string, optional, tag = "147")]
pub product_feed_label: ::core::option::Option<::prost::alloc::string::String>,
/// Item ID of the product.
#[prost(string, optional, tag = "104")]
pub product_item_id: ::core::option::Option<::prost::alloc::string::String>,
/// Resource name of the language constant for the language of the product.
#[prost(string, optional, tag = "105")]
pub product_language: ::core::option::Option<::prost::alloc::string::String>,
/// Merchant ID of the product.
#[prost(int64, optional, tag = "133")]
pub product_merchant_id: ::core::option::Option<i64>,
/// Store ID of the product.
#[prost(string, optional, tag = "106")]
pub product_store_id: ::core::option::Option<::prost::alloc::string::String>,
/// Title of the product.
#[prost(string, optional, tag = "107")]
pub product_title: ::core::option::Option<::prost::alloc::string::String>,
/// Type (level 1) of the product.
#[prost(string, optional, tag = "108")]
pub product_type_l1: ::core::option::Option<::prost::alloc::string::String>,
/// Type (level 2) of the product.
#[prost(string, optional, tag = "109")]
pub product_type_l2: ::core::option::Option<::prost::alloc::string::String>,
/// Type (level 3) of the product.
#[prost(string, optional, tag = "110")]
pub product_type_l3: ::core::option::Option<::prost::alloc::string::String>,
/// Type (level 4) of the product.
#[prost(string, optional, tag = "111")]
pub product_type_l4: ::core::option::Option<::prost::alloc::string::String>,
/// Type (level 5) of the product.
#[prost(string, optional, tag = "112")]
pub product_type_l5: ::core::option::Option<::prost::alloc::string::String>,
/// Quarter as represented by the date of the first day of a quarter.
/// Uses the calendar year for quarters, for example, the second quarter of
/// 2018 starts on 2018-04-01. Formatted as yyyy-MM-dd.
#[prost(string, optional, tag = "128")]
pub quarter: ::core::option::Option<::prost::alloc::string::String>,
/// Recommendation type.
#[prost(
enumeration = "super::enums::recommendation_type_enum::RecommendationType",
tag = "140"
)]
pub recommendation_type: i32,
/// Type of the search engine results page.
#[prost(
enumeration = "super::enums::search_engine_results_page_type_enum::SearchEngineResultsPageType",
tag = "70"
)]
pub search_engine_results_page_type: i32,
/// A search term subcategory. An empty string denotes the catch-all
/// subcategory for search terms that didn't fit into another subcategory.
#[prost(string, optional, tag = "155")]
pub search_subcategory: ::core::option::Option<::prost::alloc::string::String>,
/// A search term.
#[prost(string, optional, tag = "156")]
pub search_term: ::core::option::Option<::prost::alloc::string::String>,
/// Match type of the keyword that triggered the ad, including variants.
#[prost(
enumeration = "super::enums::search_term_match_type_enum::SearchTermMatchType",
tag = "22"
)]
pub search_term_match_type: i32,
/// Position of the ad.
#[prost(enumeration = "super::enums::slot_enum::Slot", tag = "23")]
pub slot: i32,
/// Primary dimension of applied conversion value rules.
/// NO_RULE_APPLIED shows the total recorded value of conversions that
/// do not have a value rule applied.
/// ORIGINAL shows the original value of conversions to which a value rule
/// has been applied.
/// GEO_LOCATION, DEVICE, AUDIENCE show the net adjustment after value
/// rules were applied.
#[prost(
enumeration = "super::enums::conversion_value_rule_primary_dimension_enum::ConversionValueRulePrimaryDimension",
tag = "138"
)]
pub conversion_value_rule_primary_dimension: i32,
/// Resource name of the ad group criterion that represents webpage criterion.
#[prost(string, optional, tag = "129")]
pub webpage: ::core::option::Option<::prost::alloc::string::String>,
/// Week as defined as Monday through Sunday, and represented by the date of
/// Monday. Formatted as yyyy-MM-dd.
#[prost(string, optional, tag = "130")]
pub week: ::core::option::Option<::prost::alloc::string::String>,
/// Year, formatted as yyyy.
#[prost(int32, optional, tag = "131")]
pub year: ::core::option::Option<i32>,
/// iOS Store Kit Ad Network conversion value.
/// Null value means this segment is not applicable, for example, non-iOS
/// campaign.
#[prost(int64, optional, tag = "137")]
pub sk_ad_network_conversion_value: ::core::option::Option<i64>,
/// iOS Store Kit Ad Network user type.
#[prost(
enumeration = "super::enums::sk_ad_network_user_type_enum::SkAdNetworkUserType",
tag = "141"
)]
pub sk_ad_network_user_type: i32,
/// iOS Store Kit Ad Network ad event type.
#[prost(
enumeration = "super::enums::sk_ad_network_ad_event_type_enum::SkAdNetworkAdEventType",
tag = "142"
)]
pub sk_ad_network_ad_event_type: i32,
/// App where the ad that drove the iOS Store Kit Ad Network install was
/// shown. Null value means this segment is not applicable, for example,
/// non-iOS campaign, or was not present in any postbacks sent by Apple.
#[prost(message, optional, tag = "143")]
pub sk_ad_network_source_app: ::core::option::Option<SkAdNetworkSourceApp>,
/// iOS Store Kit Ad Network attribution credit
#[prost(
enumeration = "super::enums::sk_ad_network_attribution_credit_enum::SkAdNetworkAttributionCredit",
tag = "144"
)]
pub sk_ad_network_attribution_credit: i32,
/// iOS Store Kit Ad Network coarse conversion value.
#[prost(
enumeration = "super::enums::sk_ad_network_coarse_conversion_value_enum::SkAdNetworkCoarseConversionValue",
tag = "151"
)]
pub sk_ad_network_coarse_conversion_value: i32,
/// Website where the ad that drove the iOS Store Kit Ad Network install was
/// shown. Null value means this segment is not applicable, for example,
/// non-iOS campaign, or was not present in any postbacks sent by Apple.
#[prost(string, optional, tag = "152")]
pub sk_ad_network_source_domain: ::core::option::Option<
::prost::alloc::string::String,
>,
/// The source type where the ad that drove the iOS Store Kit Ad Network
/// install was shown. Null value means this segment is not applicable, for
/// example, non-iOS campaign, or neither source domain nor source app were
/// present in any postbacks sent by Apple.
#[prost(
enumeration = "super::enums::sk_ad_network_source_type_enum::SkAdNetworkSourceType",
tag = "153"
)]
pub sk_ad_network_source_type: i32,
/// iOS Store Kit Ad Network postback sequence index.
#[prost(int64, optional, tag = "154")]
pub sk_ad_network_postback_sequence_index: ::core::option::Option<i64>,
/// Only used with CustomerAsset, CampaignAsset and AdGroupAsset metrics.
/// Indicates whether the interaction metrics occurred on the asset itself
/// or a different asset or ad unit.
/// Interactions (for example, clicks) are counted across all the parts of the
/// served ad (for example, Ad itself and other components like Sitelinks) when
/// they are served together. When interaction_on_this_asset is true, it means
/// the interactions are on this specific asset and when
/// interaction_on_this_asset is false, it means the interactions is not on
/// this specific asset but on other parts of the served ad this asset is
/// served with.
#[prost(message, optional, tag = "139")]
pub asset_interaction_target: ::core::option::Option<AssetInteractionTarget>,
/// This is for segmenting conversions by whether the user is a new customer
/// or a returning customer. This segmentation is typically used to measure
/// the impact of customer acquisition goal.
#[prost(
enumeration = "super::enums::converting_user_prior_engagement_type_and_ltv_bucket_enum::ConvertingUserPriorEngagementTypeAndLtvBucket",
tag = "160"
)]
pub new_versus_returning_customers: i32,
}
/// A Keyword criterion segment.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Keyword {
/// The AdGroupCriterion resource name.
#[prost(string, optional, tag = "3")]
pub ad_group_criterion: ::core::option::Option<::prost::alloc::string::String>,
/// Keyword info.
#[prost(message, optional, tag = "2")]
pub info: ::core::option::Option<KeywordInfo>,
}
/// A BudgetCampaignAssociationStatus segment.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BudgetCampaignAssociationStatus {
/// The campaign resource name.
#[prost(string, optional, tag = "1")]
pub campaign: ::core::option::Option<::prost::alloc::string::String>,
/// Budget campaign association status.
#[prost(
enumeration = "super::enums::budget_campaign_association_status_enum::BudgetCampaignAssociationStatus",
tag = "2"
)]
pub status: i32,
}
/// An AssetInteractionTarget segment.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AssetInteractionTarget {
/// The asset resource name.
#[prost(string, tag = "1")]
pub asset: ::prost::alloc::string::String,
/// Only used with CustomerAsset, CampaignAsset and AdGroupAsset metrics.
/// Indicates whether the interaction metrics occurred on the asset itself or a
/// different asset or ad unit.
#[prost(bool, tag = "2")]
pub interaction_on_this_asset: bool,
}
/// A SkAdNetworkSourceApp segment.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SkAdNetworkSourceApp {
/// App id where the ad that drove the iOS Store Kit Ad Network install was
/// shown.
#[prost(string, optional, tag = "1")]
pub sk_ad_network_source_app_id: ::core::option::Option<
::prost::alloc::string::String,
>,
}
/// Metrics data.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Metrics {
/// Search absolute top impression share is the percentage of your Search ad
/// impressions that are shown in the most prominent Search position.
#[prost(double, optional, tag = "183")]
pub absolute_top_impression_percentage: ::core::option::Option<f64>,
/// Average cost of viewable impressions (`active_view_impressions`).
#[prost(double, optional, tag = "184")]
pub active_view_cpm: ::core::option::Option<f64>,
/// Active view measurable clicks divided by active view viewable impressions.
///
/// This metric is reported only for the Display Network.
#[prost(double, optional, tag = "185")]
pub active_view_ctr: ::core::option::Option<f64>,
/// A measurement of how often your ad has become viewable on a Display
/// Network site.
#[prost(int64, optional, tag = "186")]
pub active_view_impressions: ::core::option::Option<i64>,
/// The ratio of impressions that could be measured by Active View over the
/// number of served impressions.
#[prost(double, optional, tag = "187")]
pub active_view_measurability: ::core::option::Option<f64>,
/// The cost of the impressions you received that were measurable by Active
/// View.
#[prost(int64, optional, tag = "188")]
pub active_view_measurable_cost_micros: ::core::option::Option<i64>,
/// The number of times your ads are appearing on placements in positions
/// where they can be seen.
#[prost(int64, optional, tag = "189")]
pub active_view_measurable_impressions: ::core::option::Option<i64>,
/// The percentage of time when your ad appeared on an Active View enabled site
/// (measurable impressions) and was viewable (viewable impressions).
#[prost(double, optional, tag = "190")]
pub active_view_viewability: ::core::option::Option<f64>,
/// All conversions from interactions (as oppose to view through conversions)
/// divided by the number of ad interactions.
#[prost(double, optional, tag = "191")]
pub all_conversions_from_interactions_rate: ::core::option::Option<f64>,
/// The value of all conversions.
#[prost(double, optional, tag = "192")]
pub all_conversions_value: ::core::option::Option<f64>,
/// The value of all conversions. When this column is selected with date, the
/// values in date column means the conversion date. Details for the
/// by_conversion_date columns are available at
/// <https://support.google.com/google-ads/answer/9549009.>
#[prost(double, tag = "240")]
pub all_conversions_value_by_conversion_date: f64,
/// All of new customers' lifetime conversion value. If you have set up
/// customer acquisition goal at either account level or campaign level, this
/// will include the additional conversion value from new customers for both
/// biddable and non-biddable conversions. If your campaign has adopted the
/// customer acquisition goal and selected "bid higher for new customers",
/// these values will be included in "all_conversions_value". See
/// <https://support.google.com/google-ads/answer/12080169> for more details.
#[prost(double, optional, tag = "294")]
pub all_new_customer_lifetime_value: ::core::option::Option<f64>,
/// The total number of conversions. This includes all conversions regardless
/// of the value of include_in_conversions_metric.
#[prost(double, optional, tag = "193")]
pub all_conversions: ::core::option::Option<f64>,
/// The total number of conversions. This includes all conversions regardless
/// of the value of include_in_conversions_metric. When this column is selected
/// with date, the values in date column means the conversion date. Details for
/// the by_conversion_date columns are available at
/// <https://support.google.com/google-ads/answer/9549009.>
#[prost(double, tag = "241")]
pub all_conversions_by_conversion_date: f64,
/// The value of all conversions divided by the total cost of ad interactions
/// (such as clicks for text ads or views for video ads).
#[prost(double, optional, tag = "194")]
pub all_conversions_value_per_cost: ::core::option::Option<f64>,
/// The number of times people clicked the "Call" button to call a store during
/// or after clicking an ad. This number doesn't include whether or not calls
/// were connected, or the duration of any calls.
///
/// This metric applies to feed items only.
#[prost(double, optional, tag = "195")]
pub all_conversions_from_click_to_call: ::core::option::Option<f64>,
/// The number of times people clicked a "Get directions" button to navigate to
/// a store after clicking an ad.
///
/// This metric applies to feed items only.
#[prost(double, optional, tag = "196")]
pub all_conversions_from_directions: ::core::option::Option<f64>,
/// The value of all conversions from interactions divided by the total number
/// of interactions.
#[prost(double, optional, tag = "197")]
pub all_conversions_from_interactions_value_per_interaction: ::core::option::Option<
f64,
>,
/// The number of times people clicked a link to view a store's menu after
/// clicking an ad.
///
/// This metric applies to feed items only.
#[prost(double, optional, tag = "198")]
pub all_conversions_from_menu: ::core::option::Option<f64>,
/// The number of times people placed an order at a store after clicking an ad.
///
/// This metric applies to feed items only.
#[prost(double, optional, tag = "199")]
pub all_conversions_from_order: ::core::option::Option<f64>,
/// The number of other conversions (for example, posting a review or saving a
/// location for a store) that occurred after people clicked an ad.
///
/// This metric applies to feed items only.
#[prost(double, optional, tag = "200")]
pub all_conversions_from_other_engagement: ::core::option::Option<f64>,
/// Estimated number of times people visited a store after clicking an ad.
///
/// This metric applies to feed items only.
#[prost(double, optional, tag = "201")]
pub all_conversions_from_store_visit: ::core::option::Option<f64>,
/// The number of times that people were taken to a store's URL after clicking
/// an ad.
///
/// This metric applies to feed items only.
#[prost(double, optional, tag = "202")]
pub all_conversions_from_store_website: ::core::option::Option<f64>,
/// This metric is part of the Auction Insights report, and tells how often
/// the ads of another participant showed in the most prominent position on the
/// search results page.
/// This percentage is computed only over the auctions that you appeared in
/// the page.
///
/// This metric is not publicly available.
#[prost(double, optional, tag = "258")]
pub auction_insight_search_absolute_top_impression_percentage: ::core::option::Option<
f64,
>,
/// This metric is part of the Auction Insights report, and tells the
/// percentage of impressions that another participant obtained, over the total
/// number of impressions that your ads were eligible for.
/// Any value below 0.1 is reported as 0.0999.
///
/// This metric is not publicly available.
#[prost(double, optional, tag = "259")]
pub auction_insight_search_impression_share: ::core::option::Option<f64>,
/// This metric is part of the Auction Insights report, and tells the
/// percentage of impressions that your ads outranked (showed above)
/// another participant in the auction, compared to the total number of
/// impressions that your ads were eligible for.
/// Any value below 0.1 is reported as 0.0999.
///
/// This metric is not publicly available.
#[prost(double, optional, tag = "260")]
pub auction_insight_search_outranking_share: ::core::option::Option<f64>,
/// This metric is part of the Auction Insights report, and tells how often
/// another participant's ad received an impression when your ad also received
/// an impression.
///
/// This metric is not publicly available.
#[prost(double, optional, tag = "261")]
pub auction_insight_search_overlap_rate: ::core::option::Option<f64>,
/// This metric is part of the Auction Insights report, and tells how often
/// another participant's ad was shown in a higher position than yours, when
/// both of your ads were shown at the same page.
///
/// This metric is not publicly available.
#[prost(double, optional, tag = "262")]
pub auction_insight_search_position_above_rate: ::core::option::Option<f64>,
/// This metric is part of the Auction Insights report, and tells how often
/// the ads of another participant showed adjacent to the top organic search
/// results. This percentage is computed only over the auctions that you
/// appeared in the page.
///
/// This metric is not publicly available.
#[prost(double, optional, tag = "263")]
pub auction_insight_search_top_impression_percentage: ::core::option::Option<f64>,
/// The average amount you pay per interaction. This amount is the total cost
/// of your ads divided by the total number of interactions.
#[prost(double, optional, tag = "203")]
pub average_cost: ::core::option::Option<f64>,
/// The total cost of all clicks divided by the total number of clicks
/// received.
#[prost(double, optional, tag = "204")]
pub average_cpc: ::core::option::Option<f64>,
/// The average amount that you've been charged for an ad engagement. This
/// amount is the total cost of all ad engagements divided by the total number
/// of ad engagements.
#[prost(double, optional, tag = "205")]
pub average_cpe: ::core::option::Option<f64>,
/// Average cost-per-thousand impressions (CPM).
#[prost(double, optional, tag = "206")]
pub average_cpm: ::core::option::Option<f64>,
/// The average amount you pay each time someone views your ad.
/// The average CPV is defined by the total cost of all ad views divided by
/// the number of views.
#[prost(double, optional, tag = "207")]
pub average_cpv: ::core::option::Option<f64>,
/// Average number of pages viewed per session.
#[prost(double, optional, tag = "208")]
pub average_page_views: ::core::option::Option<f64>,
/// Total duration of all sessions (in seconds) / number of sessions. Imported
/// from Google Analytics.
#[prost(double, optional, tag = "209")]
pub average_time_on_site: ::core::option::Option<f64>,
/// An indication of how other advertisers are bidding on similar products.
#[prost(double, optional, tag = "210")]
pub benchmark_average_max_cpc: ::core::option::Option<f64>,
/// Number of app installs.
#[prost(double, optional, tag = "254")]
pub biddable_app_install_conversions: ::core::option::Option<f64>,
/// Number of in-app actions.
#[prost(double, optional, tag = "255")]
pub biddable_app_post_install_conversions: ::core::option::Option<f64>,
/// An indication on how other advertisers' Shopping ads for similar products
/// are performing based on how often people who see their ad click on it.
#[prost(double, optional, tag = "211")]
pub benchmark_ctr: ::core::option::Option<f64>,
/// Percentage of clicks where the user only visited a single page on your
/// site. Imported from Google Analytics.
#[prost(double, optional, tag = "212")]
pub bounce_rate: ::core::option::Option<f64>,
/// The number of clicks.
#[prost(int64, optional, tag = "131")]
pub clicks: ::core::option::Option<i64>,
/// The number of times your ad or your site's listing in the unpaid
/// results was clicked. See the help page at
/// <https://support.google.com/google-ads/answer/3097241> for details.
#[prost(int64, optional, tag = "156")]
pub combined_clicks: ::core::option::Option<i64>,
/// The number of times your ad or your site's listing in the unpaid
/// results was clicked (combined_clicks) divided by combined_queries. See the
/// help page at <https://support.google.com/google-ads/answer/3097241> for
/// details.
#[prost(double, optional, tag = "157")]
pub combined_clicks_per_query: ::core::option::Option<f64>,
/// The number of searches that returned pages from your site in the unpaid
/// results or showed one of your text ads. See the help page at
/// <https://support.google.com/google-ads/answer/3097241> for details.
#[prost(int64, optional, tag = "158")]
pub combined_queries: ::core::option::Option<i64>,
/// The estimated percent of times that your ad was eligible to show
/// on the Display Network but didn't because your budget was too low.
/// Note: Content budget lost impression share is reported in the range of 0
/// to 0.9. Any value above 0.9 is reported as 0.9001.
#[prost(double, optional, tag = "159")]
pub content_budget_lost_impression_share: ::core::option::Option<f64>,
/// The impressions you've received on the Display Network divided
/// by the estimated number of impressions you were eligible to receive.
/// Note: Content impression share is reported in the range of 0.1 to 1. Any
/// value below 0.1 is reported as 0.0999.
#[prost(double, optional, tag = "160")]
pub content_impression_share: ::core::option::Option<f64>,
/// The last date/time a conversion tag for this conversion action successfully
/// fired and was seen by Google Ads. This firing event may not have been the
/// result of an attributable conversion (for example, because the tag was
/// fired from a browser that did not previously click an ad from an
/// appropriate advertiser). The date/time is in the customer's time zone.
#[prost(string, optional, tag = "161")]
pub conversion_last_received_request_date_time: ::core::option::Option<
::prost::alloc::string::String,
>,
/// The date of the most recent conversion for this conversion action. The date
/// is in the customer's time zone.
#[prost(string, optional, tag = "162")]
pub conversion_last_conversion_date: ::core::option::Option<
::prost::alloc::string::String,
>,
/// The estimated percentage of impressions on the Display Network
/// that your ads didn't receive due to poor Ad Rank.
/// Note: Content rank lost impression share is reported in the range of 0
/// to 0.9. Any value above 0.9 is reported as 0.9001.
#[prost(double, optional, tag = "163")]
pub content_rank_lost_impression_share: ::core::option::Option<f64>,
/// Conversions from interactions divided by the number of ad interactions
/// (such as clicks for text ads or views for video ads). This only includes
/// conversion actions which include_in_conversions_metric attribute is set to
/// true. If you use conversion-based bidding, your bid strategies will
/// optimize for these conversions.
#[prost(double, optional, tag = "164")]
pub conversions_from_interactions_rate: ::core::option::Option<f64>,
/// The value of conversions. This only includes conversion actions which
/// include_in_conversions_metric attribute is set to true. If you use
/// conversion-based bidding, your bid strategies will optimize for these
/// conversions.
#[prost(double, optional, tag = "165")]
pub conversions_value: ::core::option::Option<f64>,
/// The value of conversions. This only includes conversion actions which
/// include_in_conversions_metric attribute is set to true. If you use
/// conversion-based bidding, your bid strategies will optimize for these
/// conversions. When this column is selected with date, the values in date
/// column means the conversion date. Details for the by_conversion_date
/// columns are available at
/// <https://support.google.com/google-ads/answer/9549009.>
#[prost(double, tag = "242")]
pub conversions_value_by_conversion_date: f64,
/// New customers' lifetime conversion value. If you have set up
/// customer acquisition goal at either account level or campaign level, this
/// will include the additional conversion value from new customers for
/// biddable conversions. If your campaign has adopted the customer
/// acquisition goal and selected "bid higher for new customers", these values
/// will be included in "conversions_value" for optimization. See
/// <https://support.google.com/google-ads/answer/12080169> for more details.
#[prost(double, optional, tag = "293")]
pub new_customer_lifetime_value: ::core::option::Option<f64>,
/// The value of conversions divided by the cost of ad interactions. This only
/// includes conversion actions which include_in_conversions_metric attribute
/// is set to true. If you use conversion-based bidding, your bid strategies
/// will optimize for these conversions.
#[prost(double, optional, tag = "166")]
pub conversions_value_per_cost: ::core::option::Option<f64>,
/// The value of conversions from interactions divided by the number of ad
/// interactions. This only includes conversion actions which
/// include_in_conversions_metric attribute is set to true. If you use
/// conversion-based bidding, your bid strategies will optimize for these
/// conversions.
#[prost(double, optional, tag = "167")]
pub conversions_from_interactions_value_per_interaction: ::core::option::Option<f64>,
/// The number of conversions. This only includes conversion actions which
/// include_in_conversions_metric attribute is set to true. If you use
/// conversion-based bidding, your bid strategies will optimize for these
/// conversions.
#[prost(double, optional, tag = "168")]
pub conversions: ::core::option::Option<f64>,
/// The number of conversions. This only includes conversion actions which
/// include_in_conversions_metric attribute is set to true. If you use
/// conversion-based bidding, your bid strategies will optimize for these
/// conversions. When this column is selected with date, the values in date
/// column means the conversion date. Details for the by_conversion_date
/// columns are available at
/// <https://support.google.com/google-ads/answer/9549009.>
#[prost(double, tag = "243")]
pub conversions_by_conversion_date: f64,
/// The sum of your cost-per-click (CPC) and cost-per-thousand impressions
/// (CPM) costs during this period.
#[prost(int64, optional, tag = "169")]
pub cost_micros: ::core::option::Option<i64>,
/// The cost of ad interactions divided by all conversions.
#[prost(double, optional, tag = "170")]
pub cost_per_all_conversions: ::core::option::Option<f64>,
/// The cost of ad interactions divided by conversions. This only includes
/// conversion actions which include_in_conversions_metric attribute is set to
/// true. If you use conversion-based bidding, your bid strategies will
/// optimize for these conversions.
#[prost(double, optional, tag = "171")]
pub cost_per_conversion: ::core::option::Option<f64>,
/// The cost of ad interactions divided by current model attributed
/// conversions. This only includes conversion actions which
/// include_in_conversions_metric attribute is set to true. If you use
/// conversion-based bidding, your bid strategies will optimize for these
/// conversions.
#[prost(double, optional, tag = "172")]
pub cost_per_current_model_attributed_conversion: ::core::option::Option<f64>,
/// Conversions from when a customer clicks on a Google Ads ad on one device,
/// then converts on a different device or browser.
/// Cross-device conversions are already included in all_conversions.
#[prost(double, optional, tag = "173")]
pub cross_device_conversions: ::core::option::Option<f64>,
/// The sum of the value of cross-device conversions, in micros.
#[prost(int64, optional, tag = "312")]
pub cross_device_conversions_value_micros: ::core::option::Option<i64>,
/// The number of clicks your ad receives (Clicks) divided by the number
/// of times your ad is shown (Impressions).
#[prost(double, optional, tag = "174")]
pub ctr: ::core::option::Option<f64>,
/// Shows how your historic conversions data would look under the attribution
/// model you've currently selected. This only includes conversion actions
/// which include_in_conversions_metric attribute is set to true. If you use
/// conversion-based bidding, your bid strategies will optimize for these
/// conversions.
#[prost(double, optional, tag = "175")]
pub current_model_attributed_conversions: ::core::option::Option<f64>,
/// Current model attributed conversions from interactions divided by the
/// number of ad interactions (such as clicks for text ads or views for video
/// ads). This only includes conversion actions which
/// include_in_conversions_metric attribute is set to true. If you use
/// conversion-based bidding, your bid strategies will optimize for these
/// conversions.
#[prost(double, optional, tag = "176")]
pub current_model_attributed_conversions_from_interactions_rate: ::core::option::Option<
f64,
>,
/// The value of current model attributed conversions from interactions divided
/// by the number of ad interactions. This only includes conversion actions
/// which include_in_conversions_metric attribute is set to true. If you use
/// conversion-based bidding, your bid strategies will optimize for these
/// conversions.
#[prost(double, optional, tag = "177")]
pub current_model_attributed_conversions_from_interactions_value_per_interaction: ::core::option::Option<
f64,
>,
/// The value of current model attributed conversions. This only includes
/// conversion actions which include_in_conversions_metric attribute is set to
/// true. If you use conversion-based bidding, your bid strategies will
/// optimize for these conversions.
#[prost(double, optional, tag = "178")]
pub current_model_attributed_conversions_value: ::core::option::Option<f64>,
/// The value of current model attributed conversions divided by the cost of ad
/// interactions. This only includes conversion actions which
/// include_in_conversions_metric attribute is set to true. If you use
/// conversion-based bidding, your bid strategies will optimize for these
/// conversions.
#[prost(double, optional, tag = "179")]
pub current_model_attributed_conversions_value_per_cost: ::core::option::Option<f64>,
/// How often people engage with your ad after it's shown to them. This is the
/// number of ad expansions divided by the number of times your ad is shown.
#[prost(double, optional, tag = "180")]
pub engagement_rate: ::core::option::Option<f64>,
/// The number of engagements.
/// An engagement occurs when a viewer expands your Lightbox ad. Also, in the
/// future, other ad types may support engagement metrics.
#[prost(int64, optional, tag = "181")]
pub engagements: ::core::option::Option<i64>,
/// Average lead value based on clicks.
#[prost(double, optional, tag = "213")]
pub hotel_average_lead_value_micros: ::core::option::Option<f64>,
/// Commission bid rate in micros. A 20% commission is represented as
/// 200,000.
#[prost(int64, optional, tag = "256")]
pub hotel_commission_rate_micros: ::core::option::Option<i64>,
/// Expected commission cost. The result of multiplying the commission value
/// times the hotel_commission_rate in advertiser currency.
#[prost(double, optional, tag = "257")]
pub hotel_expected_commission_cost: ::core::option::Option<f64>,
/// The average price difference between the price offered by reporting hotel
/// advertiser and the cheapest price offered by the competing advertiser.
#[prost(double, optional, tag = "214")]
pub hotel_price_difference_percentage: ::core::option::Option<f64>,
/// The number of impressions that hotel partners could have had given their
/// feed performance.
#[prost(int64, optional, tag = "215")]
pub hotel_eligible_impressions: ::core::option::Option<i64>,
/// The creative historical quality score.
#[prost(
enumeration = "super::enums::quality_score_bucket_enum::QualityScoreBucket",
tag = "80"
)]
pub historical_creative_quality_score: i32,
/// The quality of historical landing page experience.
#[prost(
enumeration = "super::enums::quality_score_bucket_enum::QualityScoreBucket",
tag = "81"
)]
pub historical_landing_page_quality_score: i32,
/// The historical quality score.
#[prost(int64, optional, tag = "216")]
pub historical_quality_score: ::core::option::Option<i64>,
/// The historical search predicted click through rate (CTR).
#[prost(
enumeration = "super::enums::quality_score_bucket_enum::QualityScoreBucket",
tag = "83"
)]
pub historical_search_predicted_ctr: i32,
/// The number of times the ad was forwarded to someone else as a message.
#[prost(int64, optional, tag = "217")]
pub gmail_forwards: ::core::option::Option<i64>,
/// The number of times someone has saved your Gmail ad to their inbox as a
/// message.
#[prost(int64, optional, tag = "218")]
pub gmail_saves: ::core::option::Option<i64>,
/// The number of clicks to the landing page on the expanded state of Gmail
/// ads.
#[prost(int64, optional, tag = "219")]
pub gmail_secondary_clicks: ::core::option::Option<i64>,
/// The number of times a store's location-based ad was shown.
///
/// This metric applies to feed items only.
#[prost(int64, optional, tag = "220")]
pub impressions_from_store_reach: ::core::option::Option<i64>,
/// Count of how often your ad has appeared on a search results page or
/// website on the Google Network.
#[prost(int64, optional, tag = "221")]
pub impressions: ::core::option::Option<i64>,
/// How often people interact with your ad after it is shown to them.
/// This is the number of interactions divided by the number of times your ad
/// is shown.
#[prost(double, optional, tag = "222")]
pub interaction_rate: ::core::option::Option<f64>,
/// The number of interactions.
/// An interaction is the main user action associated with an ad format-clicks
/// for text and shopping ads, views for video ads, and so on.
#[prost(int64, optional, tag = "223")]
pub interactions: ::core::option::Option<i64>,
/// The types of payable and free interactions.
#[prost(
enumeration = "super::enums::interaction_event_type_enum::InteractionEventType",
repeated,
tag = "100"
)]
pub interaction_event_types: ::prost::alloc::vec::Vec<i32>,
/// The percentage of clicks filtered out of your total number of clicks
/// (filtered + non-filtered clicks) during the reporting period.
#[prost(double, optional, tag = "224")]
pub invalid_click_rate: ::core::option::Option<f64>,
/// Number of clicks Google considers illegitimate and doesn't charge you for.
#[prost(int64, optional, tag = "225")]
pub invalid_clicks: ::core::option::Option<i64>,
/// Number of message chats initiated for Click To Message impressions that
/// were message tracking eligible.
#[prost(int64, optional, tag = "226")]
pub message_chats: ::core::option::Option<i64>,
/// Number of Click To Message impressions that were message tracking eligible.
#[prost(int64, optional, tag = "227")]
pub message_impressions: ::core::option::Option<i64>,
/// Number of message chats initiated (message_chats) divided by the number
/// of message impressions (message_impressions).
/// Rate at which a user initiates a message chat from an ad impression with
/// a messaging option and message tracking enabled.
/// Note that this rate can be more than 1.0 for a given message impression.
#[prost(double, optional, tag = "228")]
pub message_chat_rate: ::core::option::Option<f64>,
/// The percentage of mobile clicks that go to a mobile-friendly page.
#[prost(double, optional, tag = "229")]
pub mobile_friendly_clicks_percentage: ::core::option::Option<f64>,
/// Total optimization score uplift of all recommendations.
#[prost(double, optional, tag = "247")]
pub optimization_score_uplift: ::core::option::Option<f64>,
/// URL for the optimization score page in the Google Ads web interface.
/// This metric can be selected from `customer` or `campaign`, and can be
/// segmented by `segments.recommendation_type`. For example, `SELECT
/// metrics.optimization_score_url, segments.recommendation_type FROM
/// customer` will return a URL for each unique (customer, recommendation_type)
/// combination.
#[prost(string, optional, tag = "248")]
pub optimization_score_url: ::core::option::Option<::prost::alloc::string::String>,
/// The number of times someone clicked your site's listing in the unpaid
/// results for a particular query. See the help page at
/// <https://support.google.com/google-ads/answer/3097241> for details.
#[prost(int64, optional, tag = "230")]
pub organic_clicks: ::core::option::Option<i64>,
/// The number of times someone clicked your site's listing in the unpaid
/// results (organic_clicks) divided by the total number of searches that
/// returned pages from your site (organic_queries). See the help page at
/// <https://support.google.com/google-ads/answer/3097241> for details.
#[prost(double, optional, tag = "231")]
pub organic_clicks_per_query: ::core::option::Option<f64>,
/// The number of listings for your site in the unpaid search results. See the
/// help page at <https://support.google.com/google-ads/answer/3097241> for
/// details.
#[prost(int64, optional, tag = "232")]
pub organic_impressions: ::core::option::Option<i64>,
/// The number of times a page from your site was listed in the unpaid search
/// results (organic_impressions) divided by the number of searches returning
/// your site's listing in the unpaid results (organic_queries). See the help
/// page at <https://support.google.com/google-ads/answer/3097241> for details.
#[prost(double, optional, tag = "233")]
pub organic_impressions_per_query: ::core::option::Option<f64>,
/// The total number of searches that returned your site's listing in the
/// unpaid results. See the help page at
/// <https://support.google.com/google-ads/answer/3097241> for details.
#[prost(int64, optional, tag = "234")]
pub organic_queries: ::core::option::Option<i64>,
/// Percentage of first-time sessions (from people who had never visited your
/// site before). Imported from Google Analytics.
#[prost(double, optional, tag = "235")]
pub percent_new_visitors: ::core::option::Option<f64>,
/// Number of offline phone calls.
#[prost(int64, optional, tag = "236")]
pub phone_calls: ::core::option::Option<i64>,
/// Number of offline phone impressions.
#[prost(int64, optional, tag = "237")]
pub phone_impressions: ::core::option::Option<i64>,
/// Number of phone calls received (phone_calls) divided by the number of
/// times your phone number is shown (phone_impressions).
#[prost(double, optional, tag = "238")]
pub phone_through_rate: ::core::option::Option<f64>,
/// Your clickthrough rate (Ctr) divided by the average clickthrough rate of
/// all advertisers on the websites that show your ads. Measures how your ads
/// perform on Display Network sites compared to other ads on the same sites.
#[prost(double, optional, tag = "239")]
pub relative_ctr: ::core::option::Option<f64>,
/// The percentage of the customer's Shopping or Search ad impressions that are
/// shown in the most prominent Shopping position. See
/// <https://support.google.com/google-ads/answer/7501826>
/// for details. Any value below 0.1 is reported as 0.0999.
#[prost(double, optional, tag = "136")]
pub search_absolute_top_impression_share: ::core::option::Option<f64>,
/// The number estimating how often your ad wasn't the very first ad among the
/// top ads in the search results due to a low budget. Note: Search
/// budget lost absolute top impression share is reported in the range of 0 to
/// 0.9. Any value above 0.9 is reported as 0.9001.
#[prost(double, optional, tag = "137")]
pub search_budget_lost_absolute_top_impression_share: ::core::option::Option<f64>,
/// The estimated percent of times that your ad was eligible to show on the
/// Search Network but didn't because your budget was too low. Note: Search
/// budget lost impression share is reported in the range of 0 to 0.9. Any
/// value above 0.9 is reported as 0.9001.
#[prost(double, optional, tag = "138")]
pub search_budget_lost_impression_share: ::core::option::Option<f64>,
/// The number estimating how often your ad didn't show adjacent to the top
/// organic search results due to a low budget. Note: Search
/// budget lost top impression share is reported in the range of 0 to 0.9. Any
/// value above 0.9 is reported as 0.9001.
#[prost(double, optional, tag = "139")]
pub search_budget_lost_top_impression_share: ::core::option::Option<f64>,
/// The number of clicks you've received on the Search Network
/// divided by the estimated number of clicks you were eligible to receive.
/// Note: Search click share is reported in the range of 0.1 to 1. Any value
/// below 0.1 is reported as 0.0999.
#[prost(double, optional, tag = "140")]
pub search_click_share: ::core::option::Option<f64>,
/// The impressions you've received divided by the estimated number of
/// impressions you were eligible to receive on the Search Network for search
/// terms that matched your keywords exactly (or were close variants of your
/// keyword), regardless of your keyword match types. Note: Search exact match
/// impression share is reported in the range of 0.1 to 1. Any value below 0.1
/// is reported as 0.0999.
#[prost(double, optional, tag = "141")]
pub search_exact_match_impression_share: ::core::option::Option<f64>,
/// The impressions you've received on the Search Network divided
/// by the estimated number of impressions you were eligible to receive.
/// Note: Search impression share is reported in the range of 0.1 to 1. Any
/// value below 0.1 is reported as 0.0999.
#[prost(double, optional, tag = "142")]
pub search_impression_share: ::core::option::Option<f64>,
/// The number estimating how often your ad wasn't the very first ad among the
/// top ads in the search results due to poor Ad Rank.
/// Note: Search rank lost absolute top impression share is reported in the
/// range of 0 to 0.9. Any value above 0.9 is reported as 0.9001.
#[prost(double, optional, tag = "143")]
pub search_rank_lost_absolute_top_impression_share: ::core::option::Option<f64>,
/// The estimated percentage of impressions on the Search Network
/// that your ads didn't receive due to poor Ad Rank.
/// Note: Search rank lost impression share is reported in the range of 0 to
/// 0.9. Any value above 0.9 is reported as 0.9001.
#[prost(double, optional, tag = "144")]
pub search_rank_lost_impression_share: ::core::option::Option<f64>,
/// The number estimating how often your ad didn't show adjacent to the top
/// organic search results due to poor Ad Rank.
/// Note: Search rank lost top impression share is reported in the range of 0
/// to 0.9. Any value above 0.9 is reported as 0.9001.
#[prost(double, optional, tag = "145")]
pub search_rank_lost_top_impression_share: ::core::option::Option<f64>,
/// The impressions you've received among the top ads compared to the estimated
/// number of impressions you were eligible to receive among the top ads.
/// Note: Search top impression share is reported in the range of 0.1 to 1. Any
/// value below 0.1 is reported as 0.0999.
///
/// Top ads are generally above the top organic results, although they may show
/// below the top organic results on certain queries.
#[prost(double, optional, tag = "146")]
pub search_top_impression_share: ::core::option::Option<f64>,
/// Search volume range for a search term insight category.
#[prost(message, optional, tag = "295")]
pub search_volume: ::core::option::Option<SearchVolumeRange>,
/// A measure of how quickly your page loads after clicks on your mobile ads.
/// The score is a range from 1 to 10, 10 being the fastest.
#[prost(int64, optional, tag = "147")]
pub speed_score: ::core::option::Option<i64>,
/// The average Target CPA, or unset if not available (for example, for
/// campaigns that had traffic from portfolio bidding strategies or non-tCPA).
#[prost(int64, optional, tag = "290")]
pub average_target_cpa_micros: ::core::option::Option<i64>,
/// The average Target ROAS, or unset if not available (for example, for
/// campaigns that had traffic from portfolio bidding strategies or non-tROAS).
#[prost(double, optional, tag = "250")]
pub average_target_roas: ::core::option::Option<f64>,
/// The percent of your ad impressions that are shown adjacent to the top
/// organic search results.
#[prost(double, optional, tag = "148")]
pub top_impression_percentage: ::core::option::Option<f64>,
/// The percentage of ad clicks to Accelerated Mobile Pages (AMP) landing pages
/// that reach a valid AMP page.
#[prost(double, optional, tag = "149")]
pub valid_accelerated_mobile_pages_clicks_percentage: ::core::option::Option<f64>,
/// The value of all conversions divided by the number of all conversions.
#[prost(double, optional, tag = "150")]
pub value_per_all_conversions: ::core::option::Option<f64>,
/// The value of all conversions divided by the number of all conversions. When
/// this column is selected with date, the values in date column means the
/// conversion date. Details for the by_conversion_date columns are available
/// at <https://support.google.com/google-ads/answer/9549009.>
#[prost(double, optional, tag = "244")]
pub value_per_all_conversions_by_conversion_date: ::core::option::Option<f64>,
/// The value of conversions divided by the number of conversions. This only
/// includes conversion actions which include_in_conversions_metric attribute
/// is set to true. If you use conversion-based bidding, your bid strategies
/// will optimize for these conversions.
#[prost(double, optional, tag = "151")]
pub value_per_conversion: ::core::option::Option<f64>,
/// The value of conversions divided by the number of conversions. This only
/// includes conversion actions which include_in_conversions_metric attribute
/// is set to true. If you use conversion-based bidding, your bid strategies
/// will optimize for these conversions. When this column is selected with
/// date, the values in date column means the conversion date. Details for the
/// by_conversion_date columns are available at
/// <https://support.google.com/google-ads/answer/9549009.>
#[prost(double, optional, tag = "245")]
pub value_per_conversions_by_conversion_date: ::core::option::Option<f64>,
/// The value of current model attributed conversions divided by the number of
/// the conversions. This only includes conversion actions which
/// include_in_conversions_metric attribute is set to true. If you use
/// conversion-based bidding, your bid strategies will optimize for these
/// conversions.
#[prost(double, optional, tag = "152")]
pub value_per_current_model_attributed_conversion: ::core::option::Option<f64>,
/// Percentage of impressions where the viewer watched all of your video.
#[prost(double, optional, tag = "132")]
pub video_quartile_p100_rate: ::core::option::Option<f64>,
/// Percentage of impressions where the viewer watched 25% of your video.
#[prost(double, optional, tag = "133")]
pub video_quartile_p25_rate: ::core::option::Option<f64>,
/// Percentage of impressions where the viewer watched 50% of your video.
#[prost(double, optional, tag = "134")]
pub video_quartile_p50_rate: ::core::option::Option<f64>,
/// Percentage of impressions where the viewer watched 75% of your video.
#[prost(double, optional, tag = "135")]
pub video_quartile_p75_rate: ::core::option::Option<f64>,
/// The number of views your TrueView video ad receives divided by its number
/// of impressions, including thumbnail impressions for TrueView in-display
/// ads.
#[prost(double, optional, tag = "153")]
pub video_view_rate: ::core::option::Option<f64>,
/// The number of times your video ads were viewed.
#[prost(int64, optional, tag = "154")]
pub video_views: ::core::option::Option<i64>,
/// The total number of view-through conversions.
/// These happen when a customer sees an image or rich media ad, then later
/// completes a conversion on your site without interacting with (for example,
/// clicking on) another ad.
#[prost(int64, optional, tag = "155")]
pub view_through_conversions: ::core::option::Option<i64>,
/// The number of iOS Store Kit Ad Network conversions.
#[prost(int64, tag = "246")]
pub sk_ad_network_installs: i64,
/// The total number of iOS Store Kit Ad Network conversions.
#[prost(int64, tag = "292")]
pub sk_ad_network_total_conversions: i64,
/// Clicks from properties not owned by the publisher for which the traffic
/// the publisher has paid for or acquired through incentivized activity
#[prost(int64, tag = "264")]
pub publisher_purchased_clicks: i64,
/// Clicks from properties for which the traffic the publisher has not paid
/// for or acquired through incentivized activity
#[prost(int64, tag = "265")]
pub publisher_organic_clicks: i64,
/// Clicks from traffic which is not identified as "Publisher Purchased" or
/// "Publisher Organic"
#[prost(int64, tag = "266")]
pub publisher_unknown_clicks: i64,
/// Number of call button clicks on any location surface after a chargeable ad
/// event (click or impression). This measure is coming from Asset based
/// location.
#[prost(double, optional, tag = "267")]
pub all_conversions_from_location_asset_click_to_call: ::core::option::Option<f64>,
/// Number of driving directions clicks on any location surface after a
/// chargeable ad event (click or impression). This measure is coming
/// from Asset based location.
#[prost(double, optional, tag = "268")]
pub all_conversions_from_location_asset_directions: ::core::option::Option<f64>,
/// Number of menu link clicks on any location surface after a chargeable ad
/// event (click or impression). This measure is coming from Asset based
/// location.
#[prost(double, optional, tag = "269")]
pub all_conversions_from_location_asset_menu: ::core::option::Option<f64>,
/// Number of order clicks on any location surface after a chargeable ad event
/// (click or impression). This measure is coming from Asset based
/// location.
#[prost(double, optional, tag = "270")]
pub all_conversions_from_location_asset_order: ::core::option::Option<f64>,
/// Number of other types of local action clicks on any location surface after
/// a chargeable ad event (click or impression). This measure is coming
/// from Asset based location.
#[prost(double, optional, tag = "271")]
pub all_conversions_from_location_asset_other_engagement: ::core::option::Option<
f64,
>,
/// Estimated number of visits to the store after a chargeable
/// ad event (click or impression). This measure is coming from Asset
/// based location.
#[prost(double, optional, tag = "272")]
pub all_conversions_from_location_asset_store_visits: ::core::option::Option<f64>,
/// Number of website URL clicks on any location surface after a chargeable ad
/// event (click or impression). This measure is coming from Asset based
/// location.
#[prost(double, optional, tag = "273")]
pub all_conversions_from_location_asset_website: ::core::option::Option<f64>,
/// Number of impressions in which the store location was shown or the location
/// was used for targeting. This measure is coming from Asset based
/// location.
#[prost(int64, optional, tag = "274")]
pub eligible_impressions_from_location_asset_store_reach: ::core::option::Option<
i64,
>,
/// Number of call button clicks on any location surface after an impression.
/// This measure is coming from Asset based location.
#[prost(double, optional, tag = "275")]
pub view_through_conversions_from_location_asset_click_to_call: ::core::option::Option<
f64,
>,
/// Number of driving directions clicks on any location surface after an
/// impression. This measure is coming from Asset based location.
#[prost(double, optional, tag = "276")]
pub view_through_conversions_from_location_asset_directions: ::core::option::Option<
f64,
>,
/// Number of menu link clicks on any location surface after an impression.
/// This measure is coming from Asset based location.
#[prost(double, optional, tag = "277")]
pub view_through_conversions_from_location_asset_menu: ::core::option::Option<f64>,
/// Number of order clicks on any location surface after an impression. This
/// measure is coming from Asset based location.
#[prost(double, optional, tag = "278")]
pub view_through_conversions_from_location_asset_order: ::core::option::Option<f64>,
/// Number of other types of local action clicks on any location surface after
/// an impression. This measure is coming from Asset based location.
#[prost(double, optional, tag = "279")]
pub view_through_conversions_from_location_asset_other_engagement: ::core::option::Option<
f64,
>,
/// Estimated number of visits to the store after an impression.
/// This measure is coming from Asset based location.
#[prost(double, optional, tag = "280")]
pub view_through_conversions_from_location_asset_store_visits: ::core::option::Option<
f64,
>,
/// Number of website URL clicks on any location surface after an impression.
/// This measure is coming from Asset based location.
#[prost(double, optional, tag = "281")]
pub view_through_conversions_from_location_asset_website: ::core::option::Option<
f64,
>,
/// Orders is the total number of purchase conversions you received attributed
/// to your ads.
/// How it works: You report conversions with cart data for
/// completed purchases on your website. If a conversion is attributed to
/// previous interactions with your ads (clicks for text or Shopping ads, views
/// for video ads etc.) it's counted as an order.
/// Example: Someone clicked on a Shopping ad for a hat then bought the same
/// hat and a shirt in an order on your website. Even though they bought 2
/// products, this would count as 1 order.
/// This metric is only available if you report conversions with cart data.
#[prost(double, optional, tag = "296")]
pub orders: ::core::option::Option<f64>,
/// Average order value is the average revenue you made per order attributed to
/// your ads.
/// How it works: You report conversions with cart data for completed purchases
/// on your website. Average order value is the total revenue from your orders
/// divided by the total number of orders.
/// Example: You received 3 orders which made $10, $15 and $20 worth of
/// revenue. The average order value is $15 = ($10 + $15 + $20)/3.
/// This metric is only available if you report conversions with cart data.
#[prost(int64, optional, tag = "297")]
pub average_order_value_micros: ::core::option::Option<i64>,
/// Average cart size is the average number of products in each order
/// attributed to your ads.
/// How it works: You report conversions with cart data for completed purchases
/// on your website. Average cart size is the total number of products sold
/// divided by the total number of orders you received.
/// Example: You received 2 orders, the first included 3 products and the
/// second included 2. The average cart size is 2.5 products = (3+2)/2.
/// This metric is only available if you report conversions with cart data.
#[prost(double, optional, tag = "298")]
pub average_cart_size: ::core::option::Option<f64>,
/// Cost of goods sold (COGS) is the total cost of the products you sold in
/// orders attributed to your ads.
/// How it works: You can add a cost of goods sold value to every product in
/// Merchant Center. If you report conversions with cart data, the products you
/// sold are matched with their cost of goods sold value and this can be used
/// to calculate the gross profit you made on each order.
/// Example: Someone clicked on a Shopping ad for a hat then bought the same
/// hat and a shirt. The hat has a cost of goods sold value of $3, the shirt
/// has a cost of goods sold value of $5. The cost of goods sold for this order
/// is $8 = $3 + $5.
/// This metric is only available if you report conversions with cart data.
#[prost(int64, optional, tag = "299")]
pub cost_of_goods_sold_micros: ::core::option::Option<i64>,
/// Gross profit is the profit you made from orders attributed to your ads
/// minus the cost of goods sold (COGS).
/// How it works: Gross profit is the revenue you made from sales attributed to
/// your ads minus cost of goods sold. Gross profit calculations only include
/// products that have a cost of goods sold value in Merchant Center.
/// Example: Someone clicked on a Shopping ad for a hat then bought the same
/// hat and a shirt in an order from your website. The hat is priced $10 and
/// the shirt is priced $20. The hat has a cost of goods sold value of $3, but
/// the shirt has no cost of goods sold value. Gross profit for this order will
/// only take into account the hat, so it's $7 = $10 - $3.
/// This metric is only available if you report conversions with cart data.
#[prost(int64, optional, tag = "300")]
pub gross_profit_micros: ::core::option::Option<i64>,
/// Gross profit margin is the percentage gross profit you made from orders
/// attributed to your ads, after taking out the cost of goods sold (COGS).
/// How it works: You report conversions with cart data for completed purchases
/// on your website. Gross profit margin is the gross profit you made divided
/// by your total revenue and multiplied by 100%. Gross profit margin
/// calculations only include products that have a cost of goods sold value in
/// Merchant Center.
/// Example: Someone bought a hat and a shirt in an order on your website. The
/// hat is priced $10 and has a cost of goods sold value of $3. The shirt is
/// priced $20 but has no cost of goods sold value. Gross profit margin for
/// this order will only take into account the hat because it has a cost of
/// goods sold value, so it's 70% = ($10 - $3)/$10 x 100%.
/// This metric is only available if you report conversions with cart data.
#[prost(double, optional, tag = "301")]
pub gross_profit_margin: ::core::option::Option<f64>,
/// Revenue is the total amount you made from orders attributed to your ads.
/// How it works: You report conversions with cart data for completed purchases
/// on your website. Revenue is the total value of all the orders you received
/// attributed to your ads, minus any discount.
/// Example: Someone clicked on a Shopping ad for a hat then bought the same
/// hat and a shirt in an order from your website. The hat is priced $10 and
/// the shirt is priced $20. The entire order has a $5 discount. The revenue
/// from this order is $25 = ($10 + $20) - $5.
/// This metric is only available if you report conversions with cart data.
#[prost(int64, optional, tag = "302")]
pub revenue_micros: ::core::option::Option<i64>,
/// Units sold is the total number of products sold from orders attributed to
/// your ads.
/// How it works: You report conversions with cart data for completed purchases
/// on your website. Units sold is the total number of products sold from all
/// orders attributed to your ads.
/// Example: Someone clicked on a Shopping ad for a hat then bought the same
/// hat, a shirt and a jacket. The units sold in this order is 3.
/// This metric is only available if you report conversions with cart data.
#[prost(double, optional, tag = "303")]
pub units_sold: ::core::option::Option<f64>,
/// Cross-sell cost of goods sold (COGS) is the total cost of products sold as
/// a result of advertising a different product.
/// How it works: You report conversions with cart data for completed purchases
/// on your website. If the ad that was interacted with before the purchase has
/// an associated product (see Shopping Ads) then this product is considered
/// the advertised product. Any product included in the order the customer
/// places is a sold product. If these products don't match then this is
/// considered cross-sell. Cross-sell cost of goods sold is the total cost of
/// the products sold that weren't advertised.
/// Example: Someone clicked on a Shopping ad for a hat then bought the same
/// hat and a shirt. The hat has a cost of goods sold value of $3, the shirt
/// has a cost of goods sold value of $5. The cross-sell cost of goods sold for
/// this order is $5.
/// This metric is only available if you report conversions with cart data.
#[prost(int64, optional, tag = "304")]
pub cross_sell_cost_of_goods_sold_micros: ::core::option::Option<i64>,
/// Cross-sell gross profit is the profit you made from products sold as a
/// result of advertising a different product, minus cost of goods sold (COGS).
/// How it works: You report conversions with cart data for completed purchases
/// on your website. If the ad that was interacted with before the purchase has
/// an associated product (see Shopping Ads) then this product is considered
/// the advertised product. Any product included in the purchase is a sold
/// product. If these products don't match then this is considered cross-sell.
/// Cross-sell gross profit is the revenue you made from cross-sell attributed
/// to your ads minus the cost of the goods sold.
/// Example: Someone clicked on a Shopping ad for a hat then bought the same
/// hat and a shirt. The shirt is priced $20 and has a cost of goods sold value
/// of $5. The cross-sell gross profit of this order is $15 = $20 - $5.
/// This metric is only available if you report conversions with cart data.
#[prost(int64, optional, tag = "305")]
pub cross_sell_gross_profit_micros: ::core::option::Option<i64>,
/// Cross-sell revenue is the total amount you made from products sold as a
/// result of advertising a different product.
/// How it works: You report conversions with cart data for completed purchases
/// on your website. If the ad that was interacted with before the purchase has
/// an associated product (see Shopping Ads) then this product is considered
/// the advertised product. Any product included in the order the customer
/// places is a sold product. If these products don't match then this is
/// considered cross-sell. Cross-sell revenue is the total value you made from
/// cross-sell attributed to your ads.
/// Example: Someone clicked on a Shopping ad for a hat then bought the same
/// hat and a shirt. The hat is priced $10 and the shirt is priced $20. The
/// cross-sell revenue of this order is $20.
/// This metric is only available if you report conversions with cart data.
#[prost(int64, optional, tag = "306")]
pub cross_sell_revenue_micros: ::core::option::Option<i64>,
/// Cross-sell units sold is the total number of products sold as a result of
/// advertising a different product.
/// How it works: You report conversions with cart data for completed purchases
/// on your website. If the ad that was interacted with before the purchase has
/// an associated product (see Shopping Ads) then this product is considered
/// the advertised product. Any product included in the order the customer
/// places is a sold product. If these products don't match then this is
/// considered cross-sell. Cross-sell units sold is the total number of
/// cross-sold products from all orders attributed to your ads.
/// Example: Someone clicked on a Shopping ad for a hat then bought the same
/// hat, a shirt and a jacket. The cross-sell units sold in this order is 2.
/// This metric is only available if you report conversions with cart data.
#[prost(double, optional, tag = "307")]
pub cross_sell_units_sold: ::core::option::Option<f64>,
/// Lead cost of goods sold (COGS) is the total cost of products sold as a
/// result of advertising the same product.
/// How it works: You report conversions with cart data for completed purchases
/// on your website. If the ad that was interacted with has an associated
/// product (see Shopping Ads) then this product is considered the advertised
/// product. Any product included in the order the customer places is a sold
/// product. If the advertised and sold products match, then the cost of these
/// goods is counted under lead cost of goods sold.
/// Example: Someone clicked on a Shopping ad for a hat then bought the same
/// hat and a shirt. The hat has a cost of goods sold value of $3, the shirt
/// has a cost of goods sold value of $5. The lead cost of goods sold for this
/// order is $3.
/// This metric is only available if you report conversions with cart data.
#[prost(int64, optional, tag = "308")]
pub lead_cost_of_goods_sold_micros: ::core::option::Option<i64>,
/// Lead gross profit is the profit you made from products sold as a result of
/// advertising the same product, minus cost of goods sold (COGS).
/// How it works: You report conversions with cart data for completed purchases
/// on your website. If the ad that was interacted with before the purchase has
/// an associated product (see Shopping Ads) then this product is considered
/// the advertised product. Any product included in the order the customer
/// places is a sold product. If the advertised and sold products match, then
/// the revenue you made from these sales minus the cost of goods sold is your
/// lead gross profit.
/// Example: Someone clicked on a Shopping ad for a hat then bought the same
/// hat and a shirt. The hat is priced $10 and has a cost of goods sold value
/// of $3. The lead gross profit of this order is $7 = $10 - $3.
/// This metric is only available if you report conversions with cart data.
#[prost(int64, optional, tag = "309")]
pub lead_gross_profit_micros: ::core::option::Option<i64>,
/// Lead revenue is the total amount you made from products sold as a result of
/// advertising the same product.
/// How it works: You report conversions with cart data for completed purchases
/// on your website. If the ad that was interacted with before the purchase has
/// an associated product (see Shopping Ads) then this product is considered
/// the advertised product. Any product included in the order the customer
/// places is a sold product. If the advertised and sold products match, then
/// the total value you made from the sales of these products is shown under
/// lead revenue.
/// Example: Someone clicked on a Shopping ad for a hat then bought the same
/// hat and a shirt. The hat is priced $10 and the shirt is priced $20. The
/// lead revenue of this order is $10.
/// This metric is only available if you report conversions with cart data.
#[prost(int64, optional, tag = "310")]
pub lead_revenue_micros: ::core::option::Option<i64>,
/// Lead units sold is the total number of products sold as a result of
/// advertising the same product.
/// How it works: You report conversions with cart data for completed purchases
/// on your website. If the ad that was interacted with before the purchase has
/// an associated product (see Shopping Ads) then this product is considered
/// the advertised product. Any product included in the order the customer
/// places is a sold product. If the advertised and sold products match, then
/// the total number of these products sold is shown under lead units sold.
/// Example: Someone clicked on a Shopping ad for a hat then bought the same
/// hat, a shirt and a jacket. The lead units sold in this order is 1.
/// This metric is only available if you report conversions with cart data.
#[prost(double, optional, tag = "311")]
pub lead_units_sold: ::core::option::Option<f64>,
/// The number of unique users who saw your ad during the requested time
/// period. This metric cannot be aggregated, and can only be requested for
/// date ranges of 92 days or less. This metric is available for following
/// campaign types - Display, Video, Discovery and App.
#[prost(int64, optional, tag = "319")]
pub unique_users: ::core::option::Option<i64>,
/// The average number of times a unique user saw your ad during the requested
/// time period. This metric cannot be aggregated, and can only be requested
/// for date ranges of 92 days or less. This metric is available for following
/// campaign types - Display, Video, Discovery and App.
#[prost(double, optional, tag = "320")]
pub average_impression_frequency_per_user: ::core::option::Option<f64>,
}
/// Search volume range.
/// Actual search volume falls within this range.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct SearchVolumeRange {
/// Lower bound of search volume.
#[prost(int64, optional, tag = "1")]
pub min: ::core::option::Option<i64>,
/// Upper bound of search volume.
#[prost(int64, optional, tag = "2")]
pub max: ::core::option::Option<i64>,
}
/// Historical metrics specific to the targeting options selected.
/// Targeting options include geographies, network, and so on.
/// Refer to <https://support.google.com/google-ads/answer/3022575> for more
/// details.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KeywordPlanHistoricalMetrics {
/// Approximate number of monthly searches on this query, averaged
/// for the past 12 months.
#[prost(int64, optional, tag = "7")]
pub avg_monthly_searches: ::core::option::Option<i64>,
/// Approximate number of searches on this query for the past twelve months.
#[prost(message, repeated, tag = "6")]
pub monthly_search_volumes: ::prost::alloc::vec::Vec<MonthlySearchVolume>,
/// The competition level for the query.
#[prost(
enumeration = "super::enums::keyword_plan_competition_level_enum::KeywordPlanCompetitionLevel",
tag = "2"
)]
pub competition: i32,
/// The competition index for the query in the range \[0, 100\].
/// Shows how competitive ad placement is for a keyword.
/// The level of competition from 0-100 is determined by the number of ad slots
/// filled divided by the total number of ad slots available. If not enough
/// data is available, null is returned.
#[prost(int64, optional, tag = "8")]
pub competition_index: ::core::option::Option<i64>,
/// Top of page bid low range (20th percentile) in micros for the keyword.
#[prost(int64, optional, tag = "9")]
pub low_top_of_page_bid_micros: ::core::option::Option<i64>,
/// Top of page bid high range (80th percentile) in micros for the keyword.
#[prost(int64, optional, tag = "10")]
pub high_top_of_page_bid_micros: ::core::option::Option<i64>,
/// Average Cost Per Click in micros for the keyword.
#[prost(int64, optional, tag = "11")]
pub average_cpc_micros: ::core::option::Option<i64>,
}
/// Historical metrics options.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct HistoricalMetricsOptions {
/// The year month range for historical metrics. If not specified, metrics
/// for the past 12 months are returned.
/// Search metrics are available for the past 4 years. If the search volume is
/// not available for the entire year_month_range provided, the subset of the
/// year month range for which search volume is available are returned.
#[prost(message, optional, tag = "1")]
pub year_month_range: ::core::option::Option<YearMonthRange>,
/// Indicates whether to include average cost per click value.
/// Average CPC is provided only for legacy support.
#[prost(bool, tag = "2")]
pub include_average_cpc: bool,
}
/// Monthly search volume.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MonthlySearchVolume {
/// The year of the search volume (for example, 2020).
#[prost(int64, optional, tag = "4")]
pub year: ::core::option::Option<i64>,
/// The month of the search volume.
#[prost(enumeration = "super::enums::month_of_year_enum::MonthOfYear", tag = "2")]
pub month: i32,
/// Approximate number of searches for the month.
/// A null value indicates the search volume is unavailable for
/// that month.
#[prost(int64, optional, tag = "5")]
pub monthly_searches: ::core::option::Option<i64>,
}
/// The aggregate metrics specification of the request.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KeywordPlanAggregateMetrics {
/// The list of aggregate metrics to fetch data.
#[prost(
enumeration = "super::enums::keyword_plan_aggregate_metric_type_enum::KeywordPlanAggregateMetricType",
repeated,
tag = "1"
)]
pub aggregate_metric_types: ::prost::alloc::vec::Vec<i32>,
}
/// The aggregated historical metrics for keyword plan keywords.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KeywordPlanAggregateMetricResults {
/// The aggregate searches for all the keywords segmented by device
/// for the specified time.
/// Supports the following device types: MOBILE, TABLET, DESKTOP.
///
/// This is only set when KeywordPlanAggregateMetricTypeEnum.DEVICE is set
/// in the KeywordPlanAggregateMetrics field in the request.
#[prost(message, repeated, tag = "1")]
pub device_searches: ::prost::alloc::vec::Vec<KeywordPlanDeviceSearches>,
}
/// The total searches for the device type during the specified time period.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct KeywordPlanDeviceSearches {
/// The device type.
#[prost(enumeration = "super::enums::device_enum::Device", tag = "1")]
pub device: i32,
/// The total searches for the device.
#[prost(int64, optional, tag = "2")]
pub search_count: ::core::option::Option<i64>,
}
/// The annotations for the keyword plan keywords.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KeywordAnnotations {
/// The list of concepts for the keyword.
#[prost(message, repeated, tag = "1")]
pub concepts: ::prost::alloc::vec::Vec<KeywordConcept>,
}
/// The concept for the keyword.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KeywordConcept {
/// The concept name for the keyword in the concept_group.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// The concept group of the concept details.
#[prost(message, optional, tag = "2")]
pub concept_group: ::core::option::Option<ConceptGroup>,
}
/// The concept group for the keyword concept.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConceptGroup {
/// The concept group name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// The concept group type.
#[prost(
enumeration = "super::enums::keyword_plan_concept_group_type_enum::KeywordPlanConceptGroupType",
tag = "2"
)]
pub r#type: i32,
}