def test_parse_dynamic_search_ads_search_term_view_path(): expected = { "customer_id": "cuttlefish", "ad_group_id": "mussel", "search_term_fingerprint": "winkle", "headline_fingerprint": "nautilus", "landing_page_fingerprint": "scallop", "page_url_fingerprint": "abalone", } path = DynamicSearchAdsSearchTermViewServiceClient.dynamic_search_ads_search_term_view_path( **expected) # Check that the path construction is reversible. actual = DynamicSearchAdsSearchTermViewServiceClient.parse_dynamic_search_ads_search_term_view_path( path) assert expected == actual
def test_dynamic_search_ads_search_term_view_path(): customer_id = "squid" ad_group_id = "clam" search_term_fingerprint = "whelk" headline_fingerprint = "octopus" landing_page_fingerprint = "oyster" page_url_fingerprint = "nudibranch" expected = "customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fingerprint}~{headline_fingerprint}~{landing_page_fingerprint}~{page_url_fingerprint}".format( customer_id=customer_id, ad_group_id=ad_group_id, search_term_fingerprint=search_term_fingerprint, headline_fingerprint=headline_fingerprint, landing_page_fingerprint=landing_page_fingerprint, page_url_fingerprint=page_url_fingerprint, ) actual = DynamicSearchAdsSearchTermViewServiceClient.dynamic_search_ads_search_term_view_path( customer_id, ad_group_id, search_term_fingerprint, headline_fingerprint, landing_page_fingerprint, page_url_fingerprint) assert expected == actual